@zsviczian/kplex-web 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chunk.js CHANGED
@@ -1,769 +1,12 @@
1
- var K0=Object.create;var bh=Object.defineProperty;var Q0=Object.getOwnPropertyDescriptor;var Z0=Object.getOwnPropertyNames;var F0=Object.getPrototypeOf,J0=Object.prototype.hasOwnProperty;var W0=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ln=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $0=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z0(t))!J0.call(e,a)&&a!==n&&bh(e,a,{get:()=>t[a],enumerable:!(i=Q0(t,a))||i.enumerable});return e};var K=(e,t,n)=>(n=e!=null?K0(F0(e)):{},$0(t||!e||!e.__esModule?bh(n,"default",{value:e,enumerable:!0}):n,e));var _,T=W0(()=>{_=[["K-Plex",` GNU AFFERO GENERAL PUBLIC LICENSE
2
- Version 3, 19 November 2007
3
-
4
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
- Everyone is permitted to copy and distribute verbatim copies
6
- of this license document, but changing it is not allowed.
7
-
8
- Preamble
9
-
10
- The GNU Affero General Public License is a free, copyleft license for
11
- software and other kinds of works, specifically designed to ensure
12
- cooperation with the community in the case of network server software.
13
-
14
- The licenses for most software and other practical works are designed
15
- to take away your freedom to share and change the works. By contrast,
16
- our General Public Licenses are intended to guarantee your freedom to
17
- share and change all versions of a program--to make sure it remains free
18
- software for all its users.
19
-
20
- When we speak of free software, we are referring to freedom, not
21
- price. Our General Public Licenses are designed to make sure that you
22
- have the freedom to distribute copies of free software (and charge for
23
- them if you wish), that you receive source code or can get it if you
24
- want it, that you can change the software or use pieces of it in new
25
- free programs, and that you know you can do these things.
26
-
27
- Developers that use our General Public Licenses protect your rights
28
- with two steps: (1) assert copyright on the software, and (2) offer
29
- you this License which gives you legal permission to copy, distribute
30
- and/or modify the software.
31
-
32
- A secondary benefit of defending all users' freedom is that
33
- improvements made in alternate versions of the program, if they
34
- receive widespread use, become available for other developers to
35
- incorporate. Many developers of free software are heartened and
36
- encouraged by the resulting cooperation. However, in the case of
37
- software used on network servers, this result may fail to come about.
38
- The GNU General Public License permits making a modified version and
39
- letting the public access it on a server without ever releasing its
40
- source code to the public.
41
-
42
- The GNU Affero General Public License is designed specifically to
43
- ensure that, in such cases, the modified source code becomes available
44
- to the community. It requires the operator of a network server to
45
- provide the source code of the modified version running there to the
46
- users of that server. Therefore, public use of a modified version, on
47
- a publicly accessible server, gives the public access to the source
48
- code of the modified version.
49
-
50
- An older license, called the Affero General Public License and
51
- published by Affero, was designed to accomplish similar goals. This is
52
- a different license, not a version of the Affero GPL, but Affero has
53
- released a new version of the Affero GPL which permits relicensing under
54
- this license.
55
-
56
- The precise terms and conditions for copying, distribution and
57
- modification follow.
58
-
59
- TERMS AND CONDITIONS
60
-
61
- 0. Definitions.
62
-
63
- "This License" refers to version 3 of the GNU Affero General Public License.
64
-
65
- "Copyright" also means copyright-like laws that apply to other kinds of
66
- works, such as semiconductor masks.
67
-
68
- "The Program" refers to any copyrightable work licensed under this
69
- License. Each licensee is addressed as "you". "Licensees" and
70
- "recipients" may be individuals or organizations.
71
-
72
- To "modify" a work means to copy from or adapt all or part of the work
73
- in a fashion requiring copyright permission, other than the making of an
74
- exact copy. The resulting work is called a "modified version" of the
75
- earlier work or a work "based on" the earlier work.
76
-
77
- A "covered work" means either the unmodified Program or a work based
78
- on the Program.
79
-
80
- To "propagate" a work means to do anything with it that, without
81
- permission, would make you directly or secondarily liable for
82
- infringement under applicable copyright law, except executing it on a
83
- computer or modifying a private copy. Propagation includes copying,
84
- distribution (with or without modification), making available to the
85
- public, and in some countries other activities as well.
86
-
87
- To "convey" a work means any kind of propagation that enables other
88
- parties to make or receive copies. Mere interaction with a user through
89
- a computer network, with no transfer of a copy, is not conveying.
90
-
91
- An interactive user interface displays "Appropriate Legal Notices"
92
- to the extent that it includes a convenient and prominently visible
93
- feature that (1) displays an appropriate copyright notice, and (2)
94
- tells the user that there is no warranty for the work (except to the
95
- extent that warranties are provided), that licensees may convey the
96
- work under this License, and how to view a copy of this License. If
97
- the interface presents a list of user commands or options, such as a
98
- menu, a prominent item in the list meets this criterion.
99
-
100
- 1. Source Code.
101
-
102
- The "source code" for a work means the preferred form of the work
103
- for making modifications to it. "Object code" means any non-source
104
- form of a work.
105
-
106
- A "Standard Interface" means an interface that either is an official
107
- standard defined by a recognized standards body, or, in the case of
108
- interfaces specified for a particular programming language, one that
109
- is widely used among developers working in that language.
110
-
111
- The "System Libraries" of an executable work include anything, other
112
- than the work as a whole, that (a) is included in the normal form of
113
- packaging a Major Component, but which is not part of that Major
114
- Component, and (b) serves only to enable use of the work with that
115
- Major Component, or to implement a Standard Interface for which an
116
- implementation is available to the public in source code form. A
117
- "Major Component", in this context, means a major essential component
118
- (kernel, window system, and so on) of the specific operating system
119
- (if any) on which the executable work runs, or a compiler used to
120
- produce the work, or an object code interpreter used to run it.
121
-
122
- The "Corresponding Source" for a work in object code form means all
123
- the source code needed to generate, install, and (for an executable
124
- work) run the object code and to modify the work, including scripts to
125
- control those activities. However, it does not include the work's
126
- System Libraries, or general-purpose tools or generally available free
127
- programs which are used unmodified in performing those activities but
128
- which are not part of the work. For example, Corresponding Source
129
- includes interface definition files associated with source files for
130
- the work, and the source code for shared libraries and dynamically
131
- linked subprograms that the work is specifically designed to require,
132
- such as by intimate data communication or control flow between those
133
- subprograms and other parts of the work.
134
-
135
- The Corresponding Source need not include anything that users
136
- can regenerate automatically from other parts of the Corresponding
137
- Source.
138
-
139
- The Corresponding Source for a work in source code form is that
140
- same work.
141
-
142
- 2. Basic Permissions.
143
-
144
- All rights granted under this License are granted for the term of
145
- copyright on the Program, and are irrevocable provided the stated
146
- conditions are met. This License explicitly affirms your unlimited
147
- permission to run the unmodified Program. The output from running a
148
- covered work is covered by this License only if the output, given its
149
- content, constitutes a covered work. This License acknowledges your
150
- rights of fair use or other equivalent, as provided by copyright law.
151
-
152
- You may make, run and propagate covered works that you do not
153
- convey, without conditions so long as your license otherwise remains
154
- in force. You may convey covered works to others for the sole purpose
155
- of having them make modifications exclusively for you, or provide you
156
- with facilities for running those works, provided that you comply with
157
- the terms of this License in conveying all material for which you do
158
- not control copyright. Those thus making or running the covered works
159
- for you must do so exclusively on your behalf, under your direction
160
- and control, on terms that prohibit them from making any copies of
161
- your copyrighted material outside their relationship with you.
162
-
163
- Conveying under any other circumstances is permitted solely under
164
- the conditions stated below. Sublicensing is not allowed; section 10
165
- makes it unnecessary.
166
-
167
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
-
169
- No covered work shall be deemed part of an effective technological
170
- measure under any applicable law fulfilling obligations under article
171
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
- similar laws prohibiting or restricting circumvention of such
173
- measures.
174
-
175
- When you convey a covered work, you waive any legal power to forbid
176
- circumvention of technological measures to the extent such circumvention
177
- is effected by exercising rights under this License with respect to
178
- the covered work, and you disclaim any intention to limit operation or
179
- modification of the work as a means of enforcing, against the work's
180
- users, your or third parties' legal rights to forbid circumvention of
181
- technological measures.
182
-
183
- 4. Conveying Verbatim Copies.
184
-
185
- You may convey verbatim copies of the Program's source code as you
186
- receive it, in any medium, provided that you conspicuously and
187
- appropriately publish on each copy an appropriate copyright notice;
188
- keep intact all notices stating that this License and any
189
- non-permissive terms added in accord with section 7 apply to the code;
190
- keep intact all notices of the absence of any warranty; and give all
191
- recipients a copy of this License along with the Program.
192
-
193
- You may charge any price or no price for each copy that you convey,
194
- and you may offer support or warranty protection for a fee.
195
-
196
- 5. Conveying Modified Source Versions.
197
-
198
- You may convey a work based on the Program, or the modifications to
199
- produce it from the Program, in the form of source code under the
200
- terms of section 4, provided that you also meet all of these conditions:
201
-
202
- a) The work must carry prominent notices stating that you modified
203
- it, and giving a relevant date.
204
-
205
- b) The work must carry prominent notices stating that it is
206
- released under this License and any conditions added under section
207
- 7. This requirement modifies the requirement in section 4 to
208
- "keep intact all notices".
209
-
210
- c) You must license the entire work, as a whole, under this
211
- License to anyone who comes into possession of a copy. This
212
- License will therefore apply, along with any applicable section 7
213
- additional terms, to the whole of the work, and all its parts,
214
- regardless of how they are packaged. This License gives no
215
- permission to license the work in any other way, but it does not
216
- invalidate such permission if you have separately received it.
217
-
218
- d) If the work has interactive user interfaces, each must display
219
- Appropriate Legal Notices; however, if the Program has interactive
220
- interfaces that do not display Appropriate Legal Notices, your
221
- work need not make them do so.
222
-
223
- A compilation of a covered work with other separate and independent
224
- works, which are not by their nature extensions of the covered work,
225
- and which are not combined with it such as to form a larger program,
226
- in or on a volume of a storage or distribution medium, is called an
227
- "aggregate" if the compilation and its resulting copyright are not
228
- used to limit the access or legal rights of the compilation's users
229
- beyond what the individual works permit. Inclusion of a covered work
230
- in an aggregate does not cause this License to apply to the other
231
- parts of the aggregate.
232
-
233
- 6. Conveying Non-Source Forms.
234
-
235
- You may convey a covered work in object code form under the terms
236
- of sections 4 and 5, provided that you also convey the
237
- machine-readable Corresponding Source under the terms of this License,
238
- in one of these ways:
239
-
240
- a) Convey the object code in, or embodied in, a physical product
241
- (including a physical distribution medium), accompanied by the
242
- Corresponding Source fixed on a durable physical medium
243
- customarily used for software interchange.
244
-
245
- b) Convey the object code in, or embodied in, a physical product
246
- (including a physical distribution medium), accompanied by a
247
- written offer, valid for at least three years and valid for as
248
- long as you offer spare parts or customer support for that product
249
- model, to give anyone who possesses the object code either (1) a
250
- copy of the Corresponding Source for all the software in the
251
- product that is covered by this License, on a durable physical
252
- medium customarily used for software interchange, for a price no
253
- more than your reasonable cost of physically performing this
254
- conveying of source, or (2) access to copy the
255
- Corresponding Source from a network server at no charge.
256
-
257
- c) Convey individual copies of the object code with a copy of the
258
- written offer to provide the Corresponding Source. This
259
- alternative is allowed only occasionally and noncommercially, and
260
- only if you received the object code with such an offer, in accord
261
- with subsection 6b.
262
-
263
- d) Convey the object code by offering access from a designated
264
- place (gratis or for a charge), and offer equivalent access to the
265
- Corresponding Source in the same way through the same place at no
266
- further charge. You need not require recipients to copy the
267
- Corresponding Source along with the object code. If the place to
268
- copy the object code is a network server, the Corresponding Source
269
- may be on a different server (operated by you or a third party)
270
- that supports equivalent copying facilities, provided you maintain
271
- clear directions next to the object code saying where to find the
272
- Corresponding Source. Regardless of what server hosts the
273
- Corresponding Source, you remain obligated to ensure that it is
274
- available for as long as needed to satisfy these requirements.
275
-
276
- e) Convey the object code using peer-to-peer transmission, provided
277
- you inform other peers where the object code and Corresponding
278
- Source of the work are being offered to the general public at no
279
- charge under subsection 6d.
280
-
281
- A separable portion of the object code, whose source code is excluded
282
- from the Corresponding Source as a System Library, need not be
283
- included in conveying the object code work.
284
-
285
- A "User Product" is either (1) a "consumer product", which means any
286
- tangible personal property which is normally used for personal, family,
287
- or household purposes, or (2) anything designed or sold for incorporation
288
- into a dwelling. In determining whether a product is a consumer product,
289
- doubtful cases shall be resolved in favor of coverage. For a particular
290
- product received by a particular user, "normally used" refers to a
291
- typical or common use of that class of product, regardless of the status
292
- of the particular user or of the way in which the particular user
293
- actually uses, or expects or is expected to use, the product. A product
294
- is a consumer product regardless of whether the product has substantial
295
- commercial, industrial or non-consumer uses, unless such uses represent
296
- the only significant mode of use of the product.
297
-
298
- "Installation Information" for a User Product means any methods,
299
- procedures, authorization keys, or other information required to install
300
- and execute modified versions of a covered work in that User Product from
301
- a modified version of its Corresponding Source. The information must
302
- suffice to ensure that the continued functioning of the modified object
303
- code is in no case prevented or interfered with solely because
304
- modification has been made.
305
-
306
- If you convey an object code work under this section in, or with, or
307
- specifically for use in, a User Product, and the conveying occurs as
308
- part of a transaction in which the right of possession and use of the
309
- User Product is transferred to the recipient in perpetuity or for a
310
- fixed term (regardless of how the transaction is characterized), the
311
- Corresponding Source conveyed under this section must be accompanied
312
- by the Installation Information. But this requirement does not apply
313
- if neither you nor any third party retains the ability to install
314
- modified object code on the User Product (for example, the work has
315
- been installed in ROM).
316
-
317
- The requirement to provide Installation Information does not include a
318
- requirement to continue to provide support service, warranty, or updates
319
- for a work that has been modified or installed by the recipient, or for
320
- the User Product in which it has been modified or installed. Access to a
321
- network may be denied when the modification itself materially and
322
- adversely affects the operation of the network or violates the rules and
323
- protocols for communication across the network.
324
-
325
- Corresponding Source conveyed, and Installation Information provided,
326
- in accord with this section must be in a format that is publicly
327
- documented (and with an implementation available to the public in
328
- source code form), and must require no special password or key for
329
- unpacking, reading or copying.
330
-
331
- 7. Additional Terms.
332
-
333
- "Additional permissions" are terms that supplement the terms of this
334
- License by making exceptions from one or more of its conditions.
335
- Additional permissions that are applicable to the entire Program shall
336
- be treated as though they were included in this License, to the extent
337
- that they are valid under applicable law. If additional permissions
338
- apply only to part of the Program, that part may be used separately
339
- under those permissions, but the entire Program remains governed by
340
- this License without regard to the additional permissions.
341
-
342
- When you convey a copy of a covered work, you may at your option
343
- remove any additional permissions from that copy, or from any part of
344
- it. (Additional permissions may be written to require their own
345
- removal in certain cases when you modify the work.) You may place
346
- additional permissions on material, added by you to a covered work,
347
- for which you have or can give appropriate copyright permission.
348
-
349
- Notwithstanding any other provision of this License, for material you
350
- add to a covered work, you may (if authorized by the copyright holders of
351
- that material) supplement the terms of this License with terms:
352
-
353
- a) Disclaiming warranty or limiting liability differently from the
354
- terms of sections 15 and 16 of this License; or
355
-
356
- b) Requiring preservation of specified reasonable legal notices or
357
- author attributions in that material or in the Appropriate Legal
358
- Notices displayed by works containing it; or
359
-
360
- c) Prohibiting misrepresentation of the origin of that material, or
361
- requiring that modified versions of such material be marked in
362
- reasonable ways as different from the original version; or
363
-
364
- d) Limiting the use for publicity purposes of names of licensors or
365
- authors of the material; or
366
-
367
- e) Declining to grant rights under trademark law for use of some
368
- trade names, trademarks, or service marks; or
369
-
370
- f) Requiring indemnification of licensors and authors of that
371
- material by anyone who conveys the material (or modified versions of
372
- it) with contractual assumptions of liability to the recipient, for
373
- any liability that these contractual assumptions directly impose on
374
- those licensors and authors.
375
-
376
- All other non-permissive additional terms are considered "further
377
- restrictions" within the meaning of section 10. If the Program as you
378
- received it, or any part of it, contains a notice stating that it is
379
- governed by this License along with a term that is a further
380
- restriction, you may remove that term. If a license document contains
381
- a further restriction but permits relicensing or conveying under this
382
- License, you may add to a covered work material governed by the terms
383
- of that license document, provided that the further restriction does
384
- not survive such relicensing or conveying.
385
-
386
- If you add terms to a covered work in accord with this section, you
387
- must place, in the relevant source files, a statement of the
388
- additional terms that apply to those files, or a notice indicating
389
- where to find the applicable terms.
390
-
391
- Additional terms, permissive or non-permissive, may be stated in the
392
- form of a separately written license, or stated as exceptions;
393
- the above requirements apply either way.
394
-
395
- 8. Termination.
396
-
397
- You may not propagate or modify a covered work except as expressly
398
- provided under this License. Any attempt otherwise to propagate or
399
- modify it is void, and will automatically terminate your rights under
400
- this License (including any patent licenses granted under the third
401
- paragraph of section 11).
402
-
403
- However, if you cease all violation of this License, then your
404
- license from a particular copyright holder is reinstated (a)
405
- provisionally, unless and until the copyright holder explicitly and
406
- finally terminates your license, and (b) permanently, if the copyright
407
- holder fails to notify you of the violation by some reasonable means
408
- prior to 60 days after the cessation.
409
-
410
- Moreover, your license from a particular copyright holder is
411
- reinstated permanently if the copyright holder notifies you of the
412
- violation by some reasonable means, this is the first time you have
413
- received notice of violation of this License (for any work) from that
414
- copyright holder, and you cure the violation prior to 30 days after
415
- your receipt of the notice.
416
-
417
- Termination of your rights under this section does not terminate the
418
- licenses of parties who have received copies or rights from you under
419
- this License. If your rights have been terminated and not permanently
420
- reinstated, you do not qualify to receive new licenses for the same
421
- material under section 10.
422
-
423
- 9. Acceptance Not Required for Having Copies.
424
-
425
- You are not required to accept this License in order to receive or
426
- run a copy of the Program. Ancillary propagation of a covered work
427
- occurring solely as a consequence of using peer-to-peer transmission
428
- to receive a copy likewise does not require acceptance. However,
429
- nothing other than this License grants you permission to propagate or
430
- modify any covered work. These actions infringe copyright if you do
431
- not accept this License. Therefore, by modifying or propagating a
432
- covered work, you indicate your acceptance of this License to do so.
433
-
434
- 10. Automatic Licensing of Downstream Recipients.
435
-
436
- Each time you convey a covered work, the recipient automatically
437
- receives a license from the original licensors, to run, modify and
438
- propagate that work, subject to this License. You are not responsible
439
- for enforcing compliance by third parties with this License.
440
-
441
- An "entity transaction" is a transaction transferring control of an
442
- organization, or substantially all assets of one, or subdividing an
443
- organization, or merging organizations. If propagation of a covered
444
- work results from an entity transaction, each party to that
445
- transaction who receives a copy of the work also receives whatever
446
- licenses to the work the party's predecessor in interest had or could
447
- give under the previous paragraph, plus a right to possession of the
448
- Corresponding Source of the work from the predecessor in interest, if
449
- the predecessor has it or can get it with reasonable efforts.
450
-
451
- You may not impose any further restrictions on the exercise of the
452
- rights granted or affirmed under this License. For example, you may
453
- not impose a license fee, royalty, or other charge for exercise of
454
- rights granted under this License, and you may not initiate litigation
455
- (including a cross-claim or counterclaim in a lawsuit) alleging that
456
- any patent claim is infringed by making, using, selling, offering for
457
- sale, or importing the Program or any portion of it.
458
-
459
- 11. Patents.
460
-
461
- A "contributor" is a copyright holder who authorizes use under this
462
- License of the Program or a work on which the Program is based. The
463
- work thus licensed is called the contributor's "contributor version".
464
-
465
- A contributor's "essential patent claims" are all patent claims
466
- owned or controlled by the contributor, whether already acquired or
467
- hereafter acquired, that would be infringed by some manner, permitted
468
- by this License, of making, using, or selling its contributor version,
469
- but do not include claims that would be infringed only as a
470
- consequence of further modification of the contributor version. For
471
- purposes of this definition, "control" includes the right to grant
472
- patent sublicenses in a manner consistent with the requirements of
473
- this License.
474
-
475
- Each contributor grants you a non-exclusive, worldwide, royalty-free
476
- patent license under the contributor's essential patent claims, to
477
- make, use, sell, offer for sale, import and otherwise run, modify and
478
- propagate the contents of its contributor version.
479
-
480
- In the following three paragraphs, a "patent license" is any express
481
- agreement or commitment, however denominated, not to enforce a patent
482
- (such as an express permission to practice a patent or covenant not to
483
- sue for patent infringement). To "grant" such a patent license to a
484
- party means to make such an agreement or commitment not to enforce a
485
- patent against the party.
486
-
487
- If you convey a covered work, knowingly relying on a patent license,
488
- and the Corresponding Source of the work is not available for anyone
489
- to copy, free of charge and under the terms of this License, through a
490
- publicly available network server or other readily accessible means,
491
- then you must either (1) cause the Corresponding Source to be so
492
- available, or (2) arrange to deprive yourself of the benefit of the
493
- patent license for this particular work, or (3) arrange, in a manner
494
- consistent with the requirements of this License, to extend the patent
495
- license to downstream recipients. "Knowingly relying" means you have
496
- actual knowledge that, but for the patent license, your conveying the
497
- covered work in a country, or your recipient's use of the covered work
498
- in a country, would infringe one or more identifiable patents in that
499
- country that you have reason to believe are valid.
500
-
501
- If, pursuant to or in connection with a single transaction or
502
- arrangement, you convey, or propagate by procuring conveyance of, a
503
- covered work, and grant a patent license to some of the parties
504
- receiving the covered work authorizing them to use, propagate, modify
505
- or convey a specific copy of the covered work, then the patent license
506
- you grant is automatically extended to all recipients of the covered
507
- work and works based on it.
508
-
509
- A patent license is "discriminatory" if it does not include within
510
- the scope of its coverage, prohibits the exercise of, or is
511
- conditioned on the non-exercise of one or more of the rights that are
512
- specifically granted under this License. You may not convey a covered
513
- work if you are a party to an arrangement with a third party that is
514
- in the business of distributing software, under which you make payment
515
- to the third party based on the extent of your activity of conveying
516
- the work, and under which the third party grants, to any of the
517
- parties who would receive the covered work from you, a discriminatory
518
- patent license (a) in connection with copies of the covered work
519
- conveyed by you (or copies made from those copies), or (b) primarily
520
- for and in connection with specific products or compilations that
521
- contain the covered work, unless you entered into that arrangement,
522
- or that patent license was granted, prior to 28 March 2007.
523
-
524
- Nothing in this License shall be construed as excluding or limiting
525
- any implied license or other defenses to infringement that may
526
- otherwise be available to you under applicable patent law.
527
-
528
- 12. No Surrender of Others' Freedom.
529
-
530
- If conditions are imposed on you (whether by court order, agreement or
531
- otherwise) that contradict the conditions of this License, they do not
532
- excuse you from the conditions of this License. If you cannot convey a
533
- covered work so as to satisfy simultaneously your obligations under this
534
- License and any other pertinent obligations, then as a consequence you may
535
- not convey it at all. For example, if you agree to terms that obligate you
536
- to collect a royalty for further conveying from those to whom you convey
537
- the Program, the only way you could satisfy both those terms and this
538
- License would be to refrain entirely from conveying the Program.
539
-
540
- 13. Remote Network Interaction; Use with the GNU General Public License.
541
-
542
- Notwithstanding any other provision of this License, if you modify the
543
- Program, your modified version must prominently offer all users
544
- interacting with it remotely through a computer network (if your version
545
- supports such interaction) an opportunity to receive the Corresponding
546
- Source of your version by providing access to the Corresponding Source
547
- from a network server at no charge, through some standard or customary
548
- means of facilitating copying of software. This Corresponding Source
549
- shall include the Corresponding Source for any work covered by version 3
550
- of the GNU General Public License that is incorporated pursuant to the
551
- following paragraph.
552
-
553
- Notwithstanding any other provision of this License, you have
554
- permission to link or combine any covered work with a work licensed
555
- under version 3 of the GNU General Public License into a single
556
- combined work, and to convey the resulting work. The terms of this
557
- License will continue to apply to the part which is the covered work,
558
- but the work with which it is combined will remain governed by version
559
- 3 of the GNU General Public License.
560
-
561
- 14. Revised Versions of this License.
562
-
563
- The Free Software Foundation may publish revised and/or new versions of
564
- the GNU Affero General Public License from time to time. Such new versions
565
- will be similar in spirit to the present version, but may differ in detail to
566
- address new problems or concerns.
567
-
568
- Each version is given a distinguishing version number. If the
569
- Program specifies that a certain numbered version of the GNU Affero General
570
- Public License "or any later version" applies to it, you have the
571
- option of following the terms and conditions either of that numbered
572
- version or of any later version published by the Free Software
573
- Foundation. If the Program does not specify a version number of the
574
- GNU Affero General Public License, you may choose any version ever published
575
- by the Free Software Foundation.
576
-
577
- If the Program specifies that a proxy can decide which future
578
- versions of the GNU Affero General Public License can be used, that proxy's
579
- public statement of acceptance of a version permanently authorizes you
580
- to choose that version for the Program.
581
-
582
- Later license versions may give you additional or different
583
- permissions. However, no additional obligations are imposed on any
584
- author or copyright holder as a result of your choosing to follow a
585
- later version.
586
-
587
- 15. Disclaimer of Warranty.
588
-
589
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
-
598
- 16. Limitation of Liability.
599
-
600
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
- SUCH DAMAGES.
609
-
610
- 17. Interpretation of Sections 15 and 16.
611
-
612
- If the disclaimer of warranty and limitation of liability provided
613
- above cannot be given local legal effect according to their terms,
614
- reviewing courts shall apply local law that most closely approximates
615
- an absolute waiver of all civil liability in connection with the
616
- Program, unless a warranty or assumption of liability accompanies a
617
- copy of the Program in return for a fee.
618
-
619
- END OF TERMS AND CONDITIONS
620
-
621
- How to Apply These Terms to Your New Programs
622
-
623
- If you develop a new program, and you want it to be of the greatest
624
- possible use to the public, the best way to achieve this is to make it
625
- free software which everyone can redistribute and change under these terms.
626
-
627
- To do so, attach the following notices to the program. It is safest
628
- to attach them to the start of each source file to most effectively
629
- state the exclusion of warranty; and each file should have at least
630
- the "copyright" line and a pointer to where the full notice is found.
631
-
632
- <one line to give the program's name and a brief idea of what it does.>
633
- Copyright (C) <year> <name of author>
634
-
635
- This program is free software: you can redistribute it and/or modify
636
- it under the terms of the GNU Affero General Public License as published
637
- by the Free Software Foundation, either version 3 of the License, or
638
- (at your option) any later version.
639
-
640
- This program is distributed in the hope that it will be useful,
641
- but WITHOUT ANY WARRANTY; without even the implied warranty of
642
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
- GNU Affero General Public License for more details.
644
-
645
- You should have received a copy of the GNU Affero General Public License
646
- along with this program. If not, see <https://www.gnu.org/licenses/>.
647
-
648
- Also add information on how to contact you by electronic and paper mail.
649
-
650
- If your software can interact with users remotely through a computer
651
- network, you should also make sure that it provides a way for users to
652
- get its source. For example, if your program is a web application, its
653
- interface could display a "Source" link that leads users to an archive
654
- of the code. There are many ways you could offer source, and different
655
- solutions will be better for different programs; see section 13 for the
656
- specific requirements.
657
-
658
- You should also get your employer (if you work as a programmer) or school,
659
- if any, to sign a "copyright disclaimer" for the program, if necessary.
660
- For more information on this, and how to apply and follow the GNU AGPL, see
661
- <https://www.gnu.org/licenses/>.
662
- `],["React",`MIT License
663
-
664
- Copyright (c) Meta Platforms, Inc. and affiliates.
665
-
666
- Permission is hereby granted, free of charge, to any person obtaining a copy
667
- of this software and associated documentation files (the "Software"), to deal
668
- in the Software without restriction, including without limitation the rights
669
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
670
- copies of the Software, and to permit persons to whom the Software is
671
- furnished to do so, subject to the following conditions:
672
-
673
- The above copyright notice and this permission notice shall be included in all
674
- copies or substantial portions of the Software.
675
-
676
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
677
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
678
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
679
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
680
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
681
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
682
- SOFTWARE.
683
- `],["ReactDOM",`MIT License
684
-
685
- Copyright (c) Meta Platforms, Inc. and affiliates.
686
-
687
- Permission is hereby granted, free of charge, to any person obtaining a copy
688
- of this software and associated documentation files (the "Software"), to deal
689
- in the Software without restriction, including without limitation the rights
690
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
691
- copies of the Software, and to permit persons to whom the Software is
692
- furnished to do so, subject to the following conditions:
693
-
694
- The above copyright notice and this permission notice shall be included in all
695
- copies or substantial portions of the Software.
696
-
697
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
698
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
699
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
700
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
701
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
702
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
703
- SOFTWARE.
704
- `],["Scheduler",`MIT License
705
-
706
- Copyright (c) Meta Platforms, Inc. and affiliates.
707
-
708
- Permission is hereby granted, free of charge, to any person obtaining a copy
709
- of this software and associated documentation files (the "Software"), to deal
710
- in the Software without restriction, including without limitation the rights
711
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
712
- copies of the Software, and to permit persons to whom the Software is
713
- furnished to do so, subject to the following conditions:
714
-
715
- The above copyright notice and this permission notice shall be included in all
716
- copies or substantial portions of the Software.
717
-
718
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
719
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
720
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
721
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
722
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
723
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
724
- SOFTWARE.
725
- `],["Lucide",`ISC License
726
-
727
- Copyright (c) 2026 Lucide Icons and Contributors
728
-
729
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
730
-
731
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
732
-
733
- Feather icons incorporated in Lucide are distributed under the MIT License.
734
-
735
- Copyright (c) 2013-present Cole Bemis
736
-
737
- Permission is hereby granted, free of charge, to any person obtaining a copy
738
- of this software and associated documentation files (the "Software"), to deal
739
- in the Software without restriction, including without limitation the rights
740
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
741
- copies of the Software, and to permit persons to whom the Software is
742
- furnished to do so, subject to the following conditions:
743
-
744
- The above copyright notice and this permission notice shall be included in all
745
- copies or substantial portions of the Software.
746
-
747
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
748
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
749
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
750
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
751
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
752
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
753
- SOFTWARE.
754
- `],["Source",`K-Plex Web 0.0.4 (pack 0.4.6)
755
- Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
756
- Corresponding source: https://github.com/zsviczian/kplex/tree/a8e50db0539c8d89ebf6d8e2c56d86b72d9c071f
757
- Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
758
- `]]});var Ah=Ln(_e=>{"use strict";T();function Oc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<ur(a,t))e[i]=t,e[n]=a,n=i;else break e}}function zn(e){return e.length===0?null:e[0]}function sr(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,c=e[u];if(0>ur(r,n))u<a&&0>ur(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>ur(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function ur(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}_e.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(vh=performance,_e.unstable_now=function(){return vh.now()}):(Mc=Date,Sh=Mc.now(),_e.unstable_now=function(){return Mc.now()-Sh});var vh,Mc,Sh,$n=[],bi=[],t1=1,an=null,gt=3,Lc=!1,Xo=!1,Ko=!1,zc=!1,xh=typeof setTimeout=="function"?setTimeout:null,Th=typeof clearTimeout=="function"?clearTimeout:null,wh=typeof setImmediate<"u"?setImmediate:null;function cr(e){for(var t=zn(bi);t!==null;){if(t.callback===null)sr(bi);else if(t.startTime<=e)sr(bi),t.sortIndex=t.expirationTime,Oc($n,t);else break;t=zn(bi)}}function Dc(e){if(Ko=!1,cr(e),!Xo)if(zn($n)!==null)Xo=!0,Ua||(Ua=!0,_a());else{var t=zn(bi);t!==null&&Hc(Dc,t.startTime-e)}}var Ua=!1,Qo=-1,Nh=5,Rh=-1;function Mh(){return zc?!0:!(_e.unstable_now()-Rh<Nh)}function Ac(){if(zc=!1,Ua){var e=_e.unstable_now();Rh=e;var t=!0;try{e:{Xo=!1,Ko&&(Ko=!1,Th(Qo),Qo=-1),Lc=!0;var n=gt;try{t:{for(cr(e),an=zn($n);an!==null&&!(an.expirationTime>e&&Mh());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var a=i(an.expirationTime<=e);if(e=_e.unstable_now(),typeof a=="function"){an.callback=a,cr(e),t=!0;break t}an===zn($n)&&sr($n),cr(e)}else sr($n);an=zn($n)}if(an!==null)t=!0;else{var o=zn(bi);o!==null&&Hc(Dc,o.startTime-e),t=!1}}break e}finally{an=null,gt=n,Lc=!1}t=void 0}}finally{t?_a():Ua=!1}}}var _a;typeof wh=="function"?_a=function(){wh(Ac)}:typeof MessageChannel<"u"?(Cc=new MessageChannel,Eh=Cc.port2,Cc.port1.onmessage=Ac,_a=function(){Eh.postMessage(null)}):_a=function(){xh(Ac,0)};var Cc,Eh;function Hc(e,t){Qo=xh(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.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"):Nh=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return gt};_e.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};_e.unstable_requestPaint=function(){zc=!0};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};_e.unstable_scheduleCallback=function(e,t,n){var i=_e.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,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 a=n+a,e={id:t1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,Oc(bi,e),zn($n)===null&&e===zn(bi)&&(Ko?(Th(Qo),Qo=-1):Ko=!0,Hc(Dc,n-i))):(e.sortIndex=a,Oc($n,e),Xo||Lc||(Xo=!0,Ua||(Ua=!0,_a()))),e};_e.unstable_shouldYield=Mh;_e.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Oh=Ln((fT,Ch)=>{"use strict";T();Ch.exports=Ah()});var Yh=Ln(W=>{"use strict";T();var kc=Symbol.for("react.transitional.element"),n1=Symbol.for("react.portal"),i1=Symbol.for("react.fragment"),a1=Symbol.for("react.strict_mode"),o1=Symbol.for("react.profiler"),l1=Symbol.for("react.consumer"),r1=Symbol.for("react.context"),u1=Symbol.for("react.forward_ref"),c1=Symbol.for("react.suspense"),s1=Symbol.for("react.memo"),_h=Symbol.for("react.lazy"),f1=Symbol.for("react.activity"),d1=Symbol.for("react.view_transition"),Lh=Symbol.iterator;function h1(e){return e===null||typeof e!="object"?null:(e=Lh&&e[Lh]||e["@@iterator"],typeof e=="function"?e:null)}var Uh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kh=Object.assign,Ph={};function Pa(e,t,n){this.props=e,this.context=t,this.refs=Ph,this.updater=n||Uh}Pa.prototype.isReactComponent={};Pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ih(){}Ih.prototype=Pa.prototype;function Pc(e,t,n){this.props=e,this.context=t,this.refs=Ph,this.updater=n||Uh}var Ic=Pc.prototype=new Ih;Ic.constructor=Pc;kh(Ic,Pa.prototype);Ic.isPureReactComponent=!0;var zh=Array.isArray;function Uc(){}var Me={H:null,A:null,T:null,S:null},Gh=Object.prototype.hasOwnProperty;function Gc(e,t,n){var i=n.ref;return{$$typeof:kc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function m1(e,t){return Gc(e.type,t,e.props)}function Bc(e){return typeof e=="object"&&e!==null&&e.$$typeof===kc}function p1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Dh=/\/+/g;function _c(e,t){return typeof e=="object"&&e!==null&&e.key!=null?p1(""+e.key):t.toString(36)}function g1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Uc,Uc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ka(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case kc:case n1:l=!0;break;case _h:return l=e._init,ka(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+_c(e,0):i,zh(a)?(n="",l!=null&&(n=l.replace(Dh,"$&/")+"/"),ka(a,t,n,"",function(c){return c})):a!=null&&(Bc(a)&&(a=m1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Dh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(zh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+_c(i,u),l+=ka(i,t,n,o,a);else if(u=h1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+_c(i,u++),l+=ka(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return ka(g1(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function fr(e,t,n){if(e==null)return e;var i=[],a=0;return ka(e,i,"","",function(o){return t.call(n,o,a++)}),i}function y1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Hh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Bh(e){var t=Me.T,n={};n.types=t!==null?t.types:null,Me.T=n;try{var i=e(),a=Me.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Uc,Hh)}catch(o){Hh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Me.T=t}}function Vh(e){var t=Me.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else Bh(Vh.bind(null,e))}var b1={map:fr,forEach:function(e,t,n){fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fr(e,function(){t++}),t},toArray:function(e){return fr(e,function(t){return t})||[]},only:function(e){if(!Bc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=f1;W.Children=b1;W.Component=Pa;W.Fragment=i1;W.Profiler=o1;W.PureComponent=Pc;W.StrictMode=a1;W.Suspense=c1;W.ViewTransition=d1;W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Me;W.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Me.H.useMemoCache(e)}};W.addTransitionType=Vh;W.cache=function(e){return function(){return e.apply(null,arguments)}};W.cacheSignal=function(){return null};W.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=kh({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!Gh.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return Gc(e.type,a,i)};W.createContext=function(e){return e={$$typeof:r1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:l1,_context:e},e};W.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)Gh.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return Gc(e,o,a)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:u1,render:e}};W.isValidElement=Bc;W.lazy=function(e){return{$$typeof:_h,_payload:{_status:-1,_result:e},_init:y1}};W.memo=function(e,t){return{$$typeof:s1,type:e,compare:t===void 0?null:t}};W.startTransition=Bh;W.unstable_useCacheRefresh=function(){return Me.H.useCacheRefresh()};W.use=function(e){return Me.H.use(e)};W.useActionState=function(e,t,n){return Me.H.useActionState(e,t,n)};W.useCallback=function(e,t){return Me.H.useCallback(e,t)};W.useContext=function(e){return Me.H.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e,t){return Me.H.useDeferredValue(e,t)};W.useEffect=function(e,t){return Me.H.useEffect(e,t)};W.useEffectEvent=function(e){return Me.H.useEffectEvent(e)};W.useId=function(){return Me.H.useId()};W.useImperativeHandle=function(e,t,n){return Me.H.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Me.H.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Me.H.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Me.H.useMemo(e,t)};W.useOptimistic=function(e,t){return Me.H.useOptimistic(e,t)};W.useReducer=function(e,t,n){return Me.H.useReducer(e,t,n)};W.useRef=function(e){return Me.H.useRef(e)};W.useState=function(e){return Me.H.useState(e)};W.useSyncExternalStore=function(e,t,n){return Me.H.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Me.H.useTransition()};W.version="19.3.0"});var tt=Ln((pT,qh)=>{"use strict";T();qh.exports=Yh()});var Kh=Ln(yt=>{"use strict";T();var v1=tt();function Xh(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function vi(){}var xt={d:{f:vi,r:function(){throw Error(Xh(522))},D:vi,C:vi,L:vi,m:vi,X:vi,S:vi,M:vi},p:0,findDOMNode:null},S1=Symbol.for("react.portal"),w1=Symbol.for("react.recoverable"),jh=Symbol.for("react.optimistic_key");function E1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S1,key:i==null?null:i===jh?jh:""+i,children:e,containerInfo:t,implementation:n}}var Zo=v1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function dr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;yt.browser=function(e){return{$$typeof:w1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Xh(299));return E1(e,t,null,n)};yt.flushSync=function(e){var t=Zo.T,n=xt.p;try{if(Zo.T=null,xt.p=2,e)return e()}finally{Zo.T=t,xt.p=n,xt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&xt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=dr(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&xt.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=dr(t.as,t.crossOrigin);xt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&xt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=dr(n,t.crossOrigin);xt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=dr(t.as,t.crossOrigin);xt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else xt.d.m(e)};yt.requestFormReset=function(e){xt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return Zo.H.useFormState(e,t,n)};yt.useFormStatus=function(){return Zo.H.useHostTransitionStatus()};yt.version="19.3.0"});var hr=Ln((vT,Zh)=>{"use strict";T();function Qh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qh)}catch(e){console.error(e)}}Qh(),Zh.exports=Kh()});var _b=Ln(Qu=>{"use strict";T();var Je=Oh(),Hp=tt(),x1=hr();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function _p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ul(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Up(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function kp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fh(e){if(Ul(e)!==e)throw Error(A(188))}function T1(e){var t=e.alternate;if(!t){if(t=Ul(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Fh(a),e;if(o===i)return Fh(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Pp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Pp(e),t!==null)return t;e=e.sibling}return null}function Gt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Gt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function Sa(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Jh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Ip(e){var t=[null,null],n=Sa(e);return n===null||Gp(t,e,n.child,{foundSelf:!1}),t}function Gp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Gp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Fe(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var ja=null,vs=null;function N1(e,t,n){return e===n?!0:e===t?(ja=e,!0):!1}function R1(e,t,n){return e===n?(vs=e,!1):e===t?(vs!==null&&(ja=e),!0):!1}function Wh(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Ss(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ne=Object.assign,M1=Symbol.for("react.element"),mr=Symbol.for("react.transitional.element"),nl=Symbol.for("react.portal"),Xa=Symbol.for("react.fragment"),Bp=Symbol.for("react.strict_mode"),ws=Symbol.for("react.profiler"),Vp=Symbol.for("react.consumer"),Pn=Symbol.for("react.context"),Lf=Symbol.for("react.forward_ref"),Es=Symbol.for("react.suspense"),xs=Symbol.for("react.suspense_list"),zf=Symbol.for("react.memo"),xi=Symbol.for("react.lazy");Symbol.for("react.scope");var Ts=Symbol.for("react.activity"),A1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var C1=Symbol.for("react.memo_cache_sentinel"),Ns=Symbol.for("react.view_transition"),O1=Symbol.for("react.recoverable"),$h=Symbol.iterator;function Fo(e){return e===null||typeof e!="object"?null:(e=$h&&e[$h]||e["@@iterator"],typeof e=="function"?e:null)}var L1=Symbol.for("react.client.reference");function Rs(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===L1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xa:return"Fragment";case ws:return"Profiler";case Bp:return"StrictMode";case Es:return"Suspense";case xs:return"SuspenseList";case Ts:return"Activity";case Ns:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case nl:return"Portal";case Pn:return e.displayName||"Context";case Vp:return(e._context.displayName||"Context")+".Consumer";case Lf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zf:return t=e.displayName||null,t!==null?t:Rs(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return Rs(e(t))}catch{}}return null}var il=Array.isArray,Q=Hp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=x1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ra={pending:!1,data:null,method:null,action:null},Ms=[],Ka=-1;function jn(e){return{current:e}}function st(e){0>Ka||(e.current=Ms[Ka],Ms[Ka]=null,Ka--)}function Oe(e,t){Ka++,Ms[Ka]=e.current,e.current=t}var Vn=jn(null),Sl=jn(null),zi=jn(null),eu=jn(null);function tu(e,t){switch(Oe(zi,t),Oe(Sl,e),Oe(Vn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=sb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Vn),Oe(Vn,e)}function mo(){st(Vn),st(Sl),st(zi)}function As(e){var t=e.memoizedState;t!==null&&(To._currentValue=t.memoizedState,Oe(eu,e)),t=Vn.current;var n=sb(t,e.type);t!==n&&(Oe(Sl,e),Oe(Vn,n))}function nu(e){Sl.current===e&&(st(Vn),st(Sl)),eu.current===e&&(st(eu),To._currentValue=ra)}var Vc,em;function wi(e){if(Vc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vc=t&&t[1]||"",em=-1<n.stack.indexOf(`
1
+ var u1=Object.create;var Am=Object.defineProperty;var c1=Object.getOwnPropertyDescriptor;var s1=Object.getOwnPropertyNames;var f1=Object.getPrototypeOf,d1=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var m1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of s1(t))!d1.call(e,l)&&l!==n&&Am(e,l,{get:()=>t[l],enumerable:!(i=c1(t,l))||i.enumerable});return e};var X=(e,t,n)=>(n=e!=null?u1(f1(e)):{},m1(t||!e||!e.__esModule?Am(n,"default",{value:e,enumerable:!0}):n,e));var Vm=Dn(He=>{"use strict";function Bc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,l=e[i];if(0<wr(l,t))e[i]=t,e[n]=l,n=i;else break e}}function Ln(e){return e.length===0?null:e[0]}function Er(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,l=e.length,a=l>>>1;i<a;){var o=2*(i+1)-1,r=e[o],u=o+1,c=e[u];if(0>wr(r,n))u<l&&0>wr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[o]=n,i=o);else if(u<l&&0>wr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function wr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}He.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(zm=performance,He.unstable_now=function(){return zm.now()}):(Pc=Date,Om=Pc.now(),He.unstable_now=function(){return Pc.now()-Om});var zm,Pc,Om,li=[],Ti=[],h1=1,an=null,gt=3,Gc=!1,Wa=!1,eo=!1,Yc=!1,_m=typeof setTimeout=="function"?setTimeout:null,Hm=typeof clearTimeout=="function"?clearTimeout:null,Dm=typeof setImmediate<"u"?setImmediate:null;function Mr(e){for(var t=Ln(Ti);t!==null;){if(t.callback===null)Er(Ti);else if(t.startTime<=e)Er(Ti),t.sortIndex=t.expirationTime,Bc(li,t);else break;t=Ln(Ti)}}function qc(e){if(eo=!1,Mr(e),!Wa)if(Ln(li)!==null)Wa=!0,Gl||(Gl=!0,Bl());else{var t=Ln(Ti);t!==null&&jc(qc,t.startTime-e)}}var Gl=!1,to=-1,Um=5,Pm=-1;function km(){return Yc?!0:!(He.unstable_now()-Pm<Um)}function kc(){if(Yc=!1,Gl){var e=He.unstable_now();Pm=e;var t=!0;try{e:{Wa=!1,eo&&(eo=!1,Hm(to),to=-1),Gc=!0;var n=gt;try{t:{for(Mr(e),an=Ln(li);an!==null&&!(an.expirationTime>e&&km());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var l=i(an.expirationTime<=e);if(e=He.unstable_now(),typeof l=="function"){an.callback=l,Mr(e),t=!0;break t}an===Ln(li)&&Er(li),Mr(e)}else Er(li);an=Ln(li)}if(an!==null)t=!0;else{var a=Ln(Ti);a!==null&&jc(qc,a.startTime-e),t=!1}}break e}finally{an=null,gt=n,Gc=!1}t=void 0}}finally{t?Bl():Gl=!1}}}var Bl;typeof Dm=="function"?Bl=function(){Dm(kc)}:typeof MessageChannel<"u"?(Vc=new MessageChannel,Lm=Vc.port2,Vc.port1.onmessage=kc,Bl=function(){Lm.postMessage(null)}):Bl=function(){_m(kc,0)};var Vc,Lm;function jc(e,t){to=_m(function(){e(He.unstable_now())},t)}He.unstable_IdlePriority=5;He.unstable_ImmediatePriority=1;He.unstable_LowPriority=4;He.unstable_NormalPriority=3;He.unstable_Profiling=null;He.unstable_UserBlockingPriority=2;He.unstable_cancelCallback=function(e){e.callback=null};He.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"):Um=0<e?Math.floor(1e3/e):5};He.unstable_getCurrentPriorityLevel=function(){return gt};He.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};He.unstable_requestPaint=function(){Yc=!0};He.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};He.unstable_scheduleCallback=function(e,t,n){var i=He.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:h1++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>i?(e.sortIndex=n,Bc(Ti,e),Ln(li)===null&&e===Ln(Ti)&&(eo?(Hm(to),to=-1):eo=!0,jc(qc,n-i))):(e.sortIndex=l,Bc(li,e),Wa||Gc||(Wa=!0,Gl||(Gl=!0,Bl()))),e};He.unstable_shouldYield=km;He.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Gm=Dn((TM,Bm)=>{"use strict";Bm.exports=Vm()});var eh=Dn($=>{"use strict";var Qc=Symbol.for("react.transitional.element"),p1=Symbol.for("react.portal"),g1=Symbol.for("react.fragment"),y1=Symbol.for("react.strict_mode"),b1=Symbol.for("react.profiler"),v1=Symbol.for("react.consumer"),S1=Symbol.for("react.context"),x1=Symbol.for("react.forward_ref"),w1=Symbol.for("react.suspense"),M1=Symbol.for("react.memo"),Km=Symbol.for("react.lazy"),E1=Symbol.for("react.activity"),T1=Symbol.for("react.view_transition"),Ym=Symbol.iterator;function N1(e){return e===null||typeof e!="object"?null:(e=Ym&&e[Ym]||e["@@iterator"],typeof e=="function"?e:null)}var Qm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zm=Object.assign,Im={};function ql(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}ql.prototype.isReactComponent={};ql.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};ql.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jm(){}Jm.prototype=ql.prototype;function Zc(e,t,n){this.props=e,this.context=t,this.refs=Im,this.updater=n||Qm}var Ic=Zc.prototype=new Jm;Ic.constructor=Zc;Zm(Ic,ql.prototype);Ic.isPureReactComponent=!0;var qm=Array.isArray;function Kc(){}var Ce={H:null,A:null,T:null,S:null},Fm=Object.prototype.hasOwnProperty;function Jc(e,t,n){var i=n.ref;return{$$typeof:Qc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function R1(e,t){return Jc(e.type,t,e.props)}function Fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qc}function C1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jm=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?C1(""+e.key):t.toString(36)}function A1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Kc,Kc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Yl(e,t,n,i,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Qc:case p1:o=!0;break;case Km:return o=e._init,Yl(o(e._payload),t,n,i,l)}}if(o)return l=l(e),o=i===""?"."+Xc(e,0):i,qm(l)?(n="",o!=null&&(n=o.replace(jm,"$&/")+"/"),Yl(l,t,n,"",function(c){return c})):l!=null&&(Fc(l)&&(l=R1(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(jm,"$&/")+"/")+o)),t.push(l)),1;o=0;var r=i===""?".":i+":";if(qm(e))for(var u=0;u<e.length;u++)i=e[u],a=r+Xc(i,u),o+=Yl(i,t,n,a,l);else if(u=N1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Xc(i,u++),o+=Yl(i,t,n,a,l);else if(a==="object"){if(typeof e.then=="function")return Yl(A1(e),t,n,i,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Tr(e,t,n){if(e==null)return e;var i=[],l=0;return Yl(e,i,"","",function(a){return t.call(n,a,l++)}),i}function z1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $m(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),l=Ce.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Kc,Xm)}catch(a){Xm(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function Wm(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else $m(Wm.bind(null,e))}var O1={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!Fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Activity=E1;$.Children=O1;$.Component=ql;$.Fragment=g1;$.Profiler=b1;$.PureComponent=Zc;$.StrictMode=y1;$.Suspense=w1;$.ViewTransition=T1;$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;$.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};$.addTransitionType=Wm;$.cache=function(e){return function(){return e.apply(null,arguments)}};$.cacheSignal=function(){return null};$.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Zm({},e.props),l=e.key;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)!Fm.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),r=0;r<a;r++)o[r]=arguments[r+2];i.children=o}return Jc(e.type,l,i)};$.createContext=function(e){return e={$$typeof:S1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v1,_context:e},e};$.createElement=function(e,t,n){var i,l={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)Fm.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=t[i]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];l.children=r}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)l[i]===void 0&&(l[i]=o[i]);return Jc(e,a,l)};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:x1,render:e}};$.isValidElement=Fc;$.lazy=function(e){return{$$typeof:Km,_payload:{_status:-1,_result:e},_init:z1}};$.memo=function(e,t){return{$$typeof:M1,type:e,compare:t===void 0?null:t}};$.startTransition=$m;$.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};$.use=function(e){return Ce.H.use(e)};$.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};$.useCallback=function(e,t){return Ce.H.useCallback(e,t)};$.useContext=function(e){return Ce.H.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};$.useEffect=function(e,t){return Ce.H.useEffect(e,t)};$.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};$.useId=function(){return Ce.H.useId()};$.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Ce.H.useMemo(e,t)};$.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};$.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};$.useRef=function(e){return Ce.H.useRef(e)};$.useState=function(e){return Ce.H.useState(e)};$.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Ce.H.useTransition()};$.version="19.3.0"});var nt=Dn((RM,th)=>{"use strict";th.exports=eh()});var lh=Dn(yt=>{"use strict";var D1=nt();function ih(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function Ni(){}var Nt={d:{f:Ni,r:function(){throw Error(ih(522))},D:Ni,C:Ni,L:Ni,m:Ni,X:Ni,S:Ni,M:Ni},p:0,findDOMNode:null},L1=Symbol.for("react.portal"),_1=Symbol.for("react.recoverable"),nh=Symbol.for("react.optimistic_key");function H1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L1,key:i==null?null:i===nh?nh:""+i,children:e,containerInfo:t,implementation:n}}var no=D1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nt;yt.browser=function(e){return{$$typeof:_1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ih(299));return H1(e,t,null,n)};yt.flushSync=function(e){var t=no.T,n=Nt.p;try{if(no.T=null,Nt.p=2,e)return e()}finally{no.T=t,Nt.p=n,Nt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Nt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&Nt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Nt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:a}):n==="script"&&Nt.d.X(e,{crossOrigin:i,integrity:l,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nr(t.as,t.crossOrigin);Nt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Nt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nr(n,t.crossOrigin);Nt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nr(t.as,t.crossOrigin);Nt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Nt.d.m(e)};yt.requestFormReset=function(e){Nt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return no.H.useFormState(e,t,n)};yt.useFormStatus=function(){return no.H.useHostTransitionStatus()};yt.version="19.3.0"});var Rr=Dn((AM,oh)=>{"use strict";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),oh.exports=lh()});var Kb=Dn(uc=>{"use strict";var Fe=Gm(),Xp=nt(),U1=Rr();function R(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Qp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rh(e){if(jo(e)!==e)throw Error(R(188))}function P1(e){var t=e.alternate;if(!t){if(t=jo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return rh(l),e;if(a===i)return rh(l),t;a=a.sibling}throw Error(R(188))}if(n.return!==i.return)n=l,i=a;else{for(var o=!1,r=l.child;r;){if(r===n){o=!0,n=l,i=a;break}if(r===i){o=!0,i=l,n=a;break}r=r.sibling}if(!o){for(r=a.child;r;){if(r===n){o=!0,n=a,i=l;break}if(r===i){o=!0,i=a,n=l;break}r=r.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Ip(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ip(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,l,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,l,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,l,a))return!0;e=e.sibling}return!1}function zl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function uh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Jp(e){var t=[null,null],n=zl(e);return n===null||Fp(t,e,n.child,{foundSelf:!1}),t}function Fp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Fp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Je(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(R(559))}}var Jl=null,As=null;function k1(e,t,n){return e===n?!0:e===t?(Jl=e,!0):!1}function V1(e,t,n){return e===n?(As=e,!1):e===t?(As!==null&&(Jl=e),!0):!1}function ch(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function zs(e,t,n){for(var i=0,l=e;l;l=n(l))i++;l=0;for(var a=t;a;a=n(a))l++;for(;0<i-l;)e=n(e),i--;for(;0<l-i;)t=n(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Re=Object.assign,B1=Symbol.for("react.element"),Cr=Symbol.for("react.transitional.element"),co=Symbol.for("react.portal"),Fl=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Os=Symbol.for("react.profiler"),Wp=Symbol.for("react.consumer"),Vn=Symbol.for("react.context"),Gf=Symbol.for("react.forward_ref"),Ds=Symbol.for("react.suspense"),Ls=Symbol.for("react.suspense_list"),Yf=Symbol.for("react.memo"),zi=Symbol.for("react.lazy");Symbol.for("react.scope");var _s=Symbol.for("react.activity"),G1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Y1=Symbol.for("react.memo_cache_sentinel"),Hs=Symbol.for("react.view_transition"),q1=Symbol.for("react.recoverable"),sh=Symbol.iterator;function io(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var j1=Symbol.for("react.client.reference");function Us(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fl:return"Fragment";case Os:return"Profiler";case $p:return"StrictMode";case Ds:return"Suspense";case Ls:return"SuspenseList";case _s:return"Activity";case Hs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case co:return"Portal";case Vn:return e.displayName||"Context";case Wp:return(e._context.displayName||"Context")+".Consumer";case Gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:Us(e.type)||"Memo";case zi:t=e._payload,e=e._init;try{return Us(e(t))}catch{}}return null}var so=Array.isArray,Q=Xp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=U1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yl={pending:!1,data:null,method:null,action:null},Ps=[],$l=-1;function Kn(e){return{current:e}}function st(e){0>$l||(e.current=Ps[$l],Ps[$l]=null,$l--)}function Oe(e,t){$l++,Ps[$l]=e.current,e.current=t}var qn=Kn(null),Co=Kn(null),Vi=Kn(null),hu=Kn(null);function pu(e,t){switch(Oe(Vi,t),Oe(Co,e),Oe(qn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ep(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ep(t),e=xb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(qn),Oe(qn,e)}function ba(){st(qn),st(Co),st(Vi)}function ks(e){var t=e.memoizedState;t!==null&&(Ca._currentValue=t.memoizedState,Oe(hu,e)),t=qn.current;var n=xb(t,e.type);t!==n&&(Oe(Co,e),Oe(qn,n))}function gu(e){Co.current===e&&(st(qn),st(Co)),hu.current===e&&(st(hu),Ca._currentValue=yl)}var $c,fh;function Ci(e){if($c===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$c=t&&t[1]||"",fh=-1<n.stack.indexOf(`
759
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
760
- `+Vc+e+em}var Yc=!1;function qc(e,t){if(!e||Yc)return"";Yc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(y){var s=y}Reflect.construct(e,[],p)}else{try{p.call()}catch(y){s=y}p=!1;try{var m=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(m!==void 0?Object.defineProperty(e.prototype,"props",m):delete e.prototype.props)}}}else{try{throw Error()}catch(y){s=y}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(y){if(y&&s&&typeof y.stack=="string")return[y.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),l=o[0],r=o[1];if(l&&r){var u=l.split(`
3
+ `+$c+e+fh}var Wc=!1;function es(e,t){if(!e||Wc)return"";Wc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),o=a[0],r=a[1];if(o&&r){var u=o.split(`
761
4
  `),c=r.split(`
762
- `);for(a=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(i===u.length||a===c.length)for(i=u.length-1,a=c.length-1;1<=i&&0<=a&&u[i]!==c[a];)a--;for(;1<=i&&0<=a;i--,a--)if(u[i]!==c[a]){if(i!==1||a!==1)do if(i--,a--,0>a||u[i]!==c[a]){var f=`
763
- `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=a);break}}}finally{Yc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?wi(n):""}function z1(e,t){switch(e.tag){case 26:case 27:case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return e.child!==t&&t!==null?wi("Suspense Fallback"):wi("Suspense");case 19:return wi("SuspenseList");case 0:case 15:return qc(e.type,!1);case 11:return qc(e.type.render,!1);case 1:return qc(e.type,!0);case 31:return wi("Activity");case 30:return wi("ViewTransition");default:return""}}function tm(e){try{var t="",n=null;do t+=z1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
5
+ `);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===c.length)for(i=u.length-1,l=c.length-1;1<=i&&0<=l&&u[i]!==c[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==c[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==c[l]){var f=`
6
+ `+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=l);break}}}finally{Wc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ci(n):""}function X1(e,t){switch(e.tag){case 26:case 27:case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return e.child!==t&&t!==null?Ci("Suspense Fallback"):Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 15:return es(e.type,!1);case 11:return es(e.type.render,!1);case 1:return es(e.type,!0);case 31:return Ci("Activity");case 30:return Ci("ViewTransition");default:return""}}function dh(e){try{var t="",n=null;do t+=X1(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
764
7
  Error generating stack: `+i.message+`
765
- `+i.stack}}var Cs=Object.prototype.hasOwnProperty,Df=Je.unstable_scheduleCallback,jc=Je.unstable_cancelCallback,D1=Je.unstable_shouldYield,H1=Je.unstable_requestPaint,Ft=Je.unstable_now,_1=Je.unstable_getCurrentPriorityLevel,Yp=Je.unstable_ImmediatePriority,qp=Je.unstable_UserBlockingPriority,iu=Je.unstable_NormalPriority,U1=Je.unstable_LowPriority,jp=Je.unstable_IdlePriority,k1=Je.log,P1=Je.unstable_setDisableYieldValue,kl=null,Jt=null;function Ri(e){if(typeof k1=="function"&&P1(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(kl,e)}catch{}}var Wt=Math.clz32?Math.clz32:B1,I1=Math.log,G1=Math.LN2;function B1(e){return e>>>=0,e===0?32:31-(I1(e)/G1|0)|0}var pr=256,gr=262144,yr=4194304;function na(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=na(i):(l&=r,l!==0?a=na(l):n||(n=r&~e,n!==0&&(a=na(n))))):(r=i&~o,r!==0?a=na(r):l!==0?a=na(l):n||(n=i&~e,n!==0&&(a=na(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Pl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xp(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),a=1<<i;t|=e[i],n&=~a}return t}function V1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kp(){var e=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),e}function Xc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Y1(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var m=s[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&Qp(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function Qp(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Zp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Fp(e,t){var n=t&-t;return n=(n&42)!==0?1:Hf(n),(n&(e.suspendedLanes|t))!==0?0:n}function Hf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _f(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Jp(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:zb(e.type))}function nm(e,t){var n=ge.p;try{return ge.p=e,t()}finally{ge.p=n}}var di=Math.random().toString(36).slice(2),ut="__reactFiber$"+di,Bt="__reactProps$"+di,Mo="__reactContainer$"+di,im="__reactEvents$"+di,q1="__reactListeners$"+di,j1="__reactHandles$"+di,am="__reactResources$"+di,Gl="__reactMarker$"+di,au="__reactLoad$"+di;function Ou(e){delete e[ut],delete e[Bt],delete e[q1],delete e[j1]}function oa(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Mo]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wp(e);e!==null;){if(n=e[ut])return n;e=wp(e)}return t}e=n,n=e.parentNode}return null}function Ao(e){if(e=e[ut]||e[Mo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function io(e){var t=e[am];return t||(t=e[am]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Gl]=!0}function Wp(e){e[au]=void 0}var $p=new Set,eg={};function wa(e,t){po(e,t),po(e+"Capture",t)}function po(e,t){for(eg[e]=t,e=0;e<t.length;e++)$p.add(t[e])}var X1=RegExp("^[: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]*$"),om={},lm={};function K1(e){return Cs.call(lm,e)?!0:Cs.call(om,e)?!1:X1.test(e)?lm[e]=!0:(om[e]=!0,!1)}var me=!1;function rm(){var e=me;return me=!1,e}function _r(e,t,n){if(K1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function br(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ei(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Q1(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Os(e){if(!e._valueTracker){var t=tg(e)?"checked":"value";e._valueTracker=Q1(e,t,""+e[t])}}function ng(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=tg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var Z1=/[\n"\\]/g;function cn(e){return e.replace(Z1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ls(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?Kc(e,Xt(e.value)):Kc(e,Xt(t)):n!=null?Kc(e,Xt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Xt(r):e.removeAttribute("name")}function ig(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Os(e);return}n=n!=null?""+Xt(n):"",t=t!=null?""+Xt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Os(e)}function Kc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ao(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ag(e,t,n){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xt(n):""}function og(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(il(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Os(e)}function go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var F1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function um(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||F1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function lg(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",me=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(um(e,a,i),me=!0)}else for(var o in t)t.hasOwnProperty(o)&&um(e,o,t[o])}function Uf(e){if(e.indexOf("-")===-1)return!1;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 J1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),W1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ur(e){return W1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function In(){}var zs=null;function kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,oo=null;function cm(e){var t=Ao(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ls(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+cn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Bt]||null;if(!a)throw Error(A(90));Ls(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&ng(i)}break e;case"textarea":ag(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ao(e,!!n.multiple,t,!1)}}}var Qc=!1;function rg(e,t,n){if(Qc)return e(t,n);Qc=!0;try{var i=e(t);return i}finally{if(Qc=!1,(Qa!==null||oo!==null)&&(qu(),Qa&&(t=Qa,e=oo,oo=Qa=null,cm(t),e)))for(t=0;t<e.length;t++)cm(e[t])}}function wl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=!1;if(li)try{Ia={},Object.defineProperty(Ia,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Ds=!1}var Ia,Mi=null,Pf=null,kr=null;function ug(){if(kr)return kr;var e,t=Pf,n=t.length,i,a="value"in Mi?Mi.value:Mi.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return kr=a.slice(e,1<i?1-i:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function sm(){return!1}function Mt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vr:sm,this.isPropagationStopped=sm,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=Mt(Ki),Bl=Ne({},Ki,{view:0,detail:0}),$1=Mt(Bl),Zc,Fc,Jo,zu=Ne({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:If,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jo&&(Jo&&e.type==="mousemove"?(Zc=e.screenX-Jo.screenX,Fc=e.screenY-Jo.screenY):Fc=Zc=0,Jo=e),Zc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),fm=Mt(zu),eS=Ne({},zu,{dataTransfer:0}),tS=Mt(eS),nS=Ne({},Bl,{relatedTarget:0}),Jc=Mt(nS),iS=Ne({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),aS=Mt(iS),oS=Ne({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lS=Mt(oS),rS=Ne({},Ki,{data:0}),dm=Mt(rS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cS={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"},sS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sS[e])?!!t[e]:!1}function If(){return fS}var dS=Ne({},Bl,{key:function(e){if(e.key){var t=uS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:If,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hS=Mt(dS),mS=Ne({},zu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hm=Mt(mS),pS=Ne({},Ki,{submitter:0}),gS=Mt(pS),yS=Ne({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:If}),bS=Mt(yS),vS=Ne({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),SS=Mt(vS),wS=Ne({},zu,{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}),ES=Mt(wS),xS=Ne({},Ki,{newState:0,oldState:0,source:0}),TS=Mt(xS),NS=[9,13,27,32],Gf=li&&"CompositionEvent"in window,rl=null;li&&"documentMode"in document&&(rl=document.documentMode);var RS=li&&"TextEvent"in window&&!rl,cg=li&&(!Gf||rl&&8<rl&&11>=rl),mm=" ",pm=!1;function sg(e,t){switch(e){case"keyup":return NS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function MS(e,t){switch(e){case"compositionend":return fg(t);case"keypress":return t.which!==32?null:(pm=!0,mm);case"textInput":return e=t.data,e===mm&&pm?null:e;default:return null}}function AS(e,t){if(Za)return e==="compositionend"||!Gf&&sg(e,t)?(e=ug(),kr=Pf=Mi=null,Za=!1,e):null;switch(e){case"paste":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 cg&&t.locale!=="ko"?null:t.data;default:return null}}var CS={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 gm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!CS[e.type]:t==="textarea"}function dg(e,t,n,i){Qa?oo?oo.push(i):oo=[i]:Qa=i,t=Ru(t,"onChange"),0<t.length&&(n=new Lu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ul=null,El=null;function OS(e){rb(e,0)}function Du(e){var t=al(e);if(ng(t))return e}function ym(e,t){if(e==="change")return t}var hg=!1;li&&(li?(wr="oninput"in document,wr||(Wc=document.createElement("div"),Wc.setAttribute("oninput","return;"),wr=typeof Wc.oninput=="function"),Sr=wr):Sr=!1,hg=Sr&&(!document.documentMode||9<document.documentMode));var Sr,wr,Wc;function bm(){ul&&(ul.detachEvent("onpropertychange",mg),El=ul=null)}function mg(e){if(e.propertyName==="value"&&Du(El)){var t=[];dg(t,El,e,kf(e)),rg(OS,t)}}function LS(e,t,n){e==="focusin"?(bm(),ul=t,El=n,ul.attachEvent("onpropertychange",mg)):e==="focusout"&&bm()}function zS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Du(El)}function DS(e,t){if(e==="click")return Du(t)}function HS(e,t){if(e==="input"||e==="change")return Du(t)}function _S(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:_S;function xl(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Cs.call(t,a)||!en(e[a],t[a]))return!1}return!0}function Hs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sm(e,t){var n=vm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vm(n)}}function pg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hs(e.document)}return t}function Bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var US=li&&"documentMode"in document&&11>=document.documentMode,Fa=null,_s=null,cl=null,Us=!1;function wm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Us||Fa==null||Fa!==Hs(i)||(i=Fa,"selectionStart"in i&&Bf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),cl&&xl(cl,i)||(cl=i,i=Ru(_s,"onSelect"),0<i.length&&(t=new Lu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Fa)))}function ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ja={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},$c={},yg={};li&&(yg=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function Ea(e){if($c[e])return $c[e];if(!Ja[e])return e;var t=Ja[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yg)return $c[e]=t[n];return e}var bg=Ea("animationend"),vg=Ea("animationiteration"),Sg=Ea("animationstart"),kS=Ea("transitionrun"),PS=Ea("transitionstart"),IS=Ea("transitioncancel"),wg=Ea("transitionend"),Eg=new Map,ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");ks.push("scrollEnd");function wn(e,t){Eg.set(e,t),wa(t,[e])}var GS=0;function ri(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Sn.identifierPrefix;var n=GS++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Em(e){if(e==null||typeof e=="string")return e;var t=null,n=ho;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function hi(e,t){return e=Em(e),t=Em(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],Wa=0,Vf=0;function Hu(){for(var e=Wa,t=Vf=Wa=0;t<e;){var n=ln[t];ln[t++]=null;var i=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];if(ln[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&xg(n,a,o)}}function _u(e,t,n,i){ln[Wa++]=e,ln[Wa++]=t,ln[Wa++]=n,ln[Wa++]=i,Vf|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Yf(e,t,n,i){return _u(e,t,n,i),lu(e)}function xa(e,t){return _u(e,null,null,t),lu(e)}function xg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-Wt(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function lu(e){if(50<vl)throw vl=0,Qr=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $a={};function BS(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new BS(e,t,n,i)}function qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ai(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.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=e.flags&1206910976,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Tg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ir(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")qf(i)&&(l=1);else if(typeof i=="string")l=hE(e,n,Vn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Ts:return e=Pt(31,n,t,a),e.elementType=Ts,e.lanes=o,e;case Xa:return ua(n.children,a,o,t);case Bp:l=8,a|=24;break;case ws:return e=Pt(12,n,t,a|2),e.elementType=ws,e.lanes=o,e;case Es:return e=Pt(13,n,t,a),e.elementType=Es,e.lanes=o,e;case xs:return e=Pt(19,n,t,a),e.elementType=xs,e.lanes=o,e;case A1:case Ns:return e=a|32,e=Pt(30,n,t,e),e.elementType=Ns,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Pn:l=10;break e;case Vp:l=9;break e;case Lf:l=11;break e;case zf:l=14;break e;case xi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Pt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function ua(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function es(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ng(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function ts(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xm=new WeakMap;function sn(e,t){if(typeof e=="object"&&e!==null){var n=xm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:tm(t)},xm.set(e,t),t)}return{value:e,source:t,stack:tm(t)}}var eo=[],to=0,ru=null,Tl=0,rn=[],un=0,Vi=null,Gn=1,Bn="";function ni(e,t){eo[to++]=Tl,eo[to++]=ru,ru=e,Tl=t}function Rg(e,t,n){rn[un++]=Gn,rn[un++]=Bn,rn[un++]=Vi,Vi=e;var i=Gn;e=Bn;var a=32-Wt(i)-1;i&=~(1<<a),n+=1;var o=32-Wt(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Gn=1<<32-Wt(t)+a|n<<a|i,Bn=o+e}else Gn=1<<o|n<<a|i,Bn=e}function Uu(e){e.return!==null&&(ni(e,1),Rg(e,1,0))}function jf(e){for(;e===ru;)ru=eo[--to],eo[to]=null,Tl=eo[--to],eo[to]=null;for(;e===Vi;)Vi=rn[--un],rn[un]=null,Bn=rn[--un],rn[un]=null,Gn=rn[--un],rn[un]=null}function Mg(e,t){rn[un++]=Gn,rn[un++]=Bn,rn[un++]=Vi,Gn=t.id,Bn=t.overflow,Vi=e}var ot=null,Ce=null,oe=!1,Di=null,fn=!1,Ps=Error(A(519));function Yi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nl(sn(t,e)),Ps}function Tm(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<Cl.length;n++)re(Cl[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),ig(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),og(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||cb(t.textContent,n)?(i.popover!=null&&(re("beforetoggle",t),re("toggle",t)),i.onScroll!=null&&re("scroll",t),i.onScrollEnd!=null&&re("scrollend",t),i.onClick!=null&&(t.onclick=In),t=!0):t=!1,t||Yi(e,!0)}function uu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:ot=ot.return}}function Ga(e){if(e!==ot)return!1;if(!oe)return uu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||xf(e.type,e.memoizedProps)),n=!n),n&&Ce&&Yi(e),uu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=Sp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=Sp(e)}else t===27?(t=Ce,Qi(e.type)?(e=Mf,Mf=null,Ce=e):Ce=t):Ce=ot?dn(e.stateNode.nextSibling):null;return!0}function da(){Ce=ot=null,oe=!1}function ns(){var e=Di;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Di=null),e}function Nl(e){Di===null?Di=[e]:Di.push(e)}var Is=jn(null),Ta=null,ii=null;function Ai(e,t,n){Oe(Is,t._currentValue),t._currentValue=n}function oi(e){e._currentValue=Is.current,st(Is)}function Gr(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Gs(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Gr(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Gr(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Gr(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function ha(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;en(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===eu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(To):e=[To])}a=a.return}return e!==null&&Gs(t,e,n,i),t.flags|=262144,e!==null}function cu(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ma(e){Ta=e,ii=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Ag(Ta,e)}function Er(e,t){return Ta===null&&ma(e),Ag(e,t)}function Ag(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ii===null){if(e===null)throw Error(A(308));ii=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ii=ii.next=t;return n}var VS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},YS=Je.unstable_scheduleCallback,qS=Je.unstable_NormalPriority,Xe={$$typeof:Pn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xf(){return{controller:new VS,data:new Map,refCount:0}}function Vl(e){e.refCount--,e.refCount===0&&YS(qS,function(){e.controller.abort()})}function Nm(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var ol=null;function jS(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var sl=null,Bs=0,pa=0,lo=null;function XS(e,t){if(sl===null){var n=sl=[];Bs=0,pa=Sd(),lo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Bs++,t.then(Rm,Rm),t}function Rm(){if(--Bs===0&&(ol=null,sl!==null)){lo!==null&&(lo.status="fulfilled");var e=sl;sl=null,pa=0,lo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function KS(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Mm=Q.S;Q.S=function(e,t){if(Xy=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&XS(e,t),ol!==null)for(var n=wo;n!==null;)Nm(n,ol),n=n.next;if(n=e.types,n!==null){for(var i=wo;i!==null;)Nm(i,n),i=i.next;if(pa!==0){i=ol,i===null&&(i=ol=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Mm!==null&&Mm(e,t)};var ca=jn(null);function Kf(){var e=ca.current;return e!==null?e:Te.pooledCache}function Br(e,t){t===null?Oe(ca,ca.current):Oe(ca,t.pool)}function Cg(){var e=Kf();return e===null?null:{parent:Xe._currentValue,pool:e}}var Co=Error(A(460)),Qf=Error(A(474)),ku=Error(A(542)),su={then:function(){}};function Am(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Og(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(In,In),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Om(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(In,In);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Om(e),e}throw sa=t,Co}}function ia(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sa=n,Co):n}}var sa=null;function Cm(){if(sa===null)throw Error(A(459));var e=sa;return sa=null,e}function Om(e){if(e===Co||e===ku)throw Error(A(483))}var ro=null,Rl=0;function xr(e){var t=Rl;return Rl+=1,ro===null&&(ro=[]),Og(ro,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tr(e,t){throw t.$$typeof===M1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lg(e){function t(d,h){if(e){var g=d.deletions;g===null?(d.deletions=[h],d.flags|=16):g.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function i(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function a(d,h){return d=ai(d,h),d.index=0,d.sibling=null,d}function o(d,h,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<h?(d.flags|=2,h):g):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function l(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,h,g,S){return h===null||h.tag!==6?(h=es(g,d.mode,S),h.return=d,h):(h=a(h,g),h.return=d,h)}function u(d,h,g,S){var x=g.type;return x===Xa?(d=f(d,h,g.props.children,S,g.key),Si(d,g),d):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&ia(x)===h.type)?(h=a(h,g.props),Si(h,g),h.return=d,h):(h=Ir(g.type,g.key,g.props,null,d.mode,S),Si(h,g),h.return=d,h)}function c(d,h,g,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ts(g,d.mode,S),h.return=d,h):(h=a(h,g.children||[]),h.return=d,h)}function f(d,h,g,S,x){return h===null||h.tag!==7?(h=ua(g,d.mode,S,x),h.return=d,h):(h=a(h,g),h.return=d,h)}function p(d,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=es(""+h,d.mode,g),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case mr:return g=Ir(h.type,h.key,h.props,null,d.mode,g),Si(g,h),g.return=d,g;case nl:return h=ts(h,d.mode,g),h.return=d,h;case xi:return h=ia(h),p(d,h,g)}if(il(h)||Fo(h))return h=ua(h,d.mode,g,null),h.return=d,h;if(typeof h.then=="function")return p(d,xr(h),g);if(h.$$typeof===Pn)return p(d,Er(d,h),g);Tr(d,h)}return null}function s(d,h,g,S){var x=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return x!==null?null:r(d,h,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mr:return g.key===x?u(d,h,g,S):null;case nl:return g.key===x?c(d,h,g,S):null;case xi:return g=ia(g),s(d,h,g,S)}if(il(g)||Fo(g))return x!==null?null:f(d,h,g,S,null);if(typeof g.then=="function")return s(d,h,xr(g),S);if(g.$$typeof===Pn)return s(d,h,Er(d,g),S);Tr(d,g)}return null}function m(d,h,g,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return d=d.get(g)||null,r(h,d,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case mr:return d=d.get(S.key===null?g:S.key)||null,u(h,d,S,x);case nl:return d=d.get(S.key===null?g:S.key)||null,c(h,d,S,x);case xi:return S=ia(S),m(d,h,g,S,x)}if(il(S)||Fo(S))return d=d.get(g)||null,f(h,d,S,x,null);if(typeof S.then=="function")return m(d,h,g,xr(S),x);if(S.$$typeof===Pn)return m(d,h,g,Er(h,S),x);Tr(h,S)}return null}function y(d,h,g,S){for(var x=null,R=null,E=h,N=h=0,M=null;E!==null&&N<g.length;N++){E.index>N?(M=E,E=null):M=E.sibling;var O=s(d,E,g[N],S);if(O===null){E===null&&(E=M);break}e&&E&&O.alternate===null&&t(d,E),h=o(O,h,N),R===null?x=O:R.sibling=O,R=O,E=M}if(N===g.length)return n(d,E),oe&&ni(d,N),x;if(E===null){for(;N<g.length;N++)E=p(d,g[N],S),E!==null&&(h=o(E,h,N),R===null?x=E:R.sibling=E,R=E);return oe&&ni(d,N),x}for(E=i(E);N<g.length;N++)M=m(E,d,N,g[N],S),M!==null&&(e&&(O=M.alternate,O!==null&&E.delete(O.key===null?N:O.key)),h=o(M,h,N),R===null?x=M:R.sibling=M,R=M);return e&&E.forEach(function(D){return t(d,D)}),oe&&ni(d,N),x}function v(d,h,g,S){if(g==null)throw Error(A(151));for(var x=null,R=null,E=h,N=h=0,M=null,O=g.next();E!==null&&!O.done;N++,O=g.next()){E.index>N?(M=E,E=null):M=E.sibling;var D=s(d,E,O.value,S);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(d,E),h=o(D,h,N),R===null?x=D:R.sibling=D,R=D,E=M}if(O.done)return n(d,E),oe&&ni(d,N),x;if(E===null){for(;!O.done;N++,O=g.next())O=p(d,O.value,S),O!==null&&(h=o(O,h,N),R===null?x=O:R.sibling=O,R=O);return oe&&ni(d,N),x}for(E=i(E);!O.done;N++,O=g.next())O=m(E,d,N,O.value,S),O!==null&&(e&&(M=O.alternate,M!==null&&E.delete(M.key===null?N:M.key)),h=o(O,h,N),R===null?x=O:R.sibling=O,R=O);return e&&E.forEach(function(I){return t(d,I)}),oe&&ni(d,N),x}function w(d,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Xa&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case mr:e:{for(var x=g.key;h!==null;){if(h.key===x){if(x=g.type,x===Xa){if(h.tag===7){n(d,h.sibling),S=a(h,g.props.children),Si(S,g),S.return=d,d=S;break e}}else if(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&ia(x)===h.type){n(d,h.sibling),S=a(h,g.props),Si(S,g),S.return=d,d=S;break e}n(d,h);break}else t(d,h);h=h.sibling}g.type===Xa?(S=ua(g.props.children,d.mode,S,g.key),Si(S,g),S.return=d,d=S):(S=Ir(g.type,g.key,g.props,null,d.mode,S),Si(S,g),S.return=d,d=S)}return l(d);case nl:e:{for(x=g.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(d,h.sibling),S=a(h,g.children||[]),S.return=d,d=S;break e}else{n(d,h);break}else t(d,h);h=h.sibling}S=ts(g,d.mode,S),S.return=d,d=S}return l(d);case xi:return g=ia(g),w(d,h,g,S)}if(il(g))return y(d,h,g,S);if(Fo(g)){if(x=Fo(g),typeof x!="function")throw Error(A(150));return g=x.call(g),v(d,h,g,S)}if(typeof g.then=="function")return w(d,h,xr(g),S);if(g.$$typeof===Pn)return w(d,h,Er(d,g),S);Tr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(d,h.sibling),S=a(h,g),S.return=d,d=S):(n(d,h),S=es(g,d.mode,S),S.return=d,d=S),l(d)):n(d,h)}return function(d,h,g,S){try{Rl=0;var x=w(d,h,g,S);return ro=null,x}catch(E){if(E===Co||E===ku)throw E;var R=Pt(29,E,null,d.mode);return R.lanes=S,R.return=d,R}finally{}}}var ga=Lg(!0),zg=Lg(!1),Ti=!1;function Zf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _i(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(pe&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=lu(e),xg(e,null,n),t}return _u(e,i,t,n),lu(e)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Zp(e,n)}}function is(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ys=!1;function dl(){if(Ys){var e=lo;if(e!==null)throw e}}function hl(e,t,n,i){Ys=!1;var a=e.updateQueue;Ti=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,c=u.next;u.next=null,l===null?o=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=c=u=null,r=o;do{var s=r.lane&-536870913,m=s!==r.lane;if(m?(se&s)===s:(i&s)===s){s!==0&&s===pa&&(Ys=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var y=e,v=r;s=t;var w=n;switch(v.tag){case 1:if(y=v.payload,typeof y=="function"){p=y.call(w,p,s);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,s=typeof y=="function"?y.call(w,p,s):y,s==null)break e;p=Ne({},p,s);break e;case 2:Ti=!0}}s=r.callback,s!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[s]:m.push(s))}else m={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=m,u=p):f=f.next=m,l|=s;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),Xi|=l,e.lanes=l,e.memoizedState=p}}function Dg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Hg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Dg(n[e],t)}var qi=jn(null),fu=jn(0);function Lm(e,t){e=fi,Oe(fu,e),Oe(qi,t),fi=e|t.baseLanes}function qs(){Oe(fu,fi),Oe(qi,qi.current)}function Ff(){fi=fu.current,st(qi),st(fu)}var ht=jn(null),bt=null;function Ui(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(ht,e),bt===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(bt=e)}function js(e){Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)}function _g(e){e.tag===22?(Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)):ki()}function ki(){Oe(ft,ft.current),Oe(ht,ht.current)}function Kt(e){st(ht),bt===e&&(bt=null),st(ft)}var ft=jn(0);function Ml(e,t){Oe(ht,ht.current),Oe(ft,t)}function Jf(e){st(ft),st(ht),bt===e&&(bt=null)}function du(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Rf(n)||Td(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=0,ee=null,xe=null,je=null,hu=!1,uo=!1,ya=!1,mu=0,Al=0,co=null,QS=0;function Ge(){throw Error(A(321))}function Wf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function $f(e,t,n,i,a,o){return ui=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?dy:hy,ya=!1,o=n(i,a),ya=!1,uo&&(o=kg(t,n,i,a)),Ug(e),o}function Ug(e){Q.H=pu;var t=xe!==null&&xe.next!==null;if(ui=0,je=xe=ee=null,hu=!1,Al=0,co=null,t)throw Error(A(300));e===null||Ke||(e=e.dependencies,e!==null&&cu(e)&&(Ke=!0))}function kg(e,t,n,i){ee=e;var a=0;do{if(uo&&(co=null),Al=0,uo=!1,25<=a)throw Error(A(301));if(a+=1,je=xe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Q.H=nw,o=t(n,i)}while(uo);return o}function ZS(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?Yl(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ee.flags|=1024),t}function ed(){var e=mu!==0;return mu=0,e}function td(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function nd(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}ui=0,je=xe=ee=null,uo=!1,Al=mu=0,co=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ee.memoizedState=je=e:je=je.next=e,je}function Ve(){if(xe===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=je===null?ee.memoizedState:je.next;if(t!==null)je=t,xe=e;else{if(e===null)throw ee.alternate===null?Error(A(467)):Error(A(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},je===null?ee.memoizedState=je=e:je=je.next=e}return je}function Pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var t=Al;return Al+=1,co===null&&(co=[]),e=Og(co,e,t),t=ee,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?dy:hy),e}function Iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===O1)return;if(e.$$typeof===Pn)return ct(e)}throw Error(A(438,String(e)))}function id(e){var t=null,n=ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ee.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Pu(),ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=C1;return t.index++,n}function ci(e,t){return typeof t=="function"?t(e):t}function Vr(e){var t=Ve();return ad(t,xe,e)}function ad(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(se&p)===p:(ui&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===pa&&(f=!0);else if((ui&s)===s){c=c.next,s===pa&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,ee.lanes|=s,Xi|=s;p=c.action,ya&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,l=o):u=u.next=s,ee.lanes|=p,Xi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?l=o:u.next=r,!en(o,e.memoizedState)&&(Ke=!0,f&&(n=lo,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function as(e){var t=Ve(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);en(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Pg(e,t,n){var i=ee,a=Ve(),o=oe;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!en((xe||a).memoizedState,n);if(l&&(a.memoizedState=n,Ke=!0),a=a.queue,od(Bg.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||je!==null&&(je.memoizedState.tag&1)!==0,yo(e?9:8,{destroy:void 0},Gg.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Te===null)throw Error(A(349));o||(ui&127)!==0||Ig(i,t,n)}return n}function Ig(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t=Pu(),ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gg(e,t,n,i){t.value=n,t.getSnapshot=i,Vg(t)&&Yg(e)}function Bg(e,t,n){return n(function(){Vg(t)&&Yg(e)})}function Vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!en(e,n)}catch{return!0}}function Yg(e){var t=xa(e,2);t!==null&&It(t,e,2)}function Xs(e){var t=Rt();if(typeof e=="function"){var n=e;if(e=n(),ya){Ri(!0);try{n()}finally{Ri(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e},t}function qg(e,t,n,i){return e.baseState=n,ad(e,xe,typeof i=="function"?i:ci)}function FS(e,t,n,i,a){if(Bu(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};Q.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,jg(t,o)):(o.next=n.next,t.pending=n.next=o)}}function jg(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=Q.T,l={};l.types=o!==null?o.types:null,Q.T=l;try{var r=n(a,i),u=Q.S;u!==null&&u(l,r),zm(e,t,r)}catch(c){Ks(e,t,c)}finally{o!==null&&l.types!==null&&(o.types=l.types),Q.T=o}}else try{o=n(a,i),zm(e,t,o)}catch(c){Ks(e,t,c)}}function zm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Dm(e,t,i)},function(i){return Ks(e,t,i)}):Dm(e,t,n)}function Dm(e,t,n){t.status="fulfilled",t.value=n,Xg(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jg(e,n)))}function Ks(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Xg(t),t=t.next;while(t!==i)}e.action=null}function Xg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kg(e,t){return t}function Hm(e,t){if(oe){var n=Te.formState;if(n!==null){e:{var i=ee;if(oe){if(Ce){t:{for(var a=Ce,o=fn;a.nodeType!==8;){if(!o){a=null;break t}if(a=dn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Ce=dn(a.nextSibling),i=a.data==="F!";break e}}Yi(i)}i=!1}i&&(t=n[0])}}return n=Rt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:t},n.queue=i,n=cy.bind(null,ee,i),i.dispatch=n,i=Xs(!1),o=cd.bind(null,ee,!1,i.queue),i=Rt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=FS.bind(null,ee,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function _m(e){var t=Ve();return Qg(t,xe,e)}function Qg(e,t,n){if(t=ad(e,t,Kg)[0],e=Vr(ci)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Yl(t)}catch(l){throw l===Co?ku:l}else i=t;t=Ve();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(ee.flags|=2048,yo(9,{destroy:void 0},JS.bind(null,a,n),null)),[i,o,e]}function JS(e,t){e.action=t}function Um(e){var t=Ve(),n=xe;if(n!==null)return Qg(t,n,e);Ve(),t=t.memoizedState,n=Ve();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function yo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ee.updateQueue,t===null&&(t=Pu(),ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Zg(){return Ve().memoizedState}function Yr(e,t,n,i){var a=Rt();ee.flags|=e,a.memoizedState=yo(1|t,{destroy:void 0},n,i===void 0?null:i)}function Gu(e,t,n,i){var a=Ve();i=i===void 0?null:i;var o=a.memoizedState.inst;xe!==null&&i!==null&&Wf(i,xe.memoizedState.deps)?a.memoizedState=yo(t,o,n,i):(ee.flags|=e,a.memoizedState=yo(1|t,o,n,i))}function km(e,t){Yr(8390656,8,e,t)}function od(e,t){Gu(2048,8,e,t)}function WS(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=Pu(),ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Fg(e){var t=Ve().memoizedState;return WS({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function Jg(e,t){return Gu(4,2,e,t)}function Wg(e,t){return Gu(4,4,e,t)}function $g(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ey(e,t,n){n=n!=null?n.concat([e]):null,Gu(4,4,$g.bind(null,t,e),n)}function ld(){}function ty(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Wf(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function ny(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Wf(t,i[1]))return i[0];if(i=e(),ya){Ri(!0);try{e()}finally{Ri(!1)}}return n.memoizedState=[i,t],i}function rd(e,t,n){return n===void 0||(ui&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Qy(),ee.lanes|=e,Xi|=e,n)}function iy(e,t,n,i){return en(n,t)?n:qi.current!==null?(e=rd(e,n,i),en(e,t)||(Ke=!0),e):(ui&106)===0||(ui&1073741824)!==0&&(se&261930)===0?(Ke=!0,e.memoizedState=n):(e=Qy(),ee.lanes|=e,Xi|=e,t)}function ay(e,t,n,i,a){var o=ge.p;ge.p=o!==0&&8>o?o:8;var l=Q.T,r={};r.types=l!==null?l.types:null,Q.T=r,cd(e,!1,t,n);try{var u=a(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=KS(u,i);ml(e,t,f,$t(e))}else ml(e,t,i,$t(e))}catch(p){ml(e,t,{then:function(){},status:"rejected",reason:p},$t())}finally{ge.p=o,l!==null&&r.types!==null&&(l.types=r.types),Q.T=l}}function $S(){}function Qs(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=oy(e).queue;ay(e,a,t,ra,n===null?$S:function(){return ly(e),n(i)})}function oy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ra,baseState:ra,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:ra},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ly(e){var t=oy(e);t.next===null&&(t=e.alternate.memoizedState),ml(e,t.next.queue,{},$t())}function ud(){return ct(To)}function ry(){return Ve().memoizedState}function uy(){return Ve().memoizedState}function ew(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=Hi(n);var i=_i(t,e,n);i!==null&&(It(i,t,n),fl(i,t,n)),t={cache:Xf()},e.payload=t;return}t=t.return}}function tw(e,t,n){var i=$t();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bu(e)?sy(t,n):(n=Yf(e,t,n,i),n!==null&&(It(n,e,i),fy(n,t,i)))}function cy(e,t,n){var i=$t();ml(e,t,n,i)}function ml(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bu(e))sy(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,en(r,l))return _u(e,t,a,0),Te===null&&Hu(),!1}catch{}finally{}if(n=Yf(e,t,a,i),n!==null)return It(n,e,i),fy(n,t,i),!0}return!1}function cd(e,t,n,i){if(i={lane:2,revertLane:Sd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Bu(e)){if(t)throw Error(A(479))}else t=Yf(e,n,i,2),t!==null&&It(t,e,2)}function Bu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function sy(e,t){uo=hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Zp(e,n)}}var pu={readContext:ct,use:Iu,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge,useEffectEvent:Ge},dy={readContext:ct,use:Iu,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:km,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yr(4194308,4,$g.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yr(4194308,4,e,t)},useInsertionEffect:function(e,t){Yr(4,2,e,t)},useMemo:function(e,t){var n=Rt();t=t===void 0?null:t;var i=e();if(ya){Ri(!0);try{e()}finally{Ri(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Rt();if(n!==void 0){var a=n(t);if(ya){Ri(!0);try{n(t)}finally{Ri(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=tw.bind(null,ee,e),[i.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xs(e);var t=e.queue,n=cy.bind(null,ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ld,useDeferredValue:function(e,t){var n=Rt();return rd(n,e,t)},useTransition:function(){var e=Xs(!1);return e=ay.bind(null,ee,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ee,a=Rt();if(oe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));(se&127)!==0||Ig(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,km(Bg.bind(null,i,o,e),[e]),i.flags|=2048,yo(9,{destroy:void 0},Gg.bind(null,i,o,n,t),null),n},useId:function(){var e=Rt(),t=Te.identifierPrefix;if(oe){var n=Bn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=mu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=QS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ud,useFormState:Hm,useActionState:Hm,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cd.bind(null,ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:id,useCacheRefresh:function(){return Rt().memoizedState=ew.bind(null,ee)},useEffectEvent:function(e){var t=Rt(),n={impl:e};return t.memoizedState=n,function(){if((pe&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},hy={readContext:ct,use:Iu,useCallback:ty,useContext:ct,useEffect:od,useImperativeHandle:ey,useInsertionEffect:Jg,useLayoutEffect:Wg,useMemo:ny,useReducer:Vr,useRef:Zg,useState:function(){return Vr(ci)},useDebugValue:ld,useDeferredValue:function(e,t){var n=Ve();return iy(n,xe.memoizedState,e,t)},useTransition:function(){var e=Vr(ci)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Pg,useId:ry,useHostTransitionStatus:ud,useFormState:_m,useActionState:_m,useOptimistic:function(e,t){var n=Ve();return qg(n,xe,e,t)},useMemoCache:id,useCacheRefresh:uy,useEffectEvent:Fg},nw={readContext:ct,use:Iu,useCallback:ty,useContext:ct,useEffect:od,useImperativeHandle:ey,useInsertionEffect:Jg,useLayoutEffect:Wg,useMemo:ny,useReducer:as,useRef:Zg,useState:function(){return as(ci)},useDebugValue:ld,useDeferredValue:function(e,t){var n=Ve();return xe===null?rd(n,e,t):iy(n,xe.memoizedState,e,t)},useTransition:function(){var e=as(ci)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Yl(e),t]},useSyncExternalStore:Pg,useId:ry,useHostTransitionStatus:ud,useFormState:Um,useActionState:Um,useOptimistic:function(e,t){var n=Ve();return xe!==null?qg(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:id,useCacheRefresh:uy,useEffectEvent:Fg};function os(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zs={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),i=Hi(n);i.tag=2,t!=null&&(i.callback=t),t=_i(e,i,n),t!==null&&(It(t,e,n),fl(t,e,n))}};function Pm(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!xl(n,i)||!xl(a,o):!0}function Im(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Zs.enqueueReplaceState(t,t.state,null)}function ba(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ne({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function my(e){ou(e)}function py(e){console.error(e)}function gy(e){ou(e)}function gu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Gm(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Fs(e,t,n){return n=Hi(n),n.tag=3,n.payload={element:null},n.callback=function(){gu(e,t)},n}function yy(e){return e=Hi(e),e.tag=3,e}function by(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){Gm(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Gm(t,n,i),typeof a!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function iw(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ha(t,n,a,!0),n=ht.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?Tu():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===su?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ds(e,i,a)),!1;case 22:return n.flags|=65536,i===su?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ds(e,i,a)),!1}throw Error(A(435,n.tag))}return ds(e,i,a),Tu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Ps&&(e=Error(A(422),{cause:i}),Nl(sn(e,n)))):(i!==Ps&&(t=Error(A(423),{cause:i}),Nl(sn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=sn(i,n),a=Fs(e.stateNode,i,a),is(e,a),Be!==4&&(Be=2)),!1;var o=Error(A(520),{cause:i});if(o=sn(o,n),bl===null?bl=[o]:bl.push(o),Be!==4&&(Be=2),t===null)return!0;i=sn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Fs(n.stateNode,i,e),is(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pi===null||!Pi.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=yy(a),by(a,e,n,i),is(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var sd=Error(A(461)),Ke=!1;function Ze(e,t,n,i){t.child=e===null?zg(t,null,n,i):ga(t,e.child,n,i)}function Bm(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return ma(t),i=$f(e,t,n,l,o,a),r=ed(),e!==null&&!Ke?(td(e,t,a),si(e,t,a)):(oe&&r&&Uu(t),t.flags|=1,Ze(e,t,i,a),t.child)}function Vm(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!qf(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vy(e,t,o,i,a)):(e=Ir(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!dd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:xl,n(l,i)&&e.ref===t.ref)return si(e,t,a)}return t.flags|=1,e=ai(o,i),e.ref=t.ref,e.return=t,t.child=e}function vy(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(xl(o,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=o,dd(e,a))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,si(e,t,a)}return Js(e,t,n,i,a)}function Sy(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return Ym(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Br(t,o!==null?o.cachePool:null),o!==null?Lm(t,o):qs(),_g(t);else return i=t.lanes=536870912,Ym(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Br(t,o.cachePool),Lm(t,o),ki(),t.memoizedState=null):(e!==null&&Br(t,null),qs(),ki());return Ze(e,t,a,n),t.child}function pl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ym(e,t,n,i,a){var o=Kf();return o=o===null?null:{parent:Xe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Br(t,null),qs(),_g(t),e!==null&&ha(e,t,i,!0),t.childLanes=a,null}function qr(e,t){return t=Vu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qm(e,t,n){return ga(t,e.child,null,n),e=qr(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function aw(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=qr(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},pl(null,e);if(js(t),(e=Ce)?(e=Sb(e,fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},n=Ng(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return qr(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(js(t),a)if(t.flags&256)t.flags&=-257,t=qm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Ke||ha(e,t,n,!1),a=(n&e.childLanes)!==0,Ke||a){if(qi.current===null){if(i=Te,i!==null&&(l=Fp(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,xa(e,l),It(i,e,l),sd;Tu()}t=qm(e,t,n)}else e=o.treeContext,Ce=dn(l.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Mg(t,e),t=qr(t,i),t.flags|=134221824;return t}return e=ai(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Va(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Js(e,t,n,i,a){return ma(t),n=$f(e,t,n,i,void 0,a),i=ed(),e!==null&&!Ke?(td(e,t,a),si(e,t,a)):(oe&&i&&Uu(t),t.flags|=1,Ze(e,t,n,a),t.child)}function jm(e,t,n,i,a,o){return ma(t),t.updateQueue=null,n=kg(t,i,n,a),Ug(e),i=ed(),e!==null&&!Ke?(td(e,t,o),si(e,t,o)):(oe&&i&&Uu(t),t.flags|=1,Ze(e,t,n,o),t.child)}function Xm(e,t,n,i,a){if(ma(t),t.stateNode===null){var o=$a,l=n.contextType;typeof l=="object"&&l!==null&&(o=ct(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Zs,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},Zf(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ct(l):$a,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(os(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&Zs.enqueueReplaceState(o,o.state,null),hl(t,i,o,a),dl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=ba(n,r);o.props=u;var c=o.context,f=n.contextType;l=$a,typeof f=="object"&&f!==null&&(l=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||c!==l)&&Im(t,o,i,l),Ti=!1;var s=t.memoizedState;o.state=s,hl(t,i,o,a),dl(),c=t.memoizedState,r||s!==c||Ti?(typeof p=="function"&&(os(t,n,p,i),c=t.memoizedState),(u=Ti||Pm(t,n,u,i,s,c,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Vs(e,t),l=t.memoizedProps,f=ba(n,l),o.props=f,p=t.pendingProps,s=o.context,c=n.contextType,u=$a,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||s!==u)&&Im(t,o,i,u),Ti=!1,s=t.memoizedState,o.state=s,hl(t,i,o,a),dl();var m=t.memoizedState;l!==p||s!==m||Ti||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof r=="function"&&(os(t,n,r,i),m=t.memoizedState),(f=Ti||Pm(t,n,f,i,s,m,u)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Va(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ga(t,e.child,null,a),t.child=ga(t,null,n,a)):Ze(e,t,n,a),t.memoizedState=o.state,e=t.child):e=si(e,t,a),e}function Km(e,t,n,i){return da(),t.flags|=256,Ze(e,t,n,i),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $s(e){return{baseLanes:e,cachePool:Cg()}}function ef(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function wy(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(a?Ui(t):ki(),(e=Ce)?(e=Sb(e,fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},n=Ng(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return Td(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(ki(),a=t.mode,o=Vu({mode:"hidden",children:o},a),i=ua(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=$s(n),i.childLanes=ef(e,l,n),t.memoizedState=Ws,pl(null,i)):(Ui(t),fd(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return ow(e,t,o,l,i,u,r,n)}return a?(ki(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=ai(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=ai(u,a):(a=ua(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,pl(null,i),i=t.child,a=e.child.memoizedState,a===null?a=$s(n):(o=a.cachePool,o!==null?(r=Xe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Cg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=ef(e,l,n),t.memoizedState=Ws,pl(e.child,i)):(Ui(t),n=e.child,e=n.sibling,n=ai(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function fd(e,t){return t=Vu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vu(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Nr(e,t,n){return ga(t,e.child,null,n),e=fd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ow(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Ui(t),t.flags&=-257,Nr(e,t,r)):t.memoizedState!==null?(ki(),t.child=e.child,t.flags|=128,null):(ki(),o=a.fallback,l=t.mode,a=Vu({mode:"visible",children:a.children},l),o=ua(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ga(t,e.child,null,r),a=t.child,a.memoizedState=$s(r),a.childLanes=ef(e,i,r),t.memoizedState=Ws,pl(null,a));if(Ui(t),Td(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,Nl({value:a,source:null,stack:null})),Nr(e,t,r)}if(Ke||ha(e,t,r,!1),i=(r&e.childLanes)!==0,Ke||i){if(qi.current!==null)return Nr(e,t,r);if(i=Te,i!==null&&(a=Fp(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,xa(e,a),It(i,e,a),sd;return Rf(o)||Tu(),Nr(e,t,r)}return Rf(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Ce=dn(o.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Mg(t,e),t=fd(t,a.children),t.flags|=134221824,t)}function Qm(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Gr(e.return,t,n)}function Zm(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&du(n)===null&&(t=e),e=e.sibling}return t}function Rr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function ls(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function tf(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ft.current;if(t.flags&128)return Ml(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Ml(t,l),a==="backwards"&&e!==null?(ls(e),Ze(e,t,i,n),ls(e)):Ze(e,t,i,n),i=oe?Tl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qm(e,n,t);else if(e.tag===19)Qm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=Zm(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,ls(t)),Rr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&du(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Rr(t,!0,n,null,o,i);break;case"together":Rr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=Zm(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Rr(t,!1,a,n,o,i)}return t.child}function Fm(e,t,n){var i=t.pendingProps;return Ai(t,t.type,i.value),Ze(e,t,i.children,n),t.child}function si(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ai(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ai(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function lw(e,t,n){switch(t.tag){case 3:tu(t,t.stateNode.containerInfo),Ai(t,Xe,e.memoizedState.cache),da();break;case 27:case 5:As(t);break;case 4:tu(t,t.stateNode.containerInfo);break;case 10:Ai(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,js(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ui(t),t.flags|=128,null;i=ha(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?wy(e,t,n):(Ui(t),e=si(e,t,n),e!==null?e.sibling:null)}Ui(t);break;case 19:if(t.flags&128)return tf(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(ha(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return tf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ml(t,ft.current),i)break;return null;case 22:return t.lanes=0,Sy(e,t,n,t.pendingProps);case 24:Ai(t,Xe,e.memoizedState.cache)}return si(e,t,n)}function Ey(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!dd(e,n)&&(t.flags&128)===0)return Ke=!1,lw(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,oe&&(t.flags&1048576)!==0&&Rg(t,Tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ia(t.elementType),t.type=e,typeof e=="function")qf(e)?(i=ba(e,i),t.tag=1,t=Xm(null,t,e,i,n)):(t.tag=0,t=Js(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Lf){t.tag=11,t=Bm(null,t,e,i,n);break e}else if(a===zf){t.tag=14,t=Vm(null,t,e,i,n);break e}else if(a===Pn){t.tag=10,t.type=e,t=Fm(null,t,n);break e}}throw t=Rs(e)||e,Error(A(306,t,""))}}return t;case 0:return Js(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=ba(i,t.pendingProps),Xm(e,t,i,a,n);case 3:e:{if(tu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,Vs(e,t),hl(t,i,null,n);var l=t.memoizedState;if(i=l.cache,Ai(t,Xe,i),i!==o.cache&&Gs(t,[Xe],n,!0),dl(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Km(e,t,i,n);break e}else if(i!==a){a=sn(Error(A(424)),t),Nl(a),t=Km(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=dn(e.firstChild),ot=t,oe=!0,Di=null,fn=!0,n=zg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(da(),i===a){t=si(e,t,n);break e}Ze(e,t,i,n)}t=t.child}return t;case 26:return Va(e,t),e===null?(n=xp(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=fb(t.type,t.pendingProps,zi.current,t)):t.memoizedState=xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return As(t),e===null&&oe&&(i=t.stateNode=wb(t.type,t.pendingProps,zi.current),ot=t,fn=!0,a=Ce,Qi(t.type)?(Mf=a,Ce=dn(i.firstChild)):Ce=a),Ze(e,t,t.pendingProps.children,n),Va(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((a=i=Ce)&&(i=Ww(i,t.type,t.pendingProps,fn),i!==null?(t.stateNode=i,ot=t,Ce=dn(i.firstChild),fn=!1,a=!0):a=!1),a||Yi(t)),As(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,xf(a,o)?i=null:l!==null&&xf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=$f(e,t,ZS,null,null,n),To._currentValue=a),Va(e,t),Ze(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=Ce)&&(n=$w(n,t.pendingProps,fn),n!==null?(t.stateNode=n,ot=t,Ce=null,e=!0):e=!1),e||Yi(t)),null;case 13:return wy(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ga(t,null,i,n):Ze(e,t,i,n),t.child;case 11:return Bm(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Va(e,t),Ze(e,t,i,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:return Fm(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,ma(t),a=ct(a),i=i(a),t.flags|=1,Ze(e,t,i,n),t.child;case 14:return Vm(e,t,t.type,t.pendingProps,n);case 15:return vy(e,t,t.type,t.pendingProps,n);case 19:return tf(e,t,n);case 31:return aw(e,t,n);case 22:return Sy(e,t,n,t.pendingProps);case 24:return ma(t),i=ct(Xe),e===null?(a=Kf(),a===null&&(a=Te,o=Xf(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},Zf(t),Ai(t,Xe,a)):((e.lanes&n)!==0&&(Vs(e,t),hl(t,null,null,n),dl()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ai(t,Xe,i)):(i=o.cache,Ai(t,Xe,i),i!==a.cache&&Gs(t,[Xe],n,!0))),Ze(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Uu(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Va(e,t),Ze(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ti(e){e.flags|=4}function rs(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Rp(t,i):Rp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Jy())e.flags|=8192;else throw sa=su,Qf}else e.flags&=-16777217}function Jm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nb(t))if(Jy())e.flags|=8192;else throw sa=su,Qf}function Mr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Kp():536870912,e.lanes|=t,bo|=t)}function Wo(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function rw(e,t,n){var i=t.pendingProps;switch(jf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),oi(Xe),mo(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?ti(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ns())),Ae(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ti(t),o!==null?(Ae(t),Jm(t,o)):(Ae(t),rs(t,a,null,i,n))):o?o!==e.memoizedState?(ti(t),Ae(t),Jm(t,o)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ti(t),Ae(t),rs(t,a,e,i,n)),null;case 27:if(nu(t),n=zi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Vn.current,Ga(t)?Tm(t,e):(e=wb(a,i,n),t.stateNode=e,ti(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(nu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(o=Vn.current,Ga(t))Tm(t,o);else{var l=Ll(zi.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[ut]=t,o[Bt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(dt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ti(t)}}return Ae(t),t.subtreeFlags&=-33554433,rs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ti(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=zi.current,Ga(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ot,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||cb(e.nodeValue,n)),e||Yi(t,!0)}else e=Ll(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ga(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[ut]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ga(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[ut]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),a=!1}else a=ns(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mr(t,t.updateQueue),Ae(t),null);case 4:return mo(),e===null&&wd(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return oi(t.type),Ae(t),null;case 19:if(Jf(t),i=t.memoizedState,i===null)return Ae(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)Wo(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=du(e),o!==null){for(t.flags|=128,Wo(i,!1),e=o.updateQueue,t.updateQueue=e,Mr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Tg(n,e),n=n.sibling;return Ml(t,ft.current&1|2),oe&&ni(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Eu&&(t.flags|=128,a=!0,Wo(i,!1),t.lanes=4194304)}else{if(!a)if(e=du(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Mr(t,e),Wo(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Eu&&n!==536870912&&(t.flags|=128,a=!0,Wo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,o=ft.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Ml(t,o):(n=o,Oe(ht,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ni(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Kt(t),Ff(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Mr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),oi(Xe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(A(156,t.tag))}function uw(e,t){switch(jf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oi(Xe),mo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nu(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(A(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jf(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return mo(),null;case 10:return oi(t.type),null;case 22:case 23:return Kt(t),Ff(),e!==null&&st(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oi(Xe),null;case 25:return null;default:return null}}function xy(e,t){switch(jf(t),t.tag){case 3:oi(Xe),mo();break;case 26:case 27:case 5:nu(t);break;case 4:mo();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:Jf(t);break;case 10:oi(t.type);break;case 22:case 23:Kt(t),Ff(),e!==null&&st(ca);break;case 24:oi(Xe)}}function ql(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){Ee(t,t.return,r)}}function ji(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,c=r;try{c()}catch(f){Ee(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){Ee(t,t.return,f)}}function Ty(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Hg(t,n)}catch(i){Ee(e,e.return,i)}}}function Ny(e,t,n){n.props=ba(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ee(e,t,i)}}function Un(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=ri(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=pb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new tn(e);Gt(e.child,!1,Fw,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Ee(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){Ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ee(e,t,a)}else n.current=null}function yu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)vb(e.stateNode,t[n])}function Wm(e){for(var t=e.return;t!==null&&(md(t)&&vb(e.stateNode,t.stateNode),!hd(t));)t=t.return}function gl(e){for(var t=e.return;t!==null&&(md(t)&&Jw(e.stateNode,t.stateNode),!hd(t));)t=t.return}function hd(e){return e.tag===5||e.tag===3||e.tag===27}function md(e){return e&&e.tag===7&&e.stateNode!==null}function nf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){Ee(e,e.return,a)}}function us(e,t,n){try{var i=e.stateNode;zw(i,e.type,n,t),i[Bt]=t}catch(a){Ee(e,e.return,a)}}function Ry(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qi(e.type)||e.tag===4}function cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ry(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function af(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=In)),yu(e,i),me=!0;else if(a!==4&&(a===27&&(yu(e,i),i=null,Qi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(af(e,t,n,i),e=e.sibling;e!==null;)af(e,t,n,i),e=e.sibling}function bu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),yu(e,i),me=!0;else if(a!==4&&(a===27&&(yu(e,i),i=null,Qi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(bu(e,t,n,i),e=e.sibling;e!==null;)bu(e,t,n,i),e=e.sibling}function My(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(o){Ee(e,e.return,o)}}var vu=!1,Qt=null;function $m(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(vu=!0)}var kn=null;function ep(){var e=kn;return kn=null,e}var kt=0;function Oo(e,t,n,i,a){return kt=0,Ay(e.child,t,n,i,a)}function Ay(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=Tf(l);i.push(r),r.view&&(o=!0)}else o||Tf(l).view&&(o=!0);vu=!0,db(l,kt===0?t:t+"_"+kt,n),kt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||Ay(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function qn(e,t){for(;e!==null;)e.tag===5?hb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||qn(e.child,t)),e=e.sibling}function jr(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(jr(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=hi(t.default,t.share),t!=="none"&&(Oo(e,n,t,null,!1)||qn(e.child,!1))}e=e.sibling}}function of(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=ri(i,n),o=hi(i.default,n.paired?i.share:i.enter);o!=="none"?Oo(e,a,o,null,!1)?(jr(e),n.paired||t||vo(e,i.onEnter)):qn(e.child,!1):jr(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)of(e,t),e=e.sibling;else jr(e)}function lf(e){if(Qt!==null&&Qt.size!==0){var t=Qt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=hi(n.default,n.share);if(o!=="none"&&(Oo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,vo(e,n.onShare)):qn(e.child,!1)),t.delete(i),t.size===0)break}}}lf(e)}e=e.sibling}}}function rf(e){if(e.tag===30){var t=e.memoizedProps,n=ri(t,e.stateNode),i=Qt!==null?Qt.get(n):void 0,a=hi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Oo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Qt.delete(n),vo(e,t.onShare)):vo(e,t.onExit):qn(e.child,!1)),Qt!==null&&lf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)rf(e),e=e.sibling;else Qt!==null&&lf(e)}function Cy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ri(t,e.stateNode);t=hi(t.default,t.update),e.flags&=-5,t!=="none"&&Oo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Cy(e);e=e.sibling}}function uf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,qn(e.child,!1))}uf(e)}e=e.sibling}}function Xr(e){if(e.tag===30)e.stateNode.paired=null,qn(e.child,!1),uf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Xr(e),e=e.sibling;else uf(e)}function Oy(e){for(e=e.child;e!==null;)e.tag===30?qn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Oy(e),e=e.sibling}function pd(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&kt<o.length){var c=o[kt],f=Tf(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&db(u,kt===0?n:n+"_"+kt,a),r&&(e.flags&4)!==0||(kn===null&&(kn=[]),kn.push(u,kt===0?i:i+"_"+kt,t.memoizedProps)),kt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:pd(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function Ly(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=ri(n,i),o=hi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(Pw)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;kt=0,a=pd(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||vo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Ly(e,t);e=e.sibling}}var nt=!1,be=!1,Dn=!1,ss=!1,tp=typeof WeakSet=="function"?WeakSet:Set,it=null,Hn=!1,ll=!1,Su=!1,cf=!1;function cw(e,t,n){if(e=e.containerInfo,wf=No,e=gg(e),Bf(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,m=null;t:for(;;){for(var y;s!==i||o!==0&&s.nodeType!==3||(u=r+o),s!==l||a!==0&&s.nodeType!==3||(c=r+a),s.nodeType===3&&(r+=s.nodeValue.length),(y=s.firstChild)!==null;)m=s,s=y;for(;;){if(s===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(c=r),(y=s.nextSibling)!==null)break;s=m,m=s.parentNode}s=y}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ef={focusedElem:e,selectionRange:i},No=!1,n=(n&335544064)===n,it=t,t=n?9270:1024;it!==null;){if(e=it,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&rf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&$m(e),Ar(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&rf(i),Ar(n);continue}else if(i!==null&&i.memoizedState!==null){n&&$m(e),Ar(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,it=i):(n&&Cy(e),Ar(n))}}Qt=null}function Ar(e){for(;it!==null;){var t=it,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=ba(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){Ee(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Nf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Nf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=ri(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=hi(a.default,a.update),a!=="none"&&Oo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,it=i;break}it=t.return}}function zy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n),i&4&&ql(5,n);break;case 1:if(_n(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Ee(n,n.return,l)}else{var a=ba(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Ee(n,n.return,l)}}i&64&&Ty(n),i&512&&Un(n,n.return);break;case 3:if(_n(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Hg(e,t)}catch(l){Ee(n,n.return,l)}}break;case 27:t===null&&i&4&&My(n);case 26:case 5:_n(e,n),t===null&&i&4&&nf(n),i&512&&Un(n,n.return);break;case 12:_n(e,n);break;case 31:_n(e,n),i&4&&Uy(e,n);break;case 13:_n(e,n),i&4&&ky(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ww.bind(null,n),eE(e,n))));break;case 22:if(i=n.memoizedState!==null||nt,!i){var o=t!==null&&t.memoizedState!==null||be;t=nt,a=be,nt=i,(be=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),yn(e,n,i)):_n(e,n),nt=t,be=a}break;case 30:_n(e,n),i&512&&Un(n,n.return);break;case 7:i&512&&Un(n,n.return);default:_n(e,n)}}function sf(e,t){for(e=e.child;e!==null;)Dy(e,t),e=e.sibling}function Dy(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){Ee(e,e.return,u)}ff(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,me=!0}catch(u){Ee(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?yp(r,!0):yp(e.stateNode,!1)}catch(u){Ee(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&sf(e,t);break;default:sf(e,t)}}function ff(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:Dy(n,i);break e;case 22:n.memoizedState===null&&ff(n,i);break e;default:ff(n,i)}}e=e.sibling}}function Hy(e){var t=e.alternate;t!==null&&(e.alternate=null,Hy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ou(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function gn(e,t,n){for(n=n.child;n!==null;)_y(e,t,n),n=n.sibling}function _y(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(kl,n)}catch{}switch(n.tag){case 26:be||rt(n,t),gn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),gl(n);var i=Ue,a=_t;Qi(n.type)&&(Ue=n.stateNode,_t=!1),gn(e,t,n),Eb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=a;break;case 5:be||rt(n,t),gl(n);case 6:if(n.tag===6&&gl(n),i=Ue,a=_t,Ue=null,gn(e,t,n),Ue=i,_t=a,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}else try{Ue.removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}break;case 18:Ue!==null&&(_t?(e=Ue,gp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ro(e)):gp(Ue,n.stateNode));break;case 4:i=Ue,a=_t,Ue=n.stateNode.containerInfo,_t=!0,gn(e,t,n),Ue=i,_t=a;break;case 0:case 11:case 14:case 15:ji(2,n,t),be||ji(4,n,t),gn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Ny(n,t,i)),gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,gn(e,t,n),be=i;break;case 30:rt(n,t),gn(e,t,n);break;case 7:be||rt(n,t),gn(e,t,n);break;default:gn(e,t,n)}}function Uy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ro(e)}catch(n){Ee(t,t.return,n)}}}function ky(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ro(e)}catch(n){Ee(t,t.return,n)}}function sw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tp),t;default:throw Error(A(435,e.tag))}}function Cr(e,t){var n=sw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=Ew.bind(null,e,i);i.then(a,a)}})}function Tt(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(Qi(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(A(160));_y(l,r,o),Ue=null,_t=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Py(t,e,n),t=t.sibling}var bn=null;function Py(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Tt(t,e,n),Nt(e),a&4&&(ji(3,e,e.return),ql(3,e),ji(5,e,e.return));break;case 1:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&64&&nt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=bn,Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(nt)e.stateNode=fb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Gl]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(o=Np("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=Np("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else nt||Af(o,e.type,e.stateNode);else e.stateNode=Tp(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):a.count--,n===null?nt||Af(o,e.type,e.stateNode):Tp(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&us(e,e.memoizedProps,i.memoizedProps);break;case 27:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),i!==null&&a&4&&us(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=Dn,Dn=!1,Tt(t,e,n),Dn=o,Nt(e),a&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{go(t,""),me=!0}catch(f){Ee(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,us(e,t,i!==null?i.memoizedProps:t)),a&1024&&(ss=!0);break;case 6:if(Tt(t,e,n),Nt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,me=!0}catch(f){Ee(e,e.return,f)}}break;case 3:if(me=!1,Fr=null,o=bn,bn=zl(t.containerInfo),Tt(t,e,n),bn=o,Nt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Ro(t.containerInfo)}catch(f){Ee(e,e.return,f)}ss&&(ss=!1,Iy(e)),me=!1;break;case 4:a=Dn,Dn=nt,i=rm(),o=bn,bn=zl(e.stateNode.containerInfo),Tt(t,e,n),Nt(e),bn=o,me&&ll&&(Su=!0),me=i,Dn=a;break;case 12:Tt(t,e,n),Nt(e);break;case 31:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 13:Tt(t,e,n),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Yu=Ft()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=nt,u=be,c=Dn;nt=r||o,Dn=c||o,be=u||l,Tt(t,e,n),be=u,Dn=c,nt=r,Nt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||nt||be||(t=l||be,n=nt,i=be,nt=o||nt,be=t,Ei(e,2),nt=n,be=i),!o&&Dn||sf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Cr(e,n))));break;case 19:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Cr(e,t)));break;case 30:a&512&&(be||i===null||rt(i,i.return)),a=rm(),o=ll,l=(n&335544064)===n,r=e.memoizedProps,ll=l&&hi(r.default,r.update)!=="none",Tt(t,e,n),Nt(e),l&&i!==null&&me&&(e.flags|=4),ll=o,me=a;break;case 21:break;case 7:a&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Tt(t,e,n),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Ry(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(md(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(hd(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=cs(e);bu(e,u,r,l);break;case 5:var c=n.stateNode;n.flags&32&&(go(c,""),n.flags&=-33);var f=cs(e);bu(e,f,c,l);break;case 3:case 4:var p=n.stateNode.containerInfo,s=cs(e);af(e,s,p,l);break;default:throw Error(A(161))}}catch(m){Ee(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Iy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Iy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,No=!0,t.reset(),No=!1),e=e.sibling}}function Ba(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Gy(t,e),t=t.sibling;else Ly(t,!1)}function Gy(e,t){var n=e.alternate;if(n===null)of(e,!1);else switch(e.tag){case 3:if(cf=Hn=!1,ep(),Ba(t,e),!Hn&&!Su){if(e=kn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];hb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),cf=!0}kn=null;break;case 5:Ba(t,e);break;case 4:i=Hn,Hn=!1,Ba(t,e),Hn&&(Su=!0),Hn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?of(e,!1):Ba(t,e));break;case 30:i=Hn,a=ep(),Hn=!1,Ba(t,e),Hn&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=ri(o,l),l=ri(n.memoizedProps,l);var r=hi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,kt=0,t=pd(e,n,t,l,r,o,!0),kt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(vo(e,e.memoizedProps.onUpdate),kn=a):a!==null&&(a.push.apply(a,kn),kn=a),Hn=(e.flags&32)!==0?!0:i;break;default:Ba(t,e)}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zy(e,t.alternate,t),t=t.sibling}function Ei(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:ji(4,n,n.return),Ei(n,i);break;case 1:rt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Ny(n,n.return,a),Ei(n,i);break;case 27:(i&2)!==0&&Eb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||gl(n),Ei(n,i);break;case 6:gl(n);break;case 26:rt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||be||a.parentNode.removeChild(a),Ei(n,i);break;case 22:n.memoizedState===null&&Ei(n,i);break;case 30:rt(n,n.return),Ei(n,i);break;case 7:rt(n,n.return);default:Ei(n,i)}e=e.sibling}}function yn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:yn(a,o,n),ql(4,o);break;case 1:if(yn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){Ee(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Dg(c[a],u)}catch(f){Ee(i,i.return,f)}}r&&l&64&&Ty(o),Un(o,o.return);break;case 27:(n&2)!==0&&My(o);case 5:o.tag!==5&&o.tag!==27||Wm(o),yn(a,o,n),r&&i===null&&l&4&&nf(o),Un(o,o.return);break;case 6:Wm(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||nt||Af(zl(u.ownerDocument),o.type,u),yn(a,o,n),r&&i===null&&l&4&&nf(o),Un(o,o.return);break;case 12:yn(a,o,n);break;case 31:yn(a,o,n),r&&l&4&&Uy(a,o);break;case 13:yn(a,o,n),r&&l&4&&ky(a,o);break;case 22:o.memoizedState===null&&yn(a,o,n),Un(o,o.return);break;case 30:yn(a,o,n),Un(o,o.return);break;case 7:Un(o,o.return);default:yn(a,o,n)}t=t.sibling}}function gd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Vl(n))}function yd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vl(e))}function on(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)By(e,t,n,i),t=t.sibling;else a&&Oy(t)}function By(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xr(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),o&2048&&ql(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),a&&cf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Vl(o)));break;case 12:if(o&2048){on(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(c){Ee(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&Xr(r),l._visibility&2?on(e,t,n,i):yl(e,t)):(a&&r!==null&&r.memoizedState!==null&&Xr(t),l._visibility&2?on(e,t,n,i):(l._visibility|=2,Ya(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&gd(r,t);break;case 24:on(e,t,n,i),o&2048&&yd(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(qn(o.child,!0),qn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Ya(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,c=l.flags;switch(l.tag){case 0:case 11:case 15:Ya(o,l,r,u,a),ql(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?Ya(o,l,r,u,a):yl(o,l):(f._visibility|=2,Ya(o,l,r,u,a)),a&&c&2048&&gd(l.alternate,l);break;case 24:Ya(o,l,r,u,a),a&&c&2048&&yd(l.alternate,l);break;default:Ya(o,l,r,u,a)}t=t.sibling}}function yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:yl(n,i),a&2048&&gd(i.alternate,i);break;case 24:yl(n,i),a&2048&&yd(i.alternate,i);break;default:yl(n,i)}t=t.sibling}}var aa=8192;function ta(e,t,n){if(e.subtreeFlags&aa)for(e=e.child;e!==null;)Vy(e,t,n),e=e.sibling}function Vy(e,t,n){switch(e.tag){case 26:ta(e,t,n),e.flags&aa&&(e.memoizedState!==null?mE(n,bn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Mp(n,e)));break;case 5:ta(e,t,n),e.flags&aa&&(e=e.stateNode,(t&335544128)===t&&Mp(n,e));break;case 3:case 4:var i=bn;bn=zl(e.stateNode.containerInfo),ta(e,t,n),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=aa,aa=16777216,ta(e,t,n),aa=i):ta(e,t,n));break;case 30:if((e.flags&aa)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Qt===null&&(Qt=new Map),Qt.set(i,a)}ta(e,t,n);break;default:ta(e,t,n)}}function Yy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $o(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,jy(i,e)}Yy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qy(e),e=e.sibling}function qy(e){switch(e.tag){case 0:case 11:case 15:$o(e),e.flags&2048&&ji(9,e,e.return);break;case 3:$o(e);break;case 12:$o(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kr(e)):$o(e);break;default:$o(e)}}function Kr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,jy(i,e)}Yy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ji(8,t,t.return),Kr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Kr(t));break;default:Kr(t)}e=e.sibling}}function jy(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:ji(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Vl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,it=i;else e:for(n=e;it!==null;){i=it;var a=i.sibling,o=i.return;if(Hy(i),i===n){it=null;break e}if(a!==null){a.return=o,it=a;break e}it=o}}}var fw={getCacheForType:function(e){var t=ct(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Xe).controller.signal}},dw=typeof WeakMap=="function"?WeakMap:Map,pe=0,Te=null,ue=null,se=0,Se=0,jt=null,Ci=!1,Lo=!1,bd=!1,fi=0,Be=0,Xi=0,fa=0,wu=0,Zt=0,bo=0,bl=null,Ut=null,df=!1,Yu=0,Xy=0,Eu=1/0,xu=null,Pi=null,Ie=0,Sn=null,va=null,Yn=0,hf=0,mf=null,Ky=null,so=null,fo=null,ho=null,vl=0,Qr=null;function $t(){return(pe&2)!==0&&se!==0?se&-se:Q.T!==null?Sd():Jp()}function Qy(){if(Zt===0)if((se&536870912)===0||oe){var e=gr;gr<<=1,(gr&3932160)===0&&(gr=262144),Zt=e}else Zt=536870912;return e=ht.current,e!==null&&(e.flags|=32),Zt}function vo(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=pb(ri(e.memoizedProps,n))),fo===null&&(fo=[]),fo.push(t.bind(null,i))}}function It(e,t,n){(e===Te&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(So(e,0),Oi(e,se,Zt,!1)),Il(e,n),((pe&2)===0||e!==Te)&&(e===Te&&((pe&2)===0&&(fa|=n),Be===4&&Oi(e,se,Zt,!1)),Xn(e))}function Zy(e,t,n){if((pe&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pl(e,t),a=i?pw(e,t):fs(e,t,!0),o=i;do{if(a===0){Lo&&!i&&Oi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!hw(n)){a=fs(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=bl;var u=r.current.memoizedState.isDehydrated;if(u&&(So(r,l).flags|=256),l=fs(r,l,!1),l!==2&&l!==6){if(bd&&!u){r.errorRecoveryDisabledLanes|=o,fa|=o,a=4;break e}o=Ut,Ut=a,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){So(e,0),Oi(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Oi(i,t,Zt,!Ci);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=Yu+300-Ft(),10<a)){if(Oi(i,t,Zt,!Ci),Cu(i,0,!0)!==0)break e;Yn=t,i.timeoutHandle=Ed(np.bind(null,i,n,Ut,xu,df,t,Zt,fa,bo,Ci,o,"Throttled",-0,0),a);break e}np(i,n,Ut,xu,df,t,Zt,fa,bo,Ci,o,null,-0,0)}}break}while(!0);Xn(e)}function np(e,t,n,i,a,o,l,r,u,c,f,p,s,m){e.timeoutHandle=-1;var y=t.subtreeFlags,v=(o&335544064)===o;if(p=null,(v||y&8192||(y&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:In},Qt=null,Vy(t,o,p),v&&(y=p,v=e.containerInfo,v=(v.nodeType===9?v:v.ownerDocument).__reactViewTransition,v!=null&&(y.count++,y.waitingForViewTransition=!0,y=Dl.bind(y),v.finished.then(y,y))),y=(o&62914560)===o?Yu-Ft():(o&4194048)===o?Xy-Ft():0,y=pE(p,y),y!==null)){Yn=o,e.cancelPendingCommit=y(ap.bind(null,e,t,o,n,i,a,l,r,u,c,f,p,null,s,m)),Oi(e,o,l,!c);return}ap(e,t,o,n,i,a,l,r,u,c,f,p)}function hw(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!en(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Oi(e,t,n,i){t=Xp(e,t),t&=~wu,t&=~fa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-Wt(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&Qp(e,n,t)}function qu(){return(pe&6)===0?(jl(0,!1),!1):!0}function vd(){if(ue!==null){if(Se===0)var e=ue.return;else e=ue,ii=Ta=null,nd(e),ro=null,Rl=0,e=ue;for(;e!==null;)xy(e.alternate,e),e=e.return;ue=null}}function So(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_w(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,vd(),Te=e,ue=n=ai(e.current,null),se=t,Se=0,jt=null,Ci=!1,Lo=Pl(e,t),bd=!1,bo=Zt=wu=fa=Xi=Be=0,Ut=bl=null,df=!1,fi=Xp(e,t),Hu(),n}function Fy(e,t){ee=null,Q.H=pu,t===Co||t===ku?(t=Cm(),Se=3):t===Qf?(t=Cm(),Se=4):Se=t===sd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ue===null&&(Be=1,gu(e,sn(t,e.current)))}function Jy(){var e=ht.current;return e===null?!0:(se&4194048)===se?bt===null:(se&62914560)===se||(se&536870912)!==0?e===bt:!1}function Wy(){var e=Q.H;return Q.H=pu,e===null?pu:e}function $y(){var e=Q.A;return Q.A=fw,e}function Tu(){Be=4,Ci||(se&4194048)!==se&&ht.current!==null||(Lo=!0),(Xi&134217727)===0&&(fa&134217727)===0||Te===null||Oi(Te,se,Zt,!1)}function fs(e,t,n){var i=pe;pe|=2;var a=Wy(),o=$y();(Te!==e||se!==t)&&(xu=null,So(e,t)),t=!1;var l=Be;e:do try{if(Se!==0&&ue!==null){var r=ue,u=jt;switch(Se){case 8:vd(),l=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var c=Se;if(Se=0,jt=null,no(e,r,u,c),n&&Lo){l=0;break e}break;default:c=Se,Se=0,jt=null,no(e,r,u,c)}}mw(),l=Be;break}catch(f){Fy(e,f)}while(!0);return t&&e.shellSuspendCounter++,ii=Ta=null,pe=i,Q.H=a,Q.A=o,ue===null&&(Te=null,se=0,Hu()),l}function mw(){for(;ue!==null;)eb(ue)}function pw(e,t){var n=pe;pe|=2;var i=Wy(),a=$y();Te!==e||se!==t?(xu=null,Eu=Ft()+500,So(e,t)):Lo=Pl(e,t);e:do try{if(Se!==0&&ue!==null){t=ue;var o=jt;t:switch(Se){case 1:Se=0,jt=null,no(e,t,o,1);break;case 2:case 9:if(Am(o)){Se=0,jt=null,ip(t);break}t=function(){Se!==2&&Se!==9||Te!==e||(Se=7),Xn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Am(o)?(Se=0,jt=null,ip(t)):(Se=0,jt=null,no(e,t,o,7));break;case 5:var l=null;switch(ue.tag){case 26:l=ue.memoizedState;case 5:case 27:var r=ue;if(l?Nb(l):r.stateNode.complete){Se=0,jt=null;var u=r.sibling;if(u!==null)ue=u;else{var c=r.return;c!==null?(ue=c,ju(c)):ue=null}break t}}Se=0,jt=null,no(e,t,o,5);break;case 6:Se=0,jt=null,no(e,t,o,6);break;case 8:vd(),Be=6;break e;default:throw Error(A(462))}}gw();break}catch(f){Fy(e,f)}while(!0);return ii=Ta=null,Q.H=i,Q.A=a,pe=n,ue!==null?0:(Te=null,se=0,Hu(),Be)}function gw(){for(;ue!==null&&!D1();)eb(ue)}function eb(e){var t=Ey(e.alternate,e,fi);e.memoizedProps=e.pendingProps,t===null?ju(e):ue=t}function ip(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jm(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=jm(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:nd(t);var i=t;i===ot&&(oe?(uu(i),i.tag===5&&i.stateNode!=null&&(Ce=i.stateNode)):(uu(i),oe=!0));default:xy(n,t),t=ue=Tg(t,fi),t=Ey(n,t,fi)}e.memoizedProps=e.pendingProps,t===null?ju(e):ue=t}function no(e,t,n,i){ii=Ta=null,nd(t),ro=null,Rl=0;var a=t.return;try{if(iw(e,a,t,n,se)){Be=1,gu(e,sn(n,e.current)),ue=null;return}}catch(o){if(a!==null)throw ue=a,o;Be=1,gu(e,sn(n,e.current)),ue=null;return}t.flags&32768?(oe||i===1?e=!0:Lo||(se&536870912)!==0?e=!1:(Ci=e=!0,(i===2||i===9||i===3||i===6)&&(i=ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),tb(t,e)):ju(t)}function ju(e){var t=e;do{if((t.flags&32768)!==0){tb(t,Ci);return}e=t.return;var n=rw(t.alternate,t,fi);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Be===0&&(Be=5)}function tb(e,t){do{var n=uw(e.alternate,e);if(n!==null){n.flags&=32767,ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=n}while(e!==null);Be=6,ue=null}function ap(e,t,n,i,a,o,l,r,u,c,f,p){e.cancelPendingCommit=null;do Xu();while(Ie!==0);if((pe&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Te&&(ue=Te=null,se=0),va=t,Sn=e,Yn=n,mf=a,Ky=i,yw(e,t,n,l,r,u,p)}}function yw(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(hf=r,r|=Vf,Y1(e,n,r,i,a,o),fo=null,(n&335544064)===n?(ho=jS(e),i=10262):(ho=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,xw(iu,function(){return bf(),null})):(e.callbackNode=null,e.callbackPriority=0),vu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,a=ge.p,ge.p=2,o=pe,pe|=4;try{cw(e,t,n)}finally{pe=o,ge.p=a,Q.T=i}}Ie=1,vu?so=Bw(l,e.containerInfo,ho,pf,gf,vw,yf,bf,bw,null,null):(pf(),gf(),yf())}function bw(e){if(Ie!==0){var t=Sn.onRecoverableError;t(e,{componentStack:null})}}function vw(){Ie===3&&(Ie=0,Gy(va,Sn),Ie=4)}function pf(){if(Ie===1){Ie=0;var e=Sn,t=va,n=Yn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var a=ge.p;ge.p=2;var o=pe;pe|=4;try{ll=Su=!1,Py(t,e,n),n=Ef;var l=gg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&pg(r.ownerDocument.documentElement,r)){if(u!==null&&Bf(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var m=s.getSelection(),y=r.textContent.length,v=Math.min(u.start,y),w=u.end===void 0?v:Math.min(u.end,y);!m.extend&&v>w&&(l=w,w=v,v=l);var d=Sm(r,v),h=Sm(r,w);if(d&&h&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var g=p.createRange();g.setStart(d.node,d.offset),m.removeAllRanges(),v>w?(m.addRange(g),m.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var S=p[r];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}No=!!wf,Ef=wf=null}finally{pe=o,ge.p=a,Q.T=i}}e.current=t,Ie=2}}function gf(){if(Ie===2){Ie=0;var e=Sn,t=va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ge.p;ge.p=2;var a=pe;pe|=4;try{zy(e,t.alternate,t)}finally{pe=a,ge.p=i,Q.T=n}}Ie=3}}function yf(){if(Ie===4||Ie===3){Ie=0;var e=so;so=null,H1();var t=Sn,n=va,i=Yn,a=Ky,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,va=Sn=null,nb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pi=null),_f(i),n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(kl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=Q.T,o=ge.p,ge.p=2,Q.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{Q.T=n,ge.p=o}}if(a=fo,l=ho,ho=null,a!==null&&(fo=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(Yn&3)!==0&&Xu(),Xn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===Qr?vl++:(vl=0,Qr=t):(vl=0,Qr=null),jl(0,!1)}}function nb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vl(t)))}function Xu(){return so!==null&&(so.skipTransition(),so=null),pf(),gf(),yf(),bf()}function bf(){if(Ie!==5)return!1;var e=Sn,t=hf;hf=0;var n=_f(Yn),i=Q.T,a=ge.p;try{ge.p=32>n?32:n,Q.T=null,n=mf,mf=null;var o=Sn,l=Yn;if(Ie=0,va=Sn=null,Yn=0,(pe&6)!==0)throw Error(A(331));var r=pe;if(pe|=4,qy(o.current),By(o,o.current,l,n),pe=r,jl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(kl,o)}catch{}return!0}finally{ge.p=a,Q.T=i,nb(e,t)}}function op(e,t,n){t=sn(n,t),t=Fs(e.stateNode,t,2),e=_i(e,t,2),e!==null&&(Il(e,2),Xn(e))}function Ee(e,t,n){if(e.tag===3)op(e,e,n);else for(;t!==null;){if(t.tag===3){op(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pi===null||!Pi.has(i))){e=sn(n,e),n=yy(2),i=_i(t,n,2),i!==null&&(by(n,i,t,e),Il(i,2),Xn(i));break}}t=t.return}}function ds(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new dw;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(bd=!0,a.add(n),e=Sw.bind(null,e,t,n),t.then(e,e))}function Sw(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Te===e&&(se&n)===n&&((Be===4||Be===3&&(se&62914560)===se&&300>Ft()-Yu)&&(pe&2)===0?So(e,0):wu|=n,bo===se&&(bo=0)),Xn(e)}function ib(e,t){t===0&&(t=Kp()),e=xa(e,t),e!==null&&(Il(e,t),Xn(e))}function ww(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ib(e,n)}function Ew(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),ib(e,n)}function xw(e,t){return Df(e,t)}var wo=null,qa=null,vf=!1,Nu=!1,hs=!1,Li=0;function Xn(e){e!==qa&&e.next===null&&(qa===null?wo=qa=e:qa=qa.next=e),Nu=!0,vf||(vf=!0,Nw())}function jl(e,t){if(!hs&&Nu){hs=!0;do for(var n=!1,i=wo;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-Wt(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,lp(i,o))}else o=se,o=Cu(i,i===Te?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Pl(i,o)||(n=!0,lp(i,o));i=i.next}while(n);hs=!1}}function Tw(){ab()}function ab(){Nu=vf=!1;var e=0;Li!==0&&Hw()&&(e=Li);for(var t=Ft(),n=null,i=wo;i!==null;){var a=i.next,o=ob(i,t);o===0?(i.next=null,n===null?wo=a:n.next=a,a===null&&(qa=n)):(n=i,(e!==0||(o&3)!==0)&&(Nu=!0)),i=a}Ie!==0&&Ie!==5||jl(e,!1),Li!==0&&(Li=0)}function ob(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-Wt(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=V1(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Te,n=se,n=Cu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&jc(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&jc(i),_f(n)){case 2:case 8:n=qp;break;case 32:n=iu;break;case 268435456:n=jp;break;default:n=iu}return i=lb.bind(null,e),n=Df(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&jc(i),e.callbackPriority=2,e.callbackNode=null,2}function lb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var i=se;return i=Cu(e,e===Te?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Zy(e,i,t),ob(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?lb.bind(null,e):null)}function lp(e,t){if(Xu())return null;Zy(e,t,!0)}function Nw(){Uw(function(){(pe&6)!==0?Df(Yp,Tw):ab()})}function Sd(){if(Li===0){var e=pa;e===0&&(e=pr,pr<<=1,(pr&261888)===0&&(pr=256)),Li=e}return Li}function rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ur(e)}function Rw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=rp((a[Bt]||null).action),l=i.submitter;l&&(t=(t=l[Bt]||null)?rp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new Lu("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Li!==0){var u=new FormData(a,l);Qs(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),Qs(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Or=0;Or<ks.length;Or++)Lr=ks[Or],up=Lr.toLowerCase(),cp=Lr[0].toUpperCase()+Lr.slice(1),wn(up,"on"+cp);var Lr,up,cp,Or;wn(bg,"onAnimationEnd");wn(vg,"onAnimationIteration");wn(Sg,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(kS,"onTransitionRun");wn(PS,"onTransitionStart");wn(IS,"onTransitionCancel");wn(wg,"onTransitionEnd");po("onMouseEnter",["mouseout","mouseover"]);po("onMouseLeave",["mouseout","mouseover"]);po("onPointerEnter",["pointerout","pointerover"]);po("onPointerLeave",["pointerout","pointerover"]);wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wa("onBeforeInput",["compositionend","keypress","textInput","paste"]);wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cl="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(" "),Mw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cl));function rb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){ou(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,c=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){ou(f)}a.currentTarget=null,o=u}}}}function re(e,t){var n=t[im];n===void 0&&(n=t[im]=new Set);var i=e+"__bubble";n.has(i)||(ub(t,e,2,!1),n.add(i))}function ms(e,t,n){var i=0;t&&(i|=4),ub(n,e,i,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function wd(e){if(!e[zr]){e[zr]=!0,$p.forEach(function(n){n!=="selectionchange"&&(Mw.has(n)||ms(n,!1,e),ms(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,ms("selectionchange",!1,t))}}function ub(e,t,n,i){switch(zb(t)){case 2:var a=vE;break;case 8:a=SE;break;default:a=Ad}n=a.bind(null,t,n,e),a=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function ps(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=oa(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}rg(function(){var c=o,f=kf(n),p=[];e:{var s=Eg.get(e);if(s!==void 0){var m=Lu,y=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":m=hS;break;case"focusin":y="focus",m=Jc;break;case"focusout":y="blur",m=Jc;break;case"beforeblur":case"afterblur":m=Jc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=tS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=bS;break;case bg:case vg:case Sg:m=aS;break;case wg:m=SS;break;case"scroll":case"scrollend":m=$1;break;case"wheel":m=ES;break;case"copy":case"cut":case"paste":m=lS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=hm;break;case"submit":m=gS;break;case"toggle":case"beforetoggle":m=TS}var v=(t&4)!==0,w=!v&&(e==="scroll"||e==="scrollend"),d=v?s!==null?s+"Capture":null:s;v=[];for(var h=c,g;h!==null;){var S=h;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||d===null||(S=wl(h,d),S!=null&&v.push(Ol(h,S,g))),w)break;h=h.return}0<v.length&&(s=new m(s,y,null,n,f),p.push({event:s,listeners:v}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",m&&n!==zs&&(y=n.relatedTarget||n.fromElement)&&(oa(y)||y[Mo]))break e;(s||m)&&(y=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,s?(m=n.relatedTarget||n.toElement,s=c,m=m?oa(m):null,m!==null&&(w=Ul(m),v=m.tag,m!==w||v!==5&&v!==27&&v!==6)&&(m=null)):(s=null,m=c),s!==m&&(v=fm,S="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=hm,S="onPointerLeave",d="onPointerEnter",h="pointer"),w=s==null?y:al(s),g=m==null?y:al(m),y=new v(S,h+"leave",s,n,f),y.target=w,y.relatedTarget=g,S=null,oa(f)===c&&(v=new v(d,h+"enter",m,n,f),v.target=g,v.relatedTarget=w,S=v),w=S,v=s&&m?Ss(s,m,Aw):null,s!==null&&sp(p,y,s,v,!1),m!==null&&w!==null&&sp(p,w,m,v,!0)))}e:{if(s=c?al(c):window,m=s.nodeName&&s.nodeName.toLowerCase(),m==="select"||m==="input"&&s.type==="file")var x=ym;else if(gm(s))if(hg)x=HS;else{x=zS;var R=LS}else m=s.nodeName,!m||m.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Uf(c.elementType)&&(x=ym):x=DS;if(x&&(x=x(e,c))){dg(p,x,n,f);break e}R&&R(e,s,c)}switch(R=c?al(c):window,e){case"focusin":(gm(R)||R.contentEditable==="true")&&(Fa=R,_s=c,cl=null);break;case"focusout":cl=_s=Fa=null;break;case"mousedown":Us=!0;break;case"contextmenu":case"mouseup":case"dragend":Us=!1,wm(p,n,f);break;case"selectionchange":if(US)break;case"keydown":case"keyup":wm(p,n,f)}var E;if(Gf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Za?sg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(cg&&n.locale!=="ko"&&(Za||N!=="onCompositionStart"?N==="onCompositionEnd"&&Za&&(E=ug()):(Mi=f,Pf="value"in Mi?Mi.value:Mi.textContent,Za=!0)),R=Ru(c,N),0<R.length&&(N=new dm(N,e,null,n,f),p.push({event:N,listeners:R}),E?N.data=E:(E=fg(n),E!==null&&(N.data=E)))),(E=RS?MS(e,n):AS(e,n))&&(N=Ru(c,"onBeforeInput"),0<N.length&&(R=new dm("onBeforeInput","beforeinput",null,n,f),p.push({event:R,listeners:N}),R.data=E)),Rw(p,e,c,n,f)}rb(p,t)})}function Ol(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ru(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=wl(e,n),a!=null&&i.unshift(Ol(e,a,o)),a=wl(e,t),a!=null&&i.push(Ol(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Aw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sp(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,a?(c=wl(n,o),c!=null&&l.unshift(Ol(n,c,u))):a||(c=wl(n,o),c!=null&&l.push(Ol(n,c,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Cw=/\r\n?/g,Ow=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(Cw,`
766
- `).replace(Ow,"")}function cb(e,t){return t=fp(t),fp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||go(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&go(e,""+i);else return;break;case"className":br(e,"class",i);break;case"tabIndex":br(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":br(e,n,i);break;case"style":lg(e,i,o);return;case"data":if(t!=="object"){br(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ur(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Ur(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=In);return;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Ur(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":re("beforetoggle",e),re("toggle",e),_r(e,"popover",i);break;case"xlinkActuate":ei(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ei(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ei(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ei(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ei(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ei(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ei(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ei(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ei(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":_r(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=J1.get(n)||n,_r(e,n,i);else return}me=!0}function Sf(e,t,n,i,a,o){switch(n){case"style":lg(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")go(e,i);else if(typeof i=="number"||typeof i=="bigint")go(e,""+i);else return;break;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"onClick":i!=null&&(e.onclick=In);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!eg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}me=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):_r(e,n,i)}return}me=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,o,l,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),i&&we(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var r=o=l=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:we(e,t,i,f,n,null)}}ig(e,o,r,u,c,l,a,!1);return;case"select":re("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:we(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?ao(e,!!i,t,!1):n!=null&&ao(e,!!i,n,!0);return;case"textarea":re("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:we(e,t,l,r,n,null)}og(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:we(e,t,u,i,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(i=0;i<Cl.length;i++)re(Cl[i],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,c,i,n,null)}return;default:if(Uf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Sf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&we(e,t,r,i,n,null))}var Lw={};function zw(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,c=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||we(e,t,m,null,i,p)}}for(var s in i){var m=i[s];if(p=n[s],i.hasOwnProperty(s)&&(m!=null||p!=null))switch(s){case"type":m!==p&&(me=!0),o=m;break;case"name":m!==p&&(me=!0),a=m;break;case"checked":m!==p&&(me=!0),c=m;break;case"defaultChecked":m!==p&&(me=!0),f=m;break;case"value":m!==p&&(me=!0),l=m;break;case"defaultValue":m!==p&&(me=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&we(e,t,s,m,i,p)}}Ls(e,l,r,u,c,f,o,a);return;case"select":m=l=r=s=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||we(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(me=!0),s=o;break;case"defaultValue":o!==u&&(me=!0),r=o;break;case"multiple":o!==u&&(me=!0),l=o;default:o!==u&&we(e,t,a,o,i,u)}t=r,n=l,i=m,s!=null?ao(e,!!n,s,!1):!!i!=!!n&&(t!=null?ao(e,!!n,t,!0):ao(e,!!n,n?[]:"",!1));return;case"textarea":m=s=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(me=!0),s=a;break;case"defaultValue":a!==o&&(me=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&we(e,t,l,a,i,o)}ag(e,s,m);return;case"option":for(var y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!i.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:we(e,t,y,null,i,s)}for(u in i)if(s=i[u],m=n[u],i.hasOwnProperty(u)&&s!==m&&(s!=null||m!=null))switch(u){case"selected":s!==m&&(me=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:we(e,t,u,s,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!=null&&!i.hasOwnProperty(v)&&we(e,t,v,null,i,s);for(c in i)if(s=i[c],m=n[c],i.hasOwnProperty(c)&&s!==m&&(s!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(A(137,t));break;default:we(e,t,c,s,i,m)}return;default:if(Uf(t)){for(var w in n)s=n[w],n.hasOwnProperty(w)&&s!==void 0&&!i.hasOwnProperty(w)&&Sf(e,t,w,void 0,i,s);for(f in i)s=i[f],m=n[f],!i.hasOwnProperty(f)||s===m||s===void 0&&m===void 0||Sf(e,t,f,s,i,m);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d)&&we(e,t,d,null,i,s);for(p in i)s=i[p],m=n[p],!i.hasOwnProperty(p)||s===m||s==null&&m==null||we(e,t,p,s,i,m)}function dp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&dp(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&dp(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wf=null,Ef=null;function Ll(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fb(e,t,n,i){return n=Ll(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function xf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gs=null;function Hw(){var e=window.event;return e&&e.type==="popstate"?e===gs?!1:(gs=e,!0):(gs=null,!1)}var Ed=typeof setTimeout=="function"?setTimeout:void 0,_w=typeof clearTimeout=="function"?clearTimeout:void 0,mp=typeof Promise=="function"?Promise:void 0,pp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ed,Uw=typeof queueMicrotask=="function"?queueMicrotask:typeof mp<"u"?function(e){return mp.resolve(null).then(e).catch(kw)}:Ed;function kw(e){setTimeout(function(){throw e})}function Qi(e){return e==="head"}function gp(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Ro(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")bs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bs(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[Gl]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&bs(e.ownerDocument.body);n=a}while(n);Ro(t)}function yp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function db(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function hb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function mb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Tf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return mb(t,n,e)}function Pw(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return mb(t,n,e)}function Iw(e){return e.documentElement.clientHeight}function Gw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Bw(e,t,n,i,a,o,l,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,m=s.navigation&&s.navigation.transition,y=c.fonts.status;i();var v=[];if(y==="loaded"&&(Iw(c),c.fonts.status==="loading"&&v.push(c.fonts.ready)),y=v.length,e!==null)for(var w=e.suspenseyImages,d=0,h=0;h<w.length;h++){var g=w[h];if(!g.complete){var S=g.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<s.innerHeight&&S.left<s.innerWidth){if(d+=Rb(g),d>Jr){v.length=y;break}g=new Promise(Gw.bind(g)),v.push(g)}}}if(0<v.length)return s=Promise.race([Promise.all(v),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(m?Promise.allSettled([m.finished,s]):s).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),m=0;m<s.length;m++){var y=s[m],v=y.effect,w=v.pseudoElement;if(w!=null&&w.startsWith("::view-transition")){p.push(y),y=v.getKeyframes();for(var d=w=void 0,h=!0,g=0;g<y.length;g++){var S=y[g],x=S.width;if(w===void 0)w=x;else if(w!==x){h=!1;break}if(x=S.height,d===void 0)d=x;else if(d!==x){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&w!==void 0&&d!==void 0&&(v.setKeyframes(y),h=getComputedStyle(v.target,v.pseudoElement),h.width!==w||h.height!==d)&&(h=y[0],h.width=w,h.height=d,h=y[y.length-1],h.width=w,h.height=d,v.setKeyframes(y))}}l()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function la(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}la.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ne({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};la.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};la.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function pb(e){return{name:e,group:new la("group",e),imagePair:new la("image-pair",e),old:new la("old",e),new:new la("new",e)}}function tn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}tn.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(gb(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=Eo(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Gt(this._fragmentFiber.child,!1,Vw,e,r,i)}this._eventListeners=o}};function Vw(e,t,n,i){return Fe(e).addEventListener(t,n,i),!1}tn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=gb(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=Eo(a.optionsOrUseCapture),Gt(this._fragmentFiber.child,!1,Yw,e,n,a),i.splice(t,1),o!==null&&o()}};function Yw(e,t,n,i){return Fe(e).removeEventListener(t,n,i),!1}function Eo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function bp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function gb(e,t,n,i){if(e.length===0)return-1;i=bp(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&bp(o.optionsOrUseCapture)===i)return a}return-1}tn.prototype.dispatchEvent=function(e){var t=Sa(this._fragmentFiber);if(t===null)return!0;t=Fe(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,Eo(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,Eo(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};tn.prototype.focus=function(e){Gt(this._fragmentFiber.child,!0,yb,e,void 0,void 0)};function yb(e,t){return e.tag===6?!1:(e=Fe(e),tE(e,t))}tn.prototype.focusLast=function(e){var t=[];Gt(this._fragmentFiber.child,!0,xd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!yb(t[n],e);n--);};function xd(e,t){return t.push(e),!1}tn.prototype.blur=function(){var e=Sa(this._fragmentFiber);e!==null&&(e=Fe(e),e=Ll(e).activeElement,e!==null&&Gt(this._fragmentFiber.child,!1,qw,e,void 0,void 0))};function qw(e,t){return e.tag===6?!1:(e=Fe(e),e===t||e.contains(t)?(t.blur(),!0):!1)}tn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Gt(this._fragmentFiber.child,!1,jw,e,void 0,void 0)};function jw(e,t){return e.tag===6||(e=Fe(e),t.observe(e)),!1}tn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Gt(this._fragmentFiber.child,!1,Xw,e,void 0,void 0);for(var n=t=0;n<vn.length;n++){var i=vn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):vn[t++]=i}vn.length=t}};function Xw(e,t){return e.tag===6||(e=Fe(e),t.unobserve(e)),!1}var vn=[],ys=!1;function Kw(e,t,n){vn.push({fragmentInstance:e,observer:t,instance:n}),ys||(ys=!0,nE(function(){ys=!1;var i=vn;vn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}tn.prototype.getClientRects=function(){var e=[];return Gt(this._fragmentFiber.child,!1,Qw,e,void 0,void 0),e};function Qw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Fe(e),t.push.apply(t,e.getClientRects());return!1}tn.prototype.getRootNode=function(e){var t=Sa(this._fragmentFiber);return t===null?this:Fe(t).getRootNode(e)};tn.prototype.compareDocumentPosition=function(e){var t=Sa(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Gt(this._fragmentFiber.child,!1,xd,n,void 0,void 0);var i=Fe(t);if(n.length===0){if(n=i,Jh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Ip(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=Fe(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Fe(n[0]),a=Fe(n[n.length-1]);var o=Jh(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zw(e,t,n,i,a){var o=oa(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=Sa(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Ss(n,o,Wh),t===null?t=!1:(Gt(t,!0,N1,o,n),o=ja,ja=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Ss(i,o,Wh),t===null?t=!1:(Gt(t,!0,R1,o,i),o=ja,vs=ja=null,t=o!==null)),t):!1}function vp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}tn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Gt(this._fragmentFiber.child,!1,xd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Ip(this._fragmentFiber);if(i=n?i[1]||i[0]||Sa(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Fe(i),vp(e,n);return}if(i=Fe(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=Fe(a),vp(a,n)):Fe(a).scrollIntoView(e),i+=n?-1:1}};function Fw(e,t){return e=Fe(e),bb(e,t),!1}function bb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function vb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,Eo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<vn.length;r++){var u=vn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(vn[l++]=u)}vn.length=l,o.observe(e)}),bb(e,t))}function Jw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,Eo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?Kw(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nf(n),Ou(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ww(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Gl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function $w(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function Sb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function Rf(e){return e.data==="$?"||e.data==="$~"}function Td(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function eE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mf=null;function Sp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return dn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function tE(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function nE(e){pp(function(){pp(function(t){return e(t)})})}function wb(e,t,n){switch(t=Ll(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Eb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&we(e,t,i,null,Lw,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===In&&(e.onclick=null),Ou(e)}function bs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ou(e)}var hn=new Map,Ep=new Set;function zl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var mi=ge.d;ge.d={f:iE,r:aE,D:oE,C:lE,L:rE,m:uE,X:sE,S:cE,M:fE};function iE(){var e=mi.f(),t=qu();return e||t}function aE(e){var t=Ao(e);t!==null&&t.tag===5&&t.type==="form"?ly(t):mi.r(e)}var zo=typeof document>"u"?null:document;function xb(e,t,n){var i=zo;if(i&&typeof t=="string"&&t){var a=cn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ep.has(a)||(Ep.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function oE(e){mi.D(e),xb("dns-prefetch",e,null)}function lE(e,t){mi.C(e,t),xb("preconnect",e,t)}function rE(e,t,n){mi.L(e,t,n);var i=zo;if(i&&e&&t){var a='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+cn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+cn(n.imageSizes)+'"]')):a+='[href="'+cn(e)+'"]';var o=a;switch(t){case"style":o=xo(e);break;case"script":o=Do(e)}if(!(hn.has(o)||(e=Ne({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(Xl(o))||t==="script"&&i.querySelector(Kl(o))))){var l=i.createElement("link");dt(l,"link",e),t==="style"&&(l[au]=!0,l.onload=l.onerror=function(){Wp(l)}),at(l),i.head.appendChild(l)}}}function uE(e,t){mi.m(e,t);var n=zo;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+cn(i)+'"][href="'+cn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Do(e)}if(!hn.has(o)&&(e=Ne({rel:"modulepreload",href:e},t),hn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kl(o)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function cE(e,t,n){mi.S(e,t,n);var i=zo;if(i&&e){var a=io(i).hoistableStyles,o=xo(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(Xl(o)))r.loading=5;else{e=Ne({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(o))&&Nd(e,n);var u=l=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Zr(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function sE(e,t){mi.X(e,t);var n=zo;if(n&&e){var i=io(n).hoistableScripts,a=Do(e),o=i.get(a);o||(o=n.querySelector(Kl(a)),o||(e=Ne({src:e,async:!0},t),(t=hn.get(a))&&Rd(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function fE(e,t){mi.M(e,t);var n=zo;if(n&&e){var i=io(n).hoistableScripts,a=Do(e),o=i.get(a);o||(o=n.querySelector(Kl(a)),o||(e=Ne({src:e,async:!0,type:"module"},t),(t=hn.get(a))&&Rd(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function xp(e,t,n,i){var a=(a=zi.current)?zl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=xo(n.href),t=io(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xo(n.href);var o=io(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(Xl(e)))?o._p||(l.instance=o,l.state.loading=5):(o=hn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,o)),dE(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Do(n),t=io(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function xo(e){return'href="'+cn(e)+'"'}function Xl(e){return'link[rel="stylesheet"]['+e+"]"}function Tb(e){return Ne({},e,{"data-precedence":e.precedence,precedence:null})}function dE(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[au]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[au]=!0,t.onload=t.onerror=Wp.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Do(e){return'[src="'+cn(e)+'"]'}function Kl(e){return"script[async]"+e}function Tp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+cn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var a=Ne({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",a),Zr(i,n.precedence,e),t.instance=i;case"stylesheet":a=xo(n.href);var o=e.querySelector(Xl(a));if(o)return t.state.loading|=4,t.instance=o,at(o),o;i=Tb(n),(a=hn.get(a))&&Nd(i,a),o=(e.ownerDocument||e).createElement("link"),at(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),t.state.loading|=4,Zr(o,n.precedence,e),t.instance=o;case"script":return o=Do(n.src),(a=e.querySelector(Kl(o)))?(t.instance=a,at(a),a):(i=n,(a=hn.get(o))&&(i=Ne({},n),Rd(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),at(a),dt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Zr(i,n.precedence,e));return t.instance}function Zr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Nd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fr=null;function Np(e,t,n){if(Fr===null){var i=new Map,a=Fr=new Map;a.set(n,i)}else a=Fr,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Gl]||o[ut]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function Af(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function hE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Nb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Mp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Rb(t),e.suspenseyImages.push(t)),e=gE.bind(e),t.decode().then(e,e))}function mE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=xo(i.href),o=t.querySelector(Xl(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,i=Tb(i),(a=hn.get(a))&&Nd(i,a),o=o.createElement("link"),at(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Dl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jr=0;function pE(e,t){return e.stylesheets&&e.count===0&&Wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Jr===0&&(Jr=62500*Dw());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Jr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Mb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Wr(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Dl(){this.count--,Mb(this)}function gE(){this.imgCount--,Mb(this)}var Mu=null;function Wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,t.forEach(yE,e),Mu=null,Dl.call(e))}function yE(e,t){if(!(t.state.loading&4)){var n=Mu.get(e);if(n)var i=n.get(null);else{n=new Map,Mu.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Dl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var To={$$typeof:Pn,Provider:null,Consumer:null,_currentValue:ra,_currentValue2:ra,_threadCount:0};function bE(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.hiddenUpdates=Xc(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Ab(e,t,n,i,a,o,l,r,u,c,f,p){return e=new bE(e,t,n,l,u,c,f,p,r),t=1,o===!0&&(t|=24),o=Pt(3,null,null,t),e.current=o,o.stateNode=e,t=Xf(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},Zf(o),e}function Cb(e){return e?(e=$a,e):$a}function Ob(e,t,n,i,a,o){a=Cb(a),i.context===null?i.context=a:i.pendingContext=a,i=Hi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=_i(e,i,t),n!==null&&(It(n,e,t),fl(n,e,t))}function Ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Md(e,t){Ap(e,t),(e=e.alternate)&&Ap(e,t)}function Lb(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&It(t,e,67108864),Md(e,67108864)}}function Cp(e){if(e.tag===13||e.tag===31){var t=$t();t=Hf(t);var n=xa(e,t);n!==null&&It(n,e,t),Md(e,t)}}var No=!0;function vE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=2,Ad(e,t,n,i)}finally{ge.p=o,Q.T=a}}function SE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=8,Ad(e,t,n,i)}finally{ge.p=o,Q.T=a}}function Ad(e,t,n,i){if(No){var a=Cf(i);if(a===null)ps(e,t,i,Au,n),Op(e,i);else if(EE(a,e,t,n,i))i.stopPropagation();else if(Op(e,i),t&4&&-1<wE.indexOf(e)){for(;a!==null;){var o=Ao(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=na(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-Wt(l);r.entanglements[1]|=u,l&=~u}Xn(o),(pe&6)===0&&(Eu=Ft()+500,jl(0,!1))}}break;case 31:case 13:r=xa(o,2),r!==null&&It(r,o,2),qu(),Md(o,2)}if(o=Cf(i),o===null&&ps(e,t,i,Au,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else ps(e,t,i,null,n)}}function Cf(e){return e=kf(e),Cd(e)}var Au=null;function Cd(e){if(Au=null,e=oa(e),e!==null){var t=Ul(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Up(t),e!==null)return e;e=null}else if(n===31){if(e=kp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Au=e,null}function zb(e){switch(e){case"beforetoggle":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"seeked":case"submit":case"toggle":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"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_1()){case Yp:return 2;case qp:return 8;case iu:case U1:return 32;case jp:return 268435456;default:return 32}default:return 32}}var Of=!1,Ii=null,Gi=null,Bi=null,Hl=new Map,_l=new Map,Ni=[],wE="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".split(" ");function Op(e,t){switch(e){case"focusin":case"focusout":Ii=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Hl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(t.pointerId)}}function el(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Ao(t),t!==null&&Lb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function EE(e,t,n,i,a){switch(t){case"focusin":return Ii=el(Ii,e,t,n,i,a),!0;case"dragenter":return Gi=el(Gi,e,t,n,i,a),!0;case"mouseover":return Bi=el(Bi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return Hl.set(o,el(Hl.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,_l.set(o,el(_l.get(o)||null,e,t,n,i,a)),!0}return!1}function Db(e){var t=oa(e.target);if(t!==null){var n=Ul(t);if(n!==null){if(t=n.tag,t===13){if(t=Up(n),t!==null){e.blockedOn=t,nm(e.priority,function(){Cp(n)});return}}else if(t===31){if(t=kp(n),t!==null){e.blockedOn=t,nm(e.priority,function(){Cp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);zs=i,n.target.dispatchEvent(i),zs=null}else return t=Ao(n),t!==null&&Lb(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){$r(e)&&n.delete(t)}function xE(){Of=!1,Ii!==null&&$r(Ii)&&(Ii=null),Gi!==null&&$r(Gi)&&(Gi=null),Bi!==null&&$r(Bi)&&(Bi=null),Hl.forEach(Lp),_l.forEach(Lp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Of||(Of=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,xE)))}var Hr=null;function zp(e){Hr!==e&&(Hr=e,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,function(){Hr===e&&(Hr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Cd(i||n)===null)continue;break}var o=Ao(n);o!==null&&(e.splice(t,3),t-=3,Qs(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ro(e){function t(u){return Dr(u,e)}Ii!==null&&Dr(Ii,e),Gi!==null&&Dr(Gi,e),Bi!==null&&Dr(Bi,e),Hl.forEach(t),_l.forEach(t);for(var n=0;n<Ni.length;n++){var i=Ni[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ni.length&&(n=Ni[0],n.blockedOn===null);)Db(n),n.blockedOn===null&&Ni.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Bt]||null;if(typeof o=="function")l||zp(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Bt]||null)r=l.formAction;else if(Cd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),zp(n)}}}function Hb(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Od(e){this._internalRoot=e}Ku.prototype.render=Od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=$t();Ob(n,i,e,t,null,null)};Ku.prototype.unmount=Od.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ob(e.current,2,null,e,null,null),qu(),t[Mo]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ni.length&&t!==0&&t<Ni[n].priority;n++);Ni.splice(n,0,e),n===0&&Db(e)}};var Dp=Hp.version;if(Dp!=="19.3.0")throw Error(A(527,Dp,"19.3.0"));ge.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=T1(t),e=e!==null?Pp(e):null,e=e===null?null:e.stateNode,e};var TE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(tl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!tl.isDisabled&&tl.supportsFiber))try{kl=tl.inject(TE),Jt=tl}catch{}var tl;Qu.createRoot=function(e,t){if(!_p(e))throw Error(A(299));var n=!1,i="",a=my,o=py,l=gy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ab(e,1,!1,null,null,n,i,null,a,o,l,Hb),e[Mo]=t.current,wd(e),new Od(t)};Qu.hydrateRoot=function(e,t,n){if(!_p(e))throw Error(A(299));var i=!1,a="",o=my,l=py,r=gy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Ab(e,1,!0,t,n??null,i,a,u,o,l,r,Hb),t.context=Cb(null),n=t.current,i=$t(),i=Hf(i),a=Hi(i),a.callback=null,_i(n,a,i),n=i,t.current.lanes=n,Il(t,n),Xn(t),e[Mo]=t.current,wd(e),new Ku(t)};Qu.version="19.3.0"});var Pb=Ln((xT,kb)=>{"use strict";T();function Ub(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ub)}catch(e){console.error(e)}}Ub(),kb.exports=_b()});var av=Ln(oc=>{"use strict";T();var GE=Symbol.for("react.transitional.element"),BE=Symbol.for("react.fragment");function iv(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:GE,type:e,key:i,ref:t!==void 0?t:null,props:n}}oc.Fragment=BE;oc.jsx=iv;oc.jsxs=iv});var ye=Ln((bN,ov)=>{"use strict";T();ov.exports=av()});T();var q0=K(Pb(),1);T();var te=K(tt(),1);T();var En=e=>e;T();T();T();var NE=["path","circle","ellipse","line","polyline","polygon","rect","g"],RE={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},ME=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Gb=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Bb=1024;function Ld(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Ib(e){let t=Ld(e),n={};for(let[i,a]of Object.entries(RE)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of ME){let a=t[i];typeof a=="string"&&a.length<=32&&Gb.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function Vb(e){let{viewBox:t,attrs:n,shapes:i}=Ld(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>Gb.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:s,attrs:m,shapes:y}=Ld(p),v=NE.find(w=>w===s);v&&f.push({tag:v,attrs:Ib(m),shapes:v==="g"?l(y,c+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:Ib(n),shapes:r}:void 0}T();var Yb=["siblings","ontology","crosslinks","sidecar"],zd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},Zu=["view",...Yb,"dock","theme"],Dd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function Fu(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=zd.view.find(l=>l===t.view),a=zd.dock.find(l=>l===t.dock),o=zd.theme.find(l=>l===t.theme);i&&(n.view=i),a&&(n.dock=a),o&&(n.theme=o);for(let l of Yb){let r=t[l];typeof r=="boolean"&&(n[l]=r)}return Object.keys(n).length?n:void 0}var Wu=1e4,AE=25e4,CE=256*1024*1024,Xb=24*1024*1024,_d="data/search.json",Ud="theme/publication.css",UT=48*1024,kd=["parent","child","left","right","previous","next"],OE=["document","drawing","attachment","folder","tag","url"],LE=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,zE=/^[a-f0-9]{64}$/,qb=["none","arrow","triangle","bar","dot"],DE=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,HE=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Pd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function pi(e){return typeof e=="string"&&HE.test(e)}function Id(e){if(!pi(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Gd(e){return typeof e=="string"&&e.length<=180&&LE.test(e)}function xn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Na(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Kn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Kb(e,t){return Kn(e,0,t-1)&&Number.isInteger(e)}function Ju(e,t){let n=xn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!Kn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!Kn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!Kb(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function _E(e,t){let{center:n,sibling:i,inferred:a}=xn(e);return{center:n===void 0?void 0:Ju(n,t),sibling:i===void 0?void 0:Ju(i,t),inferred:a===void 0?void 0:Ju(a,t)}}function UE(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=xn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Kn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let c=qb.find(p=>p===o),f=qb.find(p=>p===l);if(o!==void 0&&!c||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Kn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:c,endHead:f,labelColor:r,labelSize:u}}function kE(e){let t=xn(e),n={};if(t.maximum!==void 0){if(!Kn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=xn(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!Kn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=xn(t.typography);if(i!==void 0&&!Kn(i,6,48)||o!==void 0&&!Kn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function PE(e){let t=Object.entries(xn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!Na(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Na(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>Na(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Qb(e){let t=xn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!DE.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!pi(t.id)||!pi(t.entry)||!Na(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>Wu||!Array.isArray(t.relations)||t.relations.length>AE||!Array.isArray(t.resources)||t.resources.length>Wu*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(v=>{let{path:w,bytes:d,sha256:h}=xn(v);if(!Gd(w)||a.has(w)||!Kn(d,0,32*1024*1024)||!Number.isInteger(d)||typeof h!="string"||!zE.test(h))throw new Error("Invalid publication resource");if(a.add(w),i+=d,i>CE)throw new Error("Publication exceeds package limit");return{path:w,bytes:d,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>Bb)throw new Error("Invalid publication icons");l=t.icons.map(v=>{let w=Vb(v);if(!w)throw new Error("Invalid publication icon");return w})}let r=l?.length??0,u=new Set,c=new Set,f=t.nodes.map(v=>{let w=xn(v),{id:d,title:h,aliases:g,asset:S,url:x,trailIcon:R}=w,E=OE.find(N=>N===w.kind);if(!pi(d)||u.has(d)||!Na(h,512)||!E)throw new Error("Invalid publication node");if(u.add(d),E==="document"||E==="drawing"){let N=Id(d);if(!a.has(N))throw new Error("Missing publication note resource");c.add(N)}if(S!==void 0&&(typeof S!="string"||!S.startsWith("assets/")||!a.has(S)))throw new Error("Missing publication asset");if(x!==void 0&&(E!=="url"||!Pd(x)))throw new Error("Invalid publication web link");if(R!==void 0&&!Kb(R,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Na(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:h,kind:E,...g===void 0?{}:{aliases:[...g]},...S===void 0?{}:{asset:S},...x===void 0?{}:{url:x},...R===void 0?{}:{trailIcon:R},...w.style===void 0?{}:{style:Ju(w.style,r)},...w.roleStyles===void 0?{}:{roleStyles:_E(w.roleStyles,r)},...w.properties===void 0?{}:{properties:PE(w.properties)}}});if(!u.has(t.entry)||[...a].some(v=>v.startsWith("notes/")&&!c.has(v))||t.fullText!==a.has(_d))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let v=t.pins;if(new Set(v).size!==v.length||!v.every(w=>typeof w=="string"&&u.has(w)))throw new Error("Invalid publication pins");p=v.slice()}let s=new Set,m=t.relations.map(v=>{let{source:w,target:d,relationType:h,direction:g,definition:S,role:x,style:R}=xn(v),E=kd.find(M=>M===x);if(typeof w!="string"||typeof d!="string"||w===d||!u.has(w)||!u.has(d)||!E||h!==1&&h!==2||g!==null&&g!==1&&g!==2&&g!==3||S!==void 0&&!Na(S,192))throw new Error("Invalid publication relationship");let N=`${w}/${d}/${E}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:w,target:d,role:E,relationType:h,direction:g,...S===void 0?{}:{definition:S},...R===void 0?{}:{style:UE(R)}}}),y=Fu(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...y&&{canvasDefaults:y},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:kE(t.appearance)}}}T();var Ql={key:"F4"};T();T();T();function Zb(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}T();var mt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},$u={min:.1,max:4,step:.05};function Ho(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var ec={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Ho(96,40,240),verticalSpacing:Ho(24,12,80),parentColumns:Ho(2,1,3),initialGenerations:Ho(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=$u.min&&e<=$u.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=$u.min&&e<=$u.max},maximumDepth:Ho(10,1,mt.depth),maximumOccurrences:Ho(500,16,mt.occurrences)}};function tc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:ec.fields[a].defaultValue;for(let[a,o]of Object.entries(ec.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var Bd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},nc={version:0,unavailable:!0};function Ra(e){return typeof e=="string"&&e.length>0&&e.length<=mt.occurrenceCharacters}function Zi(e){if(e==null)return{...Bd,expanded:[],collapsed:[],sides:{}};let t=Zb(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return nc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ra(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(Ra)||!o.every(Ra)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return nc;let r=[];for(let[c,f]of Object.entries(l)){let p=f;if(!Ra(c)||p!==-1&&p!==1)return nc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:En(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=mt.stateCharacters?u:nc}function Fb(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function Zl(e){let t=Zi(e);return t.version===1?t:null}function ic(e,t,n){let i=Zi(e),a=i.version===1&&i.scope===t.layoutRoot?i:Zi(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return Zl({...a,expanded:[...o],collapsed:[...l]})}T();var z={licenses:"Runtime licenses",about:"About K-Plex and runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find a thought",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"};T();var ac=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function Jb(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}T();T();T();T();T();var Vd={min:8,max:20,step:1,default:12};function Yd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(Vd.min,Math.min(Vd.max,e)):Vd.default}var Fl=(e,t,n)=>Math.max(t,Math.min(n,e));function Wb(e){return Math.max(5,(e.gateRadius??5)*1.05)}function qd(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function Jl(e,t,n=12.4){return(t?Fl(e*.72,13,24):Fl(e*.62,10,16))*Fl(Number.isFinite(n)?n:12.4,8,28)/12.4}function IE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function $b(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function ev(e,t){return e.reduce((n,i)=>Math.max(n,32+IE(i,t)),0)}function tv(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,qd(a,i)),f=i?180:112,s=Math.max(f,o??(i?370:286)),m=i?Jl(t,!0,n.baseFontSize)*.55:t*u*.29,y=Fl(70+c*Math.max(4.8,m),f,s),v=(i?16:8)+2*Math.max(0,l),w=Jl(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(w*1.6+v)),h=Math.ceil(Math.max(t*u,w)*2.4+w*.4+v),g=n.wrapNodeLabels?Math.max(d,h):d,S=Yd(n.propertyFontSize),x=ev(r,S);return{width:r.length?Fl(Math.max(y,x),f,s):y,height:g+$b(r,S)}}function nv(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=Yd(i.propertyFontSize),r=ev(o,l),u=Jl(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+$b(o,l))}}var Ye=K(ye(),1);function lv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Ye.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function rv({label:e,maximum:t,center:n}){let i=qd(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Ye.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function uv({wrap:e,children:t}){return(0,Ye.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function cv({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Ye.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Ye.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Ye.jsx)("span",{className:"kplex-gate-count",children:a})]})}function sv(e){return(0,Ye.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function fv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Ye.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Ye.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Ye.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function jd(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function dv({prefix:e="kplex"}){return(0,Ye.jsxs)("defs",{children:[(0,Ye.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Ye.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Ye.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}T();var hv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function Wl(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function mv(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=Wl(e,n);return i.length===1&&i[0]===t?n:void 0}function Xd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function _o(e){return typeof e=="string"&&e.trim().length>0}function VE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(hv,e)!==void 0}function pv(e){let t=Xd(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return YE(Qb(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!_o(t.title)||!_o(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let c=Xd(u);if(!c||!_o(c.id)||!_o(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=En(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let c=Xd(u);if(!c||!_o(c.source)||!_o(c.target)||!VE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=hv[c.role],m=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,s,f.id])),Kd(l,f,p,c.role,1,1,c.label),Kd(l,p,f,s,1,2,c.label)}return{title:t.title,entry:o,read:gv(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function Kd(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function YE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=En(l.id),u=l.id.slice(0,8),c=a.get(u);c?c.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)Kd(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:En(e.entry),read:gv(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function gv(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}T();var Ma=K(tt(),1);T();function yv(e,t){let n=Zu.map(i=>{let a=t?.get(i)??e.get(i);return[i,a==="1"?!0:a==="0"?!1:a]});return Fu(Object.fromEntries(n))??{}}function Qd(e,t){for(let n of Zu){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function Zd(e,t){return Zu.every(n=>e?.[n]===t?.[n])}var qE=80;function lc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-qE)}function Jd(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function $l(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:Wl(e,i),o=a.length===1?a[0]:void 0,l=Jd(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=yv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function jE(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),Qd(i,n),`#${i}`}function bv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=$l(n,a);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:Jd(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=$l(n,a);return r?void 0:l}catch{return}}function Uo(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=jE(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),Qd(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function vv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:$l(n,i)}catch{return}}function Fd(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function Sv(e,t,n){let i=(0,Ma.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ma.useState)(()=>{let y=t?$l(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},v=t&&a?Fd(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[y.location],index:0,addressProblem:y.addressProblem,browser:v,visits:[y.location]}}),r=o.entries[o.index],u=(0,Ma.useRef)(o.browser?.last??0);(0,Ma.useEffect)(()=>{if(!t||!a)return;let y=t.history,v=d=>{let{location:h,addressProblem:g}=$l(e,new URL(t.location.href)),S=Fd(d.state,a),x=S?{...S,last:Math.max(S.position,u.current)}:{position:0,last:0};u.current=x.last,y.replaceState({kplexPublication:a,...x},""),i.current(h.id),l(R=>({entries:[h],index:0,addressProblem:g,browser:x,visits:lc(R.visits,h)}))},w=Fd(y.state,a)??{position:0,last:0};return y.replaceState({kplexPublication:a,...w},""),t.addEventListener("popstate",v),()=>t.removeEventListener("popstate",v)},[t,e,a]);function c(y){let v={...y,canvas:{...r.canvas,...y.canvas}};if(!e.nodes.has(v.id)||!o.addressProblem&&r.id===v.id&&r.fragment===v.fragment&&Zd(r.canvas,v.canvas))return!1;if(i.current(v.id),t&&a&&o.browser){let d=o.browser.position+1,h={position:d,last:d};return t.history.pushState({kplexPublication:a,...h},"",Uo(new URL(t.location.href),v)),u.current=d,l({entries:[v],index:0,browser:h,visits:lc(o.visits,v)}),!0}let w=o.index+1;return l({entries:[...o.entries.slice(0,w),v],index:w,visits:lc(o.visits,v)}),!0}function f(y){let v={...r.canvas,...y};if(Zd(r.canvas,v))return;let w={...r,canvas:v};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",Uo(new URL(t.location.href),w));let d=[...o.entries];d[o.index]=w,l({...o,entries:d})}let p=o.browser?o.browser.position>0:o.index>0,s=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(y){if(y===-1?p:s)if(t&&o.browser)t.history.go(y);else{let v=o.index+y,w=o.entries[v];i.current(w.id),l({...o,index:v,addressProblem:void 0,visits:lc(o.visits,w)})}}return{attention:r,activate:c,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:s}}T();var Fi=K(tt(),1);T();var ko=K(tt(),1),xv=K(hr(),1);T();var XE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function KE(){}function QE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function ZE(e,t){let i=QE(e)?.closest(XE)??null;return!!(i&&t.contains(i))}function wv(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function FE(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function Ev({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return KE;let l=null,r=!1,u=!1,c=!1,f=o.visualViewport,p=(x,R)=>{let E=e.getBoundingClientRect(),N=FE(o),M=wv(x,N.left,N.width,E.width,n),O=wv(R,N.top,N.height,E.height,n);e.style.setProperty("--kplex-dialog-left",`${M}px`),e.style.setProperty("--kplex-dialog-top",`${O}px`),e.classList.add("is-positioned"),u=!0,i?.({left:M,top:O})},s=()=>{if(!u||c)return;let x=e.getBoundingClientRect();p(x.left,x.top)},m=()=>{a.removeEventListener("pointermove",v,!0),a.removeEventListener("pointerup",w,!0),a.removeEventListener("pointercancel",w,!0)},y=()=>{if(!l)return;let x=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(x)&&t.releasePointerCapture(x),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function v(x){let R=l;if(!R||x.pointerId!==R.pointerId)return;x.preventDefault(),x.stopPropagation();let E=x.clientX-R.startClientX,N=x.clientY-R.startClientY;if(!r){if(Math.hypot(E,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(R.startLeft+E,R.startTop+N)}function w(x){!l||x.pointerId!==l.pointerId||(x.preventDefault(),x.stopPropagation(),y())}let d=x=>{l?.pointerId===x.pointerId&&y()},h=()=>{y()},g=x=>{if(c||l||x.button!==0||ZE(x.target,t))return;let R=e.getBoundingClientRect();l={pointerId:x.pointerId,startClientX:x.clientX,startClientY:x.clientY,startLeft:R.left,startTop:R.top},a.addEventListener("pointermove",v,!0),a.addEventListener("pointerup",w,!0),a.addEventListener("pointercancel",w,!0);try{t.setPointerCapture(x.pointerId)}catch{}x.preventDefault(),x.stopPropagation()},S=()=>{c||(c=!0,y(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),o.removeEventListener("blur",h),o.removeEventListener("resize",s),o.removeEventListener("pagehide",S),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),o.addEventListener("blur",h),o.addEventListener("resize",s),o.addEventListener("pagehide",S),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),S}function JE(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function rc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,m]=(0,ko.useState)({}),y=(0,ko.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});y.current={insideRoots:o,onDismiss:l,handleEscape:u};let v=t.current,w=v?.ownerDocument??null,d=v?.closest("[data-floating-layer-boundary]")??null,h=e&&w?d??c(w):null,g=n?.x,S=n?.y;return(0,ko.useLayoutEffect)(()=>{if(!e)return;let x=t.current;if(!x)return;let R=x.ownerDocument,E=R.defaultView;if(!E)return;let N=!1,M=null,O=()=>{if(N)return;let P=t.current;if(!P||P.ownerDocument!==R)return;let C=P.getBoundingClientRect();if(r&&(!P.getClientRects().length||!C.width||!C.height)){y.current.onDismiss("anchor-hidden");return}let G=E.visualViewport,H=d?.getBoundingClientRect(),X=H&&d?H.left+d.clientLeft-d.scrollLeft:0,ie=H&&d?H.top+d.clientTop-d.scrollTop:0,J=Math.max(G?.offsetLeft??0,H?.left??0),k=Math.max(G?.offsetTop??0,H?.top??0),Z=Math.min((G?.offsetLeft??0)+Math.min(E.innerWidth,G?.width??E.innerWidth),H?.right??1/0),fe=Math.min((G?.offsetTop??0)+Math.min(E.innerHeight,G?.height??E.innerHeight),H?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(Z-J)/2)),nn=g??C.left,ze=S??C.top,Vt=S??C.bottom,ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-J-he*2)),Zn=Math.max(J+he,Math.min(M?.left??nn,Z-ke-he)),lt=fe-Vt-f.anchorGap-he,Ot=ze-k-f.anchorGap-he,St=lt<f.minimumMaxHeight&&Ot>lt?ze-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Ot):Vt+f.anchorGap,Lt=Math.max(k+he,Math.min(M?.top??St,fe-Math.min(f.minimumMaxHeight,Math.max(0,fe-k-he*2))-he));m({position:d?"absolute":"fixed",left:Zn-X,top:Lt-ie,width:ke,maxHeight:Math.max(0,fe-Lt-he)})},D=P=>{JE(P,y.current.insideRoots())||y.current.onDismiss("outside-pointer")},I=P=>{if(P.key!=="Escape"||y.current.handleEscape?.(P)===!1)return;P.preventDefault(),P.stopPropagation(),y.current.onDismiss("escape");let C=t.current;C?.ownerDocument===R&&C.isConnected&&C.focus({preventScroll:!0})},B=E.ResizeObserver,j=B?new B(O):null;j?.observe(x),d&&j?.observe(d),i.current&&j?.observe(i.current),E.addEventListener("resize",O),E.visualViewport?.addEventListener("resize",O),E.visualViewport?.addEventListener("scroll",O),R.addEventListener("scroll",O,!0),R.addEventListener("pointerdown",D,!0),R.addEventListener("keydown",I,!0);let q=i.current,le=a?.current,ne=q&&le?Ev({modalEl:q,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:P=>{M=P,O()}}):void 0,de=()=>{N||(N=!0,ne?.(),j?.disconnect(),E.removeEventListener("resize",O),E.visualViewport?.removeEventListener("resize",O),E.visualViewport?.removeEventListener("scroll",O),R.removeEventListener("scroll",O,!0),R.removeEventListener("pointerdown",D,!0),R.removeEventListener("keydown",I,!0),E.removeEventListener("pagehide",de))};return E.addEventListener("pagehide",de),O(),de},[e,r,t,g,S,i,a,w,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),h?(0,xv.createPortal)(p(s),h):null}var Tn=K(ye(),1),WE={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function Tv({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,Fi.useRef)(e),l=(0,Fi.useRef)(null),r=(0,Fi.useRef)(!0),[u,c]=(0,Fi.useState)();o.current=e,(0,Fi.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(s),r.current&&(a(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[m,y]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),v=s.key==="Home"?m:s.key==="End"||s.target===m?y:m;s.preventDefault(),v?.focus()}return(0,Tn.jsx)(rc,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:WE,children:s=>(0,Tn.jsx)("div",{ref:l,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":z.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":z.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:z.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:z.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:z.ambiguousAddress})]})})})}T();var Ji=K(tt(),1);var Nn=K(ye(),1),$E={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180};function Nv({anchor:e,point:t,choices:n,onDismiss:i}){let a=(0,Ji.useRef)(e),o=(0,Ji.useRef)(null),l=(0,Ji.useRef)(null),[r,u]=(0,Ji.useState)(null);a.current=e;function c(){let m=l.current;(m?.querySelector("[aria-checked=true]")??m?.querySelector("button"))?.focus()}(0,Ji.useLayoutEffect)(()=>{r&&c()},[r]);function f(){u(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function p(m){if(m.key==="Tab"){i();return}let y=m.target,v=y.closest("[role=menu]");if(v){if(m.key==="ArrowRight"&&y.getAttribute("aria-haspopup")==="menu")r?c():y.click();else if(m.key==="ArrowLeft"&&v!==o.current)f();else if(["ArrowDown","ArrowUp","Home","End"].includes(m.key)){let w=Array.from(v.querySelectorAll("button")).filter(g=>g.closest("[role=menu]")===v),d=w.indexOf(y),h=m.key==="Home"?0:m.key==="End"?w.length-1:(d+(m.key==="ArrowDown"?1:-1)+w.length)%w.length;w[h]?.focus()}else return;m.preventDefault(),m.stopPropagation()}}function s({label:m,kind:y,checked:v,select:w},d,h=!1){return(0,Nn.jsxs)("button",{type:"button",role:y,"aria-checked":v,autoFocus:h&&d===0,onClick:()=>{w(),i(),e.focus({preventScroll:!0})},children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:v?"✓":""}),m]},m)}return(0,Nn.jsx)(rc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:$E,handleEscape:m=>r?(m.preventDefault(),m.stopPropagation(),f(),!1):!0,children:m=>(0,Nn.jsx)("div",{ref:o,style:m,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":z.graphOptions,onKeyDown:p,children:n.map((y,v)=>"choices"in y?(0,Nn.jsxs)("div",{role:"none",children:[(0,Nn.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":r===y.label,onClick:()=>r===y.label?f():u(y.label),children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),y.label,(0,Nn.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),r===y.label&&(0,Nn.jsx)("div",{ref:l,role:"menu","aria-label":y.label,children:y.choices.map((w,d)=>s(w,d))})]},y.label):s(y,v,!0))})})}T();var Rv=K(tt(),1),Mv=K(ye(),1);function Wd({icon:e,size:t,className:n}){function i(a,o){return(0,Rv.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Mv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}T();var uc=K(tt(),1);var Qe=K(ye(),1);function Av(){let e=(0,uc.useRef)(null),t=(0,uc.useId)(),n=typeof _>"u"?[]:_;return n.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":z.about,"aria-haspopup":"dialog",onClick:()=>e.current?.showModal(),children:(0,Qe.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Qe.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Qe.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Qe.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Qe.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),(0,Qe.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:i=>i.stopPropagation(),children:[(0,Qe.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,Qe.jsx)("h2",{id:t,children:z.licenses}),(0,Qe.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:z.close})]}),n.map(([i,a])=>(0,Qe.jsxs)("section",{children:[(0,Qe.jsx)("h3",{children:i}),(0,Qe.jsx)("pre",{children:a})]},i))]})]}):null}T();var tr=K(tt(),1);T();T();function Cv(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,c)=>u+(c-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var cc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Cv(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};T();function Ov(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(o,l),f=Math.min(24/a,c*.08),p=c?-l/c:0,s=c?o/c:0;return[0,.35,.65,.85,1].map(m=>{let y=m===0||m===1?0:Math.sin(Math.PI*m),v=o*(1-m)+p*f*y,w=l*(1-m)+s*f*y,d=1+.055*y;return i?.push({offset:m,x:v,y:w,scaleX:(r+(1-r)*m)*d,scaleY:(u+(1-u)*m)*d,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${v}px, ${w}px) scale(${(r+(1-r)*m)*d}, ${(u+(1-u)*m)*d})`,opacity:1}})}T();var er=K(tt(),1),sc=K(ye(),1),Aa="[data-publication-strip-scroll]";function Lv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,er.useRef)(null),r=(0,er.useRef)(i);return(0,er.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,sc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,sc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,sc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var fc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function zv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Aa),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Aa),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function ex(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let c of a.get(l.id)??[]){if(!n.has(c))continue;let f=Math.hypot(l.rect.x-c.rect.x,l.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function Dv(e,t){let n=(0,tr.useRef)(new cc).current,i=(0,tr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,tr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:zv(u)}}}function l(r,u){let c=e.current,f=t.current,p=i.current;if(a(),!c||!f||p?.id!==r)return;let s=zv(c),{pairs:m,remaining:y}=ex(p.cards,s);for(let d of s){let h=m.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,Ov(h,d.rect,u),fc):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],fc)}let v=f.getBoundingClientRect();for(let d of y){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-v.left}px`,h.style.top=`${d.rect.top-v.top}px`;let g=d.rect.width/parseFloat(h.style.width),S=d.rect.height/parseFloat(h.style.height);f.append(h);let x=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${S})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${S*.95})`}],{...fc,duration:200});x?x.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let w=c.querySelector(".kplex-links");w&&n.play(w,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],fc)}return{capture:o,play:l,cancel:a}}T();var At=K(tt(),1);T();var nr=K(ye(),1);function Hv({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,nr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,nr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,nr.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}T();var dc=K(tt(),1);T();var Le=K(tt(),1),Uv=K(hr(),1),vt=K(ye(),1);function tx(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function _v(e,t){let n=tx(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,vt.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,vt.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,vt.jsx)(vt.Fragment,{children:i})}function kv({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:m=!1,disabled:y=!1,floating:v=!1,floatingMode:w="app",portalSelector:d,appTopbarSelector:h,maxFloatingHeight:g=440,minFloatingWidth:S=0,resultsClassName:x="",matchingQuery:R,resultsOwnerId:E,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:M,onEnterWithoutResult:O,onCtrlEnter:D,openResultsOnFocus:I=!0,onFocusChange:B,onDismiss:j,focusRequest:q,inputTitle:le,inputKeyShortcuts:ne,className:de="",highlightMatches:P=!0,closeOnChoose:C=!0,closeOnBlur:G=!1,combobox:H=!1,advanceOnChoose:X=!1,disclosure:ie}){let J=(0,Le.useId)(),[k,Z]=(0,Le.useState)(!1),[fe,he]=(0,Le.useState)(!1),[nn,ze]=(0,Le.useState)(!1),[Vt,ke]=(0,Le.useState)(!1),[Zn,lt]=(0,Le.useState)(0),[Ot,St]=(0,Le.useState)(null),Lt=(0,Le.useRef)(null),Fn=(0,Le.useRef)(null),Mn=(0,Le.useRef)(null),An=k&&!nn&&(Vt||I||fe&&e.trim().length>0),ve=(0,Le.useMemo)(()=>An?i?.(e)??n??[]:[],[An,i,n,e]),et=ve.length?Math.max(0,Math.min(ve.length-1,Zn)):0,wt=Lt.current?.ownerDocument??null,De=wt?.defaultView??null,Cn=v?w==="viewport"?wt?.body??null:d?Lt.current?.closest(d)??null:null:null,Yt=k&&ve.length>0&&(!v||!!(Cn&&Ot)),mn=()=>{ke(!1),ze(!0),lt(0),j?.()},qt=()=>{ie&&(ie.onOpen(),Mn.current?.focus({preventScroll:!0}),Z(!0),ke(!0),ze(!1),lt(0))},Oa=U=>{ke(!1),Z(!U),he(!1),ze(!U),lt(0);let ae=Mn.current;U&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),B?.(!1)},yi=()=>Oa(!0),pn=U=>{if(a(U),C){Oa(!H);return}X&&ve.length>0&&lt(ae=>(Math.max(0,Math.min(ve.length-1,ae))+1)%ve.length)};(0,Le.useEffect)(()=>{lt(0)},[e]);let Pe=(0,Le.useCallback)(()=>{let U=Mn.current;U&&(Z(!0),he(!1),ze(!1),U.focus({preventScroll:!0}),B?.(!0))},[B]);(0,Le.useEffect)(()=>{m&&Pe()},[m,Pe]),(0,Le.useEffect)(()=>{q&&Pe()},[q,Pe]),(0,Le.useEffect)(()=>{let U=Lt.current;if(!U)return;let ae=()=>mn();return U.addEventListener("kplex-dismiss-suggestions",ae),()=>U.removeEventListener("kplex-dismiss-suggestions",ae)},[j]),(0,Le.useEffect)(()=>{if(!k||!wt||!De)return;let U=Lt.current;if(!U)return;let ae=zt=>{let Dt=zt.target;Dt&&(U.contains(Dt)||Fn.current?.contains(Dt))||yi()},qe=()=>wt.removeEventListener("pointerdown",ae,!0);return wt.addEventListener("pointerdown",ae,!0),De.addEventListener("pagehide",qe,{once:!0}),()=>{qe(),De.removeEventListener("pagehide",qe)}},[k,wt,De]),(0,Le.useLayoutEffect)(()=>{if(!v||!k||!ve.length){St(null);return}let U=Lt.current;if(!U||!De)return;let ae=De.visualViewport,qe=()=>{let Wn=U.getBoundingClientRect(),Ht=8,Da=6;if(w==="viewport"){let On=ae?.offsetLeft??0,Bo=ae?.offsetTop??0,Vo=ae?.width??De.innerWidth,Yo=Bo+(ae?.height??De.innerHeight),qo=Math.min(Math.max(Wn.width,S),Math.max(0,Vo-Ht*2)),rr=Math.max(On+Ht,Math.min(Wn.left,On+Vo-Ht-qo)),jo=Math.max(Wn.bottom+Da,Bo+Ht),ph=Math.min(Wn.top-Da,Yo-Ht),Nc=Math.max(0,Yo-Ht-jo),gh=Math.max(0,ph-Bo-Ht),yh=Nc>=Math.min(180,g)||Nc>=gh,X0=Math.max(0,Math.min(g,yh?Nc:gh)),Rc={position:"fixed",left:rr,width:qo,maxHeight:X0,zIndex:1e4};yh?Rc.top=jo:Rc.bottom=De.innerHeight-ph,St(Rc);return}let Ha=d?U.closest(d)??null:null,lr=h?U.closest(h)??null:null;if(!Ha||!lr)return;let b=Ha.getBoundingClientRect(),L=lr.getBoundingClientRect(),Y=Math.max(0,b.width-Ht*2),$=Math.min(780,Math.max(Wn.width,Math.min(620,Y)),Y),ce=Ht,F=Math.max(ce,b.width-Ht-$),He=Math.min(F,Math.max(ce,Wn.left-b.left)),pt=Math.max(0,L.bottom-b.top+Da),Et=Math.max(0,Math.min(g,b.height-pt-Ht));St({left:He,top:pt,width:$,maxHeight:Et})};qe();let zt=De.ResizeObserver,Dt=zt?new zt(qe):null,$i=w==="app"&&d?U.closest(d):null,or=w==="app"&&h?U.closest(h):null;$i&&Dt?.observe($i),or&&Dt?.observe(or),Dt?.observe(U);let za=()=>{Dt?.disconnect(),De.removeEventListener("resize",qe),De.removeEventListener("scroll",qe,!0),ae?.removeEventListener("resize",qe),ae?.removeEventListener("scroll",qe)};return De.addEventListener("resize",qe),De.addEventListener("scroll",qe,!0),ae?.addEventListener("resize",qe),ae?.addEventListener("scroll",qe),De.addEventListener("pagehide",za,{once:!0}),()=>{za(),De.removeEventListener("pagehide",za)}},[h,v,w,k,ve.length,g,S,wt,De,d]),(0,Le.useEffect)(()=>{let U=Fn.current;!U||!ve.length||U.querySelector(`[data-kplex-fuzzy-index="${et}"]`)?.scrollIntoView({block:"nearest"})},[et,ve.length]);let Jn=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){mn(),Z(!1),B?.(!1);return}if(U.key==="Escape"){ve.length&&(U.preventDefault(),U.stopPropagation(),mn());return}if(H&&ie&&U.key==="ArrowDown"&&!ve.length){U.preventDefault(),qt();return}if(U.key==="ArrowDown"&&ve.length){U.preventDefault(),lt(ae=>Math.min(ve.length-1,ae+1));return}if(U.key==="ArrowUp"&&ve.length){U.preventDefault(),lt(ae=>Math.max(0,ae-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&ve.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let ae=ve[et];ae&&pn(ae);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&D){U.preventDefault(),U.stopPropagation(),D();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!D)&&U.key==="Enter"){U.preventDefault();let ae=ve[et];ae?pn(ae):O?.()}}},La=k&&ve.length>0?(0,vt.jsx)("div",{ref:Fn,id:H?J:void 0,role:H?"listbox":void 0,"aria-labelledby":H?p:void 0,"aria-label":H&&!p?c:void 0,"data-fuzzy-owner":E,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${v?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${x?` ${x}`:""}`,style:v?Ot??void 0:void 0,children:ve.map((U,ae)=>{let qe=l(U),zt=r?.(U),Dt=P?R??e:"";return(0,vt.jsxs)("button",{id:H?`${J}-option-${ae}`:void 0,role:H?"option":void 0,"aria-selected":H?ae===et:void 0,tabIndex:H?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${M?" has-prefix":""}${ae===et?" is-selected":""}`,"aria-label":zt?`${qe}
767
- ${zt}`:qe,onMouseDown:$i=>$i.preventDefault(),onMouseEnter:()=>lt(ae),onClick:()=>pn(U),children:[M?(0,vt.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:M(U)}):null,(0,vt.jsx)("span",{children:_v(qe,Dt)}),zt?(0,vt.jsx)("small",{children:_v(zt,Dt)}):null]},o(U))})}):null,Tc=v&&Cn&&Ot&&La?(0,Uv.createPortal)(La,Cn):v?null:La;return(0,vt.jsxs)("div",{ref:Lt,className:`kplex-search-shell kplex-fuzzy-search${de?` ${de}`:""}`,children:[s?(0,vt.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,vt.jsx)("input",{ref:Mn,type:"text",role:H?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:y,onChange:U=>{ke(!1),he(!0),ze(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),he(!1),ze(!1),B?.(!0)},onBlur:G?yi:void 0,onKeyDown:Jn,placeholder:u,"aria-label":p?void 0:c,title:le,"aria-keyshortcuts":ne,"aria-labelledby":p,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-autocomplete":H?"list":void 0,"aria-controls":H&&Yt?J:void 0,"aria-activedescendant":H&&Yt?`${J}-option-${et}`:void 0,autoComplete:"off"}),ie?(0,vt.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:H?-1:void 0,disabled:y,"aria-label":ie.label,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-controls":H&&Yt?J:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(k&&Vt&&!nn){mn();return}qt()},children:ie.icon}):null,Tc]})}var Iv=K(ye(),1);function Pv({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:m}){let[y,v]=(0,dc.useState)(""),w=(0,dc.useCallback)(d=>e.search(d,24),[e,o]);return(0,Iv.jsx)(kv,{value:y,onChange:v,getResults:w,onChoose:d=>{a(d.node.id),p&&v("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:m,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}T();T();var nx=1e5,ix=8*1024*1024,Gv=1e6,ax=/[\p{L}\p{N}]+/gu,ox=/^[\p{L}\p{N}]{1,128}$/u;function Bv(e){return[...new Set(e.normalize("NFC").toLowerCase().match(ax))].filter(t=>t.length<=128)}function lx(e,t){if(!Array.isArray(e)||e.length>Wu)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!pi(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>nx)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>ix)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function Vv(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>Gv)throw new Error("Invalid publication search index");let n=lx(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!ox.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=c.length,o>Gv)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:l}}function Ca(e){return e.trim().normalize("NFC").toLowerCase()}function Yv(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=Vv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function rx(e,t){let n=Math.max(0,Ca(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function qv(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Ca(o.name),r=o.aliases.map(Ca),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Ca);for(let c of[l,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Ca(o.slice(0,128));if(!r)return[];let u=Bv(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:m,properties:y})=>{let v=t?.positions.get(p.id),w=s===r?1:m.includes(r)?2:s.startsWith(r)?3:m.some(d=>d.startsWith(r))?4:s.includes(r)?5:m.some(d=>d.includes(r))||y.some(d=>d.includes(r))?6:v!==void 0&&f?.every(d=>d.has(v))?7:0;return w?[{score:w,node:p,position:v,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,l).map(({score:p,node:s,position:m,title:y})=>{let v=p===7&&m!==void 0?t?.rows[m]?.text:void 0,w=v&&c?rx(v,c):n.get(y).size>1?s.id:s.aliases.find(d=>Ca(d).includes(r))??"";return{node:s,label:s.name,detail:w}})}},address(o){let l=Ca(o),r=Wl(e,l);return r.length?r:[...n.get(l)??[]]}}}var We=K(ye(),1);function jv({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,At.useRef)(null),l=(0,At.useId)(),[r,u]=(0,At.useState)(""),[c,f]=(0,At.useState)([]),[p,s]=(0,At.useState)(!1),[m,y]=(0,At.useState)(!1),[v,w]=(0,At.useState)(null),[d,h]=(0,At.useState)(!1),g=(0,At.useMemo)(()=>qv(e,m?v:null),[e,m,v]);(0,At.useEffect)(()=>{let x=o.current?.ownerDocument.defaultView;if(!m||!x||v)return;let R=new x.AbortController,E=R.signal;return h(!1),t.text(_d,E).then(N=>{E.aborted||w(Yv(JSON.parse(N),e))}).catch(()=>{E.aborted||h(!0)}),()=>R.abort()},[m,e,t,v]);function S(x){x.preventDefault();let R=vv(r.trim(),n(),e),E=R?R.matches:g.address(r);if(E.length!==1){f(E),s(!E.length);return}f([]),s(!1),a(R?.location??{id:E[0]})}return(0,We.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,We.jsx)(Pv,{graph:g.graph,revision:v&&m?1:0,onActivate:x=>a({id:x}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:z.find,ariaLabel:z.find,focusRequest:i,inputTitle:`${z.find} (${Ql.key})`,inputKeyShortcuts:Ql.key}),e.manifest?.fullText&&(0,We.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,We.jsx)("button",{type:"button","aria-pressed":m,onClick:()=>y(x=>!x),children:z.fullText}),d&&m?(0,We.jsx)("span",{role:"status",children:z.searchUnavailable}):m&&!v?(0,We.jsx)("span",{role:"status",children:z.searchLoading}):null]}),(0,We.jsxs)("form",{className:"kplex-publication-address",onSubmit:S,children:[(0,We.jsx)(Hv,{label:z.address,layout:"inline",controlId:l,actions:(0,We.jsx)("button",{type:"submit",children:z.open}),children:(0,We.jsx)("input",{id:l,type:"text",autoComplete:"off",maxLength:512,value:r,onChange:x=>{u(x.currentTarget.value),f([]),s(!1)}})}),p&&(0,We.jsx)("span",{role:"status",children:z.nodeUnavailable}),c.length>1&&(0,We.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,We.jsx)("p",{children:z.chooseNote}),(0,We.jsx)("ul",{children:c.slice(0,24).map(x=>(0,We.jsx)("li",{children:(0,We.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:x})},children:[e.nodes.get(x)?.name," · ",x]})},x))}),c.length>24&&(0,We.jsx)("p",{children:z.chooseAddress})]})]})]})}T();var Ct=K(tt(),1);T();var ux="https://api.github.com",cx="https://github.com",sx=/^[a-z\d][a-z\d-]{0,38}$/i,fx=/^[a-z\d_.-]{1,100}$/i;function Xv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function Kv(e){if(!Pd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...c]=o;if(!l||!r||!sx.test(l)||!fx.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${ux}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let m=s.split("...");if(m.length===2&&m.every(Xv))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let m=c.slice(1).join("/");if(Xv(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function $d(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function eh(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function Qv(e,t,n){let i=$d(n);if(!t.comparison)return{title:eh(i.title??i.name??i.full_name,240)??t.caption,description:eh(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=$d(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=eh($d(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${cx}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}T();var hc="http://www.w3.org/1999/xhtml",Po="http://www.w3.org/2000/svg",dx="http://www.w3.org/1999/xlink",Zv="http://www.w3.org/XML/1998/namespace",hx=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),mx=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),px=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),gx=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),yx=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),Fv=/^[-a-z0-9_]{1,96}$/i,bx=/^[\d\s+.,%()a-z-]+$/i,vx=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,Sx=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,wx=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,Ex=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,Jv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,Wv=4*1024*1024;function mc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function xx(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function Tx(e,t=""){if(!pi(e)||t&&!mc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function $v(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!pi(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!mc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=Tx(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return mc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return e0(e,t)??(t.allowExternalLinks===!1?null:xx(e))}function e0(e,t){let n=e.slice(2);return!Ex.test(e)||!Gd(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Nx(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function t0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function n0(e,t,n,i){let a=e0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function Rx(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function Mx(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&mc(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&t0(t,$v(e.getAttribute("href")??"",n)),i==="figure"&&Rx(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?Jv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&n0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&Fv.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var Ax=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,Cx=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Ox=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,Lx=new Set(["text","tspan","textPath"]),zx={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},Dx=512*1024;function Hx(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Po||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Po||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>Dx)return{families:new Map,rules:[]};for(let u of r.matchAll(Ax)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(zx[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let m=new Map;for(let v of u[6].split(";")){let[w,d]=v.split(":").map(h=>h.trim().toLowerCase());d&&(w==="unicode-range"&&d.length<=8192&&Ox.test(d)||w==="font-weight"&&Cx.test(d)||w==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&m.set(w,d)}let y=[...m].map(([v,w])=>`${v}:${w};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${y}}`)}}return{families:n,rules:i}}function _x(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function Ux(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(Lx.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===Zv&&r==="preserve")){t.setAttributeNS(Zv,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===dx)){if(e.localName==="a")t0(t,$v(r,i));else if(e.localName==="image"&&Jv.test(r))n0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(yx.has(l)){let u=wx.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(l,`url(#${c})`):Sx.test(r)&&t.setAttribute(l,r)}else px.has(l)&&bx.test(r)?t.setAttribute(l,r):gx.has(l)&&vx.test(r)&&t.setAttribute(l,l==="font-family"?_x(r,a?.families):r)}}}function kx(e,t,n){if(n.idPrefix&&!Fv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,c=new Set,f=(p,s,m,y,v)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>Wv)throw new Error("Publication content too large");s.appendChild(a.createTextNode(d));return}if(p.nodeType!==1)return;let w=p;if(w.namespaceURI===Po&&mx.has(w.localName)){if(w.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;y=Nx(w,g),v=n.allowDrawingFonts?Hx(w,g):void 0}if(!y)return;let d=a.createElementNS(Po,w.localName);Ux(w,d,y,n,v);let h=d.getAttribute("id");if(h&&c.has(h)?d.removeAttribute("id"):h&&c.add(h),s.appendChild(d),w.localName==="svg"&&v?.rules.length){let g=a.createElementNS(Po,"defs"),S=a.createElementNS(Po,"style");S.textContent=v.rules.join(`
768
- `),g.appendChild(S),d.appendChild(g)}for(let g of Array.from(w.childNodes))f(g,d,m+1,y,v)}else if(!y&&w.namespaceURI===hc&&hx.has(w.localName)){if(n.drawingMode&&w.localName==="figure"&&w.getAttribute("data-publication-drawing")==="true"){let h=w.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=a.createElementNS(hc,w.localName);Mx(w,d,n),s.appendChild(d);for(let h of Array.from(w.childNodes))f(h,d,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function i0(e,t,n){if(e.length>Wv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${hc}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==hc||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return kx(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}T();var Io=K(tt(),1);T();async function a0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of l)u.set(f,c),c+=f.byteLength;return u}async function th(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await a0(e,t,n,i)))}async function YR(e,t,n){return th(e,t,Xb,n)}function o0(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...l.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=l.get(c),s=new URL(c,o);if(!p||s.origin!==o.origin||s.pathname!==`${o.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(c,p.bytes,f):await a0(e,s,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let y=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(y),w=>w.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:c=>l.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var $e=K(ye(),1);function l0({page:e}){let t=(0,Io.useRef)(null),[n,i]=(0,Io.useState)(),{repository:a,preview:o}=e;return(0,Io.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return th(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(Qv(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,$e.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,$e.jsx)("p",{role:"status",children:z.githubLoading}):n===null?(0,$e.jsx)("p",{role:"status",children:z.githubPreviewUnavailable}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("h3",{children:n.title}),n.description&&(0,$e.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,$e.jsxs)($e.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,$e.jsx)("p",{children:z.githubCommitCount(n.commits.length,n.total)}),(0,$e.jsx)("ol",{children:n.commits.map(l=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,$e.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,$e.jsx)("p",{children:z.githubNoCommits}))]}):(0,$e.jsx)("p",{children:z.githubOpenOriginal})})}var Re=K(ye(),1),r0="http://www.w3.org/2000/svg",Px={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function nh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function u0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,Ct.useRef)(null),p=(0,Ct.useRef)(null),s=(0,Ct.useRef)(!1),m=(0,Ct.useRef)(n.fragment);m.current=n.fragment;let[y,v]=(0,Ct.useState)(0),[w,d]=(0,Ct.useState)("loading"),[h,g]=(0,Ct.useState)(0),S=e.published.get(n.id),x=S.kind==="url"?S.url:void 0,R=(0,Ct.useMemo)(()=>Kv(x),[x]);(0,Ct.useEffect)(()=>{let N=f.current,M=N?.ownerDocument.defaultView;if(!N||!M||x)return;let O=new M.AbortController,D=O.signal,I=new Map;g(0),N.replaceChildren();let B=async q=>{let le=I.get(q);if(le)return le;let ne=Px[q.slice(q.lastIndexOf(".")+1)];if(!ne)throw new Error("Unsupported publication media");let de=await t.bytes(q,D);D.throwIfAborted();let P=M.URL.createObjectURL(new M.Blob([de],{type:ne}));return I.set(q,P),P},j=async()=>{if(S.kind!=="document"&&S.kind!=="drawing"){if(!S.asset){d("unavailable");return}let P=await B(S.asset);D.throwIfAborted();let C=N.ownerDocument.createElement("a");C.href=P,C.download=S.asset.slice(7),C.textContent=z.downloadAsset,N.replaceChildren(C),d("ready");return}let q=await t.text(Id(S.id),D),le=i0(q,N.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),ne=Array.from(le.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),de=new URL("./assets/",t.siteURL);for(let P of Array.from(le.querySelectorAll("a[href]"))){let C=new URL(P.getAttribute("href"),t.siteURL);if(C.origin!==de.origin||!C.pathname.startsWith(de.pathname))continue;let G=C.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==r0&&t.assetPaths.has(G)&&ne.push({element:P,path:G,download:!0})}D.throwIfAborted(),N.replaceChildren(le),d("ready"),nh(N,m.current)?.scrollIntoView({block:"start"});for(let{element:P,path:C,download:G}of ne)try{let H=await B(C);D.throwIfAborted(),P.setAttribute(G||P.namespaceURI===r0?"href":"src",H),G&&P.setAttribute("download",C.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(D.aborted)return;g(H=>H+1)}};return d("loading"),j().catch(()=>{D.aborted||d("failed")}),()=>{O.abort(),N.replaceChildren();for(let q of I.values())M.URL.revokeObjectURL(q)}},[y,S,e,t,a,o,x]),(0,Ct.useEffect)(()=>{f.current&&nh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Ct.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function E(N){if(N.defaultPrevented||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey)return;let M=N.target;if(!(M instanceof N.currentTarget.ownerDocument.defaultView.Element))return;let O=M.closest("a")?.getAttribute("href");if(!O)return;let D=bv(O,t.siteURL,e,n.id);if(!D)return;N.preventDefault();let I=O.startsWith("#")&&D.id===n.id&&f.current?nh(f.current,D.fragment):null;s.current=N.detail===0&&D.id!==n.id,r(I?{...D,fragment:I.getAttribute("data-publication-fragment")??void 0}:D)}return(0,Re.jsxs)("aside",{id:i,className:`kplex-publication-note${x?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Re.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Re.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:S.title}),(0,Re.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Re.jsx)("button",{type:"button",onClick:c,children:u==="bottom"?z.dockSidecarRight:z.dockSidecarBottom}),(0,Re.jsx)("button",{type:"button",onClick:l,"aria-label":z.closeSidecar,children:"×"})]})]}),x?(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Re.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:z.openWebsite}),!R&&(0,Re.jsx)("p",{children:z.webFrameHelp})]}),R?(0,Re.jsx)(l0,{page:R},x):(0,Re.jsx)("iframe",{className:"kplex-publication-web-frame",title:S.title,src:x,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},x)]}):(0,Re.jsxs)(Re.Fragment,{children:[w==="loading"&&(0,Re.jsx)("p",{role:"status",children:z.loadingNote}),w==="failed"&&(0,Re.jsxs)("div",{role:"alert",children:[(0,Re.jsx)("p",{children:z.noteUnavailable}),(0,Re.jsx)("button",{type:"button",onClick:()=>v(N=>N+1),children:z.retry})]}),w==="unavailable"&&(0,Re.jsx)("p",{children:z.noDocument}),(0,Re.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":w==="loading",onClick:E}),h>0&&(0,Re.jsxs)("div",{role:"status",children:[(0,Re.jsx)("p",{children:z.mediaUnavailable}),(0,Re.jsx)("button",{type:"button",onClick:()=>v(N=>N+1),children:z.retry})]})]})]})}T();var Qn=K(tt(),1);var gi=K(ye(),1),Ix=736,c0=20;function Gx({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Qn.useRef)(null),r=(0,Qn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(h){return u?h.clientX:h.clientY}function p(h){o(Math.max(i,Math.min(a,Math.round(h))))}function s(h,g){r.current?.pointer===g&&(r.current=null,h.hasPointerCapture(g)&&h.releasePointerCapture(g))}(0,Qn.useLayoutEffect)(()=>{let h=l.current;return()=>{h&&r.current&&s(h,r.current.pointer)}},[e]);function m(h){h.button!==0||r.current||(h.preventDefault(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId),r.current={pointer:h.pointerId,origin:f(h),size:n})}function y(h){let g=r.current;g?.pointer===h.pointerId&&p(g.size+c*(f(h)-g.origin))}function v(h){y(h),s(h.currentTarget,h.pointerId)}function w(h){s(h.currentTarget,h.pointerId)}function d(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let[g,S]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],x=h.shiftKey?1:10,R;if(h.key==="Home")R=i;else if(h.key==="End")R=a;else if(h.key===g)R=n+x;else if(h.key===S)R=n-x;else return;h.preventDefault(),p(R)}return(0,gi.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":z.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:y,onPointerUp:v,onPointerCancel:w,onLostPointerCapture:w,onKeyDown:d})}function s0({canvas:e,sidecarId:t,sidecarOpen:n,preferredDock:i,onDock:a,renderSidecar:o}){let l=(0,Qn.useRef)(null),[r,u]=(0,Qn.useState)({width:0,height:0}),[c,f]=(0,Qn.useState)({}),p=r.width>=Ix,s=p?i:"bottom",m=s!=="bottom",y=m?r.width:r.height,v=Math.max(0,y-(m?260:160)-c0),w=Math.min(v,m?240:120),d=c[s]??Math.round(y*(m?.34:.43)),h=Math.max(w,Math.min(v,d)),g=n?{"--kplex-publication-sidecar-size":`${h}px`,"--kplex-publication-divider-size":`${c0}px`}:void 0;(0,Qn.useLayoutEffect)(()=>{let R=l.current,E=R?.ownerDocument.defaultView;if(!R||!E)return;let N=R;function M(){let D=N.clientWidth,I=N.clientHeight;u(B=>B.width===D&&B.height===I?B:{width:D,height:I})}let O=new E.ResizeObserver(M);return O.observe(R),M(),()=>O.disconnect()},[]);function S(R){f(E=>E[s]===R?E:{...E,[s]:R})}function x(){a(s==="bottom"?"right":"bottom")}return(0,gi.jsxs)("div",{ref:l,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?s:void 0,style:g,children:[e,n?(0,gi.jsxs)(gi.Fragment,{children:[(0,gi.jsx)(Gx,{dock:s,sidecarId:t,size:h,minimum:w,maximum:v,onSize:S}),o(s,p?x:void 0)]}):(0,gi.jsx)("div",{id:t,hidden:!0})]})}T();T();function pc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function f0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function Bx(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function ih(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=f0(n),u=f0(i),c={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:Bx(e,c,f,t,.5)}}T();T();var ah=["parent","child","left","right","previous","next"];function d0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),c=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of ah)for(let m of t.neighbours(p,s)){let y=t.identity(m.page);if(u.has(y))continue;let v=f.get(y);(!v||v.relationType!==1)&&f.set(y,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}T();var Wi=(e,t,n)=>Math.max(t,Math.min(n,e));function g0(e){return e.horizontalCompactingFactor??e.compactingFactor}function Vx(e){let t=e.compactView?.82:1;return{horizontal:Wi(1.35/g0(e),.38,1.35)*t,vertical:Wi(1.35/e.compactingFactor,.38,1.35)*t,spacing:Wi(e.minLinkLength/18,.72,1.7)}}function h0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function bc(e){return Wi(e.siblingRelativeSize/100,.3,.85)}function m0(e,t){let n=Wi(g0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*Wi(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function gc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function yc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Rn(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function p0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let m=r.slice(s,s+i);u.push({nodes:m,height:Math.max(...m.map(y=>y.height)),reserve:Math.max(0,...m.map(y=>l.reserve(y)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,m)=>{let y;if(m===0){let h=Math.max(0,s.height-26)/2;y=n===-1?t-s.reserve-h:t+h}else n===1?y=c+f/2+p+o+s.height/2:y=c-f/2-o-s.reserve-s.height/2;let v=s.nodes.map(h=>l.width(h)),d=-(v.reduce((h,g)=>h+g,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((h,g)=>{let S=v[g];h.x=d+S/2,h.y=y,d+=S+a}),c=y,f=s.height,p=s.reserve}),r}function oh(e,t,n,i){let a=e;return y0(a,t,n,i),a}function y0(e,t,n,i){if(!e.length)return;let a=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+a[c-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let c of e)c.y+=u}function lh(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?Wi(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function ir(e,t,n,i,a,o,l){let c=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,s=a.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(v=>v.x-v.width/2-24)),f=Math.max(f,...t.map(v=>v.x+v.width/2+24)),p=Math.min(...t.map(v=>v.y-v.height/2)),s=Math.max(...t.map(v=>v.y+v.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),y=l!==void 0&&o!==void 0?l:i==="top"?(t.length?s+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:c,top:y,width:f-c,height:m,resizeEdge:i}}function ar(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,m=p+r,y=m-s,v=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-s),w=Math.min(y,Math.max(72,n),v);if(y<=w+.5)return null;let d=s,h=0;return o!==void 0&&a!==void 0?(d=o,h=Math.max(0,d-s)):a!==void 0?(d=a-w,h=Math.max(0,d-s)):(i==="bottom"?d=m-w:i==="center"&&(d=Wi(-w/2,s,m-w)),h=Math.max(0,d-s)),{key:e,left:u-l,top:d,width:c-u+l*2,height:w,contentTop:s,contentHeight:y,initialScrollTop:h}}function b0(e,t,n,i=!1){let a=Pe=>Math.max(0,...Pe.filter(Jn=>Jn.editor).map(Jn=>Jn.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=Vx(t),c=50*l*u,f=36*r*u,p=66*r*u,s=18*r*u,m=26,y=-(o.height/2+m/2+p),v=Math.max(42,52*r*u),w=o.height/2+m/2+p+v,d=p0(e.parents,y,-1,h0(t,"parent"),c,f,n),h=p0(e.children,w,1,h0(t,"child"),c,f,n),g=o.width/2,S=g+205*l*u,x=oh(e.leftFriends,-S,s,n),R=t.lateralArrangement==="left",E=oh(e.rightFriends,R?-S:S,s,n),N=R?[...x,...E]:x;R&&y0(N,-S,s,n);let M=!R&&E.length>0,O=M?Math.max(...E.map(Pe=>Pe.x+Pe.width/2)):g,D=M?285:205,I=M?190:120,B=Math.max(S+D*l*u,O+I*l*u),j=oh(e.siblings,B,s,n),q=h.length?Math.min(...h.map(Pe=>Pe.y-Pe.height/2)):o.height/2+p+v+12,le=Math.max(30,36*r*u),ne=Math.max(120,t.friendMaxHeight),de=Math.max(120,t.siblingMaxHeight),P=i?R?Math.min(ne/2,q-le):ne/2:q-le,C=P-ne,G=C,H=P,X=C,ie=P;lh(N,G,H,n,"midline"),R||lh(E,X,ie,n,"midline");let J=Math.max(58,72*r*u),k=t.alignSiblingsToFirstParent?d[0]:void 0,Z=i?de/2:k?k.y+k.height/2:P-J,fe=i?-de/2:Z-de;lh(j,fe,Z,n,i?"midline":"center");let he=Rn(d,n,!0),nn=Rn(j,n,!0),ze=d.length?gc(he,o.width/2+24):170,Vt=yc(he,o.width/2),ke=Math.max(gc(Rn(x,n,!0),115,-S),gc(Rn(E,n,!0),115,R?-S:S)),Zn=Math.max(yc(Rn(x,n,!0),0,-S),yc(Rn(E,n,!0),0,R?-S:S)),lt=gc(nn,110,B),Ot=yc(nn,0,B),St=R?Math.max(0,m0(t,ze*2)):m0(t,ze*2);d.length&&(S=ze+ke+St),S=Math.max(S,Vt+Zn+4);for(let Pe of x)Pe.x=-S;for(let Pe of E)Pe.x=R?-S:S;(d.length||M)&&(B=M?S+ke+lt+Math.max(0,St):ze+lt+St),B=Math.max(B,Vt+Ot+4,M?S+Zn+Ot+4:0);for(let Pe of j)Pe.x=B;let Lt=Rn(d,n),Fn=Rn(h,n),Mn=Rn(N,n),An=Rn(R?[]:E,n),ve=Rn(j,n),et={},wt=ar("parent",Lt,t.parentMaxHeight,"bottom"),De=ar("child",Fn,t.childMaxHeight,"top"),Cn=ar("left",Mn,t.friendMaxHeight,"top",H,G),Yt=ar("right",An,t.friendMaxHeight,"top",ie,X),mn=ar("sibling",ve,t.siblingMaxHeight,"top",Z,fe);wt&&(wt.left=-ze,wt.width=ze*2,et.parent=wt),De&&(et.child=De),Cn&&(et.left=Cn),Yt&&(et.right=Yt),mn&&(et.sibling=mn);let qt={},Oa=y+m/2+16,yi=w-m/2-16;qt.parent=ir("parent",Lt,t.parentMaxHeight,"top",{centerX:0,width:ze*2,fixedEdgeY:Oa}),qt.child=ir("child",Fn,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:yi}),qt.left=ir("left",Mn,t.friendMaxHeight,"top",{centerX:-S,width:ke*2,fixedEdgeY:H},H,G),R||(qt.right=ir("right",An,t.friendMaxHeight,"top",{centerX:S,width:ke*2,fixedEdgeY:ie},ie,X)),qt.sibling=ir("sibling",ve,t.siblingMaxHeight,"top",{centerX:B,width:lt*2,fixedEdgeY:Z},Z,fe);let pn=[o,...d,...h,...x,...E,...j];return t.flipEastWest&&Yx(pn,qt,et),{nodes:pn,zoneViewports:et,zoneAreas:qt}}function Yx(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}T();var v0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function vc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Sc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function S0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var qx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var jx={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function Xx(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var w0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:v0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let s=JSON.stringify([f.id,p]),m=i.get(s)??e.read.relations(f.id,p);return i.set(s,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(y=>({page:y.node,role:y.role,relationType:y.relationType,value:y}))},o=d0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=vc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:Sc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,m)=>{let y=JSON.stringify([p,s.page.id,m]),v=S0(p,vc(e.configuration));r.push({id:y,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...l?{ports:Sc(!0)}:{}}),p!=="sibling"&&u.push({id:y,kind:"semantic",source:"attention",target:y,sourceNode:t.id,targetNode:s.page.id,sourcePort:v.source,targetPort:v.target,relation:s.value})});c(o.parents,"parent"),c(o.children,"child"),c(o.leftFriends,"left"),c(o.rightFriends,"right"),c(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=ah.flatMap(m=>a(p,m));for(let m of r.filter(y=>y.role==="sibling")){let y=s.find(w=>w.page.id===m.nodeId),v=y?S0(y.role,l):null;y&&v&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:y.page.id,sourcePort:v.source,targetPort:v.target,relation:y.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!Xx(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??vc(a?.configuration)},l=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let m=l.get(s.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(m=>m.areaId===s),f=b0({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},o,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?bc(o):1),width:s=>s.expandedWidth,mini:(s,m)=>s[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let m=jx[s.key];return{id:s.key,labelKey:qx[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};T();var Kx={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function x0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function E0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function T0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(E0(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],l)){if(++u>16384||c>=4096)return!0;let m=i(s),y=e.get(m);if(!y||m===f)continue;let v=E0(f,m);if(r.has(v))continue;let w,d=1/0;for(let h of p)for(let g of y){if(++u>16384)return!0;let S=a(h,s.role),x=a(g,Kx[s.role]);if(!S||!x)continue;let R=(h.x-g.x)**2+(h.y-g.y)**2;R<d&&(w={source:h,target:g,sourcePort:S,targetPort:x},d=R)}w&&(r.add(v),c++,o(w,s))}}return!1}T();T();T();function Go(e){let t=e.length===1?"root":JSON.stringify(e);return Ra(t)?t:null}function N0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>mt.depth+1||!a.every(Ra)||a[0]!==t||a[a.length-1]!==i.nodeId||Go(a.map(En))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(En))}catch{}}return n}function R0(e){let t=tc(e.configuration),n=Zi(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=Zl(Fb(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,mt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),c=N0(e,i),f=new Set,p=new Map,s=new Set;for(let E of c.values())for(let N=1;N<=E.length;N++){let M=Go(E.slice(0,N));if(M&&(f.add(M),N<E.length)){let O=p.get(M)??new Set;O.add(E[N]),p.set(M,O),N>1&&s.add(E[N-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(E=>E!==i)),y=new Set,v=new Set,w=[],d=[],h=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,S=(E,N,M)=>{let D=(M?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(B=>e.read.relations(E,B,N)),I=new Map;for(let B of D)for(let j of B.items)I.has(j.node.id)||I.set(j.node.id,j);return{items:[...I.values()],truncated:D.some(B=>B.truncated),coverage:D.some(B=>B.coverage==="unavailable")?"unavailable":D.every(B=>B.coverage==="local")?"local":"cached"}},x=E=>{if(E===i||y.has(E))return!0;if(y.size>=mt.scopes)return!1;let N=[...m].filter(M=>!y.has(M)&&M!==E).length;return!m.has(E)&&y.size+N>=mt.scopes?!1:(y.add(E),!0)};for(;h.length&&w.length<l;){let E=h.shift(),N=E.lineage[E.lineage.length-1];if(v.has(E.id))continue;v.add(E.id);let M=e.read.node(N);if(!M||M.id!==N||!e.read.isCurrent())return null;let O=E.lineage.slice(0,-1).includes(N),D=p.has(E.id)?Math.max(t.maximumDepth,E.depth+1):t.maximumDepth,I=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},B=O?{items:[],truncated:!1,coverage:"cached"}:S(N,1,E.depth===0),j=!O&&E.depth<D&&!u.has(E.id)&&(r.has(E.id)||E.depth<o.initialGenerations),q=!O&&E.depth<D&&!(I.complete&&B.coverage!=="unavailable"&&B.items.length===0&&!B.truncated),le=j&&q&&x(N),ne=le?S(N,Math.min(e.maximum,128),E.depth===0):B,de=O||!j?"ready":I.pending?"loading":ne.coverage==="unavailable"?"unavailable":I.complete?"ready":I.prepared||ne.items.length>0?"partial":"unavailable";(j&&q&&!le||le&&ne.truncated||!O&&E.depth>=D&&(ne.items.length>0||!I.complete))&&(de="limited",g=!0);let P=[];if(le){let X=new Map(ne.items.map(k=>[k.node.id,k]));for(let k of p.get(E.id)??[])if(!X.has(k)){let fe=(E.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(N,k,he)?.items??[]).find(he=>he.node.id===k);fe&&e.read.isCurrent()&&X.set(k,fe)}if(E.depth===0&&I.complete&&!ne.truncated&&ne.coverage!=="unavailable"){let k=new Set([...X.keys()].map(Z=>Go([i,Z])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([Z])=>k.has(Z)))}}let ie=[...X.values()].map(k=>{let Z=[...E.lineage,k.node.id],fe=Go(Z);return fe?{id:fe,lineage:Z,relation:k}:(g=!0,de="limited",null)}).filter(k=>k!==null);ie.sort((k,Z)=>Number(f.has(Z.id))-Number(f.has(k.id))||e.read.compare(k.relation.node,Z.relation.node));let J=l-w.length-1-h.length;for(let k of ie){let Z=[...f].filter(fe=>fe!==E.id&&!v.has(fe)&&!h.some(he=>he.id===fe)&&!P.some(he=>he.id===fe)&&fe!==k.id).length;if(J<=0||!f.has(k.id)&&J<=Z){g=!0,de="limited";continue}if(E.depth===0&&k.relation.role==="child"&&o.sides[k.id]===void 0){let fe=[...X.keys()].flatMap(ze=>{let Vt=Go([i,ze]),ke=Vt?o.sides[Vt]:void 0;return ke===-1||ke===1?[ke]:[]}),he=fe.filter(ze=>ze===-1).length<fe.filter(ze=>ze===1).length?-1:1,nn=Zl({...o,sides:{...o.sides,[k.id]:he}});if(!nn){g=!0,de="limited";continue}o=nn}P.push(k),J--}P.sort((k,Z)=>e.read.compare(k.relation.node,Z.relation.node))}let C={parent:E.parent,depth:E.depth,side:E.side,expanded:le,canExpand:q,reference:O,status:de},G=E.depth===0||E.side===-1?"left":"right";w.push({id:E.id,nodeId:N,areaId:E.areaId,representation:"thought",role:E.relation?.role,relation:E.relation,branch:C,ports:E.depth===0?{top:"parent",bottom:"child",left:"left"}:E.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:G,count:new Set(ne.items.filter(X=>["left","right","previous","next"].includes(X.role)).map(X=>X.node.id)).size,complete:I.complete&&ne.coverage!=="unavailable"&&!ne.truncated&&!O},...!le&&!O&&E.parent?{groupingPartition:JSON.stringify([E.parent,E.side])}:{}}),E.parent&&E.relation&&d.push({id:E.id,kind:"semantic",source:E.parent,target:E.id,sourceNode:E.lineage[E.lineage.length-2],targetNode:N,relation:E.relation,sourcePort:E.relation.role==="child"?"bottom":E.relation.role==="parent"?"top":E.side===1?"right":"left",targetPort:E.parent==="root"&&E.relation.role==="parent"?"bottom":E.side===1?"left":"right"});let H=0;for(let X of P){let ie=X.relation.role==="parent"&&t.parentColumns>1&&H++%t.parentColumns===0?-1:1,J=E.depth?E.side:X.relation.role==="parent"?ie:X.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[X.id],k=E.depth?E.areaId:X.relation.role==="parent"?"parent":X.relation.role==="child"?J===-1?"child-left":"child-right":"left";h.push({...X,parent:E.id,depth:E.depth+1,side:J,areaId:k})}}if(!e.read.isCurrent())return null;g||=h.length>0;let R=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:w,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...y]},stateSuggestion:R}}T();T();function Qx(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function Zx(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function M0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(w=>Number.isFinite(w)&&w>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=Qx(e),u=Math.min(t,e.length),c=Zx(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let w=0;w<r.length;w++)f[Math.floor(w/u)]=Math.max(f[Math.floor(w/u)],r[w].height);let p=[],s=[],m=a,y=o;for(let w of c)p.push(m+w/2),m+=w+n;for(let w of f)s.push(y+w/2),y+=w+i;let v=new Map;for(let w=0;w<r.length;w++){let d=r[w];v.set(d.item.id,{x:p[w%u]+(d.left-d.right)/2,y:s[Math.floor(w/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:v,width:m-n+a,height:y-i+l}}function A0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,G)=>C?c.get(C)?.controlReserve?.[G]??0:0;if(r.length>mt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let G=c.get(C.id);if(!G||![G.width,G.height].every(ie=>Number.isFinite(ie)&&ie>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(G.controlReserve&&![G.controlReserve.right,G.controlReserve.bottom].every(ie=>Number.isFinite(ie)&&ie>=0&&ie<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let H=C.branch.parent;if(!H||!c.has(H))throw new Error("Missing hierarchy parent");let X=p.get(H)??[];X.push(C),p.set(H,X)}let s=new Map,m=new Set,y=(C,G)=>{let H=s.get(C);if(H!==void 0)return H;if(G>mt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let X=p.get(C)??[],ie=X.reduce((k,Z)=>k+y(Z.id,G+1),0)+Math.max(0,X.length-1)*o,J=Math.max(c.get(C).height+f(C,"bottom"),ie);return m.delete(C),s.set(C,J),J};for(let C of r)y(C.id,0);let v=c.get(l);if(!v)throw new Error("Missing hierarchy root");let w=new Map([[l,{x:0,y:0,width:v.width,height:v.height}]]),d=(C,G,H,X)=>{let ie=C.reduce((k,Z)=>k+s.get(Z.id),0)+Math.max(0,C.length-1)*o,J=G.y+f(X,"bottom")/2-ie/2;for(let k of C){let Z=c.get(k.id),fe=s.get(k.id),he={width:Z.width,height:Z.height,x:G.x+H*(G.width/2+a+Z.width/2+f(H===1?X:k.id,"right")),y:J+fe/2-f(k.id,"bottom")/2};if(w.has(k.id))throw new Error("Repeated hierarchy parent");w.set(k.id,he),d(p.get(k.id)??[],he,H,k.id),J+=fe+o}},h=p.get(l)??[],g=h.filter(C=>C.role==="parent"),S=h.filter(C=>C.role!=="parent"),x=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(G=>x(G.id))):0),R=g.filter(C=>C.branch.side===-1),E=g.filter(C=>C.branch.side===1),N=n.parentColumns,M=[];for(;R.length||E.length;)for(let C=0;C<N;C++)M.push(N>1&&C===0?R.shift():E.shift()??(N===1?R.shift():void 0));let O=M0(M.map((C,G)=>C?{id:C.id,width:x(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${G}`,width:1,height:1}),n.parentColumns,a,o),D=u.map(C=>{let G=c.get(C.id);if(!G)throw new Error("Missing measured section");return G}),I=Math.max(v.width+f(l,"right")*2,O.width,...D.map(C=>C.width)),B=Math.max(140,Math.min(800,i.parentHeight??300)),j=Math.max(B,O.height),q={x:-I/2,y:-v.height/2-o-j,width:I,height:j};if(!Number.isFinite(j))throw new Error("Invalid parent area height");for(let C of g){let G=O.positions.get(C.id),H=c.get(C.id),X=N===1?1:C.branch.side,ie={x:q.x+(I-O.width)/2+G.x+X*(-G.width/2+H.width/2)-(X===-1?f(C.id,"right"):0),y:q.y+j-O.height+G.y-f(C.id,"bottom")/2,width:H.width,height:H.height};w.set(C.id,ie),d(p.get(C.id)??[],ie,X,C.id)}let le={...w.get(l),width:I};for(let C of[-1,1]){let G=S.filter(H=>H.branch?.side===C);d([...G.filter(H=>H.role!=="child"),...G.filter(H=>H.role==="child")],le,C)}if(w.size!==r.length)throw new Error("Disconnected hierarchy");let ne=v.height/2+f(l,"bottom")+Math.min(24,o);for(let C of D)w.set(C.id,{x:0,y:ne+C.height/2,width:C.width,height:C.height}),ne+=C.height+Math.min(24,o);let de=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...q,height:j},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:B},dropRole:"parent",viewport:{...q,height:j,contentTop:q.y,contentHeight:j,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],P=Math.min(8,o/4,a/4);for(let[C,G]of[["child-left","child"],["child-right","child"],["left","left"]]){let H=r.filter(J=>J.areaId===C).map(J=>{let k=w.get(J.id),Z=f(J.id,"right"),fe=f(J.id,"bottom");return{...k,x:k.x+Z/2,y:k.y+fe/2,width:k.width+Z,height:k.height+fe}});if(!H.length)continue;let X=Math.min(...H.map(J=>J.x-J.width/2))-P,ie=Math.min(...H.map(J=>J.y-J.height/2))-P;de.push({id:C,labelKey:G==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:G,bounds:{x:X,y:ie,width:Math.max(...H.map(J=>J.x+J.width/2))+P-X,height:Math.max(...H.map(J=>J.y+J.height/2))+P-ie}})}return{positions:w,areas:de}}T();function Fx(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function Jx(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let a=new Map(e.rows.map(c=>[c.id,c])),o=new Set(e.visible),l=c=>{let f=[];for(let p=0;c&&p<256;p++)o.has(c)&&f.push(c),c=a.get(c)?.parent??"";return f},r=i.map(c=>l(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function C0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!Fx(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=Jx(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var O0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:Bd,hierarchy:{maximumScopes:mt.scopes,maximumDepth:mt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:ic},configuration:ec,restoreState:Zi,project(e){let t=R0(e);return t&&e.sections?.status==="available"?C0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=tc(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return A0(e,t,o,a?.areaHeights)}};var Wx={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},rh={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function L0(e){return e==="left"||e==="right"||e==="sibling"}function D0(e,t,n=!0,i="compass",a,o=!1){let{read:l}=e,r=e.manifest?.appearance,u=r?.flip??!1,c={...Wx,...r?.geometry,flipEastWest:u};e.manifest&&(c.siblingMaxHeight+=72);let f={baseFontSize:r?.typography?.baseFontSize??rh.baseFontSize,wrapNodeLabels:r?.typography?.wrapNodeLabels??rh.wrapNodeLabels,propertyFontSize:r?.typography?.propertyFontSize??rh.propertyFontSize},p=Sc(u),s=i==="mindmap",m=s?O0:w0,y=m.project({attention:t,read:l,maximum:r?.maximum??100,...s?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:u}}}});if(!y)throw new Error("Publication attention is unavailable");let v=y.occurrences.map(M=>{let O=M.nodeId&&l.node(M.nodeId);if(!O)throw new Error("Publication occurrence is unavailable");let D=M.id===y.entry,I=M.role==="sibling",B=I?bc(c):1,j=e.published.get(O.id),q=j?.roleStyles,le=M.relation?.relationType===2?q?.inferred:void 0,ne=D?q?.center:I?q?.sibling:void 0,de={...j?.style,...le,...ne},P=ne?.fontSize??le?.fontSize??j?.style?.fontSize??(D?30:I?15:20),C=ne?.gateRadius??le?.gateRadius??j?.style?.gateRadius??5,G=Jl(P*B,D,f.baseFontSize)*(I&&e.manifest?.7:1),H=tv(O.name,P,f,D,O.maxLabelLength);de.icon!=null&&(H.width+=D?22:17);let X=nv(H,B,P*B,f);return{occurrence:M,node:O,center:D,fontSize:G,style:de,gateSize:Wb({gateRadius:C*B}),measurement:{id:M.id,...X,expandedWidth:X.width,expandedReserve:0,mini:null,envelope:null,controlReserve:M.branch?.canExpand?{right:0,bottom:23}:void 0}}}),w=m.layout(y,v.map(M=>M.measurement),{...c,alignSiblingsToFirstParent:!!e.manifest},!1),d=[],h=!1;if(o){let M=new Map;for(let{node:D,occurrence:I,center:B}of v){if(!s&&B)continue;let j=M.get(D.id)??[];j.push({...w.positions.get(I.id),node:D.id,occurrence:I}),M.set(D.id,j)}let O=y.edges.flatMap(D=>D.kind==="semantic"?[[D.sourceNode,D.targetNode]]:[]);h=T0(M,O,function*(D){for(let I of kd)yield*l.relations(D.node,I).items},D=>D.node.id,(D,I)=>x0(s?D.occurrence.ports:p,D.occurrence.peerPort?.side,I),({source:D,target:I,sourcePort:B,targetPort:j},q)=>{d.push({id:JSON.stringify(["cross",D.occurrence.id,I.occurrence.id]),kind:"semantic",source:D.occurrence.id,target:I.occurrence.id,sourceNode:D.node,targetNode:I.node,sourcePort:B,targetPort:j,relation:q})})}let g=[...y.edges,...d],S=new Map;if(s){let M=(O,D)=>{let I=S.get(O)??new Map;I.set(D,(I.get(D)??0)+1),S.set(O,I)};for(let O of g)M(O.source,O.sourcePort),M(O.target,O.targetPort)}let x=new Map;if(!s)for(let{id:M,viewport:O}of w.areas)O&&L0(M)&&x.set(M,O);let R=v.map(({occurrence:M,node:O,center:D,fontSize:I,gateSize:B,style:j})=>{let q=M.areaId==="right"&&c.lateralArrangement==="left"?"left":M.areaId;return{id:M.id,node:O,center:D,fontSize:I,gateSize:B,style:j,role:M.role??"center",bounds:w.positions.get(M.id),branch:M.branch,strip:L0(q)&&x.has(q)?q:void 0,gates:s?[...S.get(M.id)??[]].map(([le,ne])=>({side:le,count:ne})):Object.keys(p).map(le=>{let ne=p[le],de=ne==="left"?"previous":ne==="right"?"next":null,P=l.relations(O.id,ne).items,C=de?new Set([...P,...l.relations(O.id,de).items].map(G=>G.node.id)).size:P.length;return{side:le,count:C}})}}),E=new Map(R.map(M=>[M.id,M])),N=g.map((M,O)=>{let D=E.get(M.source),I=E.get(M.target),B=ih(pc(D.bounds,M.sourcePort,D.gateSize),pc(I.bounds,M.targetPort,I.gateSize),M.sourcePort,M.targetPort,"bezier"),j=M.kind==="semantic"?M.relation.direction:null,q=M.kind==="semantic"?e.linkStyle(M.sourceNode,M.targetNode,M.relation.role):void 0,le=M.kind==="semantic"?M.relation.definition??null:null;return{id:M.id,source:M.source,target:M.target,route:B,label:le,labelSize:q?.labelSize,labelColor:q?.labelColor,crossLink:O>=y.edges.length,sourcePort:M.sourcePort,targetPort:M.targetPort,stroke:q?.stroke,strokeWidth:q?.width,startHead:q?.startHead??(q?.arrowStart??(j===2||j===3)?"arrow":void 0),endHead:q?.endHead??(q?.arrowEnd??(j===1||j===3)?"arrow":void 0)}});return{cards:R,cardById:E,edges:N,strips:x,wrap:f.wrapNodeLabels,truncated:y.truncated||h,projection:y}}function wc(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function z0(e,t,n,i){let a=pc(wc(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function H0(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=z0(e,i,t.sourcePort,n),l=z0(e,a,t.targetPort,n);return o&&l?ih(o,l,t.sourcePort,t.targetPort,"bezier"):null}T();T();function Ec(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function xc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=Ec(o[0],255),r=Ec(o[1],255),u=Ec(o[2],255),c=o.length===4?Ec(o[3],1):1;return l===null||r===null||u===null||c===null?null:{red:l,green:r,blue:u,alpha:c}}T();function ch(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function uh(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function _0(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=ch(e,t),i=l=>.2126*uh(l.red)+.7152*uh(l.green)+.0722*uh(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}T();var $x=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),eT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),tT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function nT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||tT.has(l.toLowerCase()))return;n.push(!o&&eT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function U0(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function k0(e,t){let n=t.trim();if(!(!n||n.length>320))switch($x.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return nT(n);case"length":return U0(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):U0(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var sh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function P0(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){sh.lastIndex=i;let a=sh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=sh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&k0(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function I0(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=xc(a[n+"text-normal"]),l=xc(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(a)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&c===a[i+f]){let p=xc(c),s=p&&_0(o,l?ch(p,l):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var V=K(ye(),1),G0={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},fh={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},iT={left:z.friends,right:z.challengers,sibling:z.siblings},aT=[["system",z.systemTheme],["light",z.lightMode],["dark",z.darkMode]],oT=[["right",z.sidecarRight],["left",z.sidecarLeft],["bottom",z.sidecarBottom]],B0={};function dh(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Aa))}function V0(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function Y0({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,te.useRef)(null),o=(0,te.useRef)(null),l=Dv(a,o),r=Sv(e,i,l.capture),u=r.attention.id,c={...Dd,crosslinks:e.manifest?.appearance?.showCrossLinks??Dd.crosslinks,...e.manifest?.canvasDefaults,...r.attention.canvas},{view:f,siblings:p,crosslinks:s,ontology:m,sidecar:y}=c,[v,w]=(0,te.useState)(),[d,h]=(0,te.useState)(null),g=(0,te.useRef)(null),S=(0,te.useMemo)(()=>D0(e,u,p,f,v,s),[e,u,p,f,v,s]),x=f==="mindmap"?z.mindMap:z.view,R=S.cards.find(b=>b.center),[E,N]=(0,te.useState)(),M=E?.attention===u?E.offsets:B0,O=(0,te.useRef)(null),D=(0,te.useRef)({x:0,y:0,scale:1}),I=(0,te.useRef)(!1),B=(0,te.useRef)({points:new Map,origin:null,moved:!1}),j=(0,te.useRef)(!1),q=(0,te.useId)(),le=(0,te.useRef)(null),[ne,de]=(0,te.useState)(0),[P,C]=(0,te.useState)(null),[G,H]=(0,te.useState)(null),[X,ie]=(0,te.useState)(!1),J=(0,te.useRef)(()=>{}),k=(0,te.useRef)(null),[Z,fe]=(0,te.useState)(),[he,nn]=(0,te.useState)(!1),[ze,Vt]=(0,te.useState)("light"),ke=e.manifest?.colorMode,Zn=e.manifest?.pins,lt=Z?.colorScheme==="dark"?"dark":Z?.colorScheme==="light"?"light":void 0,Ot=ke==="both"?c.theme:ke??lt??"system",St=Ot==="system"?ze:Ot,Lt=()=>r.changeCanvas({theme:St==="dark"?"light":"dark"}),Fn=()=>r.changeCanvas({sidecar:!y}),Mn=(0,te.useMemo)(()=>S.edges.flatMap(b=>{let L=H0(S,b,M);return L?[{edge:b,route:L}]:[]}),[S,M]),An=new Set,ve=new Set;if(d)for(let{edge:b}of Mn)(b.source===d.occurrence&&(!d.port||b.sourcePort===d.port)||b.target===d.occurrence&&(!d.port||b.targetPort===d.port))&&(An.add(b.id),ve.add(b.source),ve.add(b.target));let et=b=>b?" is-highlighted":An.size?" is-dimmed":"";(0,te.useLayoutEffect)(()=>{let b=a.current,L=b?.ownerDocument.defaultView;if(!b||!L)return;let Y=new ac(L,!0,h);g.current=Y;let $=Jb(b,Y);return()=>{g.current=null,$()}},[]),(0,te.useLayoutEffect)(()=>{g.current?.clear()},[S]),(0,te.useEffect)(()=>{let b=a.current?.ownerDocument.defaultView;if(!X||!b)return;let L=b.setTimeout(()=>ie(!1),3500);return()=>b.clearTimeout(L)},[X]),J.current=b=>{if(b.defaultPrevented||b.isComposing||b.ctrlKey||b.metaKey)return;if(n&&b.key===Ql.key&&!b.altKey&&!b.shiftKey){b.preventDefault(),b.repeat||de(Y=>Y+1);return}let L=b.target;!b.altKey||L?.isContentEditable||L?.closest?.("input,textarea,select")||(n&&b.shiftKey&&(b.code==="KeyS"||b.key.toLowerCase()==="s")?(b.preventDefault(),b.repeat||Fn()):!b.shiftKey&&(b.key==="ArrowLeft"||b.key==="ArrowRight")&&(b.preventDefault(),b.repeat||r.move(b.key==="ArrowLeft"?-1:1)))},(0,te.useEffect)(()=>{if(!i)return;let b=L=>J.current(L);return i.addEventListener("keydown",b),()=>i.removeEventListener("keydown",b)},[i]),(0,te.useLayoutEffect)(()=>{let b=k.current;b&&(b.scrollLeft=b.scrollWidth)},[r.visits]),(0,te.useEffect)(()=>{let b=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!b)return;let L=()=>Vt(b.matches?"dark":"light");return L(),b.addEventListener("change",L),()=>b.removeEventListener("change",L)},[]),(0,te.useEffect)(()=>{let b=a.current?.ownerDocument.defaultView;if(!b||!n?.has(Ud))return;let L=new b.AbortController,Y=L.signal;return n.text(Ud,Y).then($=>{Y.aborted||fe(P0($))}).catch(()=>{Y.aborted||nn(!0)}),()=>L.abort()},[n]);function wt(b){D.current=b,O.current&&(O.current.style.transform=`translate(${b.x}px, ${b.y}px) scale(${b.scale})`)}function De(){let b=a.current;if(!b)return;let L=0,Y=0;for(let{bounds:ce,strip:F}of S.cards)F||(L=Math.max(L,Math.abs(ce.x-R.bounds.x)+ce.width/2),Y=Math.max(Y,Math.abs(ce.y-R.bounds.y)+ce.height/2));for(let{x:ce,y:F,width:He,height:pt}of S.strips.values())L=Math.max(L,Math.abs(ce+He/2-R.bounds.x)+He/2),Y=Math.max(Y,Math.abs(F+pt/2-R.bounds.y)+pt/2);let $=Math.max(.25,Math.min(1,(b.clientWidth/2-22)/L,(b.clientHeight/2-22)/Y));I.current=!1,wt({x:-R.bounds.x*$,y:-R.bounds.y*$,scale:$})}function Cn(b,L,Y){l.cancel(),g.current?.clear();let{x:$,y:ce,scale:F}=D.current,He=Math.max(.25,Math.min(3,F*Y));I.current=!0,wt({x:L.x-(b.x-$)*He/F,y:L.y-(b.y-ce)*He/F,scale:He})}function Yt(b){Cn({x:0,y:0},{x:0,y:0},b)}function mn(b,L,Y){let $=b.getBoundingClientRect();return{x:L-$.left-$.width/2,y:Y-$.top-$.height/2}}(0,te.useLayoutEffect)(()=>{let b=a.current;if(!b)return;De(),l.play(u,D.current.scale),j.current&&(b.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),j.current=!1);let L=ce=>{if(dh(ce,b))return;ce.preventDefault();let F=mn(b,ce.clientX,ce.clientY),He=ce.deltaY*(ce.deltaMode===1?16:ce.deltaMode===2?b.clientHeight:1);Cn(F,F,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=b.ownerDocument.defaultView,$=Y?new Y.ResizeObserver(()=>{I.current||De()}):null;return $?.observe(b),b.addEventListener("wheel",L,{passive:!1}),()=>{$?.disconnect(),b.removeEventListener("wheel",L)}},[e,u,f,p,v]);function qt(b,L){let Y=e.published.get(b)?.url?{sidecar:!0}:void 0;r.activate({id:b,canvas:Y})&&b!==u&&(j.current=L)}function Oa(){r.changeCanvas({sidecar:!1}),le.current?.focus()}function yi(b){r.activate(b)}function pn(){let b=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!b)throw new Error("Publication address unavailable");let L=new URL(b);return L.search="",L.hash="",L}function Pe(b,L){H(null),ie(!1),C({id:b,anchor:L})}function Jn(b,L){C(null),g.current?.clear(),H({anchor:b,point:L})}function La(b,L,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":L,children:[(0,V.jsx)("span",{children:L}),(0,V.jsx)("ol",{ref:Y?k:void 0,children:b.map($=>{let ce=e.published.get($.id),F=ce?.style,He=F?.icon??ce?.trailIcon,pt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:Uo(pn(),{...$,canvas:{...r.attention.canvas,...$.canvas}}).href,"aria-current":$.id===u?"location":void 0,style:{backgroundColor:F?.fill,color:F?.color,"--kplex-publication-trail-border":F?.stroke},onClick:Et=>{Et.altKey||Et.ctrlKey||Et.metaKey||Et.shiftKey||(Et.preventDefault(),yi($))},children:[pt&&(0,V.jsx)(Wd,{icon:pt,size:12}),(0,V.jsx)("span",{children:e.nodes.get($.id)?.name})]})},$.id)})})]})}function Tc(b){if(!b.altKey){if(b.target===b.currentTarget&&(b.key==="ContextMenu"||b.shiftKey&&b.key==="F10")){b.preventDefault();let{left:L,top:Y}=b.currentTarget.getBoundingClientRect();Jn(b.currentTarget,{x:L+12,y:Y+12});return}if(!(b.target.matches?.(Aa)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(b.key))){if(b.key==="Home"||b.key==="0")l.cancel(),De();else if(b.key==="+"||b.key==="=")Yt(1.25);else if(b.key==="-")Yt(.8);else if(Object.prototype.hasOwnProperty.call(G0,b.key)){let[L,Y]=G0[b.key],$=Array.from(b.currentTarget.querySelectorAll("[data-publication-node]")),ce=$.find(On=>On===b.target)?.dataset.publicationOccurrence,F=wc(S,ce?S.cardById.get(ce)??R:R,M),He=-1,pt=1/0;for(let[On,Bo]of $.entries()){let Vo=wc(S,S.cardById.get(Bo.dataset.publicationOccurrence),M),Yo=Vo.x-F.x,qo=Vo.y-F.y,rr=Yo*L+qo*Y,jo=rr+2*Math.abs(Yo*Y-qo*L);rr>0&&jo<pt&&(He=On,pt=jo)}let Et=$[He];Et?.focus({preventScroll:!Et.closest(Aa)})}else return;b.preventDefault()}}}function U(b){let L=b.currentTarget.ownerDocument.defaultView?.Element;if(!L||!(b.target instanceof L)||B.current.points.size)return;let Y=b.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),$=b.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?g.current?.enter({occurrence:Y,port:$},b):g.current?.clear()}function ae(b){if(b.button!==0||(G&&H(null),P&&C(null),dh(b,b.currentTarget)))return;let L=B.current;if(L.points.size>=2)return;let Y={...mn(b.currentTarget,b.clientX,b.clientY),id:b.pointerId};L.points.size===0&&(L.origin=Y,L.moved=!1),L.points.set(b.pointerId,Y)}function qe(b){let L=B.current;if(!L.points.has(b.pointerId))return;let[Y,$]=L.points.values(),ce=V0(Y,$),F={...mn(b.currentTarget,b.clientX,b.clientY),id:b.pointerId};L.points.set(b.pointerId,F);let[He,pt]=L.points.values(),Et=V0(He,pt);if(!(!L.moved&&!pt&&L.origin&&Math.hypot(F.x-L.origin.x,F.y-L.origin.y)<5)){if(L.moved)b.currentTarget.hasPointerCapture(b.pointerId)||b.currentTarget.setPointerCapture(b.pointerId);else{L.moved=!0;for(let On of L.points.keys())b.currentTarget.setPointerCapture(On)}Cn(ce,Et,Et.distance/ce.distance)}}function zt(b){B.current.points.delete(b.pointerId)}let Dt=e.body(u),$i=()=>r.changeCanvas({siblings:!p}),or=(0,V.jsx)("button",{type:"button","data-publication-siblings-toggle":!0,"aria-pressed":p,onClick:$i,children:p?z.hideSiblings:z.showSiblings}),za=(0,V.jsxs)(V.Fragment,{children:[f==="compass"&&or,(0,V.jsx)("button",{type:"button",onClick:()=>Yt(.8),"aria-label":z.zoomOut,children:"−"}),(0,V.jsx)("button",{type:"button",onClick:()=>Yt(1.25),"aria-label":z.zoomIn,children:"+"}),(0,V.jsx)("button",{type:"button","aria-label":z.fit,onClick:()=>{l.cancel(),De()},children:z.fit}),(0,V.jsx)("button",{type:"button","aria-label":z.graphOptions,"aria-haspopup":"menu","aria-expanded":!!G,onClick:b=>Jn(b.currentTarget),children:"⋯"})]});function Wn(b,L){let Y=L?{...b.bounds,x:b.bounds.x-L.x,y:b.bounds.y-L.contentTop}:b.bounds,$=e.manifest?.icons,ce=b.style?.icon!=null?$?.[b.style.icon]:void 0;return(0,V.jsxs)(te.Fragment,{children:[(0,V.jsxs)(lv,{bounds:Y,semanticRole:b.role,className:et(ve.has(b.id)).trim(),"data-publication-node":b.node.id,"data-publication-occurrence":b.id,"data-publication-center":b.center||void 0,role:"button",tabIndex:0,"aria-label":b.node.name,"aria-current":b.center||void 0,style:{fontSize:b.fontSize,backgroundColor:b.style?.fill,borderColor:b.style?.stroke,color:b.style?.color,"--kplex-gate-size":`${b.gateSize}px`,"--kplex-gate-fill":b.style?.gate},onClick:F=>qt(b.node.id,F.detail===0),onContextMenu:F=>{n&&(F.preventDefault(),Pe(b.node.id,F.currentTarget))},onKeyDown:F=>{n&&(F.key==="ContextMenu"||F.shiftKey&&F.key==="F10")?(F.preventDefault(),Pe(b.node.id,F.currentTarget)):(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),qt(b.node.id,!0))},children:[(0,V.jsxs)(uv,{wrap:S.wrap,children:[ce&&(0,V.jsx)(Wd,{icon:ce,size:b.center?18:b.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(rv,{label:b.node.name,maximum:b.node.maxLabelLength,center:b.center})]}),b.gates.map(({side:F,count:He})=>(0,V.jsx)(cv,{side:F,connected:He>0,count:He?String(He):null,highlighted:An.size>0&&d?.occurrence===b.id&&d.port===F,"aria-hidden":"true"},F))]}),b.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":b.branch.expanded,"aria-label":`${b.branch.expanded?z.collapseBranch:z.expandBranch} · ${b.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>w(F=>ic(F,S.projection,{kind:"toggle",occurrenceId:b.id})??F),children:b.branch.expanded?"−":"+"})]},`${b.id}:${b.node.id}`)}let Ht=(0,V.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":x,tabIndex:0,onKeyDown:Tc,onPointerOver:U,onPointerDown:ae,onPointerMove:qe,onPointerUp:zt,onPointerCancel:zt,onLostPointerCapture:zt,onContextMenu:b=>{b.defaultPrevented||(b.preventDefault(),Jn(b.currentTarget,{x:b.clientX,y:b.clientY}))},onPointerLeave:b=>{g.current?.clear(),b.currentTarget.hasPointerCapture(b.pointerId)||zt(b)},onClickCapture:b=>{b.detail&&B.current.moved&&!dh(b,b.currentTarget)&&(b.stopPropagation(),B.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:O,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(dv,{prefix:t}),Mn.map(({edge:b,route:L})=>{let{id:Y,source:$,target:ce,label:F,stroke:He,strokeWidth:pt,startHead:Et,endHead:On}=b;return(0,V.jsxs)("g",{className:`kplex-edge${et(An.has(Y))}`,"data-publication-source":$,"data-publication-target":ce,"data-publication-crosslink":b.crossLink||void 0,children:[(0,V.jsx)(sv,{d:L.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:jd(Et,t),markerEnd:jd(On,t)}),m&&(0,V.jsx)(fv,{label:F,midpoint:L.midpoint,fontSize:b.labelSize,color:b.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:S.cards.map(b=>b.strip?null:Wn(b))}),[...S.strips].map(([b,L])=>(0,V.jsx)(Lv,{id:b,panel:L,start:M[b]??L.initialScrollTop,label:b==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?z.lateral:iT[b],onScroll:Y=>N($=>{let ce=$?.attention===u?$.offsets:B0;return ce[b]===Y?$:{attention:u,offsets:{...ce,[b]:Y}}}),children:S.cards.map(Y=>Y.strip===b?Wn(Y,L):null)},JSON.stringify([u,b])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Da=P?mv(e,P.id):void 0,Ha=P&&{id:P.id,canvas:{...c,theme:Ot}},lr=ke==="both"?I0(Z,St):ke?{...Z,colorScheme:St}:Z;return(0,V.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:lr,onKeyDown:i?void 0:b=>J.current(b.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Av,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)("button",{type:"button",onClick:()=>r.move(-1),disabled:!r.canGoBack,"aria-label":z.back,"aria-keyshortcuts":fh.back,title:z.backTooltip,children:"←"}),(0,V.jsx)("button",{type:"button",onClick:()=>r.move(1),disabled:!r.canGoForward,"aria-label":z.forward,"aria-keyshortcuts":fh.forward,title:z.forwardTooltip,children:"→"}),n?(0,V.jsx)("button",{type:"button",ref:le,"aria-expanded":y,"aria-controls":`sidecar-${q}`,"aria-keyshortcuts":fh.sidecar,title:y?z.hideSidecarTooltip:z.showSidecarTooltip,onClick:Fn,children:y?z.hideSidecar:z.showSidecar}):za,ke==="both"&&(0,V.jsx)("button",{type:"button","aria-pressed":St==="dark",onClick:Lt,children:z.darkMode})]}),n&&(0,V.jsx)(jv,{publication:e,resources:n,page:pn,searchFocus:ne,onChoose:yi}),n&&Zn?.length?La(Zn.map(b=>({id:En(b)})),z.pins):null]}),n?(0,V.jsx)(s0,{sidecarId:`sidecar-${q}`,sidecarOpen:y,preferredDock:c.dock,onDock:b=>r.changeCanvas({dock:b}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[Ht,(0,V.jsx)("div",{className:"kplex-publication-controls kplex-publication-camera-actions",children:za}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[r.addressProblem&&(0,V.jsx)("p",{children:r.addressProblem==="ambiguous"?z.ambiguousAddress:z.nodeUnavailable}),S.truncated&&(0,V.jsx)("p",{children:z.sceneLimited}),he&&(0,V.jsx)("p",{children:z.themeUnavailable}),X&&(0,V.jsx)("p",{children:z.addressCopied})]})]}),renderSidecar:(b,L)=>(0,V.jsx)(u0,{publication:e,resources:n,id:`sidecar-${q}`,contentScope:`${t}-document`,location:r.attention,colorMode:St,onClose:Oa,onNavigate:yi,dock:b,onSwitchDock:L})}):(0,V.jsxs)(V.Fragment,{children:[Ht,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":q,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:q,children:R.node.name}),Dt&&(0,V.jsx)("p",{children:Dt})]})]}),n&&r.visits.length>1&&La(r.visits,z.history,!0),G&&(0,V.jsx)(Nv,{anchor:G.anchor,point:G.point,onDismiss:()=>H(null),choices:[{label:z.view,kind:"menuitemradio",checked:f==="compass",select:()=>r.changeCanvas({view:"compass"})},{label:z.mindMap,kind:"menuitemradio",checked:f==="mindmap",select:()=>r.changeCanvas({view:"mindmap"})},{label:z.crossLinks,kind:"menuitemcheckbox",checked:s,select:()=>r.changeCanvas({crosslinks:!s})},...f==="compass"?[{label:z.showSiblings,kind:"menuitemcheckbox",checked:p,select:$i}]:[],{label:z.linkOntology,kind:"menuitemcheckbox",checked:m,select:()=>r.changeCanvas({ontology:!m})},...n?[{label:z.sidecar,choices:[{label:z.sidecarHide,kind:"menuitemradio",checked:!y,select:()=>r.changeCanvas({sidecar:!1})},...oT.map(([b,L])=>({label:L,kind:"menuitemradio",checked:y&&c.dock===b,select:()=>r.changeCanvas({dock:b,sidecar:!0})}))]}]:[],...ke==="both"?aT.map(([b,L])=>({label:L,kind:"menuitemradio",checked:Ot===b,select:()=>r.changeCanvas({theme:b})})):[]]}),n&&P&&Ha&&(0,V.jsx)(Tv,{anchor:P.anchor,address:Uo(pn(),Ha).href,shortAddress:Da&&Uo(pn(),Ha,Da).href,onDismiss:b=>{C(null),b&&P.anchor.isConnected&&P.anchor.focus({preventScroll:!0})},onCopied:()=>ie(!0)},P.id)]})}var j0=K(ye(),1),hh=new WeakSet,lT=0;function YA(e,t,{publicationUrl:n}={}){return mh(e,t,n)}function qA(e,t,n){return mh(e,t,n,!0)}function jA(e,t,n){return mh(e,t,void 0,!0,n)}function mh(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=y=>{let v=pv(y);if(v.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let w=v.manifest&&o?a?.(v.manifest)??o0(o,l,v.manifest):void 0;return{publication:v,resources:w}},u=r(t);if(hh.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++lT}`,f=(0,q0.createRoot)(e,{identifierPrefix:c});hh.add(e);let p=0,s=!1,m=({publication:y,resources:v})=>{i&&(e.ownerDocument.title=y.title),f.render((0,j0.jsx)(Y0,{publication:y,markerPrefix:c,resources:v,browser:i&&v&&o?o:void 0},p++))};return m(u),{update(y){if(s)throw new Error("Publication mount has been disposed");m(r(y))},dispose(){if(!s){s=!0;try{f.unmount()}finally{hh.delete(e)}}}}}export{T as a,z as b,YR as c,YA as d,qA as e,jA as f};
8
+ `+i.stack}}var Vs=Object.prototype.hasOwnProperty,qf=Fe.unstable_scheduleCallback,ts=Fe.unstable_cancelCallback,K1=Fe.unstable_shouldYield,Q1=Fe.unstable_requestPaint,Ft=Fe.unstable_now,Z1=Fe.unstable_getCurrentPriorityLevel,eg=Fe.unstable_ImmediatePriority,tg=Fe.unstable_UserBlockingPriority,yu=Fe.unstable_NormalPriority,I1=Fe.unstable_LowPriority,ng=Fe.unstable_IdlePriority,J1=Fe.log,F1=Fe.unstable_setDisableYieldValue,Xo=null,$t=null;function Li(e){if(typeof J1=="function"&&F1(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Xo,e)}catch{}}var Wt=Math.clz32?Math.clz32:eS,$1=Math.log,W1=Math.LN2;function eS(e){return e>>>=0,e===0?32:31-($1(e)/W1|0)|0}var Ar=256,zr=262144,Or=4194304;function dl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~a,i!==0?l=dl(i):(o&=r,o!==0?l=dl(o):n||(n=r&~e,n!==0&&(l=dl(n))))):(r=i&~a,r!==0?l=dl(r):o!==0?l=dl(o):n||(n=i&~e,n!==0&&(l=dl(n)))),l===0?0:t!==0&&t!==l&&(t&a)===0&&(a=l&-l,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:l}function Ko(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ig(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),l=1<<i;t|=e[i],n&=~l}return t}function tS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lg(){var e=Or;return Or<<=1,(Or&62914560)===0&&(Or=4194304),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nS(e,t,n,i,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~p}i!==0&&ag(e,i,0),a!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ag(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function og(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function rg(e,t){var n=t&-t;return n=(n&42)!==0?1:jf(n),(n&(e.suspendedLanes|t))!==0?0:n}function jf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ug(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:qb(e.type))}function mh(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var yi=Math.random().toString(36).slice(2),ut="__reactFiber$"+yi,Bt="__reactProps$"+yi,Oa="__reactContainer$"+yi,hh="__reactEvents$"+yi,iS="__reactListeners$"+yi,lS="__reactHandles$"+yi,ph="__reactResources$"+yi,Zo="__reactMarker$"+yi,bu="__reactLoad$"+yi;function ju(e){delete e[ut],delete e[Bt],delete e[iS],delete e[lS]}function pl(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Dp(e);e!==null;){if(n=e[ut])return n;e=Dp(e)}return t}e=n,n=e.parentNode}return null}function Da(e){if(e=e[ut]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function ua(e){var t=e[ph];return t||(t=e[ph]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Zo]=!0}function cg(e){e[bu]=void 0}var sg=new Set,fg={};function Ol(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(fg[e]=t,e=0;e<t.length;e++)sg.add(t[e])}var aS=RegExp("^[: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]*$"),gh={},yh={};function oS(e){return Vs.call(yh,e)?!0:Vs.call(gh,e)?!1:aS.test(e)?yh[e]=!0:(gh[e]=!0,!1)}var pe=!1;function bh(){var e=pe;return pe=!1,e}function Ir(e,t,n){if(oS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Dr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ai(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bs(e){if(!e._valueTracker){var t=dg(e)?"checked":"value";e._valueTracker=rS(e,t,""+e[t])}}function mg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=dg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var uS=/[\n"\\]/g;function sn(e){return e.replace(uS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gs(e,t,n,i,l,a,o,r){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?is(e,Qt(e.value)):is(e,Qt(t)):n!=null?is(e,Qt(n)):i!=null&&e.removeAttribute("value"),l==null&&a!=null&&(e.defaultChecked=!!a),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function hg(e,t,n,i,l,a,o,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Bs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Bs(e)}function is(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ca(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function pg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function gg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(R(92));if(so(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Bs(e)}function Sa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||cS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yg(e,t,n){if(t!=null&&typeof t!="object")throw Error(R(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",pe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&n[l]!==i&&(vh(e,l,i),pe=!0)}else for(var a in t)t.hasOwnProperty(a)&&vh(e,a,t[a])}function Kf(e){if(e.indexOf("-")===-1)return!1;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 sS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jr(e){return fS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var Ys=null;function Qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,sa=null;function Sh(e){var t=Da(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[Bt]||null;if(!l)throw Error(R(90));Gs(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&mg(i)}break e;case"textarea":pg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ca(e,!!n.multiple,t,!1)}}}var ls=!1;function bg(e,t,n){if(ls)return e(t,n);ls=!0;try{var i=e(t);return i}finally{if(ls=!1,(Wl!==null||sa!==null)&&(lc(),Wl&&(t=Wl,e=sa,sa=Wl=null,Sh(t),e)))for(t=0;t<e.length;t++)Sh(e[t])}}function Ao(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qs=!1;if(fi)try{jl={},Object.defineProperty(jl,"passive",{get:function(){qs=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{qs=!1}var jl,_i=null,Zf=null,Fr=null;function vg(){if(Fr)return Fr;var e,t=Zf,n=t.length,i,l="value"in _i?_i.value:_i.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===l[a-i];i++);return Fr=l.slice(e,1<i?1-i:void 0)}function $r(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lr(){return!0}function xh(){return!1}function zt(e){function t(n,i,l,a,o){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Lr:xh,this.isPropagationStopped=xh,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lr)},persist:function(){},isPersistent:Lr}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xu=zt(el),Io=Re({},el,{view:0,detail:0}),dS=zt(Io),as,os,lo,Ku=Re({},Io,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:If,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lo&&(lo&&e.type==="mousemove"?(as=e.screenX-lo.screenX,os=e.screenY-lo.screenY):os=as=0,lo=e),as)},movementY:function(e){return"movementY"in e?e.movementY:os}}),wh=zt(Ku),mS=Re({},Ku,{dataTransfer:0}),hS=zt(mS),pS=Re({},Io,{relatedTarget:0}),rs=zt(pS),gS=Re({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),yS=zt(gS),bS=Re({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vS=zt(bS),SS=Re({},el,{data:0}),Mh=zt(SS),xS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wS={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"},MS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ES(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MS[e])?!!t[e]:!1}function If(){return ES}var TS=Re({},Io,{key:function(e){if(e.key){var t=xS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:If,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NS=zt(TS),RS=Re({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=zt(RS),CS=Re({},el,{submitter:0}),AS=zt(CS),zS=Re({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:If}),OS=zt(zS),DS=Re({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),LS=zt(DS),_S=Re({},Ku,{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}),HS=zt(_S),US=Re({},el,{newState:0,oldState:0,source:0}),PS=zt(US),kS=[9,13,27,32],Jf=fi&&"CompositionEvent"in window,po=null;fi&&"documentMode"in document&&(po=document.documentMode);var VS=fi&&"TextEvent"in window&&!po,Sg=fi&&(!Jf||po&&8<po&&11>=po),Th=" ",Nh=!1;function xg(e,t){switch(e){case"keyup":return kS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function BS(e,t){switch(e){case"compositionend":return wg(t);case"keypress":return t.which!==32?null:(Nh=!0,Th);case"textInput":return e=t.data,e===Th&&Nh?null:e;default:return null}}function GS(e,t){if(ea)return e==="compositionend"||!Jf&&xg(e,t)?(e=vg(),Fr=Zf=_i=null,ea=!1,e):null;switch(e){case"paste":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 Sg&&t.locale!=="ko"?null:t.data;default:return null}}var YS={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YS[e.type]:t==="textarea"}function Mg(e,t,n,i){Wl?sa?sa.push(i):sa=[i]:Wl=i,t=Bu(t,"onChange"),0<t.length&&(n=new Xu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var go=null,zo=null;function qS(e){bb(e,0)}function Qu(e){var t=fo(e);if(mg(t))return e}function Ch(e,t){if(e==="change")return t}var Eg=!1;fi&&(fi?(Hr="oninput"in document,Hr||(us=document.createElement("div"),us.setAttribute("oninput","return;"),Hr=typeof us.oninput=="function"),_r=Hr):_r=!1,Eg=_r&&(!document.documentMode||9<document.documentMode));var _r,Hr,us;function Ah(){go&&(go.detachEvent("onpropertychange",Tg),zo=go=null)}function Tg(e){if(e.propertyName==="value"&&Qu(zo)){var t=[];Mg(t,zo,e,Qf(e)),bg(qS,t)}}function jS(e,t,n){e==="focusin"?(Ah(),go=t,zo=n,go.attachEvent("onpropertychange",Tg)):e==="focusout"&&Ah()}function XS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qu(zo)}function KS(e,t){if(e==="click")return Qu(t)}function QS(e,t){if(e==="input"||e==="change")return Qu(t)}function ZS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:ZS;function Oo(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!Vs.call(t,l)||!tn(e[l],t[l]))return!1}return!0}function js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oh(e,t){var n=zh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zh(n)}}function Ng(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ng(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=js(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=js(e.document)}return t}function Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var IS=fi&&"documentMode"in document&&11>=document.documentMode,ta=null,Xs=null,yo=null,Ks=!1;function Dh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||ta==null||ta!==js(i)||(i=ta,"selectionStart"in i&&Ff(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),yo&&Oo(yo,i)||(yo=i,i=Bu(Xs,"onSelect"),0<i.length&&(t=new Xu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ta)))}function sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},cs={},Cg={};fi&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Dl(e){if(cs[e])return cs[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cg)return cs[e]=t[n];return e}var Ag=Dl("animationend"),zg=Dl("animationiteration"),Og=Dl("animationstart"),JS=Dl("transitionrun"),FS=Dl("transitionstart"),$S=Dl("transitioncancel"),Dg=Dl("transitionend"),Lg=new Map,Qs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Qs.push("scrollEnd");function wn(e,t){Lg.set(e,t),Ol(t,[e])}var WS=0;function di(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=xn.identifierPrefix;var n=WS++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Lh(e){if(e==null||typeof e=="string")return e;var t=null,n=ya;if(n!==null)for(var i=0;i<n.length;i++){var l=e[n[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function bi(e,t){return e=Lh(e),t=Lh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var vu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],ia=0,$f=0;function Zu(){for(var e=ia,t=$f=ia=0;t<e;){var n=rn[t];rn[t++]=null;var i=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var a=rn[t];if(rn[t++]=null,i!==null&&l!==null){var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}a!==0&&_g(n,l,a)}}function Iu(e,t,n,i){rn[ia++]=e,rn[ia++]=t,rn[ia++]=n,rn[ia++]=i,$f|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wf(e,t,n,i){return Iu(e,t,n,i),Su(e)}function Ll(e,t){return Iu(e,null,null,t),Su(e)}function _g(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(l=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,l&&t!==null&&(l=31-Wt(n),e=a.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),a):null}function Su(e){if(50<Ro)throw Ro=0,uu=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var la={};function ex(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new ex(e,t,n,i)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ci(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.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=e.flags&1206910976,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,n,i,l,a){var o=0;if(i=e,typeof i=="function")ed(i)&&(o=1);else if(typeof i=="string")o=Nw(e,n,qn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case _s:return e=Pt(31,n,t,l),e.elementType=_s,e.lanes=a,e;case Fl:return bl(n.children,l,a,t);case $p:o=8,l|=24;break;case Os:return e=Pt(12,n,t,l|2),e.elementType=Os,e.lanes=a,e;case Ds:return e=Pt(13,n,t,l),e.elementType=Ds,e.lanes=a,e;case Ls:return e=Pt(19,n,t,l),e.elementType=Ls,e.lanes=a,e;case G1:case Hs:return e=l|32,e=Pt(30,n,t,e),e.elementType=Hs,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Vn:o=10;break e;case Wp:o=9;break e;case Gf:o=11;break e;case Yf:o=14;break e;case zi:o=16,i=null;break e}o=29,n=Error(R(130,e===null?"null":typeof e,"")),i=null}return t=Pt(o,n,t,l),t.elementType=e,t.type=i,t.lanes=a,t}function bl(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function ss(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Ug(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function fs(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _h=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=_h.get(e);return n!==void 0?n:(t={value:e,source:t,stack:dh(t)},_h.set(e,t),t)}return{value:e,source:t,stack:dh(t)}}var aa=[],oa=0,xu=null,Do=0,un=[],cn=0,Ii=null,Gn=1,Yn="";function ri(e,t){aa[oa++]=Do,aa[oa++]=xu,xu=e,Do=t}function Pg(e,t,n){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Ii=e;var i=Gn;e=Yn;var l=32-Wt(i)-1;i&=~(1<<l),n+=1;var a=32-Wt(t)+l;if(30<a){var o=l-l%5;a=(i&(1<<o)-1).toString(32),i>>=o,l-=o,Gn=1<<32-Wt(t)+l|n<<l|i,Yn=a+e}else Gn=1<<a|n<<l|i,Yn=e}function Ju(e){e.return!==null&&(ri(e,1),Pg(e,1,0))}function td(e){for(;e===xu;)xu=aa[--oa],aa[oa]=null,Do=aa[--oa],aa[oa]=null;for(;e===Ii;)Ii=un[--cn],un[cn]=null,Yn=un[--cn],un[cn]=null,Gn=un[--cn],un[cn]=null}function kg(e,t){un[cn++]=Gn,un[cn++]=Yn,un[cn++]=Ii,Gn=t.id,Yn=t.overflow,Ii=e}var ot=null,ze=null,oe=!1,Bi=null,dn=!1,Zs=Error(R(519));function Ji(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lo(fn(t,e)),Zs}function Hh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<Po.length;n++)ce(Po[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),hg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),gg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Sb(t.textContent,n)?(i.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),i.onScroll!=null&&ce("scroll",t),i.onScrollEnd!=null&&ce("scrollend",t),i.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||Ji(e,!0)}function wu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:ot=ot.return}}function Xl(e){if(e!==ot)return!1;if(!oe)return wu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lf(e.type,e.memoizedProps)),n=!n),n&&ze&&Ji(e),wu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=Op(e)}else t===27?(t=ze,tl(e.type)?(e=Pf,Pf=null,ze=e):ze=t):ze=ot?mn(e.stateNode.nextSibling):null;return!0}function wl(){ze=ot=null,oe=!1}function ds(){var e=Bi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Bi=null),e}function Lo(e){Bi===null?Bi=[e]:Bi.push(e)}var Is=Kn(null),_l=null,ui=null;function Hi(e,t,n){Oe(Is,t._currentValue),t._currentValue=n}function si(e){e._currentValue=Is.current,st(Is)}function eu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Js(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){var o=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),eu(a.return,n,e),i||(o=null);break e}a=r.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),eu(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),eu(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function Ml(e,t,n,i){e=null;for(var l=t,a=!1;l!==null;){if(!a){if((l.flags&524288)!==0)a=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(R(387));if(o=o.memoizedProps,o!==null){var r=l.type;tn(l.pendingProps.value,o.value)||(e!==null?e.push(r):e=[r])}}else if(l===hu.current){if(o=l.alternate,o===null)throw Error(R(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ca):e=[Ca])}l=l.return}return e!==null&&Js(t,e,n,i),t.flags|=262144,e!==null}function Mu(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){_l=e,ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Vg(_l,e)}function Ur(e,t){return _l===null&&El(e),Vg(e,t)}function Vg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ui===null){if(e===null)throw Error(R(308));ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ui=ui.next=t;return n}var tx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nx=Fe.unstable_scheduleCallback,ix=Fe.unstable_NormalPriority,Qe={$$typeof:Vn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new tx,data:new Map,refCount:0}}function Jo(e){e.refCount--,e.refCount===0&&nx(ix,function(){e.controller.abort()})}function Uh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var mo=null;function lx(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var bo=null,Fs=0,Tl=0,fa=null;function ax(e,t){if(bo===null){var n=bo=[];Fs=0,Tl=zd(),fa={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fs++,t.then(Ph,Ph),t}function Ph(){if(--Fs===0&&(mo=null,bo!==null)){fa!==null&&(fa.status="fulfilled");var e=bo;bo=null,Tl=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ox(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var kh=Q.S;Q.S=function(e,t){if(ib=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ax(e,t),mo!==null)for(var n=Ta;n!==null;)Uh(n,mo),n=n.next;if(n=e.types,n!==null){for(var i=Ta;i!==null;)Uh(i,n),i=i.next;if(Tl!==0){i=mo,i===null&&(i=mo=[]);for(var l=0;l<n.length;l++){var a=n[l];i.indexOf(a)===-1&&i.push(a)}}}kh!==null&&kh(e,t)};var vl=Kn(null);function id(){var e=vl.current;return e!==null?e:Ne.pooledCache}function tu(e,t){t===null?Oe(vl,vl.current):Oe(vl,t.pool)}function Bg(){var e=id();return e===null?null:{parent:Qe._currentValue,pool:e}}var La=Error(R(460)),ld=Error(R(474)),Fu=Error(R(542)),Eu={then:function(){}};function Vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bn,Bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e===void 0&&!("reason"in t)?Error(R(600)):e;default:if(typeof t.status=="string")t.then(Bn,Bn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e}throw Sl=t,La}}function ml(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sl=n,La):n}}var Sl=null;function Bh(){if(Sl===null)throw Error(R(459));var e=Sl;return Sl=null,e}function Gh(e){if(e===La||e===Fu)throw Error(R(483))}var da=null,_o=0;function Pr(e){var t=_o;return _o+=1,da===null&&(da=[]),Gg(da,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kr(e,t){throw t.$$typeof===B1?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yg(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function i(m){for(var d=new Map;m!==null;)m.key===null?d.set(m.index,m):d.set(m.key,m),m=m.sibling;return d}function l(m,d){return m=ci(m,d),m.index=0,m.sibling=null,m}function a(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=134217730,d)):(m.flags|=1048576,d)}function o(m){return e&&m.alternate===null&&(m.flags|=134217730),m}function r(m,d,g,x){return d===null||d.tag!==6?(d=ss(g,m.mode,x),d.return=m,d):(d=l(d,g),d.return=m,d)}function u(m,d,g,x){var M=g.type;return M===Fl?(m=f(m,d,g.props.children,x,g.key),Ri(m,g),m):d!==null&&(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type)?(d=l(d,g.props),Ri(d,g),d.return=m,d):(d=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(d,g),d.return=m,d)}function c(m,d,g,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=fs(g,m.mode,x),d.return=m,d):(d=l(d,g.children||[]),d.return=m,d)}function f(m,d,g,x,M){return d===null||d.tag!==7?(d=bl(g,m.mode,x,M),d.return=m,d):(d=l(d,g),d.return=m,d)}function p(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=ss(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Cr:return g=Wr(d.type,d.key,d.props,null,m.mode,g),Ri(g,d),g.return=m,g;case co:return d=fs(d,m.mode,g),d.return=m,d;case zi:return d=ml(d),p(m,d,g)}if(so(d)||io(d))return d=bl(d,m.mode,g,null),d.return=m,d;if(typeof d.then=="function")return p(m,Pr(d),g);if(d.$$typeof===Vn)return p(m,Ur(m,d),g);kr(m,d)}return null}function s(m,d,g,x){var M=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:r(m,d,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:return g.key===M?u(m,d,g,x):null;case co:return g.key===M?c(m,d,g,x):null;case zi:return g=ml(g),s(m,d,g,x)}if(so(g)||io(g))return M!==null?null:f(m,d,g,x,null);if(typeof g.then=="function")return s(m,d,Pr(g),x);if(g.$$typeof===Vn)return s(m,d,Ur(m,g),x);kr(m,g)}return null}function h(m,d,g,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return m=m.get(g)||null,r(d,m,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cr:return m=m.get(x.key===null?g:x.key)||null,u(d,m,x,M);case co:return m=m.get(x.key===null?g:x.key)||null,c(d,m,x,M);case zi:return x=ml(x),h(m,d,g,x,M)}if(so(x)||io(x))return m=m.get(g)||null,f(d,m,x,M,null);if(typeof x.then=="function")return h(m,d,g,Pr(x),M);if(x.$$typeof===Vn)return h(m,d,g,Ur(d,x),M);kr(d,x)}return null}function S(m,d,g,x){for(var M=null,T=null,w=d,N=d=0,V=null;w!==null&&N<g.length;N++){w.index>N?(V=w,w=null):V=w.sibling;var E=s(m,w,g[N],x);if(E===null){w===null&&(w=V);break}e&&w&&E.alternate===null&&t(m,w),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E,w=V}if(N===g.length)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;N<g.length;N++)w=p(m,g[N],x),w!==null&&(d=a(w,d,N),T===null?M=w:T.sibling=w,T=w);return oe&&ri(m,N),M}for(w=i(w);N<g.length;N++)V=h(w,m,N,g[N],x),V!==null&&(e&&(E=V.alternate,E!==null&&w.delete(E.key===null?N:E.key)),d=a(V,d,N),T===null?M=V:T.sibling=V,T=V);return e&&w.forEach(function(k){return t(m,k)}),oe&&ri(m,N),M}function b(m,d,g,x){if(g==null)throw Error(R(151));for(var M=null,T=null,w=d,N=d=0,V=null,E=g.next();w!==null&&!E.done;N++,E=g.next()){w.index>N?(V=w,w=null):V=w.sibling;var k=s(m,w,E.value,x);if(k===null){w===null&&(w=V);break}e&&w&&k.alternate===null&&t(m,w),d=a(k,d,N),T===null?M=k:T.sibling=k,T=k,w=V}if(E.done)return n(m,w),oe&&ri(m,N),M;if(w===null){for(;!E.done;N++,E=g.next())E=p(m,E.value,x),E!==null&&(d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return oe&&ri(m,N),M}for(w=i(w);!E.done;N++,E=g.next())E=h(w,m,N,E.value,x),E!==null&&(e&&(V=E.alternate,V!==null&&w.delete(V.key===null?N:V.key)),d=a(E,d,N),T===null?M=E:T.sibling=E,T=E);return e&&w.forEach(function(L){return t(m,L)}),oe&&ri(m,N),M}function v(m,d,g,x){if(typeof g=="object"&&g!==null&&g.type===Fl&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Cr:e:{for(var M=g.key;d!==null;){if(d.key===M){if(M=g.type,M===Fl){if(d.tag===7){n(m,d.sibling),x=l(d,g.props.children),Ri(x,g),x.return=m,m=x;break e}}else if(d.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zi&&ml(M)===d.type){n(m,d.sibling),x=l(d,g.props),Ri(x,g),x.return=m,m=x;break e}n(m,d);break}else t(m,d);d=d.sibling}g.type===Fl?(x=bl(g.props.children,m.mode,x,g.key),Ri(x,g),x.return=m,m=x):(x=Wr(g.type,g.key,g.props,null,m.mode,x),Ri(x,g),x.return=m,m=x)}return o(m);case co:e:{for(M=g.key;d!==null;){if(d.key===M)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),x=l(d,g.children||[]),x.return=m,m=x;break e}else{n(m,d);break}else t(m,d);d=d.sibling}x=fs(g,m.mode,x),x.return=m,m=x}return o(m);case zi:return g=ml(g),v(m,d,g,x)}if(so(g))return S(m,d,g,x);if(io(g)){if(M=io(g),typeof M!="function")throw Error(R(150));return g=M.call(g),b(m,d,g,x)}if(typeof g.then=="function")return v(m,d,Pr(g),x);if(g.$$typeof===Vn)return v(m,d,Ur(m,g),x);kr(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),x=l(d,g),x.return=m,m=x):(n(m,d),x=ss(g,m.mode,x),x.return=m,m=x),o(m)):n(m,d)}return function(m,d,g,x){try{_o=0;var M=v(m,d,g,x);return da=null,M}catch(w){if(w===La||w===Fu)throw w;var T=Pt(29,w,null,m.mode);return T.lanes=x,T.return=m,T}finally{}}}var Nl=Yg(!0),qg=Yg(!1),Oi=!1;function ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Su(e),_g(e,null,n),t}return Iu(e,i,t,n),Su(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}function ms(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ws=!1;function So(){if(Ws){var e=fa;if(e!==null)throw e}}function xo(e,t,n,i){Ws=!1;var l=e.updateQueue;Oi=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var u=r,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(a!==null){var p=l.baseState;o=0,f=c=u=null,r=a;do{var s=r.lane&-536870913,h=s!==r.lane;if(h?(de&s)===s:(i&s)===s){s!==0&&s===Tl&&(Ws=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Re({},p,s);break e;case 2:Oi=!0}}s=r.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[s]:h.push(s))}else h={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=h,u=p):f=f.next=h,o|=s;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,a===null&&(l.shared.lanes=0),Wi|=o,e.lanes=o,e.memoizedState=p}}function jg(e,t){if(typeof e!="function")throw Error(R(191,e));e.call(t)}function Xg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jg(n[e],t)}var Fi=Kn(null),Tu=Kn(0);function Yh(e,t){e=gi,Oe(Tu,e),Oe(Fi,t),gi=e|t.baseLanes}function ef(){Oe(Tu,gi),Oe(Fi,Fi.current)}function od(){gi=Tu.current,st(Fi),st(Tu)}var mt=Kn(null),bt=null;function qi(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(mt,e),bt===null&&(t===null||Fi.current!==null||t.memoizedState!==null)&&(bt=e)}function tf(e){Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)}function Kg(e){e.tag===22?(Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)):ji()}function ji(){Oe(ft,ft.current),Oe(mt,mt.current)}function Zt(e){st(mt),bt===e&&(bt=null),st(ft)}var ft=Kn(0);function Ho(e,t){Oe(mt,mt.current),Oe(ft,t)}function rd(e){st(ft),st(mt),bt===e&&(bt=null)}function Nu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Uf(n)||_d(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mi=0,ne=null,Me=null,Ke=null,Ru=!1,ma=!1,Rl=!1,Cu=0,Uo=0,ha=null,rx=0;function Ve(){throw Error(R(321))}function ud(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function cd(e,t,n,i,l,a){return mi=a,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?My:Ey,Rl=!1,a=n(i,l),Rl=!1,ma&&(a=Zg(t,n,i,l)),Qg(e),a}function Qg(e){Q.H=Au;var t=Me!==null&&Me.next!==null;if(mi=0,Ke=Me=ne=null,Ru=!1,Uo=0,ha=null,t)throw Error(R(300));e===null||Ze||(e=e.dependencies,e!==null&&Mu(e)&&(Ze=!0))}function Zg(e,t,n,i){ne=e;var l=0;do{if(ma&&(ha=null),Uo=0,ma=!1,25<=l)throw Error(R(301));if(l+=1,Ke=Me=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Q.H=px,a=t(n,i)}while(ma);return a}function ux(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?Fo(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function sd(){var e=Cu!==0;return Cu=0,e}function fd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function dd(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}mi=0,Ke=Me=ne=null,ma=!1,Uo=Cu=0,ha=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ye(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(R(467)):Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=Uo;return Uo+=1,ha===null&&(ha=[]),e=Gg(ha,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?My:Ey),e}function Wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fo(e);if(e.$$typeof===q1)return;if(e.$$typeof===Vn)return ct(e)}throw Error(R(438,String(e)))}function md(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$u(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Y1;return t.index++,n}function hi(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=Ye();return hd(t,Me,e)}function hd(e,t,n){var i=e.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var l=e.baseQueue,a=i.pending;if(a!==null){if(l!==null){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,i.pending=null}if(a=e.baseState,l===null)e.memoizedState=a;else{t=l.next;var r=o=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(de&p)===p:(mi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Tl&&(f=!0);else if((mi&s)===s){c=c.next,s===Tl&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,o=a):u=u.next=p,ne.lanes|=s,Wi|=s;p=c.action,Rl&&n(a,p),a=c.hasEagerState?c.eagerState:n(a,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,o=a):u=u.next=s,ne.lanes|=p,Wi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=r,!tn(a,e.memoizedState)&&(Ze=!0,f&&(n=fa,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,i.lastRenderedState=a}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function hs(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tn(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function Ig(e,t,n){var i=ne,l=Ye(),a=oe;if(a){if(n===void 0)throw Error(R(407));n=n()}else n=t();var o=!tn((Me||l).memoizedState,n);if(o&&(l.memoizedState=n,Ze=!0),l=l.queue,pd($g.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||o||Ke!==null&&(Ke.memoizedState.tag&1)!==0,xa(e?9:8,{destroy:void 0},Fg.bind(null,i,l,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(R(349));a||(mi&127)!==0||Jg(i,t,n)}return n}function Jg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=$u(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fg(e,t,n,i){t.value=n,t.getSnapshot=i,Wg(t)&&ey(e)}function $g(e,t,n){return n(function(){Wg(t)&&ey(e)})}function Wg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function ey(e){var t=Ll(e,2);t!==null&&kt(t,e,2)}function nf(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),Rl){Li(!0);try{n()}finally{Li(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function ty(e,t,n,i){return e.baseState=n,hd(e,Me,typeof i=="function"?i:hi)}function cx(e,t,n,i,l){if(tc(e))throw Error(R(485));if(e=t.action,e!==null){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Q.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,ny(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ny(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var a=Q.T,o={};o.types=a!==null?a.types:null,Q.T=o;try{var r=n(l,i),u=Q.S;u!==null&&u(o,r),qh(e,t,r)}catch(c){lf(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),Q.T=a}}else try{a=n(l,i),qh(e,t,a)}catch(c){lf(e,t,c)}}function qh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){jh(e,t,i)},function(i){return lf(e,t,i)}):jh(e,t,n)}function jh(e,t,n){t.status="fulfilled",t.value=n,iy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ny(e,n)))}function lf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,iy(t),t=t.next;while(t!==i)}e.action=null}function iy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ly(e,t){return t}function Xh(e,t){if(oe){var n=Ne.formState;if(n!==null){e:{var i=ne;if(oe){if(ze){t:{for(var l=ze,a=dn;l.nodeType!==8;){if(!a){l=null;break t}if(l=mn(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){ze=mn(l.nextSibling),i=l.data==="F!";break e}}Ji(i)}i=!1}i&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ly,lastRenderedState:t},n.queue=i,n=Sy.bind(null,ne,i),i.dispatch=n,i=nf(!1),a=vd.bind(null,ne,!1,i.queue),i=At(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=cx.bind(null,ne,l,a,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function Kh(e){var t=Ye();return ay(t,Me,e)}function ay(e,t,n){if(t=hd(e,t,ly)[0],e=nu(hi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Fo(t)}catch(o){throw o===La?Fu:o}else i=t;t=Ye();var l=t.queue,a=l.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,xa(9,{destroy:void 0},sx.bind(null,l,n),null)),[i,a,e]}function sx(e,t){e.action=t}function Qh(e){var t=Ye(),n=Me;if(n!==null)return ay(t,n,e);Ye(),t=t.memoizedState,n=Ye();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function xa(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ne.updateQueue,t===null&&(t=$u(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function oy(){return Ye().memoizedState}function iu(e,t,n,i){var l=At();ne.flags|=e,l.memoizedState=xa(1|t,{destroy:void 0},n,i===void 0?null:i)}function ec(e,t,n,i){var l=Ye();i=i===void 0?null:i;var a=l.memoizedState.inst;Me!==null&&i!==null&&ud(i,Me.memoizedState.deps)?l.memoizedState=xa(t,a,n,i):(ne.flags|=e,l.memoizedState=xa(1|t,a,n,i))}function Zh(e,t){iu(8390656,8,e,t)}function pd(e,t){ec(2048,8,e,t)}function fx(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=$u(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ry(e){var t=Ye().memoizedState;return fx({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function uy(e,t){return ec(4,2,e,t)}function cy(e,t){return ec(4,4,e,t)}function sy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fy(e,t,n){n=n!=null?n.concat([e]):null,ec(4,4,sy.bind(null,t,e),n)}function gd(){}function dy(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ud(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function my(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ud(t,i[1]))return i[0];if(i=e(),Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i}function yd(e,t,n){return n===void 0||(mi&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ab(),ne.lanes|=e,Wi|=e,n)}function hy(e,t,n,i){return tn(n,t)?n:Fi.current!==null?(e=yd(e,n,i),tn(e,t)||(Ze=!0),e):(mi&106)===0||(mi&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=n):(e=ab(),ne.lanes|=e,Wi|=e,t)}function py(e,t,n,i,l){var a=ye.p;ye.p=a!==0&&8>a?a:8;var o=Q.T,r={};r.types=o!==null?o.types:null,Q.T=r,vd(e,!1,t,n);try{var u=l(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=ox(u,i);wo(e,t,f,en(e))}else wo(e,t,i,en(e))}catch(p){wo(e,t,{then:function(){},status:"rejected",reason:p},en())}finally{ye.p=a,o!==null&&r.types!==null&&(o.types=r.types),Q.T=o}}function dx(){}function af(e,t,n,i){if(e.tag!==5)throw Error(R(476));var l=gy(e).queue;py(e,l,t,yl,n===null?dx:function(){return yy(e),n(i)})}function gy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yl,baseState:yl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:yl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yy(e){var t=gy(e);t.next===null&&(t=e.alternate.memoizedState),wo(e,t.next.queue,{},en())}function bd(){return ct(Ca)}function by(){return Ye().memoizedState}function vy(){return Ye().memoizedState}function mx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=Gi(n);var i=Yi(t,e,n);i!==null&&(kt(i,t,n),vo(i,t,n)),t={cache:nd()},e.payload=t;return}t=t.return}}function hx(e,t,n){var i=en();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e)?xy(t,n):(n=Wf(e,t,n,i),n!==null&&(kt(n,e,i),wy(n,t,i)))}function Sy(e,t,n){var i=en();wo(e,t,n,i)}function wo(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(tc(e))xy(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,r=a(o,n);if(l.hasEagerState=!0,l.eagerState=r,tn(r,o))return Iu(e,t,l,0),Ne===null&&Zu(),!1}catch{}finally{}if(n=Wf(e,t,l,i),n!==null)return kt(n,e,i),wy(n,t,i),!0}return!1}function vd(e,t,n,i){if(i={lane:2,revertLane:zd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(R(479))}else t=Wf(e,n,i,2),t!==null&&kt(t,e,2)}function tc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function xy(e,t){ma=Ru=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,og(e,n)}}var Au={readContext:ct,use:Wu,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve,useEffectEvent:Ve},My={readContext:ct,use:Wu,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,iu(4194308,4,sy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iu(4194308,4,e,t)},useInsertionEffect:function(e,t){iu(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var i=e();if(Rl){Li(!0);try{e()}finally{Li(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=At();if(n!==void 0){var l=n(t);if(Rl){Li(!0);try{n(t)}finally{Li(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=hx.bind(null,ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=nf(e);var t=e.queue,n=Sy.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gd,useDeferredValue:function(e,t){var n=At();return yd(n,e,t)},useTransition:function(){var e=nf(!1);return e=py.bind(null,ne,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ne,l=At();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ne===null)throw Error(R(349));(de&127)!==0||Jg(i,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,Zh($g.bind(null,i,a,e),[e]),i.flags|=2048,xa(9,{destroy:void 0},Fg.bind(null,i,a,n,t),null),n},useId:function(){var e=At(),t=Ne.identifierPrefix;if(oe){var n=Yn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=rx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bd,useFormState:Xh,useActionState:Xh,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vd.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:md,useCacheRefresh:function(){return At().memoizedState=mx.bind(null,ne)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},Ey={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:nu,useRef:oy,useState:function(){return nu(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=nu(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Kh,useActionState:Kh,useOptimistic:function(e,t){var n=Ye();return ty(n,Me,e,t)},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry},px={readContext:ct,use:Wu,useCallback:dy,useContext:ct,useEffect:pd,useImperativeHandle:fy,useInsertionEffect:uy,useLayoutEffect:cy,useMemo:my,useReducer:hs,useRef:oy,useState:function(){return hs(hi)},useDebugValue:gd,useDeferredValue:function(e,t){var n=Ye();return Me===null?yd(n,e,t):hy(n,Me.memoizedState,e,t)},useTransition:function(){var e=hs(hi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fo(e),t]},useSyncExternalStore:Ig,useId:by,useHostTransitionStatus:bd,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var n=Ye();return Me!==null?ty(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:md,useCacheRefresh:vy,useEffectEvent:ry};function ps(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var of={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=en(),l=Gi(i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Yi(e,l,i),t!==null&&(kt(t,e,i),vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),i=Gi(n);i.tag=2,t!=null&&(i.callback=t),t=Yi(e,i,n),t!==null&&(kt(t,e,n),vo(t,e,n))}};function Ih(e,t,n,i,l,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Oo(n,i)||!Oo(l,a):!0}function Jh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&of.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Re({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function Ty(e){vu(e)}function Ny(e){console.error(e)}function Ry(e){vu(e)}function zu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Fh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function rf(e,t,n){return n=Gi(n),n.tag=3,n.payload={element:null},n.callback=function(){zu(e,t)},n}function Cy(e){return e=Gi(e),e.tag=3,e}function Ay(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=i.value;e.payload=function(){return l(a)},e.callback=function(){Fh(t,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,i),typeof l!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function gx(e,t,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ml(t,n,l,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?ku():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ws(e,i,l)),!1;case 22:return n.flags|=65536,i===Eu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ws(e,i,l)),!1}throw Error(R(435,n.tag))}return ws(e,i,l),ku(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==Zs&&(e=Error(R(422),{cause:i}),Lo(fn(e,n)))):(i!==Zs&&(t=Error(R(423),{cause:i}),Lo(fn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=fn(i,n),l=rf(e.stateNode,i,l),ms(e,l),Be!==4&&(Be=2)),!1;var a=Error(R(520),{cause:i});if(a=fn(a,n),No===null?No=[a]:No.push(a),Be!==4&&(Be=2),t===null)return!0;i=fn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=rf(n.stateNode,i,e),ms(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Xi===null||!Xi.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Cy(l),Ay(l,e,n,i),ms(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Sd=Error(R(461)),Ze=!1;function Ie(e,t,n,i){t.child=e===null?qg(t,null,n,i):Nl(t,e.child,n,i)}function $h(e,t,n,i,l){n=n.render;var a=t.ref;if("ref"in i){var o={};for(var r in i)r!=="ref"&&(o[r]=i[r])}else o=i;return El(t),i=cd(e,t,n,o,a,l),r=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&r&&Ju(t),t.flags|=1,Ie(e,t,i,l),t.child)}function Wh(e,t,n,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!ed(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,zy(e,t,a,i,l)):(e=Wr(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wd(e,l)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Oo,n(o,i)&&e.ref===t.ref)return pi(e,t,l)}return t.flags|=1,e=ci(a,i),e.ref=t.ref,e.return=t,t.child=e}function zy(e,t,n,i,l){if(e!==null){var a=e.memoizedProps;if(Oo(a,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=a,wd(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,pi(e,t,l)}return uf(e,t,n,i,l)}function Oy(e,t,n,i){var l=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~a}else i=0,t.child=null;return ep(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&tu(t,a!==null?a.cachePool:null),a!==null?Yh(t,a):ef(),Kg(t);else return i=t.lanes=536870912,ep(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(tu(t,a.cachePool),Yh(t,a),ji(),t.memoizedState=null):(e!==null&&tu(t,null),ef(),ji());return Ie(e,t,l,n),t.child}function Mo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ep(e,t,n,i,l){var a=id();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&tu(t,null),ef(),Kg(t),e!==null&&Ml(e,t,i,!0),t.childLanes=l,null}function lu(e,t){return t=nc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tp(e,t,n){return Nl(t,e.child,null,n),e=lu(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function yx(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=lu(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Mo(null,e);if(tf(t),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return t.lanes=536870912,null}return lu(t,i)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(tf(t),l)if(t.flags&256)t.flags&=-257,t=tp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(Ze||Ml(e,t,n,!1),l=(n&e.childLanes)!==0,Ze||l){if(Fi.current===null){if(i=Ne,i!==null&&(o=rg(i,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Ll(e,o),kt(i,e,o),Sd;ku()}t=tp(e,t,n)}else e=a.treeContext,ze=mn(o.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=lu(t,i),t.flags|=134221824;return t}return e=ci(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ql(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uf(e,t,n,i,l){return El(t),n=cd(e,t,n,i,void 0,l),i=sd(),e!==null&&!Ze?(fd(e,t,l),pi(e,t,l)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,l),t.child)}function np(e,t,n,i,l,a){return El(t),t.updateQueue=null,n=Zg(t,i,n,l),Qg(e),i=sd(),e!==null&&!Ze?(fd(e,t,a),pi(e,t,a)):(oe&&i&&Ju(t),t.flags|=1,Ie(e,t,n,a),t.child)}function ip(e,t,n,i,l){if(El(t),t.stateNode===null){var a=la,o=n.contextType;typeof o=="object"&&o!==null&&(a=ct(o)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=of,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},ad(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?ct(o):la,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(ps(t,n,o,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&of.enqueueReplaceState(a,a.state,null),xo(t,i,a,l),So(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=Cl(n,r);a.props=u;var c=a.context,f=n.contextType;o=la,typeof f=="object"&&f!==null&&(o=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||c!==o)&&Jh(t,a,i,o),Oi=!1;var s=t.memoizedState;a.state=s,xo(t,i,a,l),So(),c=t.memoizedState,r||s!==c||Oi?(typeof p=="function"&&(ps(t,n,p,i),c=t.memoizedState),(u=Oi||Ih(t,n,u,i,s,c,o))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=o,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,$s(e,t),o=t.memoizedProps,f=Cl(n,o),a.props=f,p=t.pendingProps,s=a.context,c=n.contextType,u=la,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||s!==u)&&Jh(t,a,i,u),Oi=!1,s=t.memoizedState,a.state=s,xo(t,i,a,l),So();var h=t.memoizedState;o!==p||s!==h||Oi||e!==null&&e.dependencies!==null&&Mu(e.dependencies)?(typeof r=="function"&&(ps(t,n,r,i),h=t.memoizedState),(f=Oi||Ih(t,n,f,i,s,h,u)||e!==null&&e.dependencies!==null&&Mu(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=u,i=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Ql(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Nl(t,e.child,null,l),t.child=Nl(t,null,n,l)):Ie(e,t,n,l),t.memoizedState=a.state,e=t.child):e=pi(e,t,l),e}function lp(e,t,n,i){return wl(),t.flags|=256,Ie(e,t,n,i),t.child}var cf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:Bg()}}function ff(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function Dy(e,t,n){var i=t.pendingProps,l=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?qi(t):ji(),(e=ze)?(e=Ob(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ii!==null?{id:Gn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},n=Ug(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Ji(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}return a=i.children,i=i.fallback,l?(ji(),l=t.mode,a=nc({mode:"hidden",children:a},l),i=bl(i,l,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,i=t.child,i.memoizedState=sf(n),i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(null,i)):(qi(t),xd(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return bx(e,t,a,o,i,u,r,n)}return l?(ji(),l=i.fallback,a=t.mode,r=e.child,u=r.sibling,i=ci(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?l=ci(u,l):(l=bl(l,a,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,Mo(null,i),i=t.child,l=e.child.memoizedState,l===null?l=sf(n):(a=l.cachePool,a!==null?(r=Qe._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=Bg(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=ff(e,o,n),t.memoizedState=cf,Mo(e.child,i)):(qi(t),n=e.child,e=n.sibling,n=ci(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function xd(e,t){return t=nc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Vr(e,t,n){return Nl(t,e.child,null,n),e=xd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bx(e,t,n,i,l,a,o,r){if(n)return t.flags&256?(qi(t),t.flags&=-257,Vr(e,t,r)):t.memoizedState!==null?(ji(),t.child=e.child,t.flags|=128,null):(ji(),a=l.fallback,o=t.mode,l=nc({mode:"visible",children:l.children},o),a=bl(a,o,r,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,Nl(t,e.child,null,r),l=t.child,l.memoizedState=sf(r),l.childLanes=ff(e,i,r),t.memoizedState=cf,Mo(null,l));if(qi(t),_d(a)){if(i=a.nextSibling&&a.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(l=Error(R(419)),l.stack="",l.digest=i,Lo({value:l,source:null,stack:null})),Vr(e,t,r)}if(Ze||Ml(e,t,r,!1),i=(r&e.childLanes)!==0,Ze||i){if(Fi.current!==null)return Vr(e,t,r);if(i=Ne,i!==null&&(l=rg(i,r),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ll(e,l),kt(i,e,l),Sd;return Uf(a)||ku(),Vr(e,t,r)}return Uf(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ze=mn(a.nextSibling),ot=t,oe=!0,Bi=null,dn=!1,e!==null&&kg(t,e),t=xd(t,l.children),t.flags|=134221824,t)}function ap(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),eu(e.return,t,n)}function op(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Nu(n)===null&&(t=e),e=e.sibling}return t}function Br(e,t,n,i,l,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=l,o.treeForkCount=a)}function gs(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function df(e,t,n){var i=t.pendingProps,l=i.revealOrder,a=i.tail;i=i.children;var o=ft.current;if(t.flags&128)return Ho(t,o),null;var r=(o&2)!==0;if(r?(o=o&1|2,t.flags|=128):o&=1,Ho(t,o),l==="backwards"&&e!==null?(gs(e),Ie(e,t,i,n),gs(e)):Ie(e,t,i,n),i=oe?Do:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ap(e,n,t);else if(e.tag===19)ap(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,gs(t)),Br(t,!0,l,null,a,i);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Nu(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Br(t,!0,n,null,a,i);break;case"together":Br(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=op(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Br(t,!1,l,n,a,i)}return t.child}function rp(e,t,n){var i=t.pendingProps;return Hi(t,t.type,i.value),Ie(e,t,i.children,n),t.child}function pi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=ci(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ci(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mu(e)))}function vx(e,t,n){switch(t.tag){case 3:pu(t,t.stateNode.containerInfo),Hi(t,Qe,e.memoizedState.cache),wl();break;case 27:case 5:ks(t);break;case 4:pu(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return qi(t),t.flags|=128,null;i=Ml(e,t,n,!1);var l=t.child.childLanes;return i||(n&l)!==0?Dy(e,t,n):(qi(t),e=pi(e,t,n),e!==null?e.sibling:null)}qi(t);break;case 19:if(t.flags&128)return df(e,t,n);if(l=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(Ml(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return df(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ho(t,ft.current),i)break;return null;case 22:return t.lanes=0,Oy(e,t,n,t.pendingProps);case 24:Hi(t,Qe,e.memoizedState.cache)}return pi(e,t,n)}function Ly(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!wd(e,n)&&(t.flags&128)===0)return Ze=!1,vx(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,oe&&(t.flags&1048576)!==0&&Pg(t,Do,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ml(t.elementType),t.type=e,typeof e=="function")ed(e)?(i=Cl(e,i),t.tag=1,t=ip(null,t,e,i,n)):(t.tag=0,t=uf(null,t,e,i,n));else{if(e!=null){var l=e.$$typeof;if(l===Gf){t.tag=11,t=$h(null,t,e,i,n);break e}else if(l===Yf){t.tag=14,t=Wh(null,t,e,i,n);break e}else if(l===Vn){t.tag=10,t.type=e,t=rp(null,t,n);break e}}throw t=Us(e)||e,Error(R(306,t,""))}}return t;case 0:return uf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=Cl(i,t.pendingProps),ip(e,t,i,l,n);case 3:e:{if(pu(t,t.stateNode.containerInfo),e===null)throw Error(R(387));i=t.pendingProps;var a=t.memoizedState;l=a.element,$s(e,t),xo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,Hi(t,Qe,i),i!==a.cache&&Js(t,[Qe],n,!0),So(),i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=lp(e,t,i,n);break e}else if(i!==l){l=fn(Error(R(424)),t),Lo(l),t=lp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=mn(e.firstChild),ot=t,oe=!0,Bi=null,dn=!0,n=qg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(wl(),i===l){t=pi(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Ql(e,t),e===null?(n=_p(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=wb(t.type,t.pendingProps,Vi.current,t)):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ks(t),e===null&&oe&&(i=t.stateNode=Db(t.type,t.pendingProps,Vi.current),ot=t,dn=!0,l=ze,tl(t.type)?(Pf=l,ze=mn(i.firstChild)):ze=l),Ie(e,t,t.pendingProps.children,n),Ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=i=ze)&&(i=fw(i,t.type,t.pendingProps,dn),i!==null?(t.stateNode=i,ot=t,ze=mn(i.firstChild),dn=!1,l=!0):l=!1),l||Ji(t)),ks(t),l=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Lf(l,a)?i=null:o!==null&&Lf(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=cd(e,t,ux,null,null,n),Ca._currentValue=l),Ql(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=ze)&&(n=dw(n,t.pendingProps,dn),n!==null?(t.stateNode=n,ot=t,ze=null,e=!0):e=!1),e||Ji(t)),null;case 13:return Dy(e,t,n);case 4:return pu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Nl(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Ql(e,t),Ie(e,t,i,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return rp(e,t,n);case 9:return l=t.type._context,i=t.pendingProps.children,El(t),l=ct(l),i=i(l),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,n);case 15:return zy(e,t,t.type,t.pendingProps,n);case 19:return df(e,t,n);case 31:return yx(e,t,n);case 22:return Oy(e,t,n,t.pendingProps);case 24:return El(t),i=ct(Qe),e===null?(l=id(),l===null&&(l=Ne,a=nd(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:i,cache:l},ad(t),Hi(t,Qe,l)):((e.lanes&n)!==0&&($s(e,t),xo(t,null,null,n),So()),l=e.memoizedState,a=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Hi(t,Qe,i)):(i=a.cache,Hi(t,Qe,i),i!==l.cache&&Js(t,[Qe],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Ju(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Ql(e,t),Ie(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function oi(e){e.flags|=4}function ys(e,t,n,i,l){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Pp(t,i):Pp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(ub())e.flags|=8192;else throw Sl=Eu,ld}else e.flags&=-16777217}function up(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ub(t))if(ub())e.flags|=8192;else throw Sl=Eu,ld}function Gr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lg():536870912,e.lanes|=t,wa|=t)}function ao(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Sx(e,t,n){var i=t.pendingProps;switch(td(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),si(Qe),ba(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?oi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ds())),Ae(t),null;case 26:var l=t.type,a=t.memoizedState;return e===null?(oi(t),a!==null?(Ae(t),up(t,a)):(Ae(t),ys(t,l,null,i,n))):a?a!==e.memoizedState?(oi(t),Ae(t),up(t,a)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&oi(t),Ae(t),ys(t,l,e,i,n)),null;case 27:if(gu(t),n=Vi.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=qn.current,Xl(t)?Hh(t,e):(e=Db(l,i,n),t.stateNode=e,oi(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(gu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(a=qn.current,Xl(t))Hh(t,a);else{var o=Vo(Vi.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?o.createElement(l,{is:i.is}):o.createElement(l)}}a[ut]=t,a[Bt]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(dt(a,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&oi(t)}}return Ae(t),t.subtreeFlags&=-33554433,ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&oi(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(R(166));if(e=Vi.current,Xl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,l=ot,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Sb(e.nodeValue,n)),e||Ji(t,!0)}else e=Vo(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Xl(t),n!==null){if(e===null){if(!i)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(R(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Xl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ut]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),l=!1}else l=ds(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Gr(t,t.updateQueue),Ae(t),null);case 4:return ba(),e===null&&Od(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return si(t.type),Ae(t),null;case 19:if(rd(t),i=t.memoizedState,i===null)return Ae(t),null;if(l=(t.flags&128)!==0,a=i.rendering,a===null)if(l)ao(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Nu(e),a!==null){for(t.flags|=128,ao(i,!1),e=a.updateQueue,t.updateQueue=e,Gr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hg(n,e),n=n.sibling;return Ho(t,ft.current&1|2),oe&&ri(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Uu&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304)}else{if(!l)if(e=Nu(a),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Gr(t,e),ao(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!a.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Uu&&n!==536870912&&(t.flags|=128,l=!0,ao(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,a=ft.current,a=l?a&1|2:a&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Ho(t,a):(n=a,Oe(mt,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ri(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Zt(t),od(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Gr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(vl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),si(Qe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(R(156,t.tag))}function xx(e,t){switch(td(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(Qe),ba(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gu(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ba(),null;case 10:return si(t.type),null;case 22:case 23:return Zt(t),od(),e!==null&&st(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return si(Qe),null;case 25:return null;default:return null}}function _y(e,t){switch(td(t),t.tag){case 3:si(Qe),ba();break;case 26:case 27:case 5:gu(t);break;case 4:ba();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:rd(t);break;case 10:si(t.type);break;case 22:case 23:Zt(t),od(),e!==null&&st(vl);break;case 24:si(Qe)}}function $o(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e){i=void 0;var a=n.create,o=n.inst;i=a(),o.destroy=i}n=n.next}while(n!==l)}}catch(r){xe(t,t.return,r)}}function $i(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var a=l.next;i=a;do{if((i.tag&e)===e){var o=i.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,l=t;var u=n,c=r;try{c()}catch(f){xe(l,u,f)}}}i=i.next}while(i!==a)}}catch(f){xe(t,t.return,f)}}function Hy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xg(t,n)}catch(i){xe(e,e.return,i)}}}function Uy(e,t,n){n.props=Cl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Pn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,a=di(e.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=Nb(a)),i=l.ref;break;case 7:if(e.stateNode===null){var o=new nn(e);Vt(e.child,!1,cw,o,void 0,void 0),e.stateNode=o}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){xe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){xe(e,t,l)}else n.current=null}function Ou(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)zb(e.stateNode,t[n])}function cp(e){for(var t=e.return;t!==null&&(Ed(t)&&zb(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Eo(e){for(var t=e.return;t!==null&&(Ed(t)&&sw(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Md(e){return e.tag===5||e.tag===3||e.tag===27}function Ed(e){return e&&e.tag===7&&e.stateNode!==null}function mf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){xe(e,e.return,l)}}function bs(e,t,n){try{var i=e.stateNode;Xx(i,e.type,n,t),i[Bt]=t}catch(l){xe(e,e.return,l)}}function Py(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Py(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hf(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bn)),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(hf(e,t,n,i),e=e.sibling;e!==null;)hf(e,t,n,i),e=e.sibling}function Du(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Ou(e,i),pe=!0;else if(l!==4&&(l===27&&(Ou(e,i),i=null,tl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Du(e,t,n,i),e=e.sibling;e!==null;)Du(e,t,n,i),e=e.sibling}function ky(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(a){xe(e,e.return,a)}}var Lu=!1,It=null;function sp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Lu=!0)}var kn=null;function fp(){var e=kn;return kn=null,e}var Ut=0;function _a(e,t,n,i,l){return Ut=0,Vy(e.child,t,n,i,l)}function Vy(e,t,n,i,l){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(i!==null){var r=_f(o);i.push(r),r.view&&(a=!0)}else a||_f(o).view&&(a=!0);Lu=!0,Mb(o,Ut===0?t:t+"_"+Ut,n),Ut++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||Vy(e.child,t,n,i,l)&&(a=!0));e=e.sibling}return a}function Xn(e,t){for(;e!==null;)e.tag===5?Eb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xn(e.child,t)),e=e.sibling}function au(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(au(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(R(544));var n=t.name;t=bi(t.default,t.share),t!=="none"&&(_a(e,n,t,null,!1)||Xn(e.child,!1))}e=e.sibling}}function pf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,l=di(i,n),a=bi(i.default,n.paired?i.share:i.enter);a!=="none"?_a(e,l,a,null,!1)?(au(e),n.paired||t||Ma(e,i.onEnter)):Xn(e.child,!1):au(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)pf(e,t),e=e.sibling;else au(e)}function gf(e){if(It!==null&&It.size!==0){var t=It;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var a=bi(n.default,n.share);if(a!=="none"&&(_a(e,i,a,null,!1)?(a=e.stateNode,l.paired=a,a.paired=l,Ma(e,n.onShare)):Xn(e.child,!1)),t.delete(i),t.size===0)break}}}gf(e)}e=e.sibling}}}function yf(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),i=It!==null?It.get(n):void 0,l=bi(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(_a(e,n,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,It.delete(n),Ma(e,t.onShare)):Ma(e,t.onExit):Xn(e.child,!1)),It!==null&&gf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)yf(e),e=e.sibling;else It!==null&&gf(e)}function By(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=bi(t.default,t.update),e.flags&=-5,t!=="none"&&_a(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&By(e);e=e.sibling}}function bf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xn(e.child,!1))}bf(e)}e=e.sibling}}function ou(e){if(e.tag===30)e.stateNode.paired=null,Xn(e.child,!1),bf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)ou(e),e=e.sibling;else bf(e)}function Gy(e){for(e=e.child;e!==null;)e.tag===30?Xn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Gy(e),e=e.sibling}function Td(e,t,n,i,l,a,o){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&Ut<a.length){var c=a[Ut],f=_f(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Mb(u,Ut===0?n:n+"_"+Ut,l),r&&(e.flags&4)!==0||(kn===null&&(kn=[]),kn.push(u,Ut===0?i:i+"_"+Ut,t.memoizedProps)),Ut++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Td(e,t.child,n,i,l,a,o)&&(r=!0));t=t.sibling}return r}function Yy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,l=di(n,i),a=bi(n.default,n.update);if(t){i=i.clones;var o=i===null?null:i.map(Fx)}else o=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;Ut=0,l=Td(i,r,l,l,a,o,!1),(e.flags&4)!==0&&l&&(t||Ma(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Yy(e,t);e=e.sibling}}var it=!1,be=!1,_n=!1,Ss=!1,dp=typeof WeakSet=="function"?WeakSet:Set,lt=null,Hn=!1,ho=!1,_u=!1,vf=!1;function wx(e,t,n){if(e=e.containerInfo,Of=Aa,e=Rg(e),Ff(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var a=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{i.nodeType,o.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,h=null;t:for(;;){for(var S;s!==i||a!==0&&s.nodeType!==3||(u=r+a),s!==o||l!==0&&s.nodeType!==3||(c=r+l),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)h=s,s=S;for(;;){if(s===e)break t;if(h===i&&++f===a&&(u=r),h===o&&++p===l&&(c=r),(S=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},Aa=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(a=0;a<i.length;a++)n&&yf(i[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&sp(e),Yr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&yf(i),Yr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&sp(e),Yr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&By(e),Yr(n))}}It=null}function Yr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){n=void 0,l=i.memoizedProps,i=i.memoizedState;var a=t.stateNode;try{var o=Cl(t.type,l);n=a.getSnapshotBeforeUpdate(o,i),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Hf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Hf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=di(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=bi(l.default,l.update),l!=="none"&&_a(i,n,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(R(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function qy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&$o(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){xe(n,n.return,o)}else{var l=Cl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xe(n,n.return,o)}}i&64&&Hy(n),i&512&&Pn(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xg(e,t)}catch(o){xe(n,n.return,o)}}break;case 27:t===null&&i&4&&ky(n);case 26:case 5:Un(e,n),t===null&&i&4&&mf(n),i&512&&Pn(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Qy(e,n);break;case 13:Un(e,n),i&4&&Zy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_x.bind(null,n),mw(e,n))));break;case 22:if(i=n.memoizedState!==null||it,!i){var a=t!==null&&t.memoizedState!==null||be;t=it,l=be,it=i,(be=a)&&!l?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),bn(e,n,i)):Un(e,n),it=t,be=l}break;case 30:Un(e,n),i&512&&Pn(n,n.return);break;case 7:i&512&&Pn(n,n.return);default:Un(e,n)}}function Sf(e,t){for(e=e.child;e!==null;)jy(e,t),e=e.sibling}function jy(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(u){xe(e,e.return,u)}xf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,pe=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Cp(r,!0):Cp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Sf(e,t);break;default:Sf(e,t)}}function xf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:jy(n,i);break e;case 22:n.memoizedState===null&&xf(n,i);break e;default:xf(n,i)}}e=e.sibling}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ky(e,t,n),n=n.sibling}function Ky(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Xo,n)}catch{}switch(n.tag){case 26:be||rt(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),Eo(n);var i=Ue,l=_t;tl(n.type)&&(Ue=n.stateNode,_t=!1),yn(e,t,n),Lb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=l;break;case 5:be||rt(n,t),Eo(n);case 6:if(n.tag===6&&Eo(n),i=Ue,l=_t,Ue=null,yn(e,t,n),Ue=i,_t=l,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}else try{Ue.removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}break;case 18:Ue!==null&&(_t?(e=Ue,Rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),za(e)):Rp(Ue,n.stateNode));break;case 4:i=Ue,l=_t,Ue=n.stateNode.containerInfo,_t=!0,yn(e,t,n),Ue=i,_t=l;break;case 0:case 11:case 14:case 15:$i(2,n,t),be||$i(4,n,t),yn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Uy(n,t,i)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,yn(e,t,n),be=i;break;case 30:rt(n,t),yn(e,t,n);break;case 7:be||rt(n,t),yn(e,t,n);break;default:yn(e,t,n)}}function Qy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{za(e)}catch(n){xe(t,t.return,n)}}}function Zy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{za(e)}catch(n){xe(t,t.return,n)}}function Mx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dp),t;default:throw Error(R(435,e.tag))}}function qr(e,t){var n=Mx(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var l=Hx.bind(null,e,i);i.then(l,l)}})}function Rt(e,t,n){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l],o=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(tl(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(R(160));Ky(o,r,a),Ue=null,_t=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Iy(t,e,n),t=t.sibling}var vn=null;function Iy(e,t,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var a=0;a<i.length;a++){var o=i[a];o.ref.impl=o.nextImpl}Rt(t,e,n),Ct(e),l&4&&($i(3,e,e.return),$o(3,e),$i(5,e,e.return));break;case 1:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=vn,Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(it)e.stateNode=wb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=a.ownerDocument||a;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Zo]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(a=Up("link","href",l).get(t+(n.href||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;case"meta":if(a=Up("meta","content",l).get(t+(n.content||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;default:throw Error(R(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else it||kf(a,e.type,e.stateNode);else e.stateNode=Hp(a,n,e.memoizedProps);else l!==n?(l===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):l.count--,n===null?it||kf(a,e.type,e.stateNode):Hp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&bs(e,e.memoizedProps,i.memoizedProps);break;case 27:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),i!==null&&l&4&&bs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=_n,_n=!1,Rt(t,e,n),_n=a,Ct(e),l&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{Sa(t,""),pe=!0}catch(f){xe(e,e.return,f)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,bs(e,t,i!==null?i.memoizedProps:t)),l&1024&&(Ss=!0);break;case 6:if(Rt(t,e,n),Ct(e),l&4){if(e.stateNode===null)throw Error(R(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,pe=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(pe=!1,su=null,a=vn,vn=Bo(t.containerInfo),Rt(t,e,n),vn=a,Ct(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{za(t.containerInfo)}catch(f){xe(e,e.return,f)}Ss&&(Ss=!1,Jy(e)),pe=!1;break;case 4:l=_n,_n=it,i=bh(),a=vn,vn=Bo(e.stateNode.containerInfo),Rt(t,e,n),Ct(e),vn=a,pe&&ho&&(_u=!0),pe=i,_n=l;break;case 12:Rt(t,e,n),Ct(e);break;case 31:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 13:Rt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ic=Ft()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 22:a=e.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var r=it,u=be,c=_n;it=r||a,_n=c||a,be=u||o,Rt(t,e,n),be=u,_n=c,it=r,Ct(e),l&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||i===null||o||it||be||(t=o||be,n=it,i=be,it=a||it,be=t,Ai(e,2),it=n,be=i),!a&&_n||Sf(e,a)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,qr(e,n))));break;case 19:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 30:l&512&&(be||i===null||rt(i,i.return)),l=bh(),a=ho,o=(n&335544064)===n,r=e.memoizedProps,ho=o&&bi(r.default,r.update)!=="none",Rt(t,e,n),Ct(e),o&&i!==null&&pe&&(e.flags|=4),ho=a,pe=l;break;case 21:break;case 7:l&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Rt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Py(i)){n=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Ed(l)){var a=l.stateNode;i===null?i=[a]:i.push(a)}if(Md(l))break;l=l.return}var o=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var r=n.stateNode,u=vs(e);Du(e,u,r,o);break;case 5:var c=n.stateNode;n.flags&32&&(Sa(c,""),n.flags&=-33);var f=vs(e);Du(e,f,c,o);break;case 3:case 4:var p=n.stateNode.containerInfo,s=vs(e);hf(e,s,p,o);break;default:throw Error(R(161))}}catch(h){xe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Aa=!0,t.reset(),Aa=!1),e=e.sibling}}function Kl(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fy(t,e),t=t.sibling;else Yy(t,!1)}function Fy(e,t){var n=e.alternate;if(n===null)pf(e,!1);else switch(e.tag){case 3:if(vf=Hn=!1,fp(),Kl(t,e),!Hn&&!_u){if(e=kn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var l=e[i+1];Eb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),vf=!0}kn=null;break;case 5:Kl(t,e);break;case 4:i=Hn,Hn=!1,Kl(t,e),Hn&&(_u=!0),Hn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?pf(e,!1):Kl(t,e));break;case 30:i=Hn,l=fp(),Hn=!1,Kl(t,e),Hn&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var r=bi(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ut=0,t=Td(e,n,t,o,r,a,!0),Ut!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ma(e,e.memoizedProps.onUpdate),kn=l):l!==null&&(l.push.apply(l,kn),kn=l),Hn=(e.flags&32)!==0?!0:i;break;default:Kl(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qy(e,t.alternate,t),t=t.sibling}function Ai(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:$i(4,n,n.return),Ai(n,i);break;case 1:rt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Uy(n,n.return,l),Ai(n,i);break;case 27:(i&2)!==0&&Lb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||Eo(n),Ai(n,i);break;case 6:Eo(n);break;case 26:rt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||be||l.parentNode.removeChild(l),Ai(n,i);break;case 22:n.memoizedState===null&&Ai(n,i);break;case 30:rt(n,n.return),Ai(n,i);break;case 7:rt(n,n.return);default:Ai(n,i)}e=e.sibling}}function bn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,l=e,a=t,o=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:bn(l,a,n),$o(4,a);break;case 1:if(bn(l,a,n),i=a,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=a,l=i.updateQueue,l!==null){var u=i.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)jg(c[l],u)}catch(f){xe(i,i.return,f)}}r&&o&64&&Hy(a),Pn(a,a.return);break;case 27:(n&2)!==0&&ky(a);case 5:a.tag!==5&&a.tag!==27||cp(a),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 6:cp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||it||kf(Bo(u.ownerDocument),a.type,u),bn(l,a,n),r&&i===null&&o&4&&mf(a),Pn(a,a.return);break;case 12:bn(l,a,n);break;case 31:bn(l,a,n),r&&o&4&&Qy(l,a);break;case 13:bn(l,a,n),r&&o&4&&Zy(l,a);break;case 22:a.memoizedState===null&&bn(l,a,n),Pn(a,a.return);break;case 30:bn(l,a,n),Pn(a,a.return);break;case 7:Pn(a,a.return);default:bn(l,a,n)}t=t.sibling}}function Nd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Jo(n))}function Rd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jo(e))}function on(e,t,n,i){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)$y(e,t,n,i),t=t.sibling;else l&&Gy(t)}function $y(e,t,n,i){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ou(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),a&2048&&$o(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),l&&vf&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Jo(a)));break;case 12:if(a&2048){on(e,t,n,i),a=t.stateNode;try{var o=t.memoizedProps,r=o.id,u=o.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&ou(r),o._visibility&2?on(e,t,n,i):To(e,t)):(l&&r!==null&&r.memoizedState!==null&&ou(t),o._visibility&2?on(e,t,n,i):(o._visibility|=2,Zl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Nd(r,t);break;case 24:on(e,t,n,i),a&2048&&Rd(t.alternate,t);break;case 30:l&&(a=t.alternate,a!==null&&(Xn(a.child,!0),Xn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Zl(e,t,n,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,r=n,u=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(a,o,r,u,l),$o(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Zl(a,o,r,u,l):To(a,o):(f._visibility|=2,Zl(a,o,r,u,l)),l&&c&2048&&Nd(o.alternate,o);break;case 24:Zl(a,o,r,u,l),l&&c&2048&&Rd(o.alternate,o);break;default:Zl(a,o,r,u,l)}t=t.sibling}}function To(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,l=i.flags;switch(i.tag){case 22:To(n,i),l&2048&&Nd(i.alternate,i);break;case 24:To(n,i),l&2048&&Rd(i.alternate,i);break;default:To(n,i)}t=t.sibling}}var hl=8192;function fl(e,t,n){if(e.subtreeFlags&hl)for(e=e.child;e!==null;)Wy(e,t,n),e=e.sibling}function Wy(e,t,n){switch(e.tag){case 26:fl(e,t,n),e.flags&hl&&(e.memoizedState!==null?Rw(n,vn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&kp(n,e)));break;case 5:fl(e,t,n),e.flags&hl&&(e=e.stateNode,(t&335544128)===t&&kp(n,e));break;case 3:case 4:var i=vn;vn=Bo(e.stateNode.containerInfo),fl(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=hl,hl=16777216,fl(e,t,n),hl=i):fl(e,t,n));break;case 30:if((e.flags&hl)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,It===null&&(It=new Map),It.set(i,l)}fl(e,t,n);break;default:fl(e,t,n)}}function eb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tb(e),e=e.sibling}function tb(e){switch(e.tag){case 0:case 11:case 15:oo(e),e.flags&2048&&$i(9,e,e.return);break;case 3:oo(e);break;case 12:oo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ru(e)):oo(e);break;default:oo(e)}}function ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,nb(i,e)}eb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$i(8,t,t.return),ru(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ru(t));break;default:ru(t)}e=e.sibling}}function nb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:$i(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Jo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var l=i.sibling,a=i.return;if(Xy(i),i===n){lt=null;break e}if(l!==null){l.return=a,lt=l;break e}lt=a}}}var Ex={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},Tx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,se=null,de=0,ve=0,Kt=null,Ui=!1,Ha=!1,Cd=!1,gi=0,Be=0,Wi=0,xl=0,Hu=0,Jt=0,wa=0,No=null,Ht=null,wf=!1,ic=0,ib=0,Uu=1/0,Pu=null,Xi=null,ke=0,xn=null,Al=null,jn=0,Mf=0,Ef=null,lb=null,pa=null,ga=null,ya=null,Ro=0,uu=null;function en(){return(ge&2)!==0&&de!==0?de&-de:Q.T!==null?zd():ug()}function ab(){if(Jt===0)if((de&536870912)===0||oe){var e=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),Jt=e}else Jt=536870912;return e=mt.current,e!==null&&(e.flags|=32),Jt}function Ma(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Nb(di(e.memoizedProps,n))),ga===null&&(ga=[]),ga.push(t.bind(null,i))}}function kt(e,t,n){(e===Ne&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ea(e,0),Pi(e,de,Jt,!1)),Qo(e,n),((ge&2)===0||e!==Ne)&&(e===Ne&&((ge&2)===0&&(xl|=n),Be===4&&Pi(e,de,Jt,!1)),Qn(e))}function ob(e,t,n){if((ge&6)!==0)throw Error(R(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ko(e,t),l=i?Cx(e,t):xs(e,t,!0),a=i;do{if(l===0){Ha&&!i&&Pi(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Nx(n)){l=xs(e,t,!1),a=!1;continue}if(l===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var r=e;l=No;var u=r.current.memoizedState.isDehydrated;if(u&&(Ea(r,o).flags|=256),o=xs(r,o,!1),o!==2&&o!==6){if(Cd&&!u){r.errorRecoveryDisabledLanes|=a,xl|=a,l=4;break e}a=Ht,Ht=l,a!==null&&(Ht===null?Ht=a:Ht.push.apply(Ht,a))}l=o}if(a=!1,l!==2)continue}}if(l===1){Ea(e,0),Pi(e,t,0,!0);break}e:{switch(i=e,a=l,a){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Pi(i,t,Jt,!Ui);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(l=ic+300-Ft(),10<l)){if(Pi(i,t,Jt,!Ui),qu(i,0,!0)!==0)break e;jn=t,i.timeoutHandle=Dd(mp.bind(null,i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,"Throttled",-0,0),l);break e}mp(i,n,Ht,Pu,wf,t,Jt,xl,wa,Ui,a,null,-0,0)}}break}while(!0);Qn(e)}function mp(e,t,n,i,l,a,o,r,u,c,f,p,s,h){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(a&335544064)===a;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},It=null,Wy(t,a,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Go.bind(S),b.finished.then(S,S))),S=(a&62914560)===a?ic-Ft():(a&4194048)===a?ib-Ft():0,S=Cw(p,S),S!==null)){jn=a,e.cancelPendingCommit=S(pp.bind(null,e,t,a,n,i,l,o,r,u,c,f,p,null,s,h)),Pi(e,a,o,!c);return}pp(e,t,a,n,i,l,o,r,u,c,f,p)}function Nx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],a=l.getSnapshot;l=l.value;try{if(!tn(a(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pi(e,t,n,i){t=ig(e,t),t&=~Hu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var a=31-Wt(l),o=1<<a;i[a]=-1,l&=~o}n!==0&&ag(e,n,t)}function lc(){return(ge&6)===0?(Wo(0,!1),!1):!0}function Ad(){if(se!==null){if(ve===0)var e=se.return;else e=se,ui=_l=null,dd(e),da=null,_o=0,e=se;for(;e!==null;)_y(e.alternate,e),e=e.return;se=null}}function Ea(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Zx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,Ad(),Ne=e,se=n=ci(e.current,null),de=t,ve=0,Kt=null,Ui=!1,Ha=Ko(e,t),Cd=!1,wa=Jt=Hu=xl=Wi=Be=0,Ht=No=null,wf=!1,gi=ig(e,t),Zu(),n}function rb(e,t){ne=null,Q.H=Au,t===La||t===Fu?(t=Bh(),ve=3):t===ld?(t=Bh(),ve=4):ve=t===Sd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,se===null&&(Be=1,zu(e,fn(t,e.current)))}function ub(){var e=mt.current;return e===null?!0:(de&4194048)===de?bt===null:(de&62914560)===de||(de&536870912)!==0?e===bt:!1}function cb(){var e=Q.H;return Q.H=Au,e===null?Au:e}function sb(){var e=Q.A;return Q.A=Ex,e}function ku(){Be=4,Ui||(de&4194048)!==de&&mt.current!==null||(Ha=!0),(Wi&134217727)===0&&(xl&134217727)===0||Ne===null||Pi(Ne,de,Jt,!1)}function xs(e,t,n){var i=ge;ge|=2;var l=cb(),a=sb();(Ne!==e||de!==t)&&(Pu=null,Ea(e,t)),t=!1;var o=Be;e:do try{if(ve!==0&&se!==null){var r=se,u=Kt;switch(ve){case 8:Ad(),o=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var c=ve;if(ve=0,Kt=null,ra(e,r,u,c),n&&Ha){o=0;break e}break;default:c=ve,ve=0,Kt=null,ra(e,r,u,c)}}Rx(),o=Be;break}catch(f){rb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ui=_l=null,ge=i,Q.H=l,Q.A=a,se===null&&(Ne=null,de=0,Zu()),o}function Rx(){for(;se!==null;)fb(se)}function Cx(e,t){var n=ge;ge|=2;var i=cb(),l=sb();Ne!==e||de!==t?(Pu=null,Uu=Ft()+500,Ea(e,t)):Ha=Ko(e,t);e:do try{if(ve!==0&&se!==null){t=se;var a=Kt;t:switch(ve){case 1:ve=0,Kt=null,ra(e,t,a,1);break;case 2:case 9:if(Vh(a)){ve=0,Kt=null,hp(t);break}t=function(){ve!==2&&ve!==9||Ne!==e||(ve=7),Qn(e)},a.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Vh(a)?(ve=0,Kt=null,hp(t)):(ve=0,Kt=null,ra(e,t,a,7));break;case 5:var o=null;switch(se.tag){case 26:o=se.memoizedState;case 5:case 27:var r=se;if(o?Ub(o):r.stateNode.complete){ve=0,Kt=null;var u=r.sibling;if(u!==null)se=u;else{var c=r.return;c!==null?(se=c,ac(c)):se=null}break t}}ve=0,Kt=null,ra(e,t,a,5);break;case 6:ve=0,Kt=null,ra(e,t,a,6);break;case 8:Ad(),Be=6;break e;default:throw Error(R(462))}}Ax();break}catch(f){rb(e,f)}while(!0);return ui=_l=null,Q.H=i,Q.A=l,ge=n,se!==null?0:(Ne=null,de=0,Zu(),Be)}function Ax(){for(;se!==null&&!K1();)fb(se)}function fb(e){var t=Ly(e.alternate,e,gi);e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function hp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=np(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=np(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:dd(t);var i=t;i===ot&&(oe?(wu(i),i.tag===5&&i.stateNode!=null&&(ze=i.stateNode)):(wu(i),oe=!0));default:_y(n,t),t=se=Hg(t,gi),t=Ly(n,t,gi)}e.memoizedProps=e.pendingProps,t===null?ac(e):se=t}function ra(e,t,n,i){ui=_l=null,dd(t),da=null,_o=0;var l=t.return;try{if(gx(e,l,t,n,de)){Be=1,zu(e,fn(n,e.current)),se=null;return}}catch(a){if(l!==null)throw se=l,a;Be=1,zu(e,fn(n,e.current)),se=null;return}t.flags&32768?(oe||i===1?e=!0:Ha||(de&536870912)!==0?e=!1:(Ui=e=!0,(i===2||i===9||i===3||i===6)&&(i=mt.current,i!==null&&i.tag===13&&(i.flags|=16384))),db(t,e)):ac(t)}function ac(e){var t=e;do{if((t.flags&32768)!==0){db(t,Ui);return}e=t.return;var n=Sx(t.alternate,t,gi);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Be===0&&(Be=5)}function db(e,t){do{var n=xx(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Be=6,se=null}function pp(e,t,n,i,l,a,o,r,u,c,f,p){e.cancelPendingCommit=null;do oc();while(ke!==0);if((ge&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));e===Ne&&(se=Ne=null,de=0),Al=t,xn=e,jn=n,Ef=l,lb=i,zx(e,t,n,o,r,u,p)}}function zx(e,t,n,i,l,a,o){var r=t.lanes|t.childLanes;if(Mf=r,r|=$f,nS(e,n,r,i,l,a),ga=null,(n&335544064)===n?(ya=lx(e),i=10262):(ya=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Ux(yu,function(){return Cf(),null})):(e.callbackNode=null,e.callbackPriority=0),Lu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,l=ye.p,ye.p=2,a=ge,ge|=4;try{wx(e,t,n)}finally{ge=a,ye.p=l,Q.T=i}}ke=1,Lu?pa=ew(o,e.containerInfo,ya,Tf,Nf,Dx,Rf,Cf,Ox,null,null):(Tf(),Nf(),Rf())}function Ox(e){if(ke!==0){var t=xn.onRecoverableError;t(e,{componentStack:null})}}function Dx(){ke===3&&(ke=0,Fy(Al,xn),ke=4)}function Tf(){if(ke===1){ke=0;var e=xn,t=Al,n=jn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var l=ye.p;ye.p=2;var a=ge;ge|=4;try{ho=_u=!1,Iy(t,e,n),n=Df;var o=Rg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(o!==r&&r&&r.ownerDocument&&Ng(r.ownerDocument.documentElement,r)){if(u!==null&&Ff(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var h=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!h.extend&&b>v&&(o=v,v=b,b=o);var m=Oh(r,b),d=Oh(r,v);if(m&&d&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==d.node||h.focusOffset!==d.offset)){var g=p.createRange();g.setStart(m.node,m.offset),h.removeAllRanges(),b>v?(h.addRange(g),h.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),h.addRange(g))}}}}for(p=[],h=r;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var x=p[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Aa=!!Of,Df=Of=null}finally{ge=a,ye.p=l,Q.T=i}}e.current=t,ke=2}}function Nf(){if(ke===2){ke=0;var e=xn,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ye.p;ye.p=2;var l=ge;ge|=4;try{qy(e,t.alternate,t)}finally{ge=l,ye.p=i,Q.T=n}}ke=3}}function Rf(){if(ke===4||ke===3){ke=0;var e=pa;pa=null,Q1();var t=xn,n=Al,i=jn,l=lb,a=(i&335544064)===i?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?ke=5:(ke=0,Al=xn=null,mb(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Xi=null),Xf(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Xo,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,a=ye.p,ye.p=2,Q.T=null;try{for(var o=t.onRecoverableError,r=0;r<l.length;r++){var u=l[r];o(u.value,{componentStack:u.stack})}}finally{Q.T=n,ye.p=a}}if(l=ga,o=ya,ya=null,l!==null&&(ga=null,o===null&&(o=[]),e!==null))for(u=0;u<l.length;u++)n=(0,l[u])(o),n!==void 0&&e.finished.finally(n);(jn&3)!==0&&oc(),Qn(t),a=t.pendingLanes,(i&261930)!==0&&(a&42)!==0?t===uu?Ro++:(Ro=0,uu=t):(Ro=0,uu=null),Wo(0,!1)}}function mb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jo(t)))}function oc(){return pa!==null&&(pa.skipTransition(),pa=null),Tf(),Nf(),Rf(),Cf()}function Cf(){if(ke!==5)return!1;var e=xn,t=Mf;Mf=0;var n=Xf(jn),i=Q.T,l=ye.p;try{ye.p=32>n?32:n,Q.T=null,n=Ef,Ef=null;var a=xn,o=jn;if(ke=0,Al=xn=null,jn=0,(ge&6)!==0)throw Error(R(331));var r=ge;if(ge|=4,tb(a.current),$y(a,a.current,o,n),ge=r,Wo(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Xo,a)}catch{}return!0}finally{ye.p=l,Q.T=i,mb(e,t)}}function gp(e,t,n){t=fn(n,t),t=rf(e.stateNode,t,2),e=Yi(e,t,2),e!==null&&(Qo(e,2),Qn(e))}function xe(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Xi===null||!Xi.has(i))){e=fn(n,e),n=Cy(2),i=Yi(t,n,2),i!==null&&(Ay(n,i,t,e),Qo(i,2),Qn(i));break}}t=t.return}}function ws(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Tx;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(Cd=!0,l.add(n),e=Lx.bind(null,e,t,n),t.then(e,e))}function Lx(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(de&n)===n&&((Be===4||Be===3&&(de&62914560)===de&&300>Ft()-ic)&&(ge&2)===0?Ea(e,0):Hu|=n,wa===de&&(wa=0)),Qn(e)}function hb(e,t){t===0&&(t=lg()),e=Ll(e,t),e!==null&&(Qo(e,t),Qn(e))}function _x(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hb(e,n)}function Hx(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(t),hb(e,n)}function Ux(e,t){return qf(e,t)}var Ta=null,Il=null,Af=!1,Vu=!1,Ms=!1,ki=0;function Qn(e){e!==Il&&e.next===null&&(Il===null?Ta=Il=e:Il=Il.next=e),Vu=!0,Af||(Af=!0,kx())}function Wo(e,t){if(!Ms&&Vu){Ms=!0;do for(var n=!1,i=Ta;i!==null;){if(!t)if(e!==0){var l=i.pendingLanes;if(l===0)var a=0;else{var o=i.suspendedLanes,r=i.pingedLanes;a=(1<<31-Wt(42|e)+1)-1,a&=l&~(o&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,yp(i,a))}else a=de,a=qu(i,i===Ne?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||Ko(i,a)||(n=!0,yp(i,a));i=i.next}while(n);Ms=!1}}function Px(){pb()}function pb(){Vu=Af=!1;var e=0;ki!==0&&Qx()&&(e=ki);for(var t=Ft(),n=null,i=Ta;i!==null;){var l=i.next,a=gb(i,t);a===0?(i.next=null,n===null?Ta=l:n.next=l,l===null&&(Il=n)):(n=i,(e!==0||(a&3)!==0)&&(Vu=!0)),i=l}ke!==0&&ke!==5||Wo(e,!1),ki!==0&&(ki=0)}function gb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Wt(a),r=1<<o,u=l[o];u===-1?((r&n)===0||(r&i)!==0)&&(l[o]=tS(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=Ne,n=de,n=qu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ts(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ko(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ts(i),Xf(n)){case 2:case 8:n=tg;break;case 32:n=yu;break;case 268435456:n=ng;break;default:n=yu}return i=yb.bind(null,e),n=qf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ts(i),e.callbackPriority=2,e.callbackNode=null,2}function yb(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oc()&&e.callbackNode!==n)return null;var i=de;return i=qu(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(ob(e,i,t),gb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?yb.bind(null,e):null)}function yp(e,t){if(oc())return null;ob(e,t,!0)}function kx(){Ix(function(){(ge&6)!==0?qf(eg,Px):pb()})}function zd(){if(ki===0){var e=Tl;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),ki=e}return ki}function bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jr(e)}function Vx(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var a=bp((l[Bt]||null).action),o=i.submitter;o&&(t=(t=o[Bt]||null)?bp(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var r=new Xu("action","action",null,i,l);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ki!==0){var u=new FormData(l,o);af(n,{pending:!0,data:u,method:l.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(l,o),af(n,{pending:!0,data:u,method:l.method,action:a},a,u))},currentTarget:l}]})}}for(jr=0;jr<Qs.length;jr++)Xr=Qs[jr],vp=Xr.toLowerCase(),Sp=Xr[0].toUpperCase()+Xr.slice(1),wn(vp,"on"+Sp);var Xr,vp,Sp,jr;wn(Ag,"onAnimationEnd");wn(zg,"onAnimationIteration");wn(Og,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(JS,"onTransitionRun");wn(FS,"onTransitionStart");wn($S,"onTransitionCancel");wn(Dg,"onTransitionEnd");va("onMouseEnter",["mouseout","mouseover"]);va("onMouseLeave",["mouseout","mouseover"]);va("onPointerEnter",["pointerout","pointerover"]);va("onPointerLeave",["pointerout","pointerover"]);Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="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(" "),Bx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Po));function bb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var r=i[o],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}else for(o=0;o<i.length;o++){if(r=i[o],u=r.instance,c=r.currentTarget,r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){vu(f)}l.currentTarget=null,a=u}}}}function ce(e,t){var n=t[hh];n===void 0&&(n=t[hh]=new Set);var i=e+"__bubble";n.has(i)||(vb(t,e,2,!1),n.add(i))}function Es(e,t,n){var i=0;t&&(i|=4),vb(n,e,i,t)}var Kr="_reactListening"+Math.random().toString(36).slice(2);function Od(e){if(!e[Kr]){e[Kr]=!0,sg.forEach(function(n){n!=="selectionchange"&&(Bx.has(n)||Es(n,!1,e),Es(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kr]||(t[Kr]=!0,Es("selectionchange",!1,t))}}function vb(e,t,n,i){switch(qb(t)){case 2:var l=Dw;break;case 8:l=Lw;break;default:l=kd}n=l.bind(null,t,n,e),l=void 0,!qs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ts(e,t,n,i,l){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var r=i.stateNode.containerInfo;if(r===l)break;if(o===4)for(o=i.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;r!==null;){if(o=pl(r),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){i=a=o;continue e}r=r.parentNode}}i=i.return}bg(function(){var c=a,f=Qf(n),p=[];e:{var s=Lg.get(e);if(s!==void 0){var h=Xu,S=e;switch(e){case"keypress":if($r(n)===0)break e;case"keydown":case"keyup":h=NS;break;case"focusin":S="focus",h=rs;break;case"focusout":S="blur",h=rs;break;case"beforeblur":case"afterblur":h=rs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=hS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=OS;break;case Ag:case zg:case Og:h=yS;break;case Dg:h=LS;break;case"scroll":case"scrollend":h=dS;break;case"wheel":h=HS;break;case"copy":case"cut":case"paste":h=vS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Eh;break;case"submit":h=AS;break;case"toggle":case"beforetoggle":h=PS}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),m=b?s!==null?s+"Capture":null:s;b=[];for(var d=c,g;d!==null;){var x=d;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||m===null||(x=Ao(d,m),x!=null&&b.push(ko(d,x,g))),v)break;d=d.return}0<b.length&&(s=new h(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==Ys&&(S=n.relatedTarget||n.fromElement)&&(pl(S)||S[Oa]))break e;(s||h)&&(S=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?pl(h):null,h!==null&&(v=jo(h),b=h.tag,h!==v||b!==5&&b!==27&&b!==6)&&(h=null)):(s=null,h=c),s!==h&&(b=wh,x="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=Eh,x="onPointerLeave",m="onPointerEnter",d="pointer"),v=s==null?S:fo(s),g=h==null?S:fo(h),S=new b(x,d+"leave",s,n,f),S.target=v,S.relatedTarget=g,x=null,pl(f)===c&&(b=new b(m,d+"enter",h,n,f),b.target=g,b.relatedTarget=v,x=b),v=x,b=s&&h?zs(s,h,Gx):null,s!==null&&xp(p,S,s,b,!1),h!==null&&v!==null&&xp(p,v,h,b,!0)))}e:{if(s=c?fo(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var M=Ch;else if(Rh(s))if(Eg)M=QS;else{M=XS;var T=jS}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Kf(c.elementType)&&(M=Ch):M=KS;if(M&&(M=M(e,c))){Mg(p,M,n,f);break e}T&&T(e,s,c)}switch(T=c?fo(c):window,e){case"focusin":(Rh(T)||T.contentEditable==="true")&&(ta=T,Xs=c,yo=null);break;case"focusout":yo=Xs=ta=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Dh(p,n,f);break;case"selectionchange":if(IS)break;case"keydown":case"keyup":Dh(p,n,f)}var w;if(Jf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ea?xg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Sg&&n.locale!=="ko"&&(ea||N!=="onCompositionStart"?N==="onCompositionEnd"&&ea&&(w=vg()):(_i=f,Zf="value"in _i?_i.value:_i.textContent,ea=!0)),T=Bu(c,N),0<T.length&&(N=new Mh(N,e,null,n,f),p.push({event:N,listeners:T}),w?N.data=w:(w=wg(n),w!==null&&(N.data=w)))),(w=VS?BS(e,n):GS(e,n))&&(N=Bu(c,"onBeforeInput"),0<N.length&&(T=new Mh("onBeforeInput","beforeinput",null,n,f),p.push({event:T,listeners:N}),T.data=w)),Vx(p,e,c,n,f)}bb(p,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bu(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=Ao(e,n),l!=null&&i.unshift(ko(e,l,a)),l=Ao(e,t),l!=null&&i.push(ko(e,l,a))),e.tag===3)return i;e=e.return}return[]}function Gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xp(e,t,n,i,l){for(var a=t._reactName,o=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,l?(c=Ao(n,a),c!=null&&o.unshift(ko(n,c,u))):l||(c=Ao(n,a),c!=null&&o.push(ko(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Yx=/\r\n?/g,qx=/\u0000|\uFFFD/g;function wp(e){return(typeof e=="string"?e:""+e).replace(Yx,`
9
+ `).replace(qx,"")}function Sb(e,t){return t=wp(t),wp(e)===t}function Se(e,t,n,i,l,a){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Sa(e,""+i);else return;break;case"className":Dr(e,"class",i);break;case"tabIndex":Dr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Dr(e,n,i);break;case"style":yg(e,i,a);return;case"data":if(t!=="object"){Dr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",l.name,l,null),Se(e,t,"formEncType",l.formEncType,l,null),Se(e,t,"formMethod",l.formMethod,l,null),Se(e,t,"formTarget",l.formTarget,l,null)):(Se(e,t,"encType",l.encType,l,null),Se(e,t,"method",l.method,l,null),Se(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Jr(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bn);return;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Jr(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Ir(e,"popover",i);break;case"xlinkActuate":ai(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ai(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ai(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ai(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ai(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ai(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ai(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ai(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ai(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ir(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=sS.get(n)||n,Ir(e,n,i);else return}pe=!0}function zf(e,t,n,i,l,a){switch(n){case"style":yg(e,i,a);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")Sa(e,i);else if(typeof i=="number"||typeof i=="bigint")Sa(e,""+i);else return;break;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!fg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,i,l);break e}pe=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ir(e,n,i)}return}pe=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var i=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,a,o,n,null)}}l&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var r=a=o=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":l=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,t));break;default:Se(e,t,i,f,n,null)}}hg(e,a,r,u,c,o,l,!1);return;case"select":ce("invalid",e),i=o=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":o=r;break;case"multiple":i=r;default:Se(e,t,l,r,n,null)}t=a,n=o,e.multiple=!!i,t!=null?ca(e,!!i,t,!1):n!=null&&ca(e,!!i,n,!0);return;case"textarea":ce("invalid",e),a=l=i=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":i=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(R(91));break;default:Se(e,t,o,r,n,null)}gg(e,i,l,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(i=0;i<Po.length;i++)ce(Po[i],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,c,i,n,null)}return;default:if(Kf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&zf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var jx={};function Xx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,r=null,u=null,c=null,f=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(h)||Se(e,t,h,null,i,p)}}for(var s in i){var h=i[s];if(p=n[s],i.hasOwnProperty(s)&&(h!=null||p!=null))switch(s){case"type":h!==p&&(pe=!0),a=h;break;case"name":h!==p&&(pe=!0),l=h;break;case"checked":h!==p&&(pe=!0),c=h;break;case"defaultChecked":h!==p&&(pe=!0),f=h;break;case"value":h!==p&&(pe=!0),o=h;break;case"defaultValue":h!==p&&(pe=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(R(137,t));break;default:h!==p&&Se(e,t,s,h,i,p)}}Gs(e,o,r,u,c,f,a,l);return;case"select":h=o=r=s=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":h=u;default:i.hasOwnProperty(a)||Se(e,t,a,null,i,u)}for(l in i)if(a=i[l],u=n[l],i.hasOwnProperty(l)&&(a!=null||u!=null))switch(l){case"value":a!==u&&(pe=!0),s=a;break;case"defaultValue":a!==u&&(pe=!0),r=a;break;case"multiple":a!==u&&(pe=!0),o=a;default:a!==u&&Se(e,t,l,a,i,u)}t=r,n=o,i=h,s!=null?ca(e,!!n,s,!1):!!i!=!!n&&(t!=null?ca(e,!!n,t,!0):ca(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,l)}for(o in i)if(l=i[o],a=n[o],i.hasOwnProperty(o)&&(l!=null||a!=null))switch(o){case"value":l!==a&&(pe=!0),s=l;break;case"defaultValue":l!==a&&(pe=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(R(91));break;default:l!==a&&Se(e,t,o,l,i,a)}pg(e,s,h);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Se(e,t,S,null,i,s)}for(u in i)if(s=i[u],h=n[u],i.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null))switch(u){case"selected":s!==h&&(pe=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Se(e,t,u,s,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,s);for(c in i)if(s=i[c],h=n[c],i.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(137,t));break;default:Se(e,t,c,s,i,h)}return;default:if(Kf(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&zf(e,t,v,void 0,i,s);for(f in i)s=i[f],h=n[f],!i.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||zf(e,t,f,s,i,h);return}}for(var m in n)s=n[m],n.hasOwnProperty(m)&&s!=null&&!i.hasOwnProperty(m)&&Se(e,t,m,null,i,s);for(p in i)s=i[p],h=n[p],!i.hasOwnProperty(p)||s===h||s==null&&h==null||Se(e,t,p,s,i,h)}function Mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],a=l.transferSize,o=l.initiatorType,r=l.duration;if(a&&r&&Mp(o)){for(o=0,r=l.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Mp(p)&&(u=u.responseEnd,o+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(a+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Of=null,Df=null;function Vo(e){return e.nodeType===9?e:e.ownerDocument}function Ep(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wb(e,t,n,i){return n=Vo(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function Lf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ns=null;function Qx(){var e=window.event;return e&&e.type==="popstate"?e===Ns?!1:(Ns=e,!0):(Ns=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Zx=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=typeof Promise=="function"?Promise:void 0,Np=typeof requestAnimationFrame=="function"?requestAnimationFrame:Dd,Ix=typeof queueMicrotask=="function"?queueMicrotask:typeof Tp<"u"?function(e){return Tp.resolve(null).then(e).catch(Jx)}:Dd;function Jx(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Rp(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(l),za(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Cs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cs(n);for(var a=n.firstChild;a;){var o=a.nextSibling,r=a.nodeName;a[Zo]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&Cs(e.ownerDocument.body);n=l}while(n);za(t)}function Cp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Mb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var a=t[l];0<a.width&&0<a.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Eb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Tb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function _f(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Tb(t,n,e)}function Fx(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Tb(t,n,e)}function $x(e){return e.documentElement.clientHeight}function Wx(e){this.addEventListener("load",e),this.addEventListener("error",e)}function ew(e,t,n,i,l,a,o,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&($x(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,m=0,d=0;d<v.length;d++){var g=v[d];if(!g.complete){var x=g.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<s.innerHeight&&x.left<s.innerWidth){if(m+=Pb(g),m>fu){b.length=S;break}g=new Promise(Wx.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(h?Promise.allSettled([h.finished,s]):s).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var S=s[h],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var m=v=void 0,d=!0,g=0;g<S.length;g++){var x=S[g],M=x.width;if(v===void 0)v=M;else if(v!==M){d=!1;break}if(M=x.height,m===void 0)m=M;else if(m!==M){d=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}d&&v!==void 0&&m!==void 0&&(b.setKeyframes(S),d=getComputedStyle(b.target,b.pseudoElement),d.width!==v||d.height!==m)&&(d=S[0],d.width=v,d.height=m,d=S[S.length-1],d.width=v,d.height=m,b.setKeyframes(S))}}o()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),l(),o()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),l(),o(),null}}function gl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}gl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Re({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};gl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===e&&a.pseudoElement===t&&i.push(n[l])}return i};gl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Nb(e){return{name:e,group:new gl("group",e),imagePair:new gl("image-pair",e),old:new gl("old",e),new:new gl("new",e)}}function nn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(e,t,n){var i=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Rb(a,e,t,n)===-1){var o=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(l=o.removeEventListener.bind(o,e,t,n),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=Na(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Vt(this._fragmentFiber.child,!1,tw,e,r,i)}this._eventListeners=a}};function tw(e,t,n,i){return Je(e).addEventListener(t,n,i),!1}nn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Rb(i,e,t,n),t!==-1)){var l=i[t];n=l.attachedListener;var a=l.cleanup;l=Na(l.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,nw,e,n,l),i.splice(t,1),a!==null&&a()}};function nw(e,t,n,i){return Je(e).removeEventListener(t,n,i),!1}function Na(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Ap(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Rb(e,t,n,i){if(e.length===0)return-1;i=Ap(i);for(var l=0;l<e.length;l++){var a=e[l];if(a.type===t&&a.listener===n&&Ap(a.optionsOrUseCapture)===i)return l}return-1}nn.prototype.dispatchEvent=function(e){var t=zl(this._fragmentFiber);if(t===null)return!0;t=Je(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];i.addEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(l=0;l<n.length;l++)a=n[l],i.removeEventListener(a.type,a.attachedListener,Na(a.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};nn.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Cb,e,void 0,void 0)};function Cb(e,t){return e.tag===6?!1:(e=Je(e),hw(e,t))}nn.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Ld,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Cb(t[n],e);n--);};function Ld(e,t){return t.push(e),!1}nn.prototype.blur=function(){var e=zl(this._fragmentFiber);e!==null&&(e=Je(e),e=Vo(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,iw,e,void 0,void 0))};function iw(e,t){return e.tag===6?!1:(e=Je(e),e===t||e.contains(t)?(t.blur(),!0):!1)}nn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,lw,e,void 0,void 0)};function lw(e,t){return e.tag===6||(e=Je(e),t.observe(e)),!1}nn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,aw,e,void 0,void 0);for(var n=t=0;n<Sn.length;n++){var i=Sn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Sn[t++]=i}Sn.length=t}};function aw(e,t){return e.tag===6||(e=Je(e),t.unobserve(e)),!1}var Sn=[],Rs=!1;function ow(e,t,n){Sn.push({fragmentInstance:e,observer:t,instance:n}),Rs||(Rs=!0,pw(function(){Rs=!1;var i=Sn;Sn=[];for(var l=0;l<i.length;l++){var a=i[l];a.observer.unobserve(a.instance)}}))}nn.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,rw,e,void 0,void 0),e};function rw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Je(e),t.push.apply(t,e.getClientRects());return!1}nn.prototype.getRootNode=function(e){var t=zl(this._fragmentFiber);return t===null?this:Je(t).getRootNode(e)};nn.prototype.compareDocumentPosition=function(e){var t=zl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Ld,n,void 0,void 0);var i=Je(t);if(n.length===0){if(n=i,uh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=i=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Jp(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=Je(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Je(n[0]),l=Je(n[n.length-1]);var a=uh(this._fragmentFiber)?t.parentElement:i;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),r=l.compareDocumentPosition(e),u=o&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||a&&l===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!a&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||uw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function uw(e,t,n,i,l){var a=pl(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=t,t=zl(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=zs(n,a,ch),t===null?t=!1:(Vt(t,!0,k1,a,n),a=Jl,Jl=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===i)&&(t=zs(i,a,ch),t===null?t=!1:(Vt(t,!0,V1,a,i),a=Jl,As=Jl=null,t=a!==null)),t):!1}function zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}nn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(R(566));var t=[];Vt(this._fragmentFiber.child,!1,Ld,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Jp(this._fragmentFiber);if(i=n?i[1]||i[0]||zl(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Je(i),zp(e,n);return}if(i=Je(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var l=t[i];l.tag===6?(l=Je(l),zp(l,n)):Je(l).scrollIntoView(e),i+=n?-1:1}};function cw(e,t){return e=Je(e),Ab(e,t),!1}function Ab(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function zb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.addEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var o=0,r=0;r<Sn.length;r++){var u=Sn[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(Sn[o++]=u)}Sn.length=o,a.observe(e)}),Ab(e,t))}function sw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.removeEventListener(l.type,l.attachedListener,Na(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?ow(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Hf(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fw(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Zo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function dw(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function Ob(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function Uf(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pf=null;function Op(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function hw(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function pw(e){Np(function(){Np(function(t){return e(t)})})}function Db(e,t,n){switch(t=Vo(n),e){case"html":if(e=t.documentElement,!e)throw Error(R(452));return e;case"head":if(e=t.head,!e)throw Error(R(453));return e;case"body":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function Lb(e,t,n){for(var i in n){var l=n[i];n.hasOwnProperty(i)&&l!=null&&Se(e,t,i,null,jx,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Bn&&(e.onclick=null),ju(e)}function Cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var hn=new Map,Lp=new Set;function Bo(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var vi=ye.d;ye.d={f:gw,r:yw,D:bw,C:vw,L:Sw,m:xw,X:Mw,S:ww,M:Ew};function gw(){var e=vi.f(),t=lc();return e||t}function yw(e){var t=Da(e);t!==null&&t.tag===5&&t.type==="form"?yy(t):vi.r(e)}var Ua=typeof document>"u"?null:document;function _b(e,t,n){var i=Ua;if(i&&typeof t=="string"&&t){var l=sn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Lp.has(l)||(Lp.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function bw(e){vi.D(e),_b("dns-prefetch",e,null)}function vw(e,t){vi.C(e,t),_b("preconnect",e,t)}function Sw(e,t,n){vi.L(e,t,n);var i=Ua;if(i&&e&&t){var l='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+sn(n.imageSizes)+'"]')):l+='[href="'+sn(e)+'"]';var a=l;switch(t){case"style":a=Ra(e);break;case"script":a=Pa(e)}if(!(hn.has(a)||(e=Re({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(a,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(er(a))||t==="script"&&i.querySelector(tr(a))))){var o=i.createElement("link");dt(o,"link",e),t==="style"&&(o[bu]=!0,o.onload=o.onerror=function(){cg(o)}),at(o),i.head.appendChild(o)}}}function xw(e,t){vi.m(e,t);var n=Ua;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(e)+'"]',a=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Pa(e)}if(!hn.has(a)&&(e=Re({rel:"modulepreload",href:e},t),hn.set(a,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(tr(a)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function ww(e,t,n){vi.S(e,t,n);var i=Ua;if(i&&e){var l=ua(i).hoistableStyles,a=Ra(e);t=t||"default";var o=l.get(a);if(!o){var r={loading:0,preload:null};if(o=i.querySelector(er(a)))r.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(a))&&Hd(e,n);var u=o=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,cu(o,t,i)}o={type:"stylesheet",instance:o,count:1,state:r},l.set(a,o)}}}function Mw(e,t){vi.X(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function Ew(e,t){vi.M(e,t);var n=Ua;if(n&&e){var i=ua(n).hoistableScripts,l=Pa(e),a=i.get(l);a||(a=n.querySelector(tr(l)),a||(e=Re({src:e,async:!0,type:"module"},t),(t=hn.get(l))&&Ud(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function _p(e,t,n,i){var l=(l=Vi.current)?Bo(l):null;if(!l)throw Error(R(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ra(n.href),t=ua(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ra(n.href);var a=ua(l).hoistableStyles,o=a.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=l.querySelector(er(e)))?a._p||(o.instance=a,o.state.loading=5):(a=hn.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,a)),Tw(l,e,a,o.state))),t&&i===null)throw Error(R(528,""));return o}if(t&&i!==null)throw Error(R(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Pa(n),t=ua(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function Ra(e){return'href="'+sn(e)+'"'}function er(e){return'link[rel="stylesheet"]['+e+"]"}function Hb(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function Tw(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[bu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[bu]=!0,t.onload=t.onerror=cg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Pa(e){return'[src="'+sn(e)+'"]'}function tr(e){return"script[async]"+e}function Hp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var l=Re({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",l),cu(i,n.precedence,e),t.instance=i;case"stylesheet":l=Ra(n.href);var a=e.querySelector(er(l));if(a)return t.state.loading|=4,t.instance=a,at(a),a;i=Hb(n),(l=hn.get(l))&&Hd(i,l),a=(e.ownerDocument||e).createElement("link"),at(a);var o=a;return o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),t.state.loading|=4,cu(a,n.precedence,e),t.instance=a;case"script":return a=Pa(n.src),(l=e.querySelector(tr(a)))?(t.instance=l,at(l),l):(i=n,(l=hn.get(a))&&(i=Re({},n),Ud(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(R(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cu(i,n.precedence,e));return t.instance}function cu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,a=l,o=0;o<i.length;o++){var r=i[o];if(r.dataset.precedence===t)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var su=null;function Up(e,t,n){if(su===null){var i=new Map,l=su=new Map;l.set(n,i)}else l=su,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Zo]||a[ut]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var r=i.get(o);r?r.push(a):i.set(o,[a])}}return i}function kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Nw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ub(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function kp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Pb(t),e.suspenseyImages.push(t)),e=Aw.bind(e),t.decode().then(e,e))}function Rw(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ra(i.href),a=t.querySelector(er(l));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Go.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,at(a);return}a=t.ownerDocument||t,i=Hb(i),(l=hn.get(l))&&Hd(i,l),a=a.createElement("link"),at(a);var o=a;o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Go.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function Cw(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&fu===0&&(fu=62500*Kx());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function kb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)du(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Go(){this.count--,kb(this)}function Aw(){this.imgCount--,kb(this)}var Gu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(zw,e),Gu=null,Go.call(e))}function zw(e,t){if(!(t.state.loading&4)){var n=Gu.get(e);if(n)var i=n.get(null);else{n=new Map,Gu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),i=o)}i&&n.set(null,i)}l=t.instance,o=l.getAttribute("data-precedence"),a=n.get(o)||i,a===i&&n.set(null,l),n.set(o,l),this.count++,i=Go.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),a?a.parentNode.insertBefore(l,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ca={$$typeof:Vn,Provider:null,Consumer:null,_currentValue:yl,_currentValue2:yl,_threadCount:0};function Ow(e,t,n,i,l,a,o,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Vb(e,t,n,i,l,a,o,r,u,c,f,p){return e=new Ow(e,t,n,o,u,c,f,p,r),t=1,a===!0&&(t|=24),a=Pt(3,null,null,t),e.current=a,a.stateNode=e,t=nd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},ad(a),e}function Bb(e){return e?(e=la,e):la}function Gb(e,t,n,i,l,a){l=Bb(l),i.context===null?i.context=l:i.pendingContext=l,i=Gi(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=Yi(e,i,t),n!==null&&(kt(n,e,t),vo(n,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pd(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function Yb(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&kt(t,e,67108864),Pd(e,67108864)}}function Bp(e){if(e.tag===13||e.tag===31){var t=en();t=jf(t);var n=Ll(e,t);n!==null&&kt(n,e,t),Pd(e,t)}}var Aa=!0;function Dw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=2,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function Lw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=8,kd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function kd(e,t,n,i){if(Aa){var l=Vf(i);if(l===null)Ts(e,t,i,Yu,n),Gp(e,i);else if(Hw(l,e,t,n,i))i.stopPropagation();else if(Gp(e,i),t&4&&-1<_w.indexOf(e)){for(;l!==null;){var a=Da(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=dl(a.pendingLanes);if(o!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Wt(o);r.entanglements[1]|=u,o&=~u}Qn(a),(ge&6)===0&&(Uu=Ft()+500,Wo(0,!1))}}break;case 31:case 13:r=Ll(a,2),r!==null&&kt(r,a,2),lc(),Pd(a,2)}if(a=Vf(i),a===null&&Ts(e,t,i,Yu,n),a===l)break;l=a}l!==null&&i.stopPropagation()}else Ts(e,t,i,null,n)}}function Vf(e){return e=Qf(e),Vd(e)}var Yu=null;function Vd(e){if(Yu=null,e=pl(e),e!==null){var t=jo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Qp(t),e!==null)return e;e=null}else if(n===31){if(e=Zp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yu=e,null}function qb(e){switch(e){case"beforetoggle":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"seeked":case"submit":case"toggle":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"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Z1()){case eg:return 2;case tg:return 8;case yu:case I1:return 32;case ng:return 268435456;default:return 32}default:return 32}}var Bf=!1,Ki=null,Qi=null,Zi=null,Yo=new Map,qo=new Map,Di=[],_w="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".split(" ");function Gp(e,t){switch(e){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Yo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(t.pointerId)}}function ro(e,t,n,i,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[l]},t!==null&&(t=Da(t),t!==null&&Yb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Hw(e,t,n,i,l){switch(t){case"focusin":return Ki=ro(Ki,e,t,n,i,l),!0;case"dragenter":return Qi=ro(Qi,e,t,n,i,l),!0;case"mouseover":return Zi=ro(Zi,e,t,n,i,l),!0;case"pointerover":var a=l.pointerId;return Yo.set(a,ro(Yo.get(a)||null,e,t,n,i,l)),!0;case"gotpointercapture":return a=l.pointerId,qo.set(a,ro(qo.get(a)||null,e,t,n,i,l)),!0}return!1}function jb(e){var t=pl(e.target);if(t!==null){var n=jo(t);if(n!==null){if(t=n.tag,t===13){if(t=Qp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===31){if(t=Zp(n),t!==null){e.blockedOn=t,mh(e.priority,function(){Bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ys=i,n.target.dispatchEvent(i),Ys=null}else return t=Da(n),t!==null&&Yb(t),e.blockedOn=n,!1;t.shift()}return!0}function Yp(e,t,n){mu(e)&&n.delete(t)}function Uw(){Bf=!1,Ki!==null&&mu(Ki)&&(Ki=null),Qi!==null&&mu(Qi)&&(Qi=null),Zi!==null&&mu(Zi)&&(Zi=null),Yo.forEach(Yp),qo.forEach(Yp)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,Bf||(Bf=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Uw)))}var Zr=null;function qp(e){Zr!==e&&(Zr=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Vd(i||n)===null)continue;break}var a=Da(n);a!==null&&(e.splice(t,3),t-=3,af(a,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function za(e){function t(u){return Qr(u,e)}Ki!==null&&Qr(Ki,e),Qi!==null&&Qr(Qi,e),Zi!==null&&Qr(Zi,e),Yo.forEach(t),qo.forEach(t);for(var n=0;n<Di.length;n++){var i=Di[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Di.length&&(n=Di[0],n.blockedOn===null);)jb(n),n.blockedOn===null&&Di.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],a=n[i+1],o=l[Bt]||null;if(typeof a=="function")o||qp(n);else if(o){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[Bt]||null)r=o.formAction;else if(Vd(l)!==null)continue}else r=o.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),qp(n)}}}function Xb(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Bd(e){this._internalRoot=e}rc.prototype.render=Bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,i=en();Gb(n,i,e,t,null,null)};rc.prototype.unmount=Bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gb(e.current,2,null,e,null,null),lc(),t[Oa]=null}};function rc(e){this._internalRoot=e}rc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ug();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Di.length&&t!==0&&t<Di[n].priority;n++);Di.splice(n,0,e),n===0&&jb(e)}};var jp=Xp.version;if(jp!=="19.3.0")throw Error(R(527,jp,"19.3.0"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=P1(t),e=e!==null?Ip(e):null,e=e===null?null:e.stateNode,e};var Pw={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(uo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!uo.isDisabled&&uo.supportsFiber))try{Xo=uo.inject(Pw),$t=uo}catch{}var uo;uc.createRoot=function(e,t){if(!Kp(e))throw Error(R(299));var n=!1,i="",l=Ty,a=Ny,o=Ry;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Vb(e,1,!1,null,null,n,i,null,l,a,o,Xb),e[Oa]=t.current,Od(e),new Bd(t)};uc.hydrateRoot=function(e,t,n){if(!Kp(e))throw Error(R(299));var i=!1,l="",a=Ty,o=Ny,r=Ry,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Vb(e,1,!0,t,n??null,i,l,u,a,o,r,Xb),t.context=Bb(null),n=t.current,i=en(),i=jf(i),l=Gi(i),l.callback=null,Yi(n,l,i),n=i,t.current.lanes=n,Qo(t,n),Qn(t),e[Oa]=t.current,Od(e),new rc(t)};uc.version="19.3.0"});var Ib=Dn((OM,Zb)=>{"use strict";function Qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qb)}catch(e){console.error(e)}}Qb(),Zb.exports=Kb()});var p0=Dn(vc=>{"use strict";var Ww=Symbol.for("react.transitional.element"),e2=Symbol.for("react.fragment");function h0(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:Ww,type:e,key:i,ref:t!==void 0?t:null,props:n}}vc.Fragment=e2;vc.jsx=h0;vc.jsxs=h0});var me=Dn((uE,g0)=>{"use strict";g0.exports=p0()});var a1=X(Ib(),1);var F=X(nt(),1);var Mn=e=>e;var kw=["path","circle","ellipse","line","polyline","polygon","rect","g"],Vw={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},Bw=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Fb=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,$b=1024;function Gd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Jb(e){let t=Gd(e),n={};for(let[i,l]of Object.entries(Vw)){let a=t[i],o=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof a=="string"&&a.length<=o&&l.test(a)&&(n[i]=a)}for(let i of Bw){let l=t[i];typeof l=="string"&&l.length<=32&&Fb.test(l)&&Math.abs(Number(l))<=1e5&&(n[i]=l)}return n}function Wb(e){let{viewBox:t,attrs:n,shapes:i}=Gd(e);if(typeof t!="string"||t.length>100)return;let l=t.trim().split(/[\s,]+/);if(l.length!==4||!l.every(u=>Fb.test(u)&&Math.abs(Number(u))<=1e5)||Number(l[2])<=0||Number(l[3])<=0)return;let a=64;function o(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(a--<=0)break;let{tag:s,attrs:h,shapes:S}=Gd(p),b=kw.find(v=>v===s);b&&f.push({tag:b,attrs:Jb(h),shapes:b==="g"?o(S,c+1):[]})}return f}let r=o(i,0);return r.length?{viewBox:l.join(" "),attrs:Jb(n),shapes:r}:void 0}var e0=["siblings","ontology","crosslinks","sidecar"],Yd={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},cc=["view",...e0,"dock","theme"],qd={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function sc(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Yd.view.find(o=>o===t.view),l=Yd.dock.find(o=>o===t.dock),a=Yd.theme.find(o=>o===t.theme);i&&(n.view=i),l&&(n.dock=l),a&&(n.theme=a);for(let o of e0){let r=t[o];typeof r=="boolean"&&(n[o]=r)}return Object.keys(n).length?n:void 0}var dc=1e4,Gw=25e4,Yw=256*1024*1024,i0=24*1024*1024,Xd="data/search.json",Kd="theme/publication.css",VM=48*1024,Qd=["parent","child","left","right","previous","next"],qw=["document","drawing","attachment","folder","tag","url"],jw=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,Xw=/^[a-f0-9]{64}$/,t0=["none","arrow","triangle","bar","dot"],Kw=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,Qw=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Zd(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function Si(e){return typeof e=="string"&&Qw.test(e)}function Id(e){if(!Si(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Jd(e){return typeof e=="string"&&e.length<=180&&jw.test(e)}function En(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function Hl(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function l0(e,t){return Zn(e,0,t-1)&&Number.isInteger(e)}function fc(e,t){let n=En(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:l,gateRadius:a,icon:o}=n;if(l!==void 0&&!Zn(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Zn(a,0,40))throw new Error("Invalid publication gate radius");if(o!=null&&!l0(o,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:l,gateRadius:a,...o===void 0?{}:{icon:o}}}function Zw(e,t){let{center:n,sibling:i,inferred:l}=En(e);return{center:n===void 0?void 0:fc(n,t),sibling:i===void 0?void 0:fc(i,t),inferred:l===void 0?void 0:fc(l,t)}}function Iw(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:a,endHead:o,labelColor:r,labelSize:u}=En(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication link style");let c=t0.find(p=>p===a),f=t0.find(p=>p===o);if(a!==void 0&&!c||o!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:c,endHead:f,labelColor:r,labelSize:u}}function Jw(e){let t=En(e),n={};if(t.maximum!==void 0){if(!Zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=En(t.geometry),l={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let o of a){let r=i[o];if(r!==void 0){if(!Zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(l,{[o]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...l,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}=En(t.typography);if(i!==void 0&&!Zn(i,6,48)||a!==void 0&&!Zn(a,6,48)||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}}return n}function Fw(e){let t=Object.entries(En(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,l]of t){if(!Hl(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(Hl(l,1e3)||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))n.set(i,l);else if(Array.isArray(l)&&l.length<=48&&l.every(a=>Hl(a,1e3)))n.set(i,[...l]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function a0(e){let t=En(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!Kw.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!Si(t.id)||!Si(t.entry)||!Hl(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>dc||!Array.isArray(t.relations)||t.relations.length>Gw||!Array.isArray(t.resources)||t.resources.length>dc*4)throw new Error("Invalid publication manifest");let i=0,l=new Set,a=t.resources.map(b=>{let{path:v,bytes:m,sha256:d}=En(b);if(!Jd(v)||l.has(v)||!Zn(m,0,32*1024*1024)||!Number.isInteger(m)||typeof d!="string"||!Xw.test(d))throw new Error("Invalid publication resource");if(l.add(v),i+=m,i>Yw)throw new Error("Publication exceeds package limit");return{path:v,bytes:m,sha256:d}}),o;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>$b)throw new Error("Invalid publication icons");o=t.icons.map(b=>{let v=Wb(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=o?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=En(b),{id:m,title:d,aliases:g,asset:x,url:M,trailIcon:T}=v,w=qw.find(N=>N===v.kind);if(!Si(m)||u.has(m)||!Hl(d,512)||!w)throw new Error("Invalid publication node");if(u.add(m),w==="document"||w==="drawing"){let N=Id(m);if(!l.has(N))throw new Error("Missing publication note resource");c.add(N)}if(x!==void 0&&(typeof x!="string"||!x.startsWith("assets/")||!l.has(x)))throw new Error("Missing publication asset");if(M!==void 0&&(w!=="url"||!Zd(M)))throw new Error("Invalid publication web link");if(T!==void 0&&!l0(T,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>Hl(N,512))))throw new Error("Invalid publication aliases");return{id:m,title:d,kind:w,...g===void 0?{}:{aliases:[...g]},...x===void 0?{}:{asset:x},...M===void 0?{}:{url:M},...T===void 0?{}:{trailIcon:T},...v.style===void 0?{}:{style:fc(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:Zw(v.roleStyles,r)},...v.properties===void 0?{}:{properties:Fw(v.properties)}}});if(!u.has(t.entry)||[...l].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==l.has(Xd))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,h=t.relations.map(b=>{let{source:v,target:m,relationType:d,direction:g,definition:x,role:M,style:T}=En(b),w=Qd.find(V=>V===M);if(typeof v!="string"||typeof m!="string"||v===m||!u.has(v)||!u.has(m)||!w||d!==1&&d!==2||g!==null&&g!==1&&g!==2&&g!==3||x!==void 0&&!Hl(x,192))throw new Error("Invalid publication relationship");let N=`${v}/${m}/${w}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:m,role:w,relationType:d,direction:g,...x===void 0?{}:{definition:x},...T===void 0?{}:{style:Iw(T)}}}),S=sc(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:h,resources:a,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...o===void 0?{}:{icons:o},...t.appearance===void 0?{}:{appearance:Jw(t.appearance)}}}var nr={key:"F4"};function o0(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(l,a)=>a<=8&&(!l||typeof l!="object"||Object.values(l).every(o=>i(o,a+1)));return i(n,0)?n:null}catch{return null}}var ht={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},mc={min:.1,max:4,step:.05};function ka(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var hc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:ka(96,40,240),verticalSpacing:ka(24,12,80),parentColumns:ka(2,1,3),initialGenerations:ka(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=mc.min&&e<=mc.max},maximumDepth:ka(10,1,ht.depth),maximumOccurrences:ka(500,16,ht.occurrences)}};function pc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=l=>Object.prototype.hasOwnProperty.call(t,l)?t[l]:hc.fields[l].defaultValue;for(let[l,a]of Object.entries(hc.fields))if(!a.validate(n(l)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var Fd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},gc={version:0,unavailable:!0};function Ul(e){return typeof e=="string"&&e.length>0&&e.length<=ht.occurrenceCharacters}function nl(e){if(e==null)return{...Fd,expanded:[],collapsed:[],sides:{}};let t=o0(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return gc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),l=Reflect.get(t,"expanded"),a=Reflect.get(t,"collapsed"),o=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ul(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(l)||!Array.isArray(a)||l.length>256||a.length>256||!l.every(Ul)||!a.every(Ul)||!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).length>256)return gc;let r=[];for(let[c,f]of Object.entries(o)){let p=f;if(!Ul(c)||p!==-1&&p!==1)return gc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:Mn(n),initialGenerations:i,expanded:[...new Set(l)].sort(),collapsed:[...new Set(a)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=ht.stateCharacters?u:gc}function r0(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function ir(e){let t=nl(e);return t.version===1?t:null}function yc(e,t,n){let i=nl(e),l=i.version===1&&i.scope===t.layoutRoot?i:nl(t.stateSuggestion);if(l.version!==1||l.scope!==t.layoutRoot)return null;let a=new Set(l.expanded),o=new Set(l.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(o.delete(u.id),a.add(u.id)):(a.delete(u.id),o.add(u.id));return ir({...l,expanded:[...a],collapsed:[...o]})}var D={licenses:"Runtime licenses",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",theme:"Theme",about:"About",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},il={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",system:"System",trigger:e=>`Color theme (${e})`},In={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};var bc=class{constructor(t,n,i,l=750,a){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=l;this.modifierFeedback=a;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function u0(e,t){let n=e.ownerDocument,i=n.defaultView,l=r=>t.modifier(r.altKey,r.isTrusted),a=()=>t.clear(),o=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",l),i.addEventListener("keyup",l),i.addEventListener("blur",a),n.addEventListener("visibilitychange",o),()=>{i.removeEventListener("keydown",l),i.removeEventListener("keyup",l),i.removeEventListener("blur",a),n.removeEventListener("visibilitychange",o),t.clear()}}var $d={min:8,max:20,step:1,default:12};function Wd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max($d.min,Math.min($d.max,e)):$d.default}var lr=(e,t,n)=>Math.max(t,Math.min(n,e));function c0(e){return Math.max(5,(e.gateRadius??5)*1.05)}function em(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function ar(e,t,n=12.4){return(t?lr(e*.72,13,24):lr(e*.62,10,16))*lr(Number.isFinite(n)?n:12.4,8,28)/12.4}function $w(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((l,a)=>l+(a.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function s0(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function f0(e,t){return e.reduce((n,i)=>Math.max(n,32+$w(i,t)),0)}function d0(e,t,n,i=!1,l=30,a,o=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,em(l,i)),f=i?180:112,s=Math.max(f,a??(i?370:286)),h=i?ar(t,!0,n.baseFontSize)*.55:t*u*.29,S=lr(70+c*Math.max(4.8,h),f,s),b=(i?16:8)+2*Math.max(0,o),v=ar(t,i,n.baseFontSize),m=Math.max(i?48:26,Math.ceil(v*1.6+b)),d=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(m,d):m,x=Wd(n.propertyFontSize),M=f0(r,x);return{width:r.length?lr(Math.max(S,M),f,s):S,height:g+s0(r,x)}}function m0(e,t,n,i,l=1,a=[]){if(t===1)return e;let o=Wd(i.propertyFontSize),r=f0(a,o),u=ar(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,l))+s0(a,o))}}var qe=X(me(),1);function y0({bounds:e,semanticRole:t,className:n,style:i,...l}){return(0,qe.jsx)("div",{...l,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function b0({label:e,maximum:t,center:n}){let i=em(t??30,n),l=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,qe.jsx)("span",{className:"kplex-thought-text",title:e,children:l})}function v0({wrap:e,children:t}){return(0,qe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function S0({side:e,connected:t,highlighted:n,disabled:i,count:l,...a}){return(0,qe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,qe.jsx)("span",{...a,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),l!==null&&(0,qe.jsx)("span",{className:"kplex-gate-count",children:l})]})}function x0(e){return(0,qe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function w0({label:e,midpoint:t,fontSize:n,color:i,background:l,opacity:a}){if(!e)return null;let o=n??10,r=Math.max(20,e.length*o*.58+10),u=o+6;return(0,qe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,qe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:l}),(0,qe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:o,children:e})]})}function tm(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function M0({prefix:e="kplex"}){return(0,qe.jsxs)("defs",{children:[(0,qe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,qe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,qe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var E0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function or(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function T0(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=or(e,n);return i.length===1&&i[0]===t?n:void 0}function nm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Va(e){return typeof e=="string"&&e.trim().length>0}function t2(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(E0,e)!==void 0}function N0(e){let t=nm(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return n2(a0(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Va(t.title)||!Va(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,l=Object.freeze([]);for(let u of t.nodes){let c=nm(u);if(!c||!Va(c.id)||!Va(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=Mn(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:l,tags:l,styleTags:l,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let a=n.get(t.entry)?.id;if(!a)throw new Error("Missing publication entry node");let o=new Map,r=new Set;for(let u of t.relations){let c=nm(u);if(!c||!Va(c.source)||!Va(c.target)||!t2(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=E0[c.role],h=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(h))throw new Error("Invalid or duplicate publication relationship");r.add(h),r.add(JSON.stringify([p.id,s,f.id])),im(o,f,p,c.role,1,1,c.label),im(o,p,f,s,1,2,c.label)}return{title:t.title,entry:a,read:R0(n,o),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function im(e,t,n,i,l,a,o){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:l,direction:a,definition:o}))}function n2(e){let t=new Map,n=new Map,i=new Map,l=new Map,a=new Map;for(let o of e.nodes){let r=Mn(o.id),u=o.id.slice(0,8),c=l.get(u);c?c.push(r):l.set(u,[r]);let f=o.kind==="folder"?"container":o.kind==="drawing"?"document":o.kind;t.set(r,Object.freeze({id:r,name:o.title,kind:f,resolution:"resolved",url:o.url??null,aliases:o.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,o)}for(let o of e.relations)im(i,t.get(o.source),t.get(o.target),o.role,o.relationType,o.direction,o.definition),o.style&&a.set(`${o.source}/${o.target}/${o.role}`,o.style);return{title:e.title,entry:Mn(e.entry),read:R0(t,i),nodes:t,shortIds:l,manifest:e,published:n,body:()=>{},linkStyle:(o,r,u)=>a.get(`${o}/${r}/${u}`)}}function R0(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(a,o)=>n.compare(a.name,o.name)||(a.id<o.id?-1:a.id>o.id?1:0);for(let a of t.values())for(let o of a.values())Object.freeze(o.sort((r,u)=>i(r.node,u.node)));let l=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>e.get(a)??null,scope:a=>({coverage:e.has(a)?"local":"unavailable",complete:e.has(a),prepared:e.has(a),pending:!1}),relations(a,o,r){if(!e.has(a))return{items:l,coverage:"unavailable",truncated:!1};let u=t.get(a)?.get(o)??l,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}var Pl=X(nt(),1);function C0(e,t){let n=cc.map(i=>{let l=t?.get(i)??e.get(i);return[i,l==="1"?!0:l==="0"?!1:l]});return sc(Object.fromEntries(n))??{}}function lm(e,t){for(let n of cc){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function am(e,t){return cc.every(n=>e?.[n]===t?.[n])}var i2=80;function Sc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-i2)}function rm(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function rr(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),l=i===null?[]:or(e,i),a=l.length===1?l[0]:void 0,o=rm(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=C0(t.searchParams,n);return{location:{id:a??e.entry,fragment:a||i===null?o:void 0,canvas:r},addressProblem:i===null||a?void 0:l.length?"ambiguous":"missing",matches:l}}function l2(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),lm(i,n),`#${i}`}function A0(e,t,n,i){try{let l=new URL(e,t);if(l.origin!==t.origin||l.pathname!==t.pathname&&l.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=rr(n,l);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:rm(l.hash)};if(!(l.searchParams.get("node")??l.searchParams.get("node-id")))return;let{location:o,addressProblem:r}=rr(n,l);return r?void 0:o}catch{return}}function Ba(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=l2(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),lm(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function z0(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let l=a=>a.endsWith("/")?a+"index.html":a;return l(i.pathname)!==l(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:rr(n,i)}catch{return}}function om(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function O0(e,t,n){let i=(0,Pl.useRef)(n);i.current=n;let l=e.manifest?.id,[a,o]=(0,Pl.useState)(()=>{let S=t?rr(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&l?om(t.history.state,l)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=a.entries[a.index],u=(0,Pl.useRef)(a.browser?.last??0);(0,Pl.useEffect)(()=>{if(!t||!l)return;let S=t.history,b=m=>{let{location:d,addressProblem:g}=rr(e,new URL(t.location.href)),x=om(m.state,l),M=x?{...x,last:Math.max(x.position,u.current)}:{position:0,last:0};u.current=M.last,S.replaceState({kplexPublication:l,...M},""),i.current(d.id),o(T=>({entries:[d],index:0,addressProblem:g,browser:M,visits:Sc(T.visits,d)}))},v=om(S.state,l)??{position:0,last:0};return S.replaceState({kplexPublication:l,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,l]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!a.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&am(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&l&&a.browser){let m=a.browser.position+1,d={position:m,last:m};return t.history.pushState({kplexPublication:l,...d},"",Ba(new URL(t.location.href),b)),u.current=m,o({entries:[b],index:0,browser:d,visits:Sc(a.visits,b)}),!0}let v=a.index+1;return o({entries:[...a.entries.slice(0,v),b],index:v,visits:Sc(a.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(am(r.canvas,b))return;let v={...r,canvas:b};t&&l&&a.browser&&t.history.replaceState(t.history.state,"",Ba(new URL(t.location.href),v));let m=[...a.entries];m[a.index]=v,o({...a,entries:m})}let p=a.browser?a.browser.position>0:a.index>0,s=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function h(S){if(S===-1?p:s)if(t&&a.browser)t.history.go(S);else{let b=a.index+S,v=a.entries[b];i.current(v.id),o({...a,index:b,addressProblem:void 0,visits:Sc(a.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:h,visits:a.visits,addressProblem:a.addressProblem,canGoBack:p,canGoForward:s}}var ll=X(nt(),1);var Ga=X(nt(),1),_0=X(Rr(),1);var a2="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function o2(){}function r2(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function u2(e,t){let i=r2(e)?.closest(a2)??null;return!!(i&&t.contains(i))}function D0(e,t,n,i,l){let a=t+l,o=Math.max(a,t+n-i-l);return Math.min(o,Math.max(a,e))}function c2(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function L0({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let l=e.ownerDocument,a=l.defaultView;if(!a||t.ownerDocument!==l)return o2;let o=null,r=!1,u=!1,c=!1,f=a.visualViewport,p=(M,T)=>{let w=e.getBoundingClientRect(),N=c2(a),V=D0(M,N.left,N.width,w.width,n),E=D0(T,N.top,N.height,w.height,n);e.style.setProperty("--kplex-dialog-left",`${V}px`),e.style.setProperty("--kplex-dialog-top",`${E}px`),e.classList.add("is-positioned"),u=!0,i?.({left:V,top:E})},s=()=>{if(!u||c)return;let M=e.getBoundingClientRect();p(M.left,M.top)},h=()=>{l.removeEventListener("pointermove",b,!0),l.removeEventListener("pointerup",v,!0),l.removeEventListener("pointercancel",v,!0)},S=()=>{if(!o)return;let M=o.pointerId;o=null,r=!1,h(),t.hasPointerCapture(M)&&t.releasePointerCapture(M),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(M){let T=o;if(!T||M.pointerId!==T.pointerId)return;M.preventDefault(),M.stopPropagation();let w=M.clientX-T.startClientX,N=M.clientY-T.startClientY;if(!r){if(Math.hypot(w,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(T.startLeft+w,T.startTop+N)}function v(M){!o||M.pointerId!==o.pointerId||(M.preventDefault(),M.stopPropagation(),S())}let m=M=>{o?.pointerId===M.pointerId&&S()},d=()=>{S()},g=M=>{if(c||o||M.button!==0||u2(M.target,t))return;let T=e.getBoundingClientRect();o={pointerId:M.pointerId,startClientX:M.clientX,startClientY:M.clientY,startLeft:T.left,startTop:T.top},l.addEventListener("pointermove",b,!0),l.addEventListener("pointerup",v,!0),l.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(M.pointerId)}catch{}M.preventDefault(),M.stopPropagation()},x=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",m),a.removeEventListener("blur",d),a.removeEventListener("resize",s),a.removeEventListener("pagehide",x),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",m),a.addEventListener("blur",d),a.addEventListener("resize",s),a.addEventListener("pagehide",x),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),x}function s2(e,t){let n=e.target,i=e.composedPath();return t.some(l=>l?i.includes(l)?!0:n?l.contains(n):!1:!1)}function xc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:l,insideRoots:a,onDismiss:o,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,h]=(0,Ga.useState)({}),S=(0,Ga.useRef)({insideRoots:a,onDismiss:o,handleEscape:u});S.current={insideRoots:a,onDismiss:o,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,m=b?.closest("[data-floating-layer-boundary]")??null,d=e&&v?m??c(v):null,g=n?.x,x=n?.y;return(0,Ga.useLayoutEffect)(()=>{if(!e)return;let M=t.current;if(!M)return;let T=M.ownerDocument,w=T.defaultView;if(!w)return;let N=!1,V=null,E=()=>{if(N)return;let J=t.current;if(!J||J.ownerDocument!==T)return;let C=J.getBoundingClientRect();if(r&&(!J.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=w.visualViewport,z=m?.getBoundingClientRect(),Y=z&&m?z.left+m.clientLeft-m.scrollLeft:0,ee=z&&m?z.top+m.clientTop-m.scrollTop:0,te=Math.max(P?.offsetLeft??0,z?.left??0),H=Math.max(P?.offsetTop??0,z?.top??0),Z=Math.min((P?.offsetLeft??0)+Math.min(w.innerWidth,P?.width??w.innerWidth),z?.right??1/0),ue=Math.min((P?.offsetTop??0)+Math.min(w.innerHeight,P?.height??w.innerHeight),z?.bottom??1/0),fe=Math.min(f.viewportMargin,Math.max(0,(Z-te)/2)),wt=g??C.left,we=x??C.top,Mt=x??C.bottom,je=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-te-fe*2)),Rn=Math.max(te+fe,Math.min(V?.left??wt,Z-je-fe)),et=ue-Mt-f.anchorGap-fe,Et=we-H-f.anchorGap-fe,pn=et<f.minimumMaxHeight&&Et>et?we-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Et):Mt+f.anchorGap,Dt=Math.max(H+fe,Math.min(V?.top??pn,ue-Math.min(f.minimumMaxHeight,Math.max(0,ue-H-fe*2))-fe));h({position:m?"absolute":"fixed",left:Rn-Y,top:Dt-ee,width:je,maxHeight:Math.max(0,ue-Dt-fe)})},k=J=>{s2(J,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},L=J=>{if(J.key!=="Escape"||S.current.handleEscape?.(J)===!1)return;J.preventDefault(),J.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===T&&C.isConnected&&C.focus({preventScroll:!0})},_=w.ResizeObserver,q=_?new _(E):null;q?.observe(M),m&&q?.observe(m),i.current&&q?.observe(i.current),w.addEventListener("resize",E),w.visualViewport?.addEventListener("resize",E),w.visualViewport?.addEventListener("scroll",E),T.addEventListener("scroll",E,!0),T.addEventListener("pointerdown",k,!0),T.addEventListener("keydown",L,!0);let W=i.current,ie=l?.current,I=W&&ie?L0({modalEl:W,handleEl:ie,viewportMargin:f.viewportMargin,onPositionChange:J=>{V=J,E()}}):void 0,ae=()=>{N||(N=!0,I?.(),q?.disconnect(),w.removeEventListener("resize",E),w.visualViewport?.removeEventListener("resize",E),w.visualViewport?.removeEventListener("scroll",E),T.removeEventListener("scroll",E,!0),T.removeEventListener("pointerdown",k,!0),T.removeEventListener("keydown",L,!0),w.removeEventListener("pagehide",ae))};return w.addEventListener("pagehide",ae),E(),ae},[e,r,t,g,x,i,l,v,m,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),d?(0,_0.createPortal)(p(s),d):null}var Tn=X(me(),1),f2={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function H0({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:l}){let a=(0,ll.useRef)(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(!0),[u,c]=(0,ll.useState)();a.current=e,(0,ll.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let h=e.ownerDocument.defaultView?.navigator.clipboard;if(!h)throw new Error("Clipboard unavailable");await h.writeText(s),r.current&&(l(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[h,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?h:s.key==="End"||s.target===h?S:h;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(xc,{open:!0,anchorRef:a,panelRef:o,insideRoots:()=>[o.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:f2,children:s=>(0,Tn.jsx)("div",{ref:o,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":D.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":D.address,value:u,onFocus:h=>h.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:D.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:D.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:D.ambiguousAddress})]})})})}var U0=X(nt(),1);var al=X(nt(),1);var O=X(me(),1),d2={"arrow-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,O.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M5 12h14"}),(0,O.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,O.jsx)("path",{d:"M3 15h18"})]}),sun:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,O.jsx)("path",{d:"M12 2v2"}),(0,O.jsx)("path",{d:"M12 20v2"}),(0,O.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,O.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,O.jsx)("path",{d:"M2 12h2"}),(0,O.jsx)("path",{d:"M20 12h2"}),(0,O.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,O.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,O.jsx)(O.Fragment,{children:(0,O.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M12 2v2"}),(0,O.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,O.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,O.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,O.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,O.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,O.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,O.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,O.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,O.jsx)(O.Fragment,{children:(0,O.jsx)("path",{d:"M5 12h14"})}),plus:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M5 12h14"}),(0,O.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,O.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,O.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,O.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,O.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,O.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("path",{d:"M18 6 6 18"}),(0,O.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,O.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,O.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,O.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,O.jsx)("path",{d:"M12 12V8"})]})};function um({icon:e}){return(0,O.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:d2[e]})}function vt({icon:e,label:t,title:n=t,type:i="button",...l}){return(0,O.jsx)("button",{...l,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,O.jsx)(um,{icon:e})})}var ln=X(me(),1),cm={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},m2={...cm,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},h2={...cm,preferredWidth:280,minimumMaxHeight:235},p2={canvas:{label:D.graphOptions,positioning:cm},theme:{label:il.label,positioning:m2},brand:{label:In.label,positioning:h2}};function g2(e){e?.focus({preventScroll:!0})}function ur({anchor:e,point:t,choices:n,onDismiss:i,variant:l="canvas"}){let a=(0,al.useRef)(e),o=(0,al.useRef)(null),r=(0,al.useRef)(null),[u,c]=(0,al.useState)(null),f=p2[l];a.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("[role^=menuitem]"))?.focus()}(0,al.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function h(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){h();return}let m=v.target,d=m.closest("[role=menu]");if(d){if(v.key==="ArrowRight"&&m.getAttribute("aria-haspopup")==="menu")m.getAttribute("aria-expanded")==="true"?p():m.click();else if(v.key==="ArrowLeft"&&d!==o.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(d.querySelectorAll("[role^=menuitem]")).filter(T=>T.closest("[role=menu]")===d),x=g.indexOf(m),M=v.key==="Home"?0:v.key==="End"?g.length-1:(x+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[M]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b(v,m=!1){if("href"in v)return(0,ln.jsx)("a",{role:"menuitem",ref:m?g2:void 0,href:v.href,target:"_blank",rel:"noopener noreferrer",onClick:h,children:v.label},v.href);let{label:d,icon:g,kind:x,checked:M,select:T}=v;return(0,ln.jsxs)("button",{type:"button",role:x,"aria-checked":M,autoFocus:m,onClick:()=>{h(),T()},children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:M?"✓":""}),g&&(0,ln.jsx)(um,{icon:g}),d]},d)}return(0,ln.jsx)(xc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,ln.jsx)("div",{ref:o,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((m,d)=>"choices"in m?(0,ln.jsxs)("div",{role:"none",children:[(0,ln.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===m.label,onClick:()=>u===m.label?s():c(m.label),children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),m.label,(0,ln.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===m.label&&(0,ln.jsx)("div",{ref:r,role:"menu","aria-label":m.label,children:m.choices.map(g=>b(g))})]},m.label):b(m,l==="theme"?"checked"in m&&m.checked:d===0))})})}var Gt=X(me(),1),sm=[{label:In.github,href:"https://github.com/zsviczian/kplex"},{label:In.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:In.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:In.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:In.book,href:"https://community.sketch-your-mind.com/sym"}];function P0(){let[e,t]=(0,U0.useState)(null);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":In.label,title:In.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,Gt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Gt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Gt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Gt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Gt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,Gt.jsx)(ur,{anchor:e,variant:"brand",choices:sm,onDismiss:()=>t(null)})]})}var k0=X(nt(),1),V0=X(me(),1);function fm({icon:e,size:t,className:n}){function i(l,a){return(0,k0.createElement)(l.tag,{...l.attrs,key:a},l.shapes.length?l.shapes.map(i):void 0)}return(0,V0.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}var sr=X(nt(),1);function B0(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let l=e[i],a=e[i-1];if(n>l.offset&&i<e.length-1)continue;let o=l.offset>a.offset?(n-a.offset)/(l.offset-a.offset):1,r=(u,c)=>u+(c-u)*o;return{offset:n,x:r(a.x,l.x),y:r(a.y,l.y),scaleX:r(a.scaleX,l.scaleX),scaleY:r(a.scaleY,l.scaleY),originX:r(a.originX,l.originX),originY:r(a.originY,l.originY)}}return null}var wc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,l){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let a=t.animate(n,{...i,fill:"none"});if(!a)return null;this.animations.set(t,a),l&&this.poses.set(t,{animation:a,frames:l});let o=()=>{this.animations.get(t)===a&&(this.animations.delete(t),this.poses.delete(t))};return a.finished.then(o,o),a}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?B0(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};function G0(e,t,n,i){let l=Math.max(.01,n),a=(e.left-t.left)/l,o=(e.top-t.top)/l,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(a,o),f=Math.min(24/l,c*.08),p=c?-o/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(h=>{let S=h===0||h===1?0:Math.sin(Math.PI*h),b=a*(1-h)+p*f*S,v=o*(1-h)+s*f*S,m=1+.055*S;return i?.push({offset:h,x:b,y:v,scaleX:(r+(1-r)*h)*m,scaleY:(u+(1-u)*h)*m,originX:0,originY:0}),{offset:h,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*h)*m}, ${(u+(1-u)*h)*m})`,opacity:1}})}var cr=X(nt(),1),Mc=X(me(),1),kl="[data-publication-strip-scroll]";function Y0({id:e,label:t,panel:n,start:i,onScroll:l,children:a}){let o=(0,cr.useRef)(null),r=(0,cr.useRef)(i);return(0,cr.useLayoutEffect)(()=>{o.current&&(o.current.scrollTop=r.current)},[]),(0,Mc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Mc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:o,role:"region","aria-label":t,tabIndex:0,onScroll:u=>l(u.currentTarget.scrollTop),children:(0,Mc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:a})})})}var Ec={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function q0(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(kl),l=>[l,l.getBoundingClientRect()])),i=[];for(let l of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let a=l.getBoundingClientRect(),o=l.closest(kl),r=o?n.get(o)??t:t;a.left>=Math.min(t.right,r.right)||a.right<=Math.max(t.left,r.left)||a.top>=Math.min(t.bottom,r.bottom)||a.bottom<=Math.max(t.top,r.top)||i.push({element:l,id:l.dataset.publicationNode,occurrence:l.dataset.publicationOccurrence,rect:a,clipped:r!==t&&(a.top<r.top||a.bottom>r.bottom)})}return i}function y2(e,t){let n=new Set(e),i=new Map(e.map(o=>[o.occurrence,o])),l=new Map;for(let o of e){let r=l.get(o.id);r?r.push(o):l.set(o.id,[o])}let a=new Map;for(let o of t){let r=i.get(o.occurrence);r?.id===o.id&&(a.set(o,r),n.delete(r))}for(let o of t){if(a.has(o))continue;let r,u=1/0;for(let c of l.get(o.id)??[]){if(!n.has(c))continue;let f=Math.hypot(o.rect.x-c.rect.x,o.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(a.set(o,r),n.delete(r))}return{pairs:a,remaining:n}}function j0(e,t){let n=(0,sr.useRef)(new wc).current,i=(0,sr.useRef)(null);function l(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,sr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",l),()=>{r?.removeEventListener("change",l),l()}},[]);function a(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){l();return}i.current={id:r,cards:q0(u)}}}function o(r,u){let c=e.current,f=t.current,p=i.current;if(l(),!c||!f||p?.id!==r)return;let s=q0(c),{pairs:h,remaining:S}=y2(p.cards,s);for(let m of s){let d=h.get(m)?.rect;d?(Math.abs(d.left-m.rect.left)>.5||Math.abs(d.top-m.rect.top)>.5||Math.abs(d.width-m.rect.width)>.5||Math.abs(d.height-m.rect.height)>.5)&&n.play(m.element,G0(d,m.rect,u),Ec):n.play(m.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Ec)}let b=f.getBoundingClientRect();for(let m of S){if(m.clipped||m.element.isConnected)continue;let d=m.element.cloneNode(!0);d.removeAttribute("role"),d.removeAttribute("tabindex"),d.removeAttribute("data-publication-node"),d.removeAttribute("data-publication-occurrence"),d.removeAttribute("data-publication-center"),d.style.left=`${m.rect.left-b.left}px`,d.style.top=`${m.rect.top-b.top}px`;let g=m.rect.width/parseFloat(d.style.width),x=m.rect.height/parseFloat(d.style.height);f.append(d);let M=n.play(d,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${x})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${x*.95})`}],{...Ec,duration:200});M?M.finished.then(()=>d.remove(),()=>d.remove()):d.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Ec)}return{capture:a,play:o,cancel:l}}var Ot=X(nt(),1);var fr=X(me(),1);function X0({label:e,controlId:t,children:n,layout:i="stacked",actions:l,className:a=""}){return(0,fr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${l?" has-actions":""} ${a}`,children:[(0,fr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,l?(0,fr.jsx)("div",{className:"kplex-field-actions",children:l}):null]})}var Tc=X(nt(),1);var De=X(nt(),1),Q0=X(Rr(),1),St=X(me(),1);function b2(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),l=i.indexOf(n);if(l>=0)return new Set(Array.from({length:n.length},(r,u)=>l+u));let a=new Set,o=0;for(let r of n){let u=i.indexOf(r,o);if(u<0)return new Set;a.add(u),o=u+1}return a}function K0(e,t){let n=b2(e,t);if(!n.size)return e;let i=[],l=0,a=n.has(0);for(let o=1;o<=e.length;o+=1){let r=o<e.length&&n.has(o);if(o<e.length&&r===a)continue;let u=e.slice(l,o);i.push(a?(0,St.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${l}:m`):(0,St.jsx)("span",{children:u},`${l}:t`)),l=o,a=r}return(0,St.jsx)(St.Fragment,{children:i})}function Z0({value:e,onChange:t,results:n,getResults:i,onChoose:l,getKey:a,getLabel:o,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:h=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:m,appTopbarSelector:d,maxFloatingHeight:g=440,minFloatingWidth:x=0,resultsClassName:M="",matchingQuery:T,resultsOwnerId:w,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:V,onEnterWithoutResult:E,onCtrlEnter:k,openResultsOnFocus:L=!0,onFocusChange:_,onDismiss:q,focusRequest:W,inputTitle:ie,inputKeyShortcuts:I,className:ae="",highlightMatches:J=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:z=!1,advanceOnChoose:Y=!1,disclosure:ee}){let te=(0,De.useId)(),[H,Z]=(0,De.useState)(!1),[ue,fe]=(0,De.useState)(!1),[wt,we]=(0,De.useState)(!1),[Mt,je]=(0,De.useState)(!1),[Rn,et]=(0,De.useState)(0),[Et,pn]=(0,De.useState)(null),Dt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Fn=(0,De.useRef)(null),rl=H&&!wt&&(Mt||L||ue&&e.trim().length>0),he=(0,De.useMemo)(()=>rl?i?.(e)??n??[]:[],[rl,i,n,e]),tt=he.length?Math.max(0,Math.min(he.length-1,Rn)):0,Lt=Dt.current?.ownerDocument??null,Te=Lt?.defaultView??null,Cn=b?v==="viewport"?Lt?.body??null:m?Dt.current?.closest(m)??null:null:null,An=H&&he.length>0&&(!b||!!(Cn&&Et)),$n=()=>{je(!1),we(!0),et(0),q?.()},Yt=()=>{ee&&(ee.onOpen(),Fn.current?.focus({preventScroll:!0}),Z(!0),je(!0),we(!1),et(0))},ul=U=>{je(!1),Z(!U),fe(!1),we(!U),et(0);let le=Fn.current;U&&le&&le.ownerDocument.activeElement===le&&le.blur(),_?.(!1)},Wn=()=>ul(!0),zn=U=>{if(l(U),C){ul(!z);return}Y&&he.length>0&&et(le=>(Math.max(0,Math.min(he.length-1,le))+1)%he.length)};(0,De.useEffect)(()=>{et(0)},[e]);let Pe=(0,De.useCallback)(()=>{let U=Fn.current;U&&(Z(!0),fe(!1),we(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{h&&Pe()},[h,Pe]),(0,De.useEffect)(()=>{W&&Pe()},[W,Pe]),(0,De.useEffect)(()=>{let U=Dt.current;if(!U)return;let le=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",le),()=>U.removeEventListener("kplex-dismiss-suggestions",le)},[q]),(0,De.useEffect)(()=>{if(!H||!Lt||!Te)return;let U=Dt.current;if(!U)return;let le=gn=>{let Tt=gn.target;Tt&&(U.contains(Tt)||wi.current?.contains(Tt))||Wn()},Ge=()=>Lt.removeEventListener("pointerdown",le,!0);return Lt.addEventListener("pointerdown",le,!0),Te.addEventListener("pagehide",Ge,{once:!0}),()=>{Ge(),Te.removeEventListener("pagehide",Ge)}},[H,Lt,Te]),(0,De.useLayoutEffect)(()=>{if(!b||!H||!he.length){pn(null);return}let U=Dt.current;if(!U||!Te)return;let le=Te.visualViewport,Ge=()=>{let ni=U.getBoundingClientRect(),qt=8,Qa=6;if(v==="viewport"){let Sr=le?.offsetLeft??0,y=le?.offsetTop??0,A=le?.width??Te.innerWidth,B=y+(le?.height??Te.innerHeight),K=Math.min(Math.max(ni.width,x),Math.max(0,A-qt*2)),re=Math.max(Sr+qt,Math.min(ni.left,Sr+A-qt-K)),j=Math.max(ni.bottom+Qa,y+qt),_e=Math.min(ni.top-Qa,B-qt),pt=Math.max(0,B-qt-j),Xe=Math.max(0,_e-y-qt),Le=pt>=Math.min(180,g)||pt>=Xe,jt=Math.max(0,Math.min(g,Le?pt:Xe)),Xt={position:"fixed",left:re,width:K,maxHeight:jt,zIndex:1e4};Le?Xt.top=j:Xt.bottom=Te.innerHeight-_e,pn(Xt);return}let hr=m?U.closest(m)??null:null,pr=d?U.closest(d)??null:null;if(!hr||!pr)return;let On=hr.getBoundingClientRect(),gr=pr.getBoundingClientRect(),Za=Math.max(0,On.width-qt*2),yr=Math.min(780,Math.max(ni.width,Math.min(620,Za)),Za),Ia=qt,br=Math.max(Ia,On.width-qt-yr),vr=Math.min(br,Math.max(Ia,ni.left-On.left)),Ja=Math.max(0,gr.bottom-On.top+Qa),Fa=Math.max(0,Math.min(g,On.height-Ja-qt));pn({left:vr,top:Ja,width:yr,maxHeight:Fa})};Ge();let gn=Te.ResizeObserver,Tt=gn?new gn(Ge):null,ti=v==="app"&&m?U.closest(m):null,Ka=v==="app"&&d?U.closest(d):null;ti&&Tt?.observe(ti),Ka&&Tt?.observe(Ka),Tt?.observe(U);let cl=()=>{Tt?.disconnect(),Te.removeEventListener("resize",Ge),Te.removeEventListener("scroll",Ge,!0),le?.removeEventListener("resize",Ge),le?.removeEventListener("scroll",Ge)};return Te.addEventListener("resize",Ge),Te.addEventListener("scroll",Ge,!0),le?.addEventListener("resize",Ge),le?.addEventListener("scroll",Ge),Te.addEventListener("pagehide",cl,{once:!0}),()=>{cl(),Te.removeEventListener("pagehide",cl)}},[d,b,v,H,he.length,g,x,Lt,Te,m]),(0,De.useEffect)(()=>{let U=wi.current;!U||!he.length||U.querySelector(`[data-kplex-fuzzy-index="${tt}"]`)?.scrollIntoView({block:"nearest"})},[tt,he.length]);let ei=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),Z(!1),_?.(!1);return}if(U.key==="Escape"){he.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(z&&ee&&U.key==="ArrowDown"&&!he.length){U.preventDefault(),Yt();return}if(U.key==="ArrowDown"&&he.length){U.preventDefault(),et(le=>Math.min(he.length-1,le+1));return}if(U.key==="ArrowUp"&&he.length){U.preventDefault(),et(le=>Math.max(0,le-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&he.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let le=he[tt];le&&zn(le);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&k){U.preventDefault(),U.stopPropagation(),k();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!k)&&U.key==="Enter"){U.preventDefault();let le=he[tt];le?zn(le):E?.()}}},Mi=H&&he.length>0?(0,St.jsx)("div",{ref:wi,id:z?te:void 0,role:z?"listbox":void 0,"aria-labelledby":z?p:void 0,"aria-label":z&&!p?c:void 0,"data-fuzzy-owner":w,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${M?` ${M}`:""}`,style:b?Et??void 0:void 0,children:he.map((U,le)=>{let Ge=o(U),gn=r?.(U),Tt=J?T??e:"";return(0,St.jsxs)("button",{id:z?`${te}-option-${le}`:void 0,role:z?"option":void 0,"aria-selected":z?le===tt:void 0,tabIndex:z?-1:void 0,"data-kplex-fuzzy-index":le,className:`kplex-search-result${V?" has-prefix":""}${le===tt?" is-selected":""}`,"aria-label":gn?`${Ge}
10
+ ${gn}`:Ge,onMouseDown:ti=>ti.preventDefault(),onMouseEnter:()=>et(le),onClick:()=>zn(U),children:[V?(0,St.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:V(U)}):null,(0,St.jsx)("span",{children:K0(Ge,Tt)}),gn?(0,St.jsx)("small",{children:K0(gn,Tt)}):null]},a(U))})}):null,Xa=b&&Cn&&Et&&Mi?(0,Q0.createPortal)(Mi,Cn):b?null:Mi;return(0,St.jsxs)("div",{ref:Dt,className:`kplex-search-shell kplex-fuzzy-search${ae?` ${ae}`:""}`,children:[s?(0,St.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,St.jsx)("input",{ref:Fn,type:"text",role:z?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{je(!1),fe(!0),we(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),fe(!1),we(!1),_?.(!0)},onBlur:P?Wn:void 0,onKeyDown:ei,placeholder:u,"aria-label":p?void 0:c,title:ie,"aria-keyshortcuts":I,"aria-labelledby":p,"aria-expanded":z?An:H&&he.length>0,"aria-haspopup":z?"listbox":void 0,"aria-autocomplete":z?"list":void 0,"aria-controls":z&&An?te:void 0,"aria-activedescendant":z&&An?`${te}-option-${tt}`:void 0,autoComplete:"off"}),ee?(0,St.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:z?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":z?An:H&&he.length>0,"aria-haspopup":z?"listbox":void 0,"aria-controls":z&&An?te:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(H&&Mt&&!wt){$n();return}Yt()},children:ee.icon}):null,Xa]})}var J0=X(me(),1);function I0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:l,revision:a,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:h}){let[S,b]=(0,Tc.useState)(""),v=(0,Tc.useCallback)(m=>e.search(m,24),[e,a]);return(0,J0.jsx)(Z0,{value:S,onChange:b,getResults:v,onChoose:m=>{l(m.node.id),p&&b("")},getKey:m=>m.node.id,getLabel:m=>m.label,getDetail:m=>m.detail,resultPrefix:h,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}var v2=1e5,S2=8*1024*1024,F0=1e6,x2=/[\p{L}\p{N}]+/gu,w2=/^[\p{L}\p{N}]{1,128}$/u;function $0(e){return[...new Set(e.normalize("NFC").toLowerCase().match(x2))].filter(t=>t.length<=128)}function M2(e,t){if(!Array.isArray(e)||e.length>dc)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(l=>{if(!l||typeof l!="object"||!("id"in l)||!Si(l.id)||n.has(l.id)||t&&!t.has(l.id)||!("text"in l)||typeof l.text!="string"||l.text.length>v2)throw new Error("Invalid publication search row");if(n.add(l.id),i+=l.text.length,i>S2)throw new Error("Publication search exceeds its text budget");return{id:l.id,text:l.text}})}function W0(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>F0)throw new Error("Invalid publication search index");let n=M2(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let l="",a=0,o=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!w2.test(u)||u!==u.normalize("NFC").toLowerCase()||l>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(l=u,a+=c.length,a>F0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:o}}function Vl(e){return e.trim().normalize("NFC").toLowerCase()}function ev(e,t){let n=new Set([...t.published.values()].filter(l=>l.kind==="document"||l.kind==="drawing").map(l=>l.id)),i=W0(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:l},a)=>[l,a])),postings:new Map(i.terms)}}function E2(e,t){let n=Math.max(0,Vl(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function tv(e,t){let n=new Map,i=[...e.nodes.values()].map(a=>{let o=Vl(a.name),r=a.aliases.map(Vl),u=Object.values(e.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Vl);for(let c of[o,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(a.id)}return{node:a,title:o,aliases:r,properties:u}});return{graph:{search(a,o){let r=Vl(a.slice(0,128));if(!r)return[];let u=$0(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:h,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:h.includes(r)?2:s.startsWith(r)?3:h.some(m=>m.startsWith(r))?4:s.includes(r)?5:h.some(m=>m.includes(r))||S.some(m=>m.includes(r))?6:b!==void 0&&f?.every(m=>m.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,o).map(({score:p,node:s,position:h,title:S})=>{let b=p===7&&h!==void 0?t?.rows[h]?.text:void 0,v=b&&c?E2(b,c):n.get(S).size>1?s.id:s.aliases.find(m=>Vl(m).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(a){let o=Vl(a),r=or(e,o);return r.length?r:[...n.get(o)??[]]}}}var $e=X(me(),1);function nv({publication:e,resources:t,page:n,searchFocus:i,onChoose:l}){let a=(0,Ot.useRef)(null),o=(0,Ot.useId)(),[r,u]=(0,Ot.useState)(""),[c,f]=(0,Ot.useState)([]),[p,s]=(0,Ot.useState)(!1),[h,S]=(0,Ot.useState)(!1),[b,v]=(0,Ot.useState)(null),[m,d]=(0,Ot.useState)(!1),g=(0,Ot.useMemo)(()=>tv(e,h?b:null),[e,h,b]);(0,Ot.useEffect)(()=>{let M=a.current?.ownerDocument.defaultView;if(!h||!M||b)return;let T=new M.AbortController,w=T.signal;return d(!1),t.text(Xd,w).then(N=>{w.aborted||v(ev(JSON.parse(N),e))}).catch(()=>{w.aborted||d(!0)}),()=>T.abort()},[h,e,t,b]);function x(M){M.preventDefault();let T=z0(r.trim(),n(),e),w=T?T.matches:g.address(r);if(w.length!==1){f(w),s(!w.length);return}f([]),s(!1),l(T?.location??{id:w[0]})}return(0,$e.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,$e.jsxs)("div",{className:"kplex-publication-search",children:[(0,$e.jsx)(I0,{graph:g.graph,revision:b&&h?1:0,onActivate:M=>l({id:M}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:D.find,ariaLabel:D.find,focusRequest:i,inputTitle:`${D.find} (${nr.key})`,inputKeyShortcuts:nr.key}),e.manifest?.fullText&&(0,$e.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,$e.jsx)(vt,{icon:"file-search",label:D.fullText,"aria-pressed":h,onClick:()=>S(M=>!M)}),h&&(m||!b)&&(0,$e.jsx)("span",{role:"status",children:m?D.searchUnavailable:D.searchLoading})]})]}),(0,$e.jsxs)("form",{className:"kplex-publication-address",onSubmit:x,children:[(0,$e.jsx)(X0,{label:D.address,layout:"inline",controlId:o,actions:(0,$e.jsx)(vt,{icon:"corner-down-left",label:D.open,type:"submit"}),children:(0,$e.jsx)("input",{id:o,type:"text",placeholder:D.address,autoComplete:"off",maxLength:512,value:r,onChange:M=>{u(M.currentTarget.value),f([]),s(!1)}})}),p&&(0,$e.jsx)("span",{role:"status",children:D.nodeUnavailable}),c.length>1&&(0,$e.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,$e.jsx)("p",{children:D.chooseNote}),(0,$e.jsx)("ul",{children:c.slice(0,24).map(M=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("button",{type:"button",onClick:()=>{f([]),l({id:M})},children:[e.nodes.get(M)?.name," · ",M]})},M))}),c.length>24&&(0,$e.jsx)("p",{children:D.chooseAddress})]})]})]})}var xt=X(nt(),1);var T2="https://api.github.com",N2="https://github.com",R2=/^[a-z\d][a-z\d-]{0,38}$/i,C2=/^[a-z\d_.-]{1,100}$/i;function iv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function lv(e){if(!Zd(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,l="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let a;try{a=l.slice(1).replace(/\/$/,"").split("/").map(h=>decodeURIComponent(h))}catch{return{}}let[o,r,u,...c]=a;if(!o||!r||!R2.test(o)||!C2.test(r)||r==="."||r==="..")return{};let f=`${o}/${r}`,p=`${T2}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let h=s.split("...");if(h.length===2&&h.every(iv))return{repository:f,preview:{api:`${p}/compare/${h.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let h=c.slice(1).join("/");if(iv(h))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(h)}`,caption:h,comparison:!1}}}return{repository:f}}function dm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function mm(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function av(e,t,n){let i=dm(n);if(!t.comparison)return{title:mm(i.title??i.name??i.full_name,240)??t.caption,description:mm(i.body??i.description,16e3)};let l=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(a=>{let{sha:o,commit:r}=dm(a);if(typeof o!="string"||!/^[a-f\d]{40}$/i.test(o))return[];let u=mm(dm(r).message,240);return[{sha:o.slice(0,7),title:u?.split(/\r?\n/,1)[0]??o.slice(0,7),href:`${N2}/${e}/commit/${o}`}]}):[];return{title:t.caption,commits:l,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=l.length?i.total_commits:l.length}}var Nc="http://www.w3.org/1999/xhtml",Ya="http://www.w3.org/2000/svg",A2="http://www.w3.org/1999/xlink",ov="http://www.w3.org/XML/1998/namespace",z2=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),O2=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),D2=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),L2=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),_2=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),rv=/^[-a-z0-9_]{1,96}$/i,H2=/^[\d\s+.,%()a-z-]+$/i,U2=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,P2=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,k2=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,V2=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,uv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,cv=4*1024*1024;function Rc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function B2(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function G2(e,t=""){if(!Si(e)||t&&!Rc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function sv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!Si(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Rc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let l=G2(n[1],i);return t.siteURL?new URL(l,t.siteURL).href:l}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Rc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return fv(e,t)??(t.allowExternalLinks===!1?null:B2(e))}function fv(e,t){let n=e.slice(2);return!V2.test(e)||!Jd(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Y2(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let l=i.getAttribute("id");l&&/^[a-z0-9_.:-]{1,160}$/i.test(l)&&!n.has(l)&&n.set(l,`${t}-${n.size+1}`)}return n}function dv(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function mv(e,t,n,i){let l=fv(n,i);l&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,l))}function q2(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let l=`data-publication-${i}`,a=e.getAttribute(l)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(t.setAttribute(l,a),t.style.setProperty(`--kplex-published-drawing-${i}`,a.endsWith("%")?a:`${a}px`))}}function j2(e,t,n){let i=e.localName,l=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(l&&Rc(l)&&(t.id=n.idPrefix?`${n.idPrefix}-${l}`:l,t.setAttribute("data-publication-fragment",l)),i==="a"&&dv(t,sv(e.getAttribute("href")??"",n)),i==="figure"&&q2(e,t),i==="img"||i==="audio"||i==="video"){let a=e.getAttribute("src")??"";(i==="img"?uv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&mv(t,"src",a,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let a=e.getAttribute("data-callout");a&&rv.test(a)&&t.setAttribute("data-callout",a)}if(i==="ol"){let a=e.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&t.setAttribute("start",a)}}var X2=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,K2=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Q2=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,Z2=new Set(["text","tspan","textPath"]),I2={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},J2=512*1024;function F2(e,t){let n=new Map,i=[],l=0;for(let a of Array.from(e.children))if(!(a.namespaceURI!==Ya||a.localName!=="defs"))for(let o of Array.from(a.children)){if(o.namespaceURI!==Ya||o.localName!=="style"||o.childElementCount)continue;let r=o.textContent??"";if(l+=r.length,l>J2)return{families:new Map,rules:[]};for(let u of r.matchAll(X2)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(I2[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let h=new Map;for(let b of u[6].split(";")){let[v,m]=b.split(":").map(d=>d.trim().toLowerCase());m&&(v==="unicode-range"&&m.length<=8192&&Q2.test(m)||v==="font-weight"&&K2.test(m)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(m))&&h.set(v,m)}let S=[...h].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function $2(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function W2(e,t,n,i,l){for(let a of Array.from(e.attributes)){let{localName:o,value:r}=a;if(!(r.length>65536)){if(Z2.has(e.localName)&&(o==="style"&&!a.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||o==="space"&&a.namespaceURI===ov&&r==="preserve")){t.setAttributeNS(ov,"xml:space","preserve");continue}if(o==="href"&&(a.namespaceURI===null||a.namespaceURI===A2)){if(e.localName==="a")dv(t,sv(r,i));else if(e.localName==="image"&&uv.test(r))mv(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!a.namespaceURI)if(o==="id"){let u=n.get(r);u&&t.setAttribute(o,u)}else if(_2.has(o)){let u=k2.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(o,`url(#${c})`):P2.test(r)&&t.setAttribute(o,r)}else D2.has(o)&&H2.test(r)?t.setAttribute(o,r):L2.has(o)&&U2.test(r)&&t.setAttribute(o,o==="font-family"?$2(r,l?.families):r)}}}function eM(e,t,n){if(n.idPrefix&&!rv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=n.siteURL?t:t.implementation.createDocument(null,null),a=l.adoptNode(new i.DocumentFragment),o=0,r=0,u=0,c=new Set,f=(p,s,h,S,b)=>{if(++o>1e5||h>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let m=p.nodeValue??"";if(u+=m.length,u>cv)throw new Error("Publication content too large");s.appendChild(l.createTextNode(m));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===Ya&&O2.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=Y2(v,g),b=n.allowDrawingFonts?F2(v,g):void 0}if(!S)return;let m=l.createElementNS(Ya,v.localName);W2(v,m,S,n,b);let d=m.getAttribute("id");if(d&&c.has(d)?m.removeAttribute("id"):d&&c.add(d),s.appendChild(m),v.localName==="svg"&&b?.rules.length){let g=l.createElementNS(Ya,"defs"),x=l.createElementNS(Ya,"style");x.textContent=b.rules.join(`
11
+ `),g.appendChild(x),m.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,m,h+1,S,b)}else if(!S&&v.namespaceURI===Nc&&z2.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let d=v.getAttribute("data-publication-drawing-mode");if((d==="light"||d==="dark")&&d!==n.drawingMode)return}let m=l.createElementNS(Nc,v.localName);j2(v,m,n),s.appendChild(m);for(let d of Array.from(v.childNodes))f(d,m,h+1,null)}};for(let p of e)f(p,a,0,null);return a}function hv(e,t,n){if(e.length>cv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=new i.DOMParser().parseFromString(`<article xmlns="${Nc}">${e}</article>`,"application/xhtml+xml");if(l.documentElement.namespaceURI!==Nc||l.querySelector("parsererror"))throw new Error("Invalid publication markup");return eM(Array.from(l.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}function pv(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function gv(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=pv(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let l=t.searchParams.get("start")??t.searchParams.get("t");return l&&/^\d+s?$/.test(l)&&i.searchParams.set("start",l.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}var qa=X(nt(),1);async function yv(e,t,n,i){let l=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),a=l.body?.getReader();if(!l.ok||!a||Number(l.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let o=[],r=0;try{for(;;){let f=await a.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");o.push(f.value)}}catch(f){throw await a.cancel().catch(()=>{}),f}finally{a.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of o)u.set(f,c),c+=f.byteLength;return u}async function hm(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await yv(e,t,n,i)))}async function gT(e,t,n){return hm(e,t,i0,n)}function bv(e,t,n,i,l){let a=new URL("./",t),o=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...o.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=o.get(c),s=new URL(c,a);if(!p||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let h=i?await i(c,p.bytes,f):await yv(e,s,p.bytes,f);if(h.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",h);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return h}return{siteURL:a,assetPaths:r,bytes:u,nodeAddress:l,has:c=>o.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var We=X(me(),1);function vv({page:e}){let t=(0,qa.useRef)(null),[n,i]=(0,qa.useState)(),{repository:l,preview:a}=e;return(0,qa.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView;if(!o||!l||!a)return;let r=new o.AbortController;return hm(o,new o.URL(a.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(av(l,a,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[l,a]),(0,We.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:a?n===void 0?(0,We.jsx)("p",{role:"status",children:D.githubLoading}):n===null?(0,We.jsx)("p",{role:"status",children:D.githubPreviewUnavailable}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)("h3",{children:n.title}),n.description&&(0,We.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,We.jsxs)(We.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,We.jsx)("p",{children:D.githubCommitCount(n.commits.length,n.total)}),(0,We.jsx)("ol",{children:n.commits.map(o=>(0,We.jsx)("li",{children:(0,We.jsxs)("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",children:[(0,We.jsx)("code",{children:o.sha})," ",o.title]})},o.href))})]}):(0,We.jsx)("p",{children:D.githubNoCommits}))]}):(0,We.jsx)("p",{children:D.githubOpenOriginal})})}var Ee=X(me(),1),Sv="http://www.w3.org/2000/svg",tM={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function pm(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function xv({publication:e,resources:t,location:n,id:i,contentScope:l,colorMode:a,onClose:o,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,xt.useRef)(null),p=(0,xt.useRef)(null),s=(0,xt.useRef)(!1),h=(0,xt.useRef)(n.fragment);h.current=n.fragment;let[S,b]=(0,xt.useState)(0),[v,m]=(0,xt.useState)("loading"),[d,g]=(0,xt.useState)(0),x=e.published.get(n.id),M=x.kind==="url"?x.url:void 0,T=(0,xt.useMemo)(()=>lv(M),[M]),w=(0,xt.useMemo)(()=>M?gv(M):null,[M]),N=w&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(w.url).origin!==t.siteURL.origin;(0,xt.useEffect)(()=>{let E=f.current,k=E?.ownerDocument.defaultView;if(!E||!k||M)return;let L=new k.AbortController,_=L.signal,q=new Map;g(0),E.replaceChildren();let W=async I=>{let ae=q.get(I);if(ae)return ae;let J=tM[I.slice(I.lastIndexOf(".")+1)];if(!J)throw new Error("Unsupported publication media");let C=await t.bytes(I,_);_.throwIfAborted();let P=k.URL.createObjectURL(new k.Blob([C],{type:J}));return q.set(I,P),P},ie=async()=>{if(x.kind!=="document"&&x.kind!=="drawing"){if(!x.asset){m("unavailable");return}let P=await W(x.asset);_.throwIfAborted();let z=E.ownerDocument.createElement("a");z.href=P,z.download=x.asset.slice(7),z.textContent=D.downloadAsset,E.replaceChildren(z),m("ready");return}let I=await t.text(Id(x.id),_),ae=hv(I,E.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:l,deferMedia:!0,drawingMode:a}),J=Array.from(ae.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(ae.querySelectorAll("a[href]"))){let z=new URL(P.getAttribute("href"),t.siteURL);if(z.origin!==C.origin||!z.pathname.startsWith(C.pathname))continue;let Y=z.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==Sv&&t.assetPaths.has(Y)&&J.push({element:P,path:Y,download:!0})}_.throwIfAborted(),E.replaceChildren(ae),m("ready"),pm(E,h.current)?.scrollIntoView({block:"start"});for(let{element:P,path:z,download:Y}of J)try{let ee=await W(z);_.throwIfAborted(),P.setAttribute(Y||P.namespaceURI===Sv?"href":"src",ee),Y&&P.setAttribute("download",z.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return m("loading"),ie().catch(()=>{_.aborted||m("failed")}),()=>{L.abort(),E.replaceChildren();for(let I of q.values())k.URL.revokeObjectURL(I)}},[S,x,e,t,l,a,M]),(0,xt.useEffect)(()=>{f.current&&pm(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,xt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function V(E){if(E.defaultPrevented||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey)return;let k=E.target;if(!(k instanceof E.currentTarget.ownerDocument.defaultView.Element))return;let L=k.closest("a")?.getAttribute("href");if(!L)return;let _=A0(L,t.siteURL,e,n.id);if(!_)return;E.preventDefault();let q=L.startsWith("#")&&_.id===n.id&&f.current?pm(f.current,_.fragment):null;s.current=E.detail===0&&_.id!==n.id,r(q?{..._,fragment:q.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Ee.jsxs)("aside",{id:i,className:`kplex-publication-note${M?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Ee.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ee.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:x.title}),(0,Ee.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ee.jsx)(vt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?D.dockSidecarRight:D.dockSidecarBottom}),(0,Ee.jsx)(vt,{icon:"x",onClick:o,label:D.closeSidecar})]})]}),M?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Ee.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:D.openWebsite}),!T&&!w&&(0,Ee.jsx)("p",{children:D.webFrameHelp})]}),T?(0,Ee.jsx)(vv,{page:T},M):w?N&&(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:x.title,src:w.url,style:{aspectRatio:w.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},w.url):(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame",title:x.title,src:M,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},M)]}):(0,Ee.jsxs)(Ee.Fragment,{children:[v==="loading"&&(0,Ee.jsx)("p",{role:"status",children:D.loadingNote}),v==="failed"&&(0,Ee.jsxs)("div",{role:"alert",children:[(0,Ee.jsx)("p",{children:D.noteUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:D.retry})]}),v==="unavailable"&&(0,Ee.jsx)("p",{children:D.noDocument}),(0,Ee.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:V}),d>0&&(0,Ee.jsxs)("div",{role:"status",children:[(0,Ee.jsx)("p",{children:D.mediaUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:D.retry})]})]})]})}var Jn=X(nt(),1);var xi=X(me(),1),Mv=736,wv=6;function nM({dock:e,sidecarId:t,size:n,minimum:i,maximum:l,onSize:a}){let o=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(d){return u?d.clientX:d.clientY}function p(d){a(Math.max(i,Math.min(l,Math.round(d))))}function s(d,g){r.current?.pointer===g&&(r.current=null,d.hasPointerCapture(g)&&d.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let d=o.current;return()=>{d&&r.current&&s(d,r.current.pointer)}},[e]);function h(d){d.button!==0||r.current||(d.preventDefault(),d.currentTarget.focus({preventScroll:!0}),d.currentTarget.setPointerCapture(d.pointerId),r.current={pointer:d.pointerId,origin:f(d),size:n})}function S(d){let g=r.current;g?.pointer===d.pointerId&&p(g.size+c*(f(d)-g.origin))}function b(d){S(d),s(d.currentTarget,d.pointerId)}function v(d){s(d.currentTarget,d.pointerId)}function m(d){if(d.altKey||d.ctrlKey||d.metaKey)return;let[g,x]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],M=d.shiftKey?1:10,T;if(d.key==="Home")T=i;else if(d.key==="End")T=l;else if(d.key===g)T=n+M;else if(d.key===x)T=n-M;else return;d.preventDefault(),p(T)}return(0,xi.jsx)("div",{ref:o,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":D.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n,onPointerDown:h,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:m})}function Ev({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:l,onDock:a,renderSidecar:o}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",h=s?u.width:u.height,S=Math.max(0,h-(s?260:160)-wv),b=Math.min(S,s?240:120),v=f[i]??Math.round(h*(s?.34:.43)),m=Math.max(b,Math.min(S,v)),d=n?{"--kplex-publication-sidecar-size":`${m}px`,"--kplex-publication-divider-size":`${wv}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let M=r.current,T=M?.ownerDocument.defaultView;if(!M||!T)return;let w=M;function N(){let E=w.clientWidth,k=w.clientHeight;c(L=>L.width===E&&L.height===k?L:{width:E,height:k})}let V=new T.ResizeObserver(N);return V.observe(M),N(),()=>V.disconnect()},[]);function g(M){p(T=>T[i]===M?T:{...T,[i]:M})}function x(){a(i==="bottom"?"right":"bottom")}return(0,xi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:d,children:[e,n?(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(nM,{dock:i,sidecarId:t,size:m,minimum:b,maximum:S,onSize:g}),o(i,l?x:void 0)]}):(0,xi.jsx)("div",{id:t,hidden:!0})]})}function Cc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function Tv(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function iM(e,t,n,i,l){let a=1-l,o=a*a,r=l*l;return{x:o*a*e.x+3*o*l*t.x+3*a*r*n.x+r*l*i.x,y:o*a*e.y+3*o*l*t.y+3*a*r*n.y+r*l*i.y}}function gm(e,t,n,i,l){if(l==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let a=Math.hypot(t.x-e.x,t.y-e.y),o=Math.max(20,Math.min(108,a*.2)),r=Tv(n),u=Tv(i),c={x:e.x+r.x*o,y:e.y+r.y*o},f={x:t.x+u.x*o,y:t.y+u.y*o};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:iM(e,c,f,t,.5)}}var ym=["parent","child","left","right","previous","next"];function Nv(e,t,n,i){let l=t.neighbours(e,"parent").slice(0,n),a=t.neighbours(e,"child").slice(0,n),o=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...l,...a,...o,...r].map(p=>t.identity(p.page))]),c=new Map([...l,...a,...o,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of ym)for(let h of t.neighbours(p,s)){let S=t.identity(h.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...h,role:"sibling"})}return{center:e,parents:l,children:a,leftFriends:o,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}var ol=(e,t,n)=>Math.max(t,Math.min(n,e));function zv(e){return e.horizontalCompactingFactor??e.compactingFactor}function lM(e){let t=e.compactView?.82:1;return{horizontal:ol(1.35/zv(e),.38,1.35)*t,vertical:ol(1.35/e.compactingFactor,.38,1.35)*t,spacing:ol(e.minLinkLength/18,.72,1.7)}}function Rv(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Oc(e){return ol(e.siblingRelativeSize/100,.3,.85)}function Cv(e,t){let n=ol(zv(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*ol(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function Ac(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function zc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Nn(e,t,n=!1){let i=[...e];for(let l of e){let a=t.mini(l,n);a&&i.push({...l,width:a.width,height:a.viewportHeight,y:l.y+l.height/2+a.topGap+a.viewportHeight/2})}return i}function Av(e,t,n,i,l,a,o){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let h=r.slice(s,s+i);u.push({nodes:h,height:Math.max(...h.map(S=>S.height)),reserve:Math.max(0,...h.map(S=>o.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,h)=>{let S;if(h===0){let d=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-d:t+d}else n===1?S=c+f/2+p+a+s.height/2:S=c-f/2-a-s.reserve-s.height/2;let b=s.nodes.map(d=>o.width(d)),m=-(b.reduce((d,g)=>d+g,0)+l*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((d,g)=>{let x=b[g];d.x=m+x/2,d.y=S,m+=x+l}),c=S,f=s.height,p=s.reserve}),r}function bm(e,t,n,i){let l=e;return Ov(l,t,n,i),l}function Ov(e,t,n,i){if(!e.length)return;let l=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+l[c-1]+n+p.height/2}let a=e[0].y-e[0].height/2,o=e.length-1,r=e[o].y+e[o].height/2+l[o],u=-(a+r)/2;for(let c of e)c.y+=u}function vm(e,t,n,i,l="center"){if(!e.length)return;let a=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-a,u=Math.max(1,n-t),f=(r>u?t:l==="midline"?ol(a,t,n-r):l==="bottom"?n-r:l==="top"?t:t+(u-r)/2)-a;for(let p of e)p.y+=f}function dr(e,t,n,i,l,a,o){let c=l.centerX-l.width/2,f=l.centerX+l.width/2,p=l.fixedEdgeY,s=l.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let h=o!==void 0&&a!==void 0?Math.max(72,a-o):Math.max(72,n),S=o!==void 0&&a!==void 0?o:i==="top"?(t.length?s+16:l.fixedEdgeY)-h:t.length?p-16:l.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:h,resizeEdge:i}}function mr(e,t,n,i,l,a){if(!t.length)return null;let o=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,h=p+r,S=h-s,b=a!==void 0&&l!==void 0?Math.max(72,l-a):l===void 0?Number.POSITIVE_INFINITY:Math.max(72,l-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let m=s,d=0;return a!==void 0&&l!==void 0?(m=a,d=Math.max(0,m-s)):l!==void 0?(m=l-v,d=Math.max(0,m-s)):(i==="bottom"?m=h-v:i==="center"&&(m=ol(-v/2,s,h-v)),d=Math.max(0,m-s)),{key:e,left:u-o,top:m,width:c-u+o*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:d}}function Dv(e,t,n,i=!1){let l=Pe=>Math.max(0,...Pe.filter(ei=>ei.editor).map(ei=>ei.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,l(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,l(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,l([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,l(e.siblings))});let a=e.center,{horizontal:o,vertical:r,spacing:u}=lM(t),c=50*o*u,f=36*r*u,p=66*r*u,s=18*r*u,h=26,S=-(a.height/2+h/2+p),b=Math.max(42,52*r*u),v=a.height/2+h/2+p+b,m=Av(e.parents,S,-1,Rv(t,"parent"),c,f,n),d=Av(e.children,v,1,Rv(t,"child"),c,f,n),g=a.width/2,x=g+205*o*u,M=bm(e.leftFriends,-x,s,n),T=t.lateralArrangement==="left",w=bm(e.rightFriends,T?-x:x,s,n),N=T?[...M,...w]:M;T&&Ov(N,-x,s,n);let V=!T&&w.length>0,E=V?Math.max(...w.map(Pe=>Pe.x+Pe.width/2)):g,k=V?285:205,L=V?190:120,_=Math.max(x+k*o*u,E+L*o*u),q=bm(e.siblings,_,s,n),W=d.length?Math.min(...d.map(Pe=>Pe.y-Pe.height/2)):a.height/2+p+b+12,ie=Math.max(30,36*r*u),I=Math.max(120,t.friendMaxHeight),ae=Math.max(120,t.siblingMaxHeight),J=i?T?Math.min(I/2,W-ie):I/2:W-ie,C=J-I,P=C,z=J,Y=C,ee=J;vm(N,P,z,n,"midline"),T||vm(w,Y,ee,n,"midline");let te=Math.max(58,72*r*u),H=t.alignSiblingsToFirstParent?m[0]:void 0,Z=i?ae/2:H?H.y+H.height/2:J-te,ue=i?-ae/2:Z-ae;vm(q,ue,Z,n,i?"midline":"center");let fe=Nn(m,n,!0),wt=Nn(q,n,!0),we=m.length?Ac(fe,a.width/2+24):170,Mt=zc(fe,a.width/2),je=Math.max(Ac(Nn(M,n,!0),115,-x),Ac(Nn(w,n,!0),115,T?-x:x)),Rn=Math.max(zc(Nn(M,n,!0),0,-x),zc(Nn(w,n,!0),0,T?-x:x)),et=Ac(wt,110,_),Et=zc(wt,0,_),pn=T?Math.max(0,Cv(t,we*2)):Cv(t,we*2);m.length&&(x=we+je+pn),x=Math.max(x,Mt+Rn+4);for(let Pe of M)Pe.x=-x;for(let Pe of w)Pe.x=T?-x:x;(m.length||V)&&(_=V?x+je+et+Math.max(0,pn):we+et+pn),_=Math.max(_,Mt+Et+4,V?x+Rn+Et+4:0);for(let Pe of q)Pe.x=_;let Dt=Nn(m,n),wi=Nn(d,n),Fn=Nn(N,n),rl=Nn(T?[]:w,n),he=Nn(q,n),tt={},Lt=mr("parent",Dt,t.parentMaxHeight,"bottom"),Te=mr("child",wi,t.childMaxHeight,"top"),Cn=mr("left",Fn,t.friendMaxHeight,"top",z,P),An=mr("right",rl,t.friendMaxHeight,"top",ee,Y),$n=mr("sibling",he,t.siblingMaxHeight,"top",Z,ue);Lt&&(Lt.left=-we,Lt.width=we*2,tt.parent=Lt),Te&&(tt.child=Te),Cn&&(tt.left=Cn),An&&(tt.right=An),$n&&(tt.sibling=$n);let Yt={},ul=S+h/2+16,Wn=v-h/2-16;Yt.parent=dr("parent",Dt,t.parentMaxHeight,"top",{centerX:0,width:we*2,fixedEdgeY:ul}),Yt.child=dr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:Wn}),Yt.left=dr("left",Fn,t.friendMaxHeight,"top",{centerX:-x,width:je*2,fixedEdgeY:z},z,P),T||(Yt.right=dr("right",rl,t.friendMaxHeight,"top",{centerX:x,width:je*2,fixedEdgeY:ee},ee,Y)),Yt.sibling=dr("sibling",he,t.siblingMaxHeight,"top",{centerX:_,width:et*2,fixedEdgeY:Z},Z,ue);let zn=[a,...m,...d,...M,...w,...q];return t.flipEastWest&&aM(zn,Yt,tt),{nodes:zn,zoneViewports:tt,zoneAreas:Yt}}function aM(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}var Lv={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Dc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Lc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function _v(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var oM={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var rM={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function uM(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(l=>{let a=Reflect.get(e,l);return typeof a=="number"&&Number.isFinite(a)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Hv={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:Lv,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,l=(f,p)=>{let s=JSON.stringify([f.id,p]),h=i.get(s)??e.read.relations(f.id,p);return i.set(s,h),n||=h.truncated||h.coverage==="unavailable",h.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},a=Nv(t,{identity:f=>f.id,neighbours:l,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),o=Dc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...o?{ports:Lc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,h)=>{let S=JSON.stringify([p,s.page.id,h]),b=_v(p,Dc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...o?{ports:Lc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=ym.flatMap(h=>l(p,h));for(let h of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===h.nodeId),b=S?_v(S.role,o):null;S&&b&&u.push({id:JSON.stringify([f.id,h.id]),kind:"semantic",source:f.id,target:h.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,l){if(!uM(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Dc(l?.configuration)},o=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let h=o.get(s.id);if(!h)throw new Error("Missing occurrence measurement");return{...h,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(h=>h.areaId===s),f=Dv({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?Oc(a):1),width:s=>s.expandedWidth,mini:(s,h)=>s[h?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let h=rM[s.key];return{id:s.key,labelKey:oM[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:h.key,minimum:h.min,maximum:h.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};var cM={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function Pv(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,l])=>l===i)?.[0]}function Uv(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function kv(e,t,n,i,l,a){let o=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(Uv(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],o)){if(++u>16384||c>=4096)return!0;let h=i(s),S=e.get(h);if(!S||h===f)continue;let b=Uv(f,h);if(r.has(b))continue;let v,m=1/0;for(let d of p)for(let g of S){if(++u>16384)return!0;let x=l(d,s.role),M=l(g,cM[s.role]);if(!x||!M)continue;let T=(d.x-g.x)**2+(d.y-g.y)**2;T<m&&(v={source:d,target:g,sourcePort:x,targetPort:M},m=T)}v&&(r.add(b),c++,a(v,s))}}return!1}function ja(e){let t=e.length===1?"root":JSON.stringify(e);return Ul(t)?t:null}function Vv(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let l=JSON.parse(i.occurrenceId);if(!Array.isArray(l)||l.length<2||l.length>ht.depth+1||!l.every(Ul)||l[0]!==t||l[l.length-1]!==i.nodeId||ja(l.map(Mn))!==i.occurrenceId)continue;n.set(i.occurrenceId,l.map(Mn))}catch{}}return n}function Bv(e){let t=pc(e.configuration),n=nl(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let l=ir(r0(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!l)return null;let a=l,o=Math.min(t.maximumOccurrences,ht.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(a.expanded),u=new Set(a.collapsed),c=Vv(e,i),f=new Set,p=new Map,s=new Set;for(let w of c.values())for(let N=1;N<=w.length;N++){let V=ja(w.slice(0,N));if(V&&(f.add(V),N<w.length)){let E=p.get(V)??new Set;E.add(w[N]),p.set(V,E),N>1&&s.add(w[N-1])}}let h=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(w=>w!==i)),S=new Set,b=new Set,v=[],m=[],d=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,x=(w,N,V)=>{let k=(V?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(w,_,N)),L=new Map;for(let _ of k)for(let q of _.items)L.has(q.node.id)||L.set(q.node.id,q);return{items:[...L.values()],truncated:k.some(_=>_.truncated),coverage:k.some(_=>_.coverage==="unavailable")?"unavailable":k.every(_=>_.coverage==="local")?"local":"cached"}},M=w=>{if(w===i||S.has(w))return!0;if(S.size>=ht.scopes)return!1;let N=[...h].filter(V=>!S.has(V)&&V!==w).length;return!h.has(w)&&S.size+N>=ht.scopes?!1:(S.add(w),!0)};for(;d.length&&v.length<o;){let w=d.shift(),N=w.lineage[w.lineage.length-1];if(b.has(w.id))continue;b.add(w.id);let V=e.read.node(N);if(!V||V.id!==N||!e.read.isCurrent())return null;let E=w.lineage.slice(0,-1).includes(N),k=p.has(w.id)?Math.max(t.maximumDepth,w.depth+1):t.maximumDepth,L=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=E?{items:[],truncated:!1,coverage:"cached"}:x(N,1,w.depth===0),q=!E&&w.depth<k&&!u.has(w.id)&&(r.has(w.id)||w.depth<a.initialGenerations),W=!E&&w.depth<k&&!(L.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),ie=q&&W&&M(N),I=ie?x(N,Math.min(e.maximum,128),w.depth===0):_,ae=E||!q?"ready":L.pending?"loading":I.coverage==="unavailable"?"unavailable":L.complete?"ready":L.prepared||I.items.length>0?"partial":"unavailable";(q&&W&&!ie||ie&&I.truncated||!E&&w.depth>=k&&(I.items.length>0||!L.complete))&&(ae="limited",g=!0);let J=[];if(ie){let Y=new Map(I.items.map(H=>[H.node.id,H]));for(let H of p.get(w.id)??[])if(!Y.has(H)){let ue=(w.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(fe=>e.read.relation?.(N,H,fe)?.items??[]).find(fe=>fe.node.id===H);ue&&e.read.isCurrent()&&Y.set(H,ue)}if(w.depth===0&&L.complete&&!I.truncated&&I.coverage!=="unavailable"){let H=new Set([...Y.keys()].map(Z=>ja([i,Z])));a={...a,sides:Object.fromEntries(Object.entries(a.sides).filter(([Z])=>H.has(Z)))}}let ee=[...Y.values()].map(H=>{let Z=[...w.lineage,H.node.id],ue=ja(Z);return ue?{id:ue,lineage:Z,relation:H}:(g=!0,ae="limited",null)}).filter(H=>H!==null);ee.sort((H,Z)=>Number(f.has(Z.id))-Number(f.has(H.id))||e.read.compare(H.relation.node,Z.relation.node));let te=o-v.length-1-d.length;for(let H of ee){let Z=[...f].filter(ue=>ue!==w.id&&!b.has(ue)&&!d.some(fe=>fe.id===ue)&&!J.some(fe=>fe.id===ue)&&ue!==H.id).length;if(te<=0||!f.has(H.id)&&te<=Z){g=!0,ae="limited";continue}if(w.depth===0&&H.relation.role==="child"&&a.sides[H.id]===void 0){let ue=[...Y.keys()].flatMap(we=>{let Mt=ja([i,we]),je=Mt?a.sides[Mt]:void 0;return je===-1||je===1?[je]:[]}),fe=ue.filter(we=>we===-1).length<ue.filter(we=>we===1).length?-1:1,wt=ir({...a,sides:{...a.sides,[H.id]:fe}});if(!wt){g=!0,ae="limited";continue}a=wt}J.push(H),te--}J.sort((H,Z)=>e.read.compare(H.relation.node,Z.relation.node))}let C={parent:w.parent,depth:w.depth,side:w.side,expanded:ie,canExpand:W,reference:E,status:ae},P=w.depth===0||w.side===-1?"left":"right";v.push({id:w.id,nodeId:N,areaId:w.areaId,representation:"thought",role:w.relation?.role,relation:w.relation,branch:C,ports:w.depth===0?{top:"parent",bottom:"child",left:"left"}:w.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(I.items.filter(Y=>["left","right","previous","next"].includes(Y.role)).map(Y=>Y.node.id)).size,complete:L.complete&&I.coverage!=="unavailable"&&!I.truncated&&!E},...!ie&&!E&&w.parent?{groupingPartition:JSON.stringify([w.parent,w.side])}:{}}),w.parent&&w.relation&&m.push({id:w.id,kind:"semantic",source:w.parent,target:w.id,sourceNode:w.lineage[w.lineage.length-2],targetNode:N,relation:w.relation,sourcePort:w.relation.role==="child"?"bottom":w.relation.role==="parent"?"top":w.side===1?"right":"left",targetPort:w.parent==="root"&&w.relation.role==="parent"?"bottom":w.side===1?"left":"right"});let z=0;for(let Y of J){let ee=Y.relation.role==="parent"&&t.parentColumns>1&&z++%t.parentColumns===0?-1:1,te=w.depth?w.side:Y.relation.role==="parent"?ee:Y.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:a.sides[Y.id],H=w.depth?w.areaId:Y.relation.role==="parent"?"parent":Y.relation.role==="child"?te===-1?"child-left":"child-right":"left";d.push({...Y,parent:w.id,depth:w.depth+1,side:te,areaId:H})}}if(!e.read.isCurrent())return null;g||=d.length>0;let T=JSON.stringify(a)===JSON.stringify(n)?void 0:a;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:m,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:T}}function sM(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let l=i.insets?.top??0,a=i.insets?.right??0,o=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[l,a,o,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:l,right:a,bottom:o,left:r,width:i.width+r+a,height:i.height+l+o})}return n}function fM(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function Gv(e,t,n,i,l=24,a=42,o=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,l,a,o].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=sM(e),u=Math.min(t,e.length),c=fM(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],h=l,S=a;for(let v of c)p.push(h+v/2),h+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let m=r[v];b.set(m.item.id,{x:p[v%u]+(m.left-m.right)/2,y:s[Math.floor(v/u)]+(m.top-m.bottom)/2,width:m.item.width,height:m.item.height})}return{positions:b,width:h-n+l,height:S-i+o}}function Yv(e,t,n,i={}){let l=n.horizontalSpacing/n.horizontalDensity,a=n.verticalSpacing/n.verticalDensity,o=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?c.get(C)?.controlReserve?.[P]??0:0;if(r.length>ht.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=c.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===o){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let z=C.branch.parent;if(!z||!c.has(z))throw new Error("Missing hierarchy parent");let Y=p.get(z)??[];Y.push(C),p.set(z,Y)}let s=new Map,h=new Set,S=(C,P)=>{let z=s.get(C);if(z!==void 0)return z;if(P>ht.depth||h.has(C))throw new Error("Invalid hierarchy ancestry");h.add(C);let Y=p.get(C)??[],ee=Y.reduce((H,Z)=>H+S(Z.id,P+1),0)+Math.max(0,Y.length-1)*a,te=Math.max(c.get(C).height+f(C,"bottom"),ee);return h.delete(C),s.set(C,te),te};for(let C of r)S(C.id,0);let b=c.get(o);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[o,{x:0,y:0,width:b.width,height:b.height}]]),m=(C,P,z,Y)=>{let ee=C.reduce((H,Z)=>H+s.get(Z.id),0)+Math.max(0,C.length-1)*a,te=P.y+f(Y,"bottom")/2-ee/2;for(let H of C){let Z=c.get(H.id),ue=s.get(H.id),fe={width:Z.width,height:Z.height,x:P.x+z*(P.width/2+l+Z.width/2+f(z===1?Y:H.id,"right")),y:te+ue/2-f(H.id,"bottom")/2};if(v.has(H.id))throw new Error("Repeated hierarchy parent");v.set(H.id,fe),m(p.get(H.id)??[],fe,z,H.id),te+=ue+a}},d=p.get(o)??[],g=d.filter(C=>C.role==="parent"),x=d.filter(C=>C.role!=="parent"),M=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?l+Math.max(...p.get(C).map(P=>M(P.id))):0),T=g.filter(C=>C.branch.side===-1),w=g.filter(C=>C.branch.side===1),N=n.parentColumns,V=[];for(;T.length||w.length;)for(let C=0;C<N;C++)V.push(N>1&&C===0?T.shift():w.shift()??(N===1?T.shift():void 0));let E=Gv(V.map((C,P)=>C?{id:C.id,width:M(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,l,a),k=u.map(C=>{let P=c.get(C.id);if(!P)throw new Error("Missing measured section");return P}),L=Math.max(b.width+f(o,"right")*2,E.width,...k.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),q=Math.max(_,E.height),W={x:-L/2,y:-b.height/2-a-q,width:L,height:q};if(!Number.isFinite(q))throw new Error("Invalid parent area height");for(let C of g){let P=E.positions.get(C.id),z=c.get(C.id),Y=N===1?1:C.branch.side,ee={x:W.x+(L-E.width)/2+P.x+Y*(-P.width/2+z.width/2)-(Y===-1?f(C.id,"right"):0),y:W.y+q-E.height+P.y-f(C.id,"bottom")/2,width:z.width,height:z.height};v.set(C.id,ee),m(p.get(C.id)??[],ee,Y,C.id)}let ie={...v.get(o),width:L};for(let C of[-1,1]){let P=x.filter(z=>z.branch?.side===C);m([...P.filter(z=>z.role!=="child"),...P.filter(z=>z.role==="child")],ie,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let I=b.height/2+f(o,"bottom")+Math.min(24,a);for(let C of k)v.set(C.id,{x:0,y:I+C.height/2,width:C.width,height:C.height}),I+=C.height+Math.min(24,a);let ae=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...W,height:q},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...W,height:q,contentTop:W.y,contentHeight:q,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:l,rowGap:a,filterLayout:"keep"}}],J=Math.min(8,a/4,l/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let z=r.filter(te=>te.areaId===C).map(te=>{let H=v.get(te.id),Z=f(te.id,"right"),ue=f(te.id,"bottom");return{...H,x:H.x+Z/2,y:H.y+ue/2,width:H.width+Z,height:H.height+ue}});if(!z.length)continue;let Y=Math.min(...z.map(te=>te.x-te.width/2))-J,ee=Math.min(...z.map(te=>te.y-te.height/2))-J;ae.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:Y,y:ee,width:Math.max(...z.map(te=>te.x+te.width/2))+J-Y,height:Math.max(...z.map(te=>te.y+te.height/2))+J-ee}})}return{positions:v,areas:ae}}function dM(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function mM(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let l=new Map(e.rows.map(c=>[c.id,c])),a=new Set(e.visible),o=c=>{let f=[];for(let p=0;c&&p<256;p++)a.has(c)&&f.push(c),c=l.get(c)?.parent??"";return f},r=i.map(c=>o(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function qv(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!dM(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let l=new Set(t.visible),a=t.rows.filter(r=>l.has(r.id)),o=a.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...o],truncated:e.truncated||o.length<a.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=mM(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var jv={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:Fd,hierarchy:{maximumScopes:ht.scopes,maximumDepth:ht.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:yc},configuration:hc,restoreState:nl,project(e){let t=Bv(e);return t&&e.sections?.status==="available"?qv(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,l){let a=pc(l?.configuration);if(!a)throw new Error("Mind Map configuration unavailable");return Yv(e,t,a,l?.areaHeights)}};var hM={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Sm={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function Xv(e){return e==="left"||e==="right"||e==="sibling"}function Qv(e,t,n=!0,i="compass",l,a=!1,o){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...hM,...u?.geometry,flipEastWest:c};o!==void 0&&(f.childColumns=Math.min(f.childColumns,o)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Sm.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Sm.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Sm.propertyFontSize},s=Lc(c),h=i==="mindmap",S=h?jv:Hv,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...h?{layoutRoot:t,state:l}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(E=>{let k=E.nodeId&&r.node(E.nodeId);if(!k)throw new Error("Publication occurrence is unavailable");let L=E.id===b.entry,_=E.role==="sibling",q=_?Oc(f):1,W=e.published.get(k.id),ie=W?.roleStyles,I=E.relation?.relationType===2?ie?.inferred:void 0,ae=L?ie?.center:_?ie?.sibling:void 0,J={...W?.style,...I,...ae},C=ae?.fontSize??I?.fontSize??W?.style?.fontSize??(L?30:_?15:20),P=ae?.gateRadius??I?.gateRadius??W?.style?.gateRadius??5,z=ar(C*q,L,p.baseFontSize)*(_&&e.manifest?.7:1),Y=d0(k.name,C,p,L,k.maxLabelLength);J.icon!=null&&(Y.width+=L?22:17);let ee=m0(Y,q,C*q,p);return{occurrence:E,node:k,center:L,fontSize:z,style:J,gateSize:c0({gateRadius:P*q}),measurement:{id:E.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:E.branch?.canExpand?{right:0,bottom:23}:void 0}}}),m=S.layout(b,v.map(E=>E.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),d=[],g=!1;if(a){let E=new Map;for(let{node:L,occurrence:_,center:q}of v){if(!h&&q)continue;let W=E.get(L.id)??[];W.push({...m.positions.get(_.id),node:L.id,occurrence:_}),E.set(L.id,W)}let k=b.edges.flatMap(L=>L.kind==="semantic"?[[L.sourceNode,L.targetNode]]:[]);g=kv(E,k,function*(L){for(let _ of Qd)yield*r.relations(L.node,_).items},L=>L.node.id,(L,_)=>Pv(h?L.occurrence.ports:s,L.occurrence.peerPort?.side,_),({source:L,target:_,sourcePort:q,targetPort:W},ie)=>{d.push({id:JSON.stringify(["cross",L.occurrence.id,_.occurrence.id]),kind:"semantic",source:L.occurrence.id,target:_.occurrence.id,sourceNode:L.node,targetNode:_.node,sourcePort:q,targetPort:W,relation:ie})})}let x=[...b.edges,...d],M=new Map;if(h){let E=(k,L)=>{let _=M.get(k)??new Map;_.set(L,(_.get(L)??0)+1),M.set(k,_)};for(let k of x)E(k.source,k.sourcePort),E(k.target,k.targetPort)}let T=new Map;if(!h)for(let{id:E,viewport:k}of m.areas)k&&Xv(E)&&T.set(E,k);let w=v.map(({occurrence:E,node:k,center:L,fontSize:_,gateSize:q,style:W})=>{let ie=E.areaId==="right"&&f.lateralArrangement==="left"?"left":E.areaId;return{id:E.id,node:k,center:L,fontSize:_,gateSize:q,style:W,role:E.role??"center",bounds:m.positions.get(E.id),branch:E.branch,strip:Xv(ie)&&T.has(ie)?ie:void 0,gates:h?[...M.get(E.id)??[]].map(([I,ae])=>({side:I,count:ae})):Object.keys(s).map(I=>{let ae=s[I],J=ae==="left"?"previous":ae==="right"?"next":null,C=r.relations(k.id,ae).items,P=J?new Set([...C,...r.relations(k.id,J).items].map(z=>z.node.id)).size:C.length;return{side:I,count:P}})}}),N=new Map(w.map(E=>[E.id,E])),V=x.map((E,k)=>{let L=N.get(E.source),_=N.get(E.target),q=gm(Cc(L.bounds,E.sourcePort,L.gateSize),Cc(_.bounds,E.targetPort,_.gateSize),E.sourcePort,E.targetPort,"bezier"),W=E.kind==="semantic"?E.relation.direction:null,ie=E.kind==="semantic"?e.linkStyle(E.sourceNode,E.targetNode,E.relation.role):void 0,I=E.kind==="semantic"?E.relation.definition??null:null;return{id:E.id,source:E.source,target:E.target,route:q,label:I,labelSize:ie?.labelSize,labelColor:ie?.labelColor,crossLink:k>=b.edges.length,sourcePort:E.sourcePort,targetPort:E.targetPort,stroke:ie?.stroke,strokeWidth:ie?.width,startHead:ie?.startHead??(ie?.arrowStart??(W===2||W===3)?"arrow":void 0),endHead:ie?.endHead??(ie?.arrowEnd??(W===1||W===3)?"arrow":void 0)}});return{cards:w,cardById:N,edges:V,strips:T,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function _c(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function Kv(e,t,n,i){let l=Cc(_c(e,t,i),n,t.gateSize);if(!t.strip)return l;let{y:a,height:o}=e.strips.get(t.strip);return l.y>=a&&l.y<=a+o?l:null}function Zv(e,t,n){let i=e.cardById.get(t.source),l=e.cardById.get(t.target);if(!i.strip&&!l.strip)return t.route;let a=Kv(e,i,t.sourcePort,n),o=Kv(e,l,t.targetPort,n);return a&&o?gm(a,o,t.sourcePort,t.targetPort,"bezier"):null}function Hc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Uc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),l=i.includes(","),a=l?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(a.length<3||a.length>4||l&&i.includes("/")||!l&&a.length===4&&!i.includes("/"))return null;let o=Hc(a[0],255),r=Hc(a[1],255),u=Hc(a[2],255),c=a.length===4?Hc(a[3],1):1;return o===null||r===null||u===null||c===null?null:{red:o,green:r,blue:u,alpha:c}}function wm(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(l,a)=>(l*e.alpha+a*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function xm(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Iv(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=wm(e,t),i=o=>.2126*xm(o.red)+.7152*xm(o.green)+.0722*xm(o.blue),l=i(n),a=i(t);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}var pM=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),gM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),yM=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function bM(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let l=i.trim(),a=/^(['"])(.*?)\1$/u.exec(l),o=a?.[2]??l;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(o)&&o!=="-apple-system"||yM.has(o.toLowerCase()))return;n.push(!a&&gM.has(o.toLowerCase())?o.toLowerCase():JSON.stringify(o))}return n.join(", ")}function Jv(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function Fv(e,t){let n=t.trim();if(!(!n||n.length>320))switch(pM.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return bM(n);case"length":return Jv(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):Jv(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Mm=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function $v(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Mm.lastIndex=i;let l=Mm.exec(e);if(!l)throw new Error("Unsupported publication theme");i=Mm.lastIndex;let a=(l[1]??l[3]).split(";").map(u=>u.trim()).filter(Boolean),o=a.filter(u=>u.startsWith("color-scheme"));if(o.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(o[0])?.[1];if(!u||o.length!==1||l[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=o.length?"author":l[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of a){if(u===o[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&Fv(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function Wv(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,l=e??{},a=Uc(l[n+"text-normal"]),o=Uc(l[n+"background-secondary"]??l[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(l)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(a&&(f==="interactive-normal"||f==="interactive-hover")&&c===l[i+f]){let p=Uc(c),s=p&&Iv(a,o?wm(p,o):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var G=X(me(),1),e1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Em={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},vM={left:D.friends,right:D.challengers,sibling:D.siblings},Tm=[["light",il.light,"sun"],["dark",il.dark,"moon"],["system",il.auto,"sun-moon"]],SM=[["right",D.sidecarRight],["left",D.sidecarLeft],["bottom",D.sidecarBottom]],xM={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},t1=600,n1={};function Nm(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(kl))}function i1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function l1({publication:e,markerPrefix:t,resources:n,browser:i}){let l=(0,F.useRef)(null),a=(0,F.useRef)(null),o=(0,F.useRef)(null),r=j0(a,o),u=O0(e,i,r.capture),c=u.attention.id,f={...qd,crosslinks:e.manifest?.appearance?.showCrossLinks??qd.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:h,ontology:S,sidecar:b}=f,[v,m]=(0,F.useState)(),[d,g]=(0,F.useState)(null),x=(0,F.useRef)(null),[M,T]=(0,F.useState)(),[w,N]=(0,F.useState)(!0),V=w?f.dock:"bottom",E=(0,F.useMemo)(()=>Qv(e,c,s,p,v,h,M),[e,c,s,p,v,h,M]),k=p==="mindmap"?D.mindMap:D.view,L=E.cards.find(y=>y.center),[_,q]=(0,F.useState)(),W=_?.attention===c?_.offsets:n1,ie=(0,F.useRef)(null),I=(0,F.useRef)(null),ae=(0,F.useRef)({x:0,y:0,scale:1}),J=(0,F.useRef)(!1),C=(0,F.useRef)({points:new Map,origin:null,moved:!1}),P=(0,F.useRef)(!1),z=(0,F.useId)(),Y=(0,F.useRef)(null),[ee,te]=(0,F.useState)(0),[H,Z]=(0,F.useState)(null),[ue,fe]=(0,F.useState)(null),[wt,we]=(0,F.useState)(null),[Mt,je]=(0,F.useState)(!1),Rn=(0,F.useRef)(()=>{}),et=(0,F.useRef)(null),[Et,pn]=(0,F.useState)(),[Dt,wi]=(0,F.useState)(!1),[Fn,rl]=(0,F.useState)("light"),he=e.manifest?.colorMode,tt=e.manifest?.pins,Lt=Et?.colorScheme==="dark"?"dark":Et?.colorScheme==="light"?"light":void 0,Te=he==="both"?f.theme:he??Lt??"system",Cn=Te==="system"?Fn:Te,[,An,$n]=Tm.find(([y])=>y===Te),Yt=()=>u.changeCanvas({sidecar:!b}),ul=(0,F.useMemo)(()=>E.edges.flatMap(y=>{let A=Zv(E,y,W);return A?[{edge:y,route:A}]:[]}),[E,W]),Wn=new Set,zn=new Set;if(d)for(let{edge:y}of ul)(y.source===d.occurrence&&(!d.port||y.sourcePort===d.port)||y.target===d.occurrence&&(!d.port||y.targetPort===d.port))&&(Wn.add(y.id),zn.add(y.source),zn.add(y.target));let Pe=y=>y?" is-highlighted":Wn.size?" is-dimmed":"";(0,F.useLayoutEffect)(()=>{let y=l.current,A=a.current,B=y?.ownerDocument.defaultView;if(!y||!A||!B)return;let K=()=>{let j=A.clientWidth;N(y.clientWidth>=Mv),T(j<360?1:j<t1?2:j<880?3:void 0)},re=new B.ResizeObserver(K);return re.observe(y),re.observe(A),K(),()=>re.disconnect()},[]),(0,F.useLayoutEffect)(()=>{let y=a.current,A=y?.ownerDocument.defaultView;if(!y||!A)return;let B=new bc(A,!0,g);x.current=B;let K=u0(y,B);return()=>{x.current=null,K()}},[]),(0,F.useLayoutEffect)(()=>{x.current?.clear()},[E]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!Mt||!y)return;let A=y.setTimeout(()=>je(!1),3500);return()=>y.clearTimeout(A)},[Mt]),Rn.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===nr.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||te(B=>B+1);return}let A=y.target;!y.altKey||A?.isContentEditable||A?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||Yt()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,F.useEffect)(()=>{if(!i)return;let y=A=>Rn.current(A);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,F.useLayoutEffect)(()=>{let y=et.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let A=()=>rl(y.matches?"dark":"light");return A(),y.addEventListener("change",A),()=>y.removeEventListener("change",A)},[]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!y||!n?.has(Kd))return;let A=new y.AbortController,B=A.signal;return n.text(Kd,B).then(K=>{B.aborted||pn($v(K))}).catch(()=>{B.aborted||wi(!0)}),()=>A.abort()},[n]);function ei(y){ae.current=y,ie.current&&(ie.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Mi(){let y=a.current;if(!y)return;let A=1/0,B=-1/0,K=1/0,re=-1/0,j=(Le,jt,Xt,ii)=>{A=Math.min(A,Le),B=Math.max(B,Le+Xt),K=Math.min(K,jt),re=Math.max(re,jt+ii)};for(let{bounds:Le,strip:jt}of E.cards)jt||j(Le.x-Le.width/2,Le.y-Le.height/2,Le.width,Le.height);for(let{x:Le,y:jt,width:Xt,height:ii}of E.strips.values())j(Le,jt,Xt,ii);if(J.current=!1,y.clientWidth<t1){let Le=I.current?I.current.offsetHeight+10:0,jt=y.clientWidth-32,Xt=y.clientHeight-32-Le,ii=B-A,$a=re-K,Ei=Math.max(.25,Math.min(1,jt/ii,Xt/$a)),xr=ii*Ei<=jt?(A+B)/2:L.bounds.x,r1=$a*Ei<=Xt?(K+re)/2:L.bounds.y;ei({x:-xr*Ei,y:-r1*Ei-Le/2,scale:Ei});return}let _e=Math.max(L.bounds.x-A,B-L.bounds.x),pt=Math.max(L.bounds.y-K,re-L.bounds.y),Xe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/_e,(y.clientHeight/2-22)/pt));ei({x:-L.bounds.x*Xe,y:-L.bounds.y*Xe,scale:Xe})}function Xa(y,A,B){r.cancel(),x.current?.clear();let{x:K,y:re,scale:j}=ae.current,_e=Math.max(.25,Math.min(3,j*B));J.current=!0,ei({x:A.x-(y.x-K)*_e/j,y:A.y-(y.y-re)*_e/j,scale:_e})}function U(y){Xa({x:0,y:0},{x:0,y:0},y)}function le(y,A,B){let K=y.getBoundingClientRect();return{x:A-K.left-K.width/2,y:B-K.top-K.height/2}}(0,F.useLayoutEffect)(()=>{let y=a.current;if(!y)return;Mi(),r.play(c,ae.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let A=re=>{if(Nm(re,y))return;re.preventDefault();let j=le(y,re.clientX,re.clientY),_e=re.deltaY*(re.deltaMode===1?16:re.deltaMode===2?y.clientHeight:1);Xa(j,j,Math.exp(-Math.max(-200,Math.min(200,_e))/350))},B=y.ownerDocument.defaultView,K=B?new B.ResizeObserver(()=>{J.current||Mi()}):null;return K?.observe(y),y.addEventListener("wheel",A,{passive:!1}),()=>{K?.disconnect(),y.removeEventListener("wheel",A)}},[e,c,p,s,v,M]);function Ge(y,A){let B=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:B})&&y!==c&&(P.current=A)}function gn(){u.changeCanvas({sidecar:!1}),Y.current?.focus()}function Tt(y){u.activate(y)}function ti(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let A=new URL(y);return A.search="",A.hash="",A}function Ka(y,A){fe(null),we(null),je(!1),Z({id:y,anchor:A})}function cl(y,A){Z(null),we(null),x.current?.clear(),fe({anchor:y,point:A})}function ni(y,A,B=!1){return(0,G.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,G.jsx)("span",{children:A}),(0,G.jsx)("ol",{ref:B?et:void 0,children:y.map(K=>{let re=e.published.get(K.id),j=re?.style,_e=j?.icon??re?.trailIcon,pt=_e===void 0?void 0:e.manifest?.icons?.[_e];return(0,G.jsx)("li",{children:(0,G.jsxs)("a",{href:Ba(ti(),{...K,canvas:{...u.attention.canvas,...K.canvas}}).href,"aria-current":K.id===c?"location":void 0,style:{backgroundColor:j?.fill,color:j?.color,"--kplex-publication-trail-border":j?.stroke},onClick:Xe=>{Xe.altKey||Xe.ctrlKey||Xe.metaKey||Xe.shiftKey||(Xe.preventDefault(),Tt(K))},children:[pt&&(0,G.jsx)(fm,{icon:pt,size:12}),(0,G.jsx)("span",{children:e.nodes.get(K.id)?.name})]})},K.id)})})]})}function qt(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:A,top:B}=y.currentTarget.getBoundingClientRect();cl(y.currentTarget,{x:A+12,y:B+12});return}if(!(y.target.matches?.(kl)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Mi();else if(y.key==="+"||y.key==="=")U(1.25);else if(y.key==="-")U(.8);else if(Object.prototype.hasOwnProperty.call(e1,y.key)){let[A,B]=e1[y.key],K=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),re=K.find(Le=>Le===y.target)?.dataset.publicationOccurrence,j=_c(E,re?E.cardById.get(re)??L:L,W),_e=-1,pt=1/0;for(let[Le,jt]of K.entries()){let Xt=_c(E,E.cardById.get(jt.dataset.publicationOccurrence),W),ii=Xt.x-j.x,$a=Xt.y-j.y,Ei=ii*A+$a*B,xr=Ei+2*Math.abs(ii*B-$a*A);Ei>0&&xr<pt&&(_e=Le,pt=xr)}let Xe=K[_e];Xe?.focus({preventScroll:!Xe.closest(kl)})}else return;y.preventDefault()}}}function Qa(y){let A=y.currentTarget.ownerDocument.defaultView?.Element;if(!A||!(y.target instanceof A)||C.current.points.size)return;let B=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),K=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;B?x.current?.enter({occurrence:B,port:K},y):x.current?.clear()}function hr(y){if(y.button!==0||(ue&&fe(null),H&&Z(null),Nm(y,y.currentTarget)))return;let A=C.current;if(A.points.size>=2)return;let B={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(y.pointerId,B)}function pr(y){let A=C.current;if(!A.points.has(y.pointerId))return;let[B,K]=A.points.values(),re=i1(B,K),j={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.set(y.pointerId,j);let[_e,pt]=A.points.values(),Xe=i1(_e,pt);if(!(!A.moved&&!pt&&A.origin&&Math.hypot(j.x-A.origin.x,j.y-A.origin.y)<5)){if(A.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{A.moved=!0;for(let Le of A.points.keys())y.currentTarget.setPointerCapture(Le)}Xa(re,Xe,Xe.distance/re.distance)}}function On(y){C.current.points.delete(y.pointerId)}let gr=e.body(c),Za=()=>u.changeCanvas({siblings:!s}),yr=(0,G.jsx)(vt,{icon:"network",label:D.showSiblings,"data-publication-siblings-toggle":!0,title:s?D.hideSiblings:D.showSiblings,"aria-pressed":s,onClick:Za}),Ia=(0,G.jsxs)(G.Fragment,{children:[p==="compass"&&yr,(0,G.jsx)(vt,{icon:"minus",label:D.zoomOut,onClick:()=>U(.8)}),(0,G.jsx)(vt,{icon:"plus",label:D.zoomIn,onClick:()=>U(1.25)}),(0,G.jsx)(vt,{icon:"maximize",label:D.fit,onClick:()=>{r.cancel(),Mi()}}),(0,G.jsx)(vt,{icon:"ellipsis",label:D.graphOptions,"aria-haspopup":"menu","aria-expanded":!!ue,onClick:y=>cl(y.currentTarget)})]});function br(y,A){let B=A?{...y.bounds,x:y.bounds.x-A.x,y:y.bounds.y-A.contentTop}:y.bounds,K=e.manifest?.icons,re=y.style?.icon!=null?K?.[y.style.icon]:void 0;return(0,G.jsxs)(F.Fragment,{children:[(0,G.jsxs)(y0,{bounds:B,semanticRole:y.role,className:Pe(zn.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:j=>Ge(y.node.id,j.detail===0),onContextMenu:j=>{n&&(j.preventDefault(),Ka(y.node.id,j.currentTarget))},onKeyDown:j=>{n&&(j.key==="ContextMenu"||j.shiftKey&&j.key==="F10")?(j.preventDefault(),Ka(y.node.id,j.currentTarget)):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),Ge(y.node.id,!0))},children:[(0,G.jsxs)(v0,{wrap:E.wrap,children:[re&&(0,G.jsx)(fm,{icon:re,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,G.jsx)(b0,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:j,count:_e})=>(0,G.jsx)(S0,{side:j,connected:_e>0,count:_e?String(_e):null,highlighted:Wn.size>0&&d?.occurrence===y.id&&d.port===j,"aria-hidden":"true"},j))]}),y.branch?.canExpand&&(0,G.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?D.collapseBranch:D.expandBranch} · ${y.node.name}`,style:{left:B.x+16,top:B.y+B.height/2+3},onClick:()=>m(j=>yc(j,E.projection,{kind:"toggle",occurrenceId:y.id})??j),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let vr=(0,G.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":k,tabIndex:0,onKeyDown:qt,onPointerOver:Qa,onPointerDown:hr,onPointerMove:pr,onPointerUp:On,onPointerCancel:On,onLostPointerCapture:On,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),cl(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{x.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||On(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Nm(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,G.jsxs)("div",{className:"kplex-camera",ref:ie,children:[(0,G.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,G.jsx)(M0,{prefix:t}),ul.map(({edge:y,route:A})=>{let{id:B,source:K,target:re,label:j,stroke:_e,strokeWidth:pt,startHead:Xe,endHead:Le}=y;return(0,G.jsxs)("g",{className:`kplex-edge${Pe(Wn.has(B))}`,"data-publication-source":K,"data-publication-target":re,"data-publication-crosslink":y.crossLink||void 0,children:[(0,G.jsx)(x0,{d:A.d,stroke:_e??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:tm(Xe,t),markerEnd:tm(Le,t)}),S&&(0,G.jsx)(w0,{label:j,midpoint:A.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,G.jsx)("div",{className:"kplex-nodes",children:E.cards.map(y=>y.strip?null:br(y))}),[...E.strips].map(([y,A])=>(0,G.jsx)(Y0,{id:y,panel:A,start:W[y]??A.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?D.lateral:vM[y],onScroll:B=>q(K=>{let re=K?.attention===c?K.offsets:n1;return re[y]===B?K:{attention:c,offsets:{...re,[y]:B}}}),children:E.cards.map(B=>B.strip===y?br(B,A):null)},JSON.stringify([c,y])))]}),(0,G.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Ja=H?T0(e,H.id):void 0,Fa=H&&{id:H.id,canvas:{...f,theme:Te}},Sr=he==="both"?Wv(Et,Cn):he?{...Et,colorScheme:Cn}:Et;return(0,G.jsxs)("main",{ref:l,className:`kplex-publication${n?" kplex-publication-production":""}`,style:Sr,onKeyDown:i?void 0:y=>Rn.current(y.nativeEvent),children:[(0,G.jsxs)("header",{className:"kplex-publication-header",children:[(0,G.jsxs)("div",{className:"kplex-publication-heading",children:[(0,G.jsx)(P0,{}),(0,G.jsx)("h1",{children:e.title})]}),(0,G.jsxs)("div",{className:"kplex-publication-controls",children:[(0,G.jsx)(vt,{icon:"arrow-left",label:D.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Em.back,title:D.backTooltip}),(0,G.jsx)(vt,{icon:"arrow-right",label:D.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Em.forward,title:D.forwardTooltip}),n?(0,G.jsx)(vt,{ref:Y,icon:xM[V],label:b?D.hideSidecar:D.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${z}`,"aria-keyshortcuts":Em.sidecar,title:b?D.hideSidecarTooltip:D.showSidecarTooltip,onClick:Yt}):Ia,he==="both"&&(0,G.jsx)(vt,{icon:$n,label:il.trigger(An),"aria-haspopup":"menu","aria-expanded":!!wt,onClick:y=>{fe(null),Z(null),we(wt?null:y.currentTarget)}})]}),n&&(0,G.jsx)(nv,{publication:e,resources:n,page:ti,searchFocus:ee,onChoose:Tt}),n&&tt?.length?ni(tt.map(y=>({id:Mn(y)})),D.pins):null]}),n?(0,G.jsx)(Ev,{sidecarId:`sidecar-${z}`,sidecarOpen:b,dock:V,canDockLaterally:w,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,G.jsxs)("div",{className:"kplex-publication-canvas",children:[vr,(0,G.jsx)("div",{ref:I,className:"kplex-publication-controls kplex-publication-camera-actions",children:Ia}),(0,G.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,G.jsx)("p",{children:u.addressProblem==="ambiguous"?D.ambiguousAddress:D.nodeUnavailable}),E.truncated&&(0,G.jsx)("p",{children:D.sceneLimited}),Dt&&(0,G.jsx)("p",{children:D.themeUnavailable}),Mt&&(0,G.jsx)("p",{children:D.addressCopied})]})]}),renderSidecar:(y,A)=>(0,G.jsx)(xv,{publication:e,resources:n,id:`sidecar-${z}`,contentScope:`${t}-document`,location:u.attention,colorMode:Cn,onClose:gn,onNavigate:Tt,dock:y,onSwitchDock:A})}):(0,G.jsxs)(G.Fragment,{children:[vr,(0,G.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":z,"aria-live":"polite",children:[(0,G.jsx)("h2",{id:z,children:L.node.name}),gr&&(0,G.jsx)("p",{children:gr})]})]}),n&&u.visits.length>1&&ni(u.visits,D.history,!0),wt&&(0,G.jsx)(ur,{anchor:wt,variant:"theme",onDismiss:()=>we(null),choices:Tm.map(([y,A,B])=>({label:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}),ue&&(0,G.jsx)(ur,{anchor:ue.anchor,point:ue.point,onDismiss:()=>fe(null),choices:[{label:D.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:D.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:D.crossLinks,kind:"menuitemcheckbox",checked:h,select:()=>u.changeCanvas({crosslinks:!h})},...p==="compass"?[{label:D.showSiblings,kind:"menuitemcheckbox",checked:s,select:Za}]:[],{label:D.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:D.sidecar,choices:[{label:D.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...SM.filter(([y])=>w||y==="bottom").map(([y,A])=>({label:A,kind:"menuitemradio",checked:b&&V===y,select:()=>u.changeCanvas(w?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...he==="both"?[{label:D.theme,choices:Tm.map(([y,A,B])=>({label:y==="system"?il.system:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}]:[],{label:D.about,choices:sm}]}),n&&H&&Fa&&(0,G.jsx)(H0,{anchor:H.anchor,address:Ba(ti(),Fa).href,shortAddress:Ja&&Ba(ti(),Fa,Ja).href,onDismiss:y=>{Z(null),y&&H.anchor.isConnected&&H.anchor.focus({preventScroll:!0})},onCopied:()=>je(!0)},H.id)]})}var o1=X(me(),1),Rm=new WeakSet,wM=0;function FN(e,t,{publicationUrl:n}={}){return Cm(e,t,n)}function $N(e,t,n){return Cm(e,t,n,!0)}function WN(e,t,n){return Cm(e,t,void 0,!0,n)}function Cm(e,t,n,i=!1,l){let a=e.ownerDocument.defaultView,o=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=N0(S);if(b.manifest&&(!a?.crypto.subtle||!l&&o.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&a?l?.(b.manifest)??bv(a,o,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(Rm.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++wM}`,f=(0,a1.createRoot)(e,{identifierPrefix:c});Rm.add(e);let p=0,s=!1,h=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,o1.jsx)(l1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&a?a:void 0},p++))};return h(u),{update(S){if(s)throw new Error("Publication mount has been disposed");h(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{Rm.delete(e)}}}}}export{D as a,gT as b,FN as c,$N as d,WN as e};
769
12
  /*! For license information please see chunk.js.LEGAL.txt */