@swagger-api/apidom-ns-json-schema-draft-6 1.0.0-beta.5 → 1.0.0-beta.7
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/CHANGELOG.md +11 -0
- package/LICENSES/AFL-3.0.txt +182 -0
- package/LICENSES/BSD-3-Clause.txt +26 -0
- package/NOTICE +26 -0
- package/dist/apidom-ns-json-schema-draft-6.browser.js +1 -1
- package/package.json +5 -5
- package/src/index.cjs +3 -1
- package/src/index.mjs +1 -0
- package/src/refractor/visitors/json-schema/index.cjs +17 -1
- package/src/refractor/visitors/json-schema/index.mjs +18 -2
- package/types/apidom-ns-json-schema-draft-6.d.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.7](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2025-01-21)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **ns-json-schema-draft-6:** handle inheritance of $schema and $id ([#4658](https://github.com/swagger-api/apidom/issues/4658)) ([86ddd8b](https://github.com/swagger-api/apidom/commit/86ddd8b029e5e98d00c0551e0bca228d2ef5522e)), closes [#1819](https://github.com/swagger-api/apidom/issues/1819)
|
|
11
|
+
- **ns-json-schema-draft-7:** handle inheritance of $schema and $id ([#4659](https://github.com/swagger-api/apidom/issues/4659)) ([a4fbd7b](https://github.com/swagger-api/apidom/commit/a4fbd7b962fb5af752cff521eeb19b318a974c46)), closes [#1819](https://github.com/swagger-api/apidom/issues/1819)
|
|
12
|
+
|
|
13
|
+
# [1.0.0-beta.6](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.5...v1.0.0-beta.6) (2024-12-30)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-json-schema-draft-6
|
|
16
|
+
|
|
6
17
|
# [1.0.0-beta.5](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2024-12-16)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @swagger-api/apidom-ns-json-schema-draft-6
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
This Academic Free License (the "License") applies to any original work
|
|
2
|
+
of authorship (the "Original Work") whose owner (the "Licensor") has
|
|
3
|
+
placed the following licensing notice adjacent to the copyright notice
|
|
4
|
+
for the Original Work:
|
|
5
|
+
|
|
6
|
+
Licensed under the Academic Free License version 3.0
|
|
7
|
+
|
|
8
|
+
1) Grant of Copyright License. Licensor grants You a worldwide,
|
|
9
|
+
royalty-free, non-exclusive, sublicensable license, for the duration of
|
|
10
|
+
the copyright, to do the following:
|
|
11
|
+
|
|
12
|
+
a) to reproduce the Original Work in copies, either alone or as part of
|
|
13
|
+
a collective work;
|
|
14
|
+
|
|
15
|
+
b) to translate, adapt, alter, transform, modify, or arrange the
|
|
16
|
+
Original Work, thereby creating derivative works ("Derivative Works")
|
|
17
|
+
based upon the Original Work;
|
|
18
|
+
|
|
19
|
+
c) to distribute or communicate copies of the Original Work and
|
|
20
|
+
Derivative Works to the public, under any license of your choice that
|
|
21
|
+
does not contradict the terms and conditions, including Licensor's
|
|
22
|
+
reserved rights and remedies, in this Academic Free License;
|
|
23
|
+
|
|
24
|
+
d) to perform the Original Work publicly; and
|
|
25
|
+
|
|
26
|
+
e) to display the Original Work publicly.
|
|
27
|
+
|
|
28
|
+
2) Grant of Patent License. Licensor grants You a worldwide,
|
|
29
|
+
royalty-free, non-exclusive, sublicensable license, under patent claims
|
|
30
|
+
owned or controlled by the Licensor that are embodied in the Original
|
|
31
|
+
Work as furnished by the Licensor, for the duration of the patents, to
|
|
32
|
+
make, use, sell, offer for sale, have made, and import the Original Work
|
|
33
|
+
and Derivative Works.
|
|
34
|
+
|
|
35
|
+
3) Grant of Source Code License. The term "Source Code" means the
|
|
36
|
+
preferred form of the Original Work for making modifications to it
|
|
37
|
+
and all available documentation describing how to modify the Original
|
|
38
|
+
Work. Licensor agrees to provide a machine-readable copy of the Source
|
|
39
|
+
Code of the Original Work along with each copy of the Original Work
|
|
40
|
+
that Licensor distributes. Licensor reserves the right to satisfy this
|
|
41
|
+
obligation by placing a machine-readable copy of the Source Code in an
|
|
42
|
+
information repository reasonably calculated to permit inexpensive and
|
|
43
|
+
convenient access by You for as long as Licensor continues to distribute
|
|
44
|
+
the Original Work.
|
|
45
|
+
|
|
46
|
+
4) Exclusions From License Grant. Neither the names of Licensor, nor
|
|
47
|
+
the names of any contributors to the Original Work, nor any of their
|
|
48
|
+
trademarks or service marks, may be used to endorse or promote products
|
|
49
|
+
derived from this Original Work without express prior permission of the
|
|
50
|
+
Licensor. Except as expressly stated herein, nothing in this License
|
|
51
|
+
grants any license to Licensor's trademarks, copyrights, patents, trade
|
|
52
|
+
secrets or any other intellectual property. No patent license is granted
|
|
53
|
+
to make, use, sell, offer for sale, have made, or import embodiments
|
|
54
|
+
of any patent claims other than the licensed claims defined in Section
|
|
55
|
+
2. No license is granted to the trademarks of Licensor even if such
|
|
56
|
+
marks are included in the Original Work. Nothing in this License shall
|
|
57
|
+
be interpreted to prohibit Licensor from licensing under terms different
|
|
58
|
+
from this License any Original Work that Licensor otherwise would have a
|
|
59
|
+
right to license.
|
|
60
|
+
|
|
61
|
+
5) External Deployment. The term "External Deployment" means the use,
|
|
62
|
+
distribution, or communication of the Original Work or Derivative
|
|
63
|
+
Works in any way such that the Original Work or Derivative Works may
|
|
64
|
+
be used by anyone other than You, whether those works are distributed
|
|
65
|
+
or communicated to those persons or made available as an application
|
|
66
|
+
intended for use over a network. As an express condition for the grants
|
|
67
|
+
of license hereunder, You must treat any External Deployment by You of
|
|
68
|
+
the Original Work or a Derivative Work as a distribution under section
|
|
69
|
+
1(c).
|
|
70
|
+
|
|
71
|
+
6) Attribution Rights. You must retain, in the Source Code of any
|
|
72
|
+
Derivative Works that You create, all copyright, patent, or trademark
|
|
73
|
+
notices from the Source Code of the Original Work, as well as any
|
|
74
|
+
notices of licensing and any descriptive text identified therein as an
|
|
75
|
+
"Attribution Notice." You must cause the Source Code for any Derivative
|
|
76
|
+
Works that You create to carry a prominent Attribution Notice reasonably
|
|
77
|
+
calculated to inform recipients that You have modified the Original
|
|
78
|
+
Work.
|
|
79
|
+
|
|
80
|
+
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
|
|
81
|
+
that the copyright in and to the Original Work and the patent rights
|
|
82
|
+
granted herein by Licensor are owned by the Licensor or are sublicensed
|
|
83
|
+
to You under the terms of this License with the permission of the
|
|
84
|
+
contributor(s) of those copyrights and patent rights. Except as
|
|
85
|
+
expressly stated in the immediately preceding sentence, the Original
|
|
86
|
+
Work is provided under this License on an "AS IS" BASIS and WITHOUT
|
|
87
|
+
WARRANTY, either express or implied, including, without limitation,
|
|
88
|
+
the warranties of non-infringement, merchantability or fitness for a
|
|
89
|
+
particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
|
|
90
|
+
WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
|
|
91
|
+
part of this License. No license to the Original Work is granted by this
|
|
92
|
+
License except under this disclaimer.
|
|
93
|
+
|
|
94
|
+
8) Limitation of Liability. Under no circumstances and under no legal
|
|
95
|
+
theory, whether in tort (including negligence), contract, or otherwise,
|
|
96
|
+
shall the Licensor be liable to anyone for any indirect, special,
|
|
97
|
+
incidental, or consequential damages of any character arising as a
|
|
98
|
+
result of this License or the use of the Original Work including,
|
|
99
|
+
without limitation, damages for loss of goodwill, work stoppage,
|
|
100
|
+
computer failure or malfunction, or any and all other commercial damages
|
|
101
|
+
or losses. This limitation of liability shall not apply to the extent
|
|
102
|
+
applicable law prohibits such limitation.
|
|
103
|
+
|
|
104
|
+
9) Acceptance and Termination. If, at any time, You expressly
|
|
105
|
+
assented to this License, that assent indicates your clear and
|
|
106
|
+
irrevocable acceptance of this License and all of its terms and
|
|
107
|
+
conditions. If You distribute or communicate copies of the Original
|
|
108
|
+
Work or a Derivative Work, You must make a reasonable effort under the
|
|
109
|
+
circumstances to obtain the express assent of recipients to the terms
|
|
110
|
+
of this License. This License conditions your rights to undertake
|
|
111
|
+
the activities listed in Section 1, including your right to create
|
|
112
|
+
Derivative Works based upon the Original Work, and doing so without
|
|
113
|
+
honoring these terms and conditions is prohibited by copyright law and
|
|
114
|
+
international treaty. Nothing in this License is intended to affect
|
|
115
|
+
copyright exceptions and limitations (including "fair use" or "fair
|
|
116
|
+
dealing"). This License shall terminate immediately and You may no
|
|
117
|
+
longer exercise any of the rights granted to You by this License upon
|
|
118
|
+
your failure to honor the conditions in Section 1(c).
|
|
119
|
+
|
|
120
|
+
10) Termination for Patent Action. This License shall terminate
|
|
121
|
+
automatically and You may no longer exercise any of the rights granted
|
|
122
|
+
to You by this License as of the date You commence an action, including
|
|
123
|
+
a cross-claim or counterclaim, against Licensor or any licensee
|
|
124
|
+
alleging that the Original Work infringes a patent. This termination
|
|
125
|
+
provision shall not apply for an action alleging patent infringement by
|
|
126
|
+
combinations of the Original Work with other software or hardware.
|
|
127
|
+
|
|
128
|
+
11) Jurisdiction, Venue and Governing Law. Any action or suit relating
|
|
129
|
+
to this License may be brought only in the courts of a jurisdiction
|
|
130
|
+
wherein the Licensor resides or in which Licensor conducts its primary
|
|
131
|
+
business, and under the laws of that jurisdiction excluding its
|
|
132
|
+
conflict-of-law provisions. The application of the United Nations
|
|
133
|
+
Convention on Contracts for the International Sale of Goods is
|
|
134
|
+
expressly excluded. Any use of the Original Work outside the scope
|
|
135
|
+
of this License or after its termination shall be subject to the
|
|
136
|
+
requirements and penalties of copyright or patent law in the appropriate
|
|
137
|
+
jurisdiction. This section shall survive the termination of this
|
|
138
|
+
License.
|
|
139
|
+
|
|
140
|
+
12) Attorneys' Fees. In any action to enforce the terms of this License
|
|
141
|
+
or seeking damages relating thereto, the prevailing party shall
|
|
142
|
+
be entitled to recover its costs and expenses, including, without
|
|
143
|
+
limitation, reasonable attorneys' fees and costs incurred in connection
|
|
144
|
+
with such action, including any appeal of such action. This section
|
|
145
|
+
shall survive the termination of this License.
|
|
146
|
+
|
|
147
|
+
13) Miscellaneous. If any provision of this License is held to be
|
|
148
|
+
unenforceable, such provision shall be reformed only to the extent
|
|
149
|
+
necessary to make it enforceable.
|
|
150
|
+
|
|
151
|
+
14) Definition of "You" in This License. "You" throughout this License,
|
|
152
|
+
whether in upper or lower case, means an individual or a legal entity
|
|
153
|
+
exercising rights under, and complying with all of the terms of, this
|
|
154
|
+
License. For legal entities, "You" includes any entity that controls,
|
|
155
|
+
is controlled by, or is under common control with you. For purposes of
|
|
156
|
+
this definition, "control" means (i) the power, direct or indirect, to
|
|
157
|
+
cause the direction or management of such entity, whether by contract
|
|
158
|
+
or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
159
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
160
|
+
|
|
161
|
+
15) Right to Use. You may use the Original Work in all ways not
|
|
162
|
+
otherwise restricted or conditioned by this License or by law, and
|
|
163
|
+
Licensor promises not to interfere with or be responsible for such uses
|
|
164
|
+
by You.
|
|
165
|
+
|
|
166
|
+
16) Modification of This License. This License is Copyright ©
|
|
167
|
+
2005 Lawrence Rosen. Permission is granted to copy, distribute, or
|
|
168
|
+
communicate this License without modification. Nothing in this License
|
|
169
|
+
permits You to modify this License as applied to the Original Work or
|
|
170
|
+
to Derivative Works. However, You may modify the text of this License
|
|
171
|
+
and copy, distribute or communicate your modified version (the "Modified
|
|
172
|
+
License") and apply it to other original works of authorship subject
|
|
173
|
+
to the following conditions: (i) You may not indicate in any way that
|
|
174
|
+
your Modified License is the "Academic Free License" or "AFL" and you
|
|
175
|
+
may not use those names in the name of your Modified License; (ii) You
|
|
176
|
+
must replace the notice specified in the first paragraph above with
|
|
177
|
+
the notice "Licensed under <insert your license name here>" or with a
|
|
178
|
+
notice of your own that is not confusingly similar to the notice in
|
|
179
|
+
this License; and (iii) You may not claim that your original works are
|
|
180
|
+
open source software unless your Modified License has been approved by
|
|
181
|
+
Open Source Initiative (OSI) and You comply with its license review and
|
|
182
|
+
certification process.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Redistribution and use in source and binary forms, with or without
|
|
2
|
+
modification, are permitted provided that the following conditions are
|
|
3
|
+
met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright
|
|
6
|
+
notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
|
10
|
+
documentation and/or other materials provided with the distribution.
|
|
11
|
+
|
|
12
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
13
|
+
contributors may be used to endorse or promote products derived from
|
|
14
|
+
this software without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
20
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
21
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
22
|
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
23
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
24
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
25
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/NOTICE
CHANGED
|
@@ -47,6 +47,32 @@ Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
|
47
47
|
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
48
48
|
All modifications are licensed under Apache 2.0 License.
|
|
49
49
|
|
|
50
|
+
OpenAPI Specification 2.0
|
|
51
|
+
Copyright The Linux Foundation
|
|
52
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
53
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
54
|
+
|
|
55
|
+
OpenAPI Specification 3.0.x
|
|
56
|
+
Copyright The Linux Foundation
|
|
57
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
58
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
59
|
+
|
|
60
|
+
OpenAPI Specification 3.1.x
|
|
61
|
+
Copyright The Linux Foundation
|
|
62
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/openapi.
|
|
63
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
64
|
+
|
|
65
|
+
AsyncAPI Specification 2.x / AsyncAPI Initiative
|
|
66
|
+
Copyright The Linux Foundation
|
|
67
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/asyncapi.
|
|
68
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
69
|
+
|
|
70
|
+
JSON Schema Specification (Draft 4/5 -> 2020-12)
|
|
71
|
+
Copyright (c) 2022 JSON Schema Specification Authors
|
|
72
|
+
Fragments of the specification text are embedded in packages/apidom-ls/src/config/common.
|
|
73
|
+
Copy of the BSD 3-Clause "New" or "Revised" License can be found in `LICENSES/BSD-3-Clause.txt` file.
|
|
74
|
+
Copy of the Academic Free License v3.0 can be found in `LICENSES/AFL-3.0.txt` file.
|
|
75
|
+
|
|
50
76
|
---
|
|
51
77
|
|
|
52
78
|
If the SPDX-FileCopyrightText and SPDX-License-Identifier tags are not present in the file,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft6=t():e.apidomNsJSONSchemaDraft6=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),p=!r&&!l&&!f&&a(e),h=r||l||f||p,m=h?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var b=a(e),g=a(t),E=b?p:c(e),j=g?p:c(t),x=(E=E==f?h:E)==h,w=(j=j==f?h:j)==h,O=E==j;if(O&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(O&&!x)return v||(v=new n),b||l(e)?s(e,t,r,d,y,v):i(e,t,E,r,d,y,v);if(!(1&r)){var S=x&&m.call(e,"__wrapped__"),A=w&&m.call(t,"__wrapped__");if(S||A){var k=S?e.value():e,P=A?t.value():t;return v||(v=new n),y(k,P,r,d,v)}}return!!O&&(v||(v=new n),o(e,t,r,d,y,v))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?p:c).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],b=t[m];if(o)var g=u?o(b,v,m,t,e,a):o(v,b,m,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!c(v,b,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var m=1&n;if(h||(h=a),e.size!=t.size&&!m)return!1;var d=p.get(e);if(d)return d==t;n|=2,p.set(e,t);var y=o(h(e),h(t),n,u,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var p=u[f];if(!(a?p in t:s.call(t,p)))return!1}var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[p=u[f]],b=t[p];if(i)var g=a?i(b,v,p,t,e,c):i(v,b,p,e,t,c);if(!(void 0===g?v===b||o(v,b,r,i,c):g)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var E=e.constructor,j=t.constructor;E==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(e),c.delete(t),d}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),b=u(o),g=u(c),E=a;(n&&E(new n(new ArrayBuffer(1)))!=m||s&&E(new s)!=l||i&&E(i.resolve())!=f||o&&E(new o)!=p||c&&E(new c)!=h)&&(E=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case b:return p;case g:return h}return t}),e.exports=E},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:y,ArraySlice:h,ObjectSlice:m,KeyValuePair:d}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701);r(3753);var h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,b,g,E,j=e.target,x=e.global,w=e.stat,O=e.proto,S=x?n:w?n[j]:n[j]&&n[j].prototype,A=x?u:u[j]||f(u,j,{})[j],k=A.prototype;for(d in t)s=!(r=a(x?d:j+(w?".":"#")+d,e.forced))&&S&&p(S,d),v=A[d],s&&(b=e.dontCallGetSet?(E=c(S,d))&&E.value:S[d]),y=s&&b?b:t[d],(r||O||typeof v!=typeof y)&&(g=e.bind&&s?l(y,n):e.wrap&&s?h(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(A,d,g),O&&(p(u,m=j+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&k&&(r||!k[d])&&f(k,d,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=p("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new d(m);return t.facade=e,u(e,b,t),t},s=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,b,g,E,j,x,w=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(t,w),_=function(e){return y&&p(y,"normal",e),new m(!0,e)},M=function(e){return O?(i(e),k?P(e[0],e[1],_):P(e[0],e[1])):k?P(e,_):P(e)};if(S)y=e.iterator;else if(A)y=e;else{if(!(v=f(e)))throw new h(o(e)+" is not iterable");if(c(v)){for(b=0,g=a(e);g>b;b++)if((E=M(e[b]))&&u(d,E))return E;return new m(!1)}y=l(e,v)}for(j=S?e.next:y.next;!(x=s(j,y)).done;){try{E=M(x.value)}catch(e){p(y,"throw",e)}if("object"==typeof E&&E&&u(d,E))return E}return new m(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,b=o.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),x="keys",w="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,A){a(r,t,o);var k,P,_,M=function(e){if(e===m&&C)return C;if(!E&&e&&e in R)return R[e];switch(e){case x:case w:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,F=R[j]||R["@@iterator"]||m&&R[m],C=!E&&F||M(m),V="Array"===t&&R.entries||F;if(V&&(k=u(V.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===g||(l?l(k,g):c(k[j])||h(k,j,S)),f(k,N,!0,!0),i&&(d[N]=S)),v&&m===w&&F&&F.name!==w&&(!i&&b?p(R,"name",w):(T=!0,C=function(){return s(F,this)})),m)if(P={values:M(w),keys:y?C:M(x),entries:M(O)},A)for(_ in P)(E||T||!(_ in R))&&h(R,_,P[_]);else n({target:t,proto:!0,forced:E||T},P);return i&&!A||R[j]===C||h(R,j,C,{name:m}),d[t]=C,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:h&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},d=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+p+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[h]=e):r=v(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),p=s(r),h=f.length;return p<0||p>=h?e?"":void 0:(n=a(f,p))<55296||n>56319||p+1===h||(l=a(f,p+1))<56320||l>57343?e?c(f,p):n:e?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",b=y?2:1,g=e.split("."),E=g[g.length-1],j=n.apply(null,g);if(j){var x=j.prototype;if(!d&&s(x,"cause")&&delete x.cause,!r)return j;var w=n("Error"),O=t((function(e,t){var r=f(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),h(n,O,n.stack,2),this&&o(x,this)&&l(n,this,O),arguments.length>b&&p(n,arguments[b]),n}));if(O.prototype=x,"Error"!==E?c?c(O,w):a(O,w,{name:!0}):m&&v in j&&(u(O,j,v),u(O,j,"prepareStackTrace")),a(O,j),!d)try{x.name!==E&&i(x,"name",E),x.constructor=O}catch(e){}return O}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,b=function(e,t){var r,n=s(g,this);o?r=o(new y,n?i(this):g):(r=n?this:a(g),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return h(e,v,{that:c}),u(r,"errors",c),r};o?o(b,y):c(b,y,{name:!0});var g=b.prototype=a(y.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},5695:(e,t,r)=>{"use strict";r(3085)},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=o.set,m=o.getterFor(p);e.exports=a(Array,"Array",(function(e,t){h(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Fs,FallbackVisitor:()=>dn,FixedFieldsVisitor:()=>$n,JSONReferenceElement:()=>Rr,JSONSchemaDraft6MediaTypes:()=>Me,JSONSchemaElement:()=>Ys,LinkDescriptionElement:()=>Xs,MapVisitor:()=>Qn,MediaElement:()=>Cr,ParentSchemaAwareVisitor:()=>Jn,PatternedFieldsVisitor:()=>Zn,SpecificationVisitor:()=>In,Visitor:()=>mn,createRefractor:()=>wi,default:()=>Zs,getNodeType:()=>Qs,isArrayElement:()=>ae,isBooleanElement:()=>oe,isElement:()=>re,isJSONReferenceElement:()=>qs,isJSONReferenceLikeElement:()=>Bn,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isLinkElement:()=>le,isMediaElement:()=>zs,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isRefElement:()=>fe,isStringElement:()=>ne,keyMap:()=>ei,mediaTypes:()=>Ne,refract:()=>Oi,refractorPluginReplaceEmptyElement:()=>ni,specificationObj:()=>bi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ve,includesClasses:()=>ge,includesSymbols:()=>be,isAnnotationElement:()=>pe,isArrayElement:()=>ae,isBooleanElement:()=>oe,isCommentElement:()=>he,isElement:()=>re,isLinkElement:()=>le,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isParseResultElement:()=>me,isPrimitiveElement:()=>ye,isRefElement:()=>fe,isSourceMapElement:()=>de,isStringElement:()=>ne});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>qs,isJSONSchemaElement:()=>Bs,isLinkDescriptionElement:()=>Gs,isMediaElement:()=>zs});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>qs,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isMediaElement:()=>zs});var i=r(8326);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?c((function(t){return e(t,n)})):o(n)?c((function(t){return e(r,t)})):e(r,n)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function l(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!u(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function f(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var m=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=f(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new m(e,t)}}const y=a(l(["all"],d,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,c=0,a=!1;c<t.length||s<arguments.length;){var u;c<t.length&&(!o(t[c])||s>=arguments.length)?u=t[c]:(u=arguments[s],s+=1),n[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?r.apply(this,n):v(Math.max(0,i),b(e,n,r))}}const g=a((function(e,t){return 1===e?c(t):v(e,b(e,[],t))}));const E=c((function(e){return g(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const O="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const A=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return w("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},N="function"!=typeof Object.keys||_?c((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=_&&A(e);for(t in e)!w(t,e)||s&&"length"===t||(n[n.length]=t);if(k)for(r=P.length-1;r>=0;)w(t=P[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=N;const R=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function F(e,t,r,n){var s=j(e);function i(e,t){return C(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function C(e,t,r,n){if(O(e,t))return!0;var s,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!O(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!O(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=T(e);if(a.length!==T(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!w(f,t)||!C(t[f],e[f],u,l))return!1;c-=1}return!0}const V=a((function(e,t){return C(e,t,[],[])}));function I(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(V(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const $=E(a(I));class L extends i.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const D=L;class J extends i.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const B=J;const q=c((function(e){return function(){return e}}));const z=q(void 0);const G=V(z());class U extends i.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(G(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=U;class W extends i.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new i.wE([e.start.row,e.start.column,e.start.char]),r=new i.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const H=W,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],X=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Z=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Q=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof i.wE)&&t.classes.includes(e),ee=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,te=e=>e({hasMethod:Y,hasBasicElementProps:X,primitiveEq:Z,isElementType:ee,hasClass:Q}),re=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Hg||e(r)&&t(void 0,r))),ne=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Om||e(r)&&t("string",r))),se=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.kT||e(r)&&t("number",r))),ie=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Os||e(r)&&t("null",r))),oe=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.bd||e(r)&&t("boolean",r))),ce=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ae=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.wE&&!(n instanceof i.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ue=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Pr||e(n)&&t("member",n)&&r(void 0,n))),le=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Ft||e(n)&&t("link",n)&&r(void 0,n))),fe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.sI||e(n)&&t("ref",n)&&r(void 0,n))),pe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof D||e(n)&&t("annotation",n)&&r("array",n))),he=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof B||e(n)&&t("comment",n)&&r("string",n))),me=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),de=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof H||e(n)&&t("sourceMap",n)&&r("array",n))),ye=e=>ee("object",e)||ee("array",e)||ee("boolean",e)||ee("number",e)||ee("string",e)||ee("null",e)||ee("member",e),ve=e=>de(e.meta.get("sourceMap")),be=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ae(r)&&y($(r.toValue()),e)},ge=(e,t)=>0===e.length||y($(t.classes.toValue()),e);function Ee(e){return"[object String]"===Object.prototype.toString.call(e)}function je(e,t){var r=e<0?t.length+e:e;return Ee(t)?t.charAt(r):t[r]}const xe=c((function(e){return je(-1,e)}));var we=r(1212);const Oe=class extends we{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Se extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Oe,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Ae=Se;const ke=class extends Ae{};const Pe=class extends ke{};const _e=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Pe("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Pe("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Pe("latest method in MediaTypes class is not yet implemented.")}};class Me extends _e{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-06",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return xe(this.filterByFormat(e))}}const Ne=new Me("application/schema;version=draft-06","application/schema+json;version=draft-06","application/schema+yaml;version=draft-06");function Te(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?a((function(t,r){return e(t,n,r)})):o(n)?a((function(t,n){return e(r,t,n)})):c((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?a((function(t,r){return e(t,r,s)})):o(r)&&o(s)?a((function(t,r){return e(t,n,r)})):o(n)&&o(s)?a((function(t,n){return e(r,t,n)})):o(r)?c((function(t){return e(t,n,s)})):o(n)?c((function(t){return e(r,t,s)})):o(s)?c((function(t){return e(r,n,t)})):e(r,n,s)}}}function Re(e){return"[object Object]"===Object.prototype.toString.call(e)}const Fe=Te((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})w(n,t)&&(s[n]=w(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)w(n,r)&&!w(n,s)&&(s[n]=r[n]);return s}));const Ce=Te((function e(t,r,n){return Fe((function(r,n,s){return Re(n)&&Re(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Ve=a((function(e,t){return Ce((function(e,t,r){return r}),e,t)}));const Ie=a((function(e,t){return null==t||t!=t?e:t})),$e=Number.isInteger||function(e){return(e|0)===e};const Le=a((function(e,t){if(null!=t)return $e(e)?je(e,t):t[e]}));const De=Te((function(e,t,r){return Ie(e,Le(t,r))}));function Je(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=$e(s)?je(s,r):r[s]}return r}const Be=a(Je);function qe(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return u(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ze=Te(qe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ge=ze(0,-1);const Ue=a((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));const Ke=a((function(e,t){return e.apply(this,t)}));function We(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const He=c((function(e){return!!u(e)||!!e&&("object"==typeof e&&(!Ee(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ye="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Xe(e,t,r){return function(n,s,i){if(He(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Ye])return r(n,s,i[Ye]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ze(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Qe(e,t,r,n){return r[n](e,t)}const et=Xe(We,Qe,Ze);function tt(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var rt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const nt=a(l(["fantasy-land/map","map"],(function(e){return function(t){return new rt(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return g(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return We((function(r,n){return r[n]=e(t[n]),r}),{},T(t));default:return tt(e,t)}})));const st=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:et((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,nt(r,t))}),[],e)}));const it=a((function(e,t){var r=g(e,t);return g(e,(function(){return We(st,nt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ot=c((function(e){return it(e.length,e)}));const ct=ot(c((function(e){return!e})));function at(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ut=function(e){return(e<10?"0":"")+e};const lt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ut(e.getUTCMonth()+1)+"-"+ut(e.getUTCDate())+"T"+ut(e.getUTCHours())+":"+ut(e.getUTCMinutes())+":"+ut(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ft=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function pt(e){return function(t){return new ft(e,t)}}const ht=a(l(["fantasy-land/filter","filter"],pt,(function(e,t){return Re(t)?We((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},T(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const mt=a((function(e,t){return ht((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function dt(e,t){var r=function(r){var n=t.concat([e]);return I(r,n)?"<Circular>":dt(r,n)},n=function(e,t){return tt((function(t){return at(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+tt(r,e).join(", ")+"))";case"[object Array]":return"["+tt(r,e).concat(n(e,mt((function(e){return/^\d+$/.test(e)}),T(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):at(lt(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":at(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,T(e)).join(", ")+"}"}}const yt=c((function(e){return dt(e,[])}));const vt=a((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=yt(e),o=r(i,yt(t));return void 0!==o&&o===i?e:t}));const bt=a((function(e,t){return nt(Le(e),t)}));function gt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function Et(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function jt(e,t,r,n){return e["@@transducer/result"](r[n](Ue(e["@@transducer/step"],e),t))}const xt=Xe(gt,jt,Et);var wt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const Ot=Te((function(e,t,r){return xt("function"==typeof e?new wt(e):e,t,r)}));const St=c((function(e){return g(Ot(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function At(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const kt=c(qe("tail",ze(1,1/0)));function Pt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,Ot(At,arguments[0],kt(arguments)))}var _t=function(e,t){switch(arguments.length){case 0:return _t;case 1:return function t(r){return 0===arguments.length?t:O(e,r)};default:return O(e,t)}};const Mt=_t;const Nt=g(1,Pt(R,Mt("GeneratorFunction")));const Tt=g(1,Pt(R,Mt("AsyncFunction")));const Rt=St([Pt(R,Mt("Function")),Nt,Tt]);const Ft=ct(Rt);function Ct(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Vt=a((function(e,t){return e&&t}));const It=a((function(e,t){return Ct(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ot(Vt)(e,t)}));var $t=c((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():u(e)?[]:Ee(e)?"":Re(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Lt=$t;const Dt=c((function(e){return null!=e&&V(e,Lt(e))}));const Jt=g(1,Rt(Array.isArray)?Array.isArray:Pt(R,Mt("Array")));const Bt=It(Jt,Dt);const qt=g(3,(function(e,t,r){var n=Be(e,r),s=Be(Ge(e),r);if(!Ft(n)&&!Bt(e)){var i=Ue(n,s);return Ke(i,t)}}));const zt=Te((function(e,t,r){return e(Je(t,r))}));const Gt=V(null);const Ut=ct(Gt);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}const Wt=function(e){return"object"===Kt(e)};const Ht=g(1,It(Ut,Wt));var Yt=Pt(R,Mt("Object")),Xt=Pt(yt,V(yt(Object))),Zt=zt(It(Rt,Xt),["constructor"]);const Qt=g(1,(function(e){if(!Ht(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Gt(t)||Zt(t)}));class er extends i.g${constructor(){super(),this.register("annotation",D),this.register("comment",B),this.register("parseResult",K),this.register("sourceMap",H)}}const tr=new er,rr=e=>{const t=new er;return Qt(e)&&t.use(e),t},nr=tr,sr=()=>({predicates:{...e},namespace:nr});const ir=g(1,Pt(R,Mt("String")));const or=class extends Ae{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},cr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ar={},ur=e=>null==e?void 0:e.type,lr=e=>"string"==typeof ur(e),fr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),pr=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,p,h,v);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=c.call(e[s],h,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};pr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,p,h,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=await c.call(e[s],h,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};const hr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const O=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),O)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let S;if(!Array.isArray(g)){var x;if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};S=i.call(t,g,r,m,E,j,s)}if("function"==typeof(null===(x=S)||void 0===x?void 0:x.then))throw new or("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===s)break;if(S===o){if(!e){E.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!e)){if(!u(S)){E.pop();continue}g=S}}var w;if(void 0===S&&O&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(w=p[a(g)])&&void 0!==w?w:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};hr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const w=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),w)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let O;if(!Array.isArray(g)){if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};O=await i.call(t,g,r,m,E,j,s)}if(O===s)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!u(O)){E.pop();continue}g=O}}var x;if(void 0===O&&w&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(x=p[a(g)])&&void 0!==x?x:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};const mr=class extends or{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const dr=class extends mr{};const yr=class extends mr{},vr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof i.KeyValuePair){const{key:t,value:s}=e,o=re(t)?vr(t,n):t,c=re(s)?vr(s,n):s,a=new i.KeyValuePair(o,c);return r.set(e,a),a}if(e instanceof i.ot){const t=e=>vr(e,n),s=[...e].map(t),o=new i.ot(s);return r.set(e,o),o}if(e instanceof i.G6){const t=e=>vr(e,n),s=[...e].map(t),o=new i.G6(s);return r.set(e,o),o}if(re(e)){const t=Er(e);if(r.set(e,t),e.content)if(re(e.content))t.content=vr(e.content,n);else if(e.content instanceof i.KeyValuePair)t.content=vr(e.content,n);else if(Array.isArray(e.content)){const r=e=>vr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new dr("Value provided to cloneDeep function couldn't be cloned",{value:e})};vr.safe=e=>{try{return vr(e)}catch{return e}};const br=e=>{const{key:t,value:r}=e;return new i.KeyValuePair(t,r)},gr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=vr(e.meta)),e.attributes.length>0&&(t._attributes=vr(e.attributes)),re(e.content)){const r=e.content;t.content=gr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof i.KeyValuePair?t.content=br(e.content):t.content=e.content;return t},Er=e=>{if(e instanceof i.KeyValuePair)return br(e);if(e instanceof i.ot)return(e=>{const t=[...e];return new i.ot(t)})(e);if(e instanceof i.G6)return(e=>{const t=[...e];return new i.G6(t)})(e);if(re(e))return gr(e);throw new yr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Er.safe=e=>{try{return Er(e)}catch{return e}};const jr=e=>ce(e)?"ObjectElement":ae(e)?"ArrayElement":ue(e)?"MemberElement":ne(e)?"StringElement":oe(e)?"BooleanElement":se(e)?"NumberElement":ie(e)?"NullElement":le(e)?"LinkElement":fe(e)?"RefElement":void 0,xr=e=>re(e)?Er(e):fr(e),wr=Pt(jr,ir),Or={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Sr=(e,t,{keyMap:r=Or,...n}={})=>hr(e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:wr,nodeCloneFn:xr,...n});Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Or,...n}={})=>hr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:wr,nodeCloneFn:xr,...n});const Ar={toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr,exposeEdits:!0}},kr=(e,t,r={})=>{if(0===t.length)return e;const n=Ve(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr(c.map(De({},"visitor")),{...i});c.forEach(qt(["pre"],[]));const u=Sr(e,a,i);return c.forEach(qt(["post"],[])),u};kr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Ve(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr[Symbol.for("nodejs.util.promisify.custom")],u=Sr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(De({},"visitor")),{...i});await Promise.allSettled(c.map(qt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(qt(["post"],[]))),f};const Pr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return re(e)&&(e.meta.length>0&&(n.meta=vr(e.meta)),e.attributes.length>0&&(n.attributes=vr(e.attributes))),kr(n,r,{toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr}})},_r=e=>(t,r={})=>Pr(t,{...r,Type:e});i.Sh.refract=_r(i.Sh),i.wE.refract=_r(i.wE),i.Om.refract=_r(i.Om),i.bd.refract=_r(i.bd),i.Os.refract=_r(i.Os),i.kT.refract=_r(i.kT),i.Ft.refract=_r(i.Ft),i.sI.refract=_r(i.sI),D.refract=_r(D),B.refract=_r(B),K.refract=_r(K),H.refract=_r(H);class Mr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Nr=Mr;class Tr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Rr=Tr;class Fr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Cr=Fr;class Vr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Ir=Vr;const $r=a((function(e,t){return We((function(r,n){return r[n]=e(t[n],n,t),r}),{},T(t))}));const Lr=c((function(e){return null==e}));var Dr=a((function(e,t){if(0===e.length||Lr(t))return!1;for(var r=t,n=0;n<e.length;){if(Lr(r)||!w(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Jr=Dr;var Br=a((function(e,t){return Jr([e],t)}));const qr=Br;const zr=Te((function(e,t,r){return e(Le(t,r))}));const Gr=c((function(e){return g(e.length,e)}));const Ur=a((function(e,t){return g(e+1,(function(){var r=arguments[e];if(null!=r&&Ct(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(yt(r)+' does not have a method named "'+t+'"')}))}));const Kr=Ur(1,"split");var Wr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Hr(e){return function(t){return new Wr(e,t)}}const Yr=a(l(["dropWhile"],Hr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return ze(r,1/0,t)})));const Xr=Ur(1,"join");const Zr=Gr((function(e,t){return Pt(Kr(""),Yr($(e)),Xr(""))(t)})),Qr=(e,t)=>{const r=Ie(e,t);return $r((e=>{if(Qt(e)&&qr("$ref",e)&&zr(ir,"$ref",e)){const t=Be(["$ref"],e),n=Zr("#/",t);return Be(n.split("/"),r)}return Qt(e)?Qr(e,r):e}),e)};const en=function(){return!0},tn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:jr(e),rn={EphemeralObject:["content"],EphemeralArray:["content"],...Or},nn=(e,t,{keyMap:r=rn,...n}={})=>Sr(e,t,{keyMap:r,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rn,...r}={})=>Sr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const sn=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const on=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class cn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new on(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new sn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ne(e.href)?e.href.toValue():""}}const an=e=>re(e)?ne(e)||se(e)||oe(e)||ie(e)?e.toValue():nn(e,new cn):e,un=e=>{const t=e.meta.length>0?vr(e.meta):void 0,r=e.attributes.length>0?vr(e.attributes):void 0;return new e.constructor(void 0,t,r)},ln=(e,t)=>t.clone&&t.isMergeableElement(e)?pn(un(e),e,t):e,fn={clone:!0,isMergeableElement:e=>ce(e)||ae(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ln(e,r))),objectElementMerge:(e,t,r)=>{const n=ce(e)?un(e):un(t);return ce(e)&&e.forEach(((e,t,s)=>{const i=Er(s);i.value=ln(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=an(s);let c;if(ce(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Er(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return pn;const r=t.customMerge(e,t);return"function"==typeof r?r:pn})(s,r)(n,t)}else c=Er(i),c.value=ln(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pn=(e,t,r)=>{var n,s,i;const o={...fn,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:fn.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:fn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:fn.objectElementMerge;const c=ae(t);if(!(c===ae(e)))return ln(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};pn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new i.Sh:e.reduce(((e,r)=>pn(e,r,t)),un(e[0]))};const hn=pn;const mn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hn(t.meta,e.meta),ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hn(t.attributes,e.attributes))}};const dn=class extends mn{enter(e){return this.element=vr(e),ar}},yn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},vn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:vn(r,[...t,r])},bn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>vn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=vn(s);for(let t of e){let e=vn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(yn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},gn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),En=(e,t)=>{const r=t.map((e=>vn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},jn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(En(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==En(n,e)||void 0!==t[n],get:(r,n)=>(En(n,e)||t)[n],set(t,r,n){const s=En(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),xn=null,wn="copy",On="copy",Sn="deep",An=new WeakMap,kn=e=>An.get(e),Pn=(e,t)=>{var r,n;const s=gn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=gn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},_n=(e,t)=>{var r,n,s,i;return{property:Pn(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Pn(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Mn=(e,t)=>{var r,n,s,i,o,c;return{class:gn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:_n(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:_n(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Nn=new Map,Tn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...vn(e.prototype).map((e=>e.constructor)),...null!==(t=kn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Nn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))},Rn=e=>{let t=Nn.get(e);return t||(t={},Nn.set(e,t)),t};function Fn(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=xn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)yn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===On?bn(s,o):(c=s,a=o,jn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===wn?bn(e,null,["prototype"]):jn(e,Function.prototype));let u=o;if("none"!==Sn){const s="deep"===Sn?Tn(...e):((...e)=>{const t=e.map((e=>Rn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Cn(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Cn(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,An.set(l,f),u}const Cn=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Vn=a((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const In=class extends mn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Vn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Be(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return zt(Rt,["visitors",...e],this.specObj)?Be(["visitors",...e],this.specObj):Be(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof dn&&(null==n?void 0:n.constructor)===dn?vr(t):(Sr(t,n,r),n.element)}};const $n=class extends In{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ne(n)&&r.includes(an(n))&&!this.ignoredFields.includes(an(n))){const r=this.toRefractedElement([...t,"fixedFields",an(n)],e),o=new i.Pr(vr(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(n))||this.element.content.push(vr(s))})),this.copyMetaAndAttributes(e,this.element),ar}};class Ln extends(Fn($n,dn)){constructor(e){super(e),this.element=new Nr,this.specPath=q(["document","objects","JSONSchema"])}}const Dn=Ln;const Jn=class{parent;constructor({parent:e}){this.parent=e}},Bn=e=>ce(e)&&e.hasKey("$ref");class qn extends(Fn(In,Jn,dn)){ObjectElement(e){const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const zn=qn;const Gn=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Un=c((function(e){return g(Ot(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Kn=c((function(e){return!Dt(e)}));const Wn=a((function(e,t){return e||t}));var Hn=ct(g(1,It(Ut,a((function(e,t){return Ct(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ot(Wn)(e,t)}))(Wt,Rt))));const Yn=Un([ir,Hn,Kn]);const Xn=function(){return!1};const Zn=class extends In{specPath;ignoredFields;fieldPatternPredicate=Xn;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(an(t))&&this.fieldPatternPredicate(an(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new i.Pr(vr(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(t))||this.element.content.push(vr(r))})),this.copyMetaAndAttributes(e,this.element),ar}};const Qn=class extends Zn{constructor(e){super(e),this.fieldPatternPredicate=Yn}};class es extends(Fn(Qn,Jn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ts=es;class rs extends(Fn(Qn,Jn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ns=rs;class ss extends(Fn(Qn,Jn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const is=ss;const os=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const cs=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class as extends(Fn(In,Jn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const us=as;class ls extends(Fn(In,Jn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const fs=ls;class ps extends(Fn(In,Jn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const hs=ps;class ms extends(Fn(Qn,Jn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ds=ms;class ys extends(Fn(In,Jn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ar}}const vs=ys;class bs extends(Fn($n,dn)){constructor(e){super(e),this.element=new Rr,this.specPath=q(["document","objects","JSONReference"])}ObjectElement(e){const t=$n.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const gs=bs;const Es=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const js=Te((function(e,t,r){return g(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const xs=c((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var ws=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Os=ws;const Ss=c((function(e){return je(0,e)}));const As=c(f);const ks=ct(Lr);const Ps=It(Jt,Kn);function _s(e){return function(e){if(Array.isArray(e))return Ms(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ms(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ms(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ns=Pt(Os(xs((function(e,t){return e.length>t.length}))),Ss,Le("length")),Ts=Gr((function(e,t,r){var n=r.apply(void 0,_s(e));return ks(n)?As(n):t}));const Rs=js(Ps,(function(e){var t=Ns(e);return g(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ot(Ts(r),void 0,e)}))}),z);const Fs=class extends In{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>js(e,q(t),z))),r=Rs(t)(e);return this.element=this.toRefractedElement(r,e),ar}};const Cs=class extends Fs{constructor(e){super(e),this.alternator=[{predicate:Bn,specPath:["document","objects","JSONReference"]},{predicate:en,specPath:["document","objects","JSONSchema"]}]}};class Vs extends(Fn($n,dn)){constructor(e){super(e),this.element=new Cr,this.specPath=q(["document","objects","Media"])}}const Is=Vs;class $s extends(Fn($n,dn)){constructor(e){super(e),this.element=new Ir,this.specPath=q(["document","objects","LinkDescription"])}}const Ls={visitors:{value:dn,JSONSchemaOrJSONReferenceVisitor:Cs,document:{objects:{JSONSchema:{$visitor:Dn,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Cs,items:zn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Gn,properties:ts,additionalProperties:Cs,patternProperties:ns,dependencies:is,enum:os,type:cs,allOf:us,anyOf:fs,oneOf:hs,not:Cs,definitions:ds,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:vs,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:gs,fixedFields:{$ref:Es}},Media:{$visitor:Is,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:$s,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Cs,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Cs}}}}}},Ds=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Js={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Or},Bs=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),qs=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rr||e(n)&&t("JSONReference",n)&&r("object",n))),zs=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cr||e(n)&&t("media",n)&&r("object",n))),Gs=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ir||e(n)&&t("linkDescription",n)&&r("object",n))),Us={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Nr),t.register("jSONReference",Rr),t.register("media",Cr),t.register("linkDescription",Ir),t}},Ks=()=>{const e=rr(Us);return{predicates:{...t,isStringElement:ne},namespace:e}},Ws=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ls}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:Ks,visitorOptions:{keyMap:Js,nodeTypeGetter:Ds}})},Hs=e=>(t,r={})=>Ws(t,{specPath:e,...r});Nr.refract=Hs(["visitors","document","objects","JSONSchema","$visitor"]),Rr.refract=Hs(["visitors","document","objects","JSONReference","$visitor"]),Cr.refract=Hs(["visitors","document","objects","Media","$visitor"]),Ir.refract=Hs(["visitors","document","objects","LinkDescription","$visitor"]);const Ys=class extends Nr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new ke("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new ke("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Xs=class extends Ir{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new ke("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new ke("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new ke("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new ke("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}},Zs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ys),t.register("jSONReference",Rr),t.register("media",Cr),t.register("linkDescription",Xs),t}},Qs=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ei={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Or},ti={JSONSchemaDraft6Element:{additionalItems:(...e)=>new Ys(...e),items:(...e)=>new Ys(...e),contains:(...e)=>new Ys(...e),required(...e){const t=new i.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Ys(...e),patternProperties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Ys(...e),enum(...e){const t=new i.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Ys(...e),definitions(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new i.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new i.wE(...e);return t.classes.push("json-schema-links"),t},media:(...e)=>new Cr(...e)},LinkDescriptionElement:{hrefSchema:(...e)=>new Ys(...e),targetSchema:(...e)=>new Ys(...e),submissionSchema:(...e)=>new Ys(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-links":{"<*>":function(...e){return new Xs(...e)}}},ri=(e,t)=>{const r=Qs(e),n=ti[r]||ti[an(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},ni=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>ne(e)&&ge(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(re),o=i[i.length-1];let c,a;return ae(o)?(a=e,c=ri(o,"<*>")):ue(o)&&(a=i[i.length-2],c=ri(a,an(o.key))),"function"==typeof c?c.call({context:a},void 0,vr(e.meta),vr(e.attributes)):void 0}}});var si=Te((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Lr(n)&&w(s,n)&&"object"==typeof n[s]?n[s]:$e(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if($e(e)&&u(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ii=si;const oi=Te((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ci=Te((function(e,t,r){return ii([e],t,r)}));const ai=ci;var ui=a((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if($e(e)&&u(t))return oi(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if($e(e)&&u(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ai(n,e(s,r[n]),r)}}));const li=ui;class fi extends(Fn($n,dn)){constructor(e){super(e),this.specPath=q(["document","objects","JSONSchema"])}ObjectElement(e){return this.element=new Ys,$n.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}}const pi=fi;class hi extends(Fn(In,Jn,dn)){ObjectElement(e){const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Bn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ar}}const mi=hi;const di=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};class yi extends(Fn($n,dn)){constructor(e){super(e),this.element=new Xs,this.specPath=q(["document","objects","LinkDescription"])}}const vi=yi,bi=Pt(ii(["visitors","document","objects","JSONSchema","$visitor"],pi),li(["visitors","document","objects","JSONSchema","fixedFields","id"]),ii(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ls.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ls.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","items"],mi),ii(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ls.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","const"],Ls.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","examples"],di),ii(["visitors","document","objects","LinkDescription","$visitor"],vi),ii(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ls.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ls.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","method"]),li(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ls.visitors.value))(Ls),gi=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),Ei=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("linkDescription",n)&&r("object",n))),ji=()=>{const e=rr(Zs);return{predicates:{...s,isStringElement:ne},namespace:e}},xi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bi}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:ji,visitorOptions:{keyMap:ei,nodeTypeGetter:Qs}})},wi=e=>(t,r={})=>xi(t,{specPath:e,...r}),Oi=xi})(),n})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft6=t():e.apidomNsJSONSchemaDraft6=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),c=r(5071);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),c=r(3964);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),c=r(9068);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),c=r(7462),a=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),c=r(9632),a=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),f=!r&&!l&&o(e),p=!r&&!l&&!f&&a(e),h=r||l||f||p,m=h?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),c=r(8486),a=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,v){var b=a(e),g=a(t),E=b?p:c(e),j=g?p:c(t),x=(E=E==f?h:E)==h,O=(j=j==f?h:j)==h,w=E==j;if(w&&u(e)){if(!u(t))return!1;b=!0,x=!1}if(w&&!x)return v||(v=new n),b||l(e)?s(e,t,r,d,y,v):i(e,t,E,r,d,y,v);if(!(1&r)){var S=x&&m.call(e,"__wrapped__"),A=O&&m.call(t,"__wrapped__");if(S||A){var k=S?e.value():e,P=A?t.value():t;return v||(v=new n),y(k,P,r,d,v)}}return!!w&&(v||(v=new n),o(e,t,r,d,y,v))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?p:c).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,c,a){var u=1&r,l=e.length,f=t.length;if(l!=f&&!(u&&f>l))return!1;var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=-1,d=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var v=e[m],b=t[m];if(o)var g=u?o(b,v,m,t,e,a):o(v,b,m,e,t,a);if(void 0!==g){if(g)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)}))){d=!1;break}}else if(v!==b&&!c(v,b,r,o,a)){d=!1;break}}return a.delete(e),a.delete(t),d}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),c=r(5894),a=r(9828),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var m=1&n;if(h||(h=a),e.size!=t.size&&!m)return!1;var d=p.get(e);if(d)return d==t;n|=2,p.set(e,t);var y=o(h(e),h(t),n,u,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!a)return!1;for(var f=l;f--;){var p=u[f];if(!(a?p in t:s.call(t,p)))return!1}var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++f<l;){var v=e[p=u[f]],b=t[p];if(i)var g=a?i(b,v,p,t,e,c):i(v,b,p,e,t,c);if(!(void 0===g?v===b||o(v,b,r,i,c):g)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var E=e.constructor,j=t.constructor;E==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof j&&j instanceof j||(d=!1)}return c.delete(e),c.delete(t),d}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),c=r(9270),a=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),v=u(i),b=u(o),g=u(c),E=a;(n&&E(new n(new ArrayBuffer(1)))!=m||s&&E(new s)!=l||i&&E(i.resolve())!=f||o&&E(new o)!=p||c&&E(new c)!=h)&&(E=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return m;case y:return l;case v:return f;case b:return p;case g:return h}return t}),e.exports=E},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},9828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),c=r(1580),a=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),c=r(2555),a=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),d=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:y,ArraySlice:h,ObjectSlice:m,KeyValuePair:d}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),c=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(7447),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var c=n(t),a=i(c);if(0===a)return!e&&-1;var u,l=s(o,a);if(e&&r!=r){for(;a>l;)if((u=c[l++])!=u)return!0}else for(;a>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var c=s(t),a=o.f,u=i.f,l=0;l<c.length;l++){var f=c[l];n(e,f)||r&&n(r,f)||a(e,f,u(t,f))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):n(e,"stack",s(r,c)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),c=r(4543).f,a=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701);r(3753);var h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,v,b,g,E,j=e.target,x=e.global,O=e.stat,w=e.proto,S=x?n:O?n[j]:n[j]&&n[j].prototype,A=x?u:u[j]||f(u,j,{})[j],k=A.prototype;for(d in t)s=!(r=a(x?d:j+(O?".":"#")+d,e.forced))&&S&&p(S,d),v=A[d],s&&(b=e.dontCallGetSet?(E=c(S,d))&&E.value:S[d]),y=s&&b?b:t[d],(r||w||typeof v!=typeof y)&&(g=e.bind&&s?l(y,n):e.wrap&&s?h(y):w&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&f(g,"sham",!0),f(A,d,g),w&&(p(u,m=j+"Prototype")||f(u,m,{}),f(u[m],d,y),e.real&&k&&(r||!k[d])&&f(k,d,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),c=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),c=r(967),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(s(r))return i(n(r,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,c;return i&&n(o=t.constructor)&&o!==r&&s(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),c=r(8900),a=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new d(m);return t.facade=e,v.set(e,t),t},s=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=p("state");h[b]=!0,n=function(e,t){if(l(e,b))throw new d(m);return t.facade=e,u(e,b,t),t},s=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),c=r(2877),a=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,v,b,g,E,j,x,O=r&&r.that,w=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(t,O),_=function(e){return y&&p(y,"normal",e),new m(!0,e)},M=function(e){return w?(i(e),k?P(e[0],e[1],_):P(e[0],e[1])):k?P(e,_):P(e)};if(S)y=e.iterator;else if(A)y=e;else{if(!(v=f(e)))throw new h(o(e)+" is not iterable");if(c(v)){for(b=0,g=a(e);g>b;b++)if((E=M(e[b]))&&u(d,E))return E;return new m(!1)}y=l(e,v)}for(j=S?e.next:y.next;!(x=s(j,y)).done;){try{E=M(x.value)}catch(e){p(y,"throw",e)}if("object"==typeof E&&E&&u(d,E))return E}return new m(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),c=r(6625),a=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),c[l]=a,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),c=r(2769),a=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),d=r(6625),y=r(2621),v=o.PROPER,b=o.CONFIGURABLE,g=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),x="keys",O="values",w="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,A){a(r,t,o);var k,P,_,M=function(e){if(e===m&&I)return I;if(!E&&e&&e in R)return R[e];switch(e){case x:case O:case w:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",T=!1,R=e.prototype,F=R[j]||R["@@iterator"]||m&&R[m],I=!E&&F||M(m),C="Array"===t&&R.entries||F;if(C&&(k=u(C.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===g||(l?l(k,g):c(k[j])||h(k,j,S)),f(k,N,!0,!0),i&&(d[N]=S)),v&&m===O&&F&&F.name!==O&&(!i&&b?p(R,"name",O):(T=!0,I=function(){return s(F,this)})),m)if(P={values:M(O),keys:y?I:M(x),entries:M(w)},A)for(_ in P)(E||T||!(_ in R))&&h(R,_,P[_]);else n({target:t,proto:!0,forced:E||T},P);return i&&!A||R[j]===I||h(R,j,I,{name:m}),d[t]=I,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),c=r(2769),a=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!a(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:h&&(n=u(n)),c(n[m])||f(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),c=r(5241),a=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},d=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+p+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete v[f][o[s]];return v()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[f]=s(e),r=new m,m[f]=null,r[h]=e):r=v(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),c=r(3273),a=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),c=r(5341),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),c=r(3273),a=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=c(e),t=a(t),l)try{return f(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),c=r(2871),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,c=r(5241),a=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(c,r)&&s(n,r)&&a(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||a(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),c=r(7235),a=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),c=r(9559),a=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!n&&i(l,"toString",c))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",c=e.exports=s[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),c=n("".charAt),a=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,f=i(o(t)),p=s(r),h=f.length;return p<0||p>=h?e?"":void 0:(n=a(f,p))<55296||n>56319||p+1===h||(l=a(f,p+1))<56320||l>57343?e?c(f,p):n:e?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),c=r(9258),a=r(8655),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,l);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),c=r(4603),a=r(7460),u=n.Symbol,l=s("wks"),f=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:f("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),c=r(3491),a=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),d=r(4871);e.exports=function(e,t,r,y){var v="stackTraceLimit",b=y?2:1,g=e.split("."),E=g[g.length-1],j=n.apply(null,g);if(j){var x=j.prototype;if(!d&&s(x,"cause")&&delete x.cause,!r)return j;var O=n("Error"),w=t((function(e,t){var r=f(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),h(n,w,n.stack,2),this&&o(x,this)&&l(n,this,w),arguments.length>b&&p(n,arguments[b]),n}));if(w.prototype=x,"Error"!==E?c?c(w,O):a(w,O,{name:!0}):m&&v in j&&(u(w,j,v),u(w,j,"prepareStackTrace")),a(w,j),!d)try{x.name!==E&&i(x,"name",E),x.constructor=w}catch(e){}return w}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),c=r(6453),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),c=r(7464),a=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),d=r(8655)("toStringTag"),y=Error,v=[].push,b=function(e,t){var r,n=s(g,this);o?r=o(new y,n?i(this):g):(r=n?this:a(g),u(r,d,"Error")),void 0!==t&&u(r,"message",m(t)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var c=[];return h(e,v,{that:c}),u(r,"errors",c),r};o?o(b,y):c(b,y,{name:!0});var g=b.prototype=a(y.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},5695:(e,t,r)=>{"use strict";r(3085)},7447:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),c=r(9989).f,a=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=o.set,m=o.getterFor(p);e.exports=a(Array,"Array",(function(e,t){h(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,u),n({target:c,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),c=r(877),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(7447);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var c in n)i(s[c],c),o[c]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{AlternatingVisitor:()=>Vs,FallbackVisitor:()=>dn,FixedFieldsVisitor:()=>qn,JSONReferenceElement:()=>Rr,JSONSchemaDraft6MediaTypes:()=>Me,JSONSchemaElement:()=>Ys,JSONSchemaVisitor:()=>pi,LinkDescriptionElement:()=>Xs,MapVisitor:()=>ns,MediaElement:()=>Ir,ParentSchemaAwareVisitor:()=>zn,PatternedFieldsVisitor:()=>rs,SpecificationVisitor:()=>Bn,Visitor:()=>mn,createRefractor:()=>Oi,default:()=>Zs,getNodeType:()=>Qs,isArrayElement:()=>ae,isBooleanElement:()=>oe,isElement:()=>re,isJSONReferenceElement:()=>Un,isJSONReferenceLikeElement:()=>Xn,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isLinkElement:()=>le,isMediaElement:()=>Kn,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isRefElement:()=>fe,isStringElement:()=>ne,keyMap:()=>ei,mediaTypes:()=>Ne,refract:()=>wi,refractorPluginReplaceEmptyElement:()=>ni,specificationObj:()=>bi});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ve,includesClasses:()=>ge,includesSymbols:()=>be,isAnnotationElement:()=>pe,isArrayElement:()=>ae,isBooleanElement:()=>oe,isCommentElement:()=>he,isElement:()=>re,isLinkElement:()=>le,isMemberElement:()=>ue,isNullElement:()=>ie,isNumberElement:()=>se,isObjectElement:()=>ce,isParseResultElement:()=>me,isPrimitiveElement:()=>ye,isRefElement:()=>fe,isSourceMapElement:()=>de,isStringElement:()=>ne});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Un,isJSONSchemaElement:()=>Gn,isLinkDescriptionElement:()=>Wn,isMediaElement:()=>Kn});var s={};r.r(s),r.d(s,{isJSONReferenceElement:()=>Un,isJSONSchemaElement:()=>gi,isLinkDescriptionElement:()=>Ei,isMediaElement:()=>Kn});var i=r(8326);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?c((function(t){return e(t,n)})):o(n)?c((function(t){return e(r,t)})):e(r,n)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function l(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!u(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function f(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const p=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var m=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=f(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new m(e,t)}}const y=a(l(["all"],d,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var n=[],s=0,i=e,c=0,a=!1;c<t.length||s<arguments.length;){var u;c<t.length&&(!o(t[c])||s>=arguments.length)?u=t[c]:(u=arguments[s],s+=1),n[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?r.apply(this,n):v(Math.max(0,i),b(e,n,r))}}const g=a((function(e,t){return 1===e?c(t):v(e,b(e,[],t))}));const E=c((function(e){return g(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const A=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return O("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},N="function"!=typeof Object.keys||_?c((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=_&&A(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(k)for(r=P.length-1;r>=0;)O(t=P[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=N;const R=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function F(e,t,r,n){var s=j(e);function i(e,t){return I(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function I(e,t,r,n){if(w(e,t))return!0;var s,i,o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&F(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&F(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=T(e);if(a.length!==T(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(c=a.length-1;c>=0;){var f=a[c];if(!O(f,t)||!I(t[f],e[f],u,l))return!1;c-=1}return!0}const C=a((function(e,t){return I(e,t,[],[])}));function $(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}const V=E(a($));class D extends i.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const L=D;class J extends i.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const B=J;const q=c((function(e){return function(){return e}}));const z=q(void 0);const G=C(z());class U extends i.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(G(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const K=U;class W extends i.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new i.wE([e.start.row,e.start.column,e.start.char]),r=new i.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const H=W,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],X=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Z=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Q=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof i.wE)&&t.classes.includes(e),ee=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,te=e=>e({hasMethod:Y,hasBasicElementProps:X,primitiveEq:Z,isElementType:ee,hasClass:Q}),re=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Hg||e(r)&&t(void 0,r))),ne=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Om||e(r)&&t("string",r))),se=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.kT||e(r)&&t("number",r))),ie=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.Os||e(r)&&t("null",r))),oe=te((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof i.bd||e(r)&&t("boolean",r))),ce=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ae=te((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof i.wE&&!(n instanceof i.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ue=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Pr||e(n)&&t("member",n)&&r(void 0,n))),le=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.Ft||e(n)&&t("link",n)&&r(void 0,n))),fe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof i.sI||e(n)&&t("ref",n)&&r(void 0,n))),pe=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof L||e(n)&&t("annotation",n)&&r("array",n))),he=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof B||e(n)&&t("comment",n)&&r("string",n))),me=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof K||e(n)&&t("parseResult",n)&&r("array",n))),de=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof H||e(n)&&t("sourceMap",n)&&r("array",n))),ye=e=>ee("object",e)||ee("array",e)||ee("boolean",e)||ee("number",e)||ee("string",e)||ee("null",e)||ee("member",e),ve=e=>de(e.meta.get("sourceMap")),be=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ae(r)&&y(V(r.toValue()),e)},ge=(e,t)=>0===e.length||y(V(t.classes.toValue()),e);function Ee(e){return"[object String]"===Object.prototype.toString.call(e)}function je(e,t){var r=e<0?t.length+e:e;return Ee(t)?t.charAt(r):t[r]}const xe=c((function(e){return je(-1,e)}));var Oe=r(1212);const we=class extends Oe{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Se extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(we,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Ae=Se;const ke=class extends Ae{};const Pe=class extends ke{};const _e=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Pe("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Pe("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Pe("latest method in MediaTypes class is not yet implemented.")}};class Me extends _e{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-06",t="generic"){const r="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return xe(this.filterByFormat(e))}}const Ne=new Me("application/schema;version=draft-06","application/schema+json;version=draft-06","application/schema+yaml;version=draft-06");function Te(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?a((function(t,r){return e(t,n,r)})):o(n)?a((function(t,n){return e(r,t,n)})):c((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?a((function(t,r){return e(t,r,s)})):o(r)&&o(s)?a((function(t,r){return e(t,n,r)})):o(n)&&o(s)?a((function(t,n){return e(r,t,n)})):o(r)?c((function(t){return e(t,n,s)})):o(n)?c((function(t){return e(r,t,s)})):o(s)?c((function(t){return e(r,n,t)})):e(r,n,s)}}}function Re(e){return"[object Object]"===Object.prototype.toString.call(e)}const Fe=Te((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})O(n,t)&&(s[n]=O(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)O(n,r)&&!O(n,s)&&(s[n]=r[n]);return s}));const Ie=Te((function e(t,r,n){return Fe((function(r,n,s){return Re(n)&&Re(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Ce=a((function(e,t){return Ie((function(e,t,r){return r}),e,t)}));const $e=a((function(e,t){return null==t||t!=t?e:t})),Ve=Number.isInteger||function(e){return(e|0)===e};const De=a((function(e,t){if(null!=t)return Ve(e)?je(e,t):t[e]}));const Le=Te((function(e,t,r){return $e(e,De(t,r))}));function Je(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Ve(s)?je(s,r):r[s]}return r}const Be=a(Je);function qe(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return u(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ze=Te(qe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ge=ze(0,-1);const Ue=a((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));const Ke=a((function(e,t){return e.apply(this,t)}));function We(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const He=c((function(e){return!!u(e)||!!e&&("object"==typeof e&&(!Ee(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ye="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Xe(e,t,r){return function(n,s,i){if(He(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Ye])return r(n,s,i[Ye]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ze(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Qe(e,t,r,n){return r[n](e,t)}const et=Xe(We,Qe,Ze);function tt(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}var rt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const nt=a(l(["fantasy-land/map","map"],(function(e){return function(t){return new rt(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return g(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return We((function(r,n){return r[n]=e(t[n]),r}),{},T(t));default:return tt(e,t)}})));const st=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:et((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,nt(r,t))}),[],e)}));const it=a((function(e,t){var r=g(e,t);return g(e,(function(){return We(st,nt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ot=c((function(e){return it(e.length,e)}));const ct=ot(c((function(e){return!e})));function at(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ut=function(e){return(e<10?"0":"")+e};const lt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ut(e.getUTCMonth()+1)+"-"+ut(e.getUTCDate())+"T"+ut(e.getUTCHours())+":"+ut(e.getUTCMinutes())+":"+ut(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var ft=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function pt(e){return function(t){return new ft(e,t)}}const ht=a(l(["fantasy-land/filter","filter"],pt,(function(e,t){return Re(t)?We((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},T(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const mt=a((function(e,t){return ht((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function dt(e,t){var r=function(r){var n=t.concat([e]);return $(r,n)?"<Circular>":dt(r,n)},n=function(e,t){return tt((function(t){return at(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+tt(r,e).join(", ")+"))";case"[object Array]":return"["+tt(r,e).concat(n(e,mt((function(e){return/^\d+$/.test(e)}),T(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):at(lt(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":at(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,T(e)).join(", ")+"}"}}const yt=c((function(e){return dt(e,[])}));const vt=a((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=yt(e),o=r(i,yt(t));return void 0!==o&&o===i?e:t}));const bt=a((function(e,t){return nt(De(e),t)}));function gt(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}function Et(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function jt(e,t,r,n){return e["@@transducer/result"](r[n](Ue(e["@@transducer/step"],e),t))}const xt=Xe(gt,jt,Et);var Ot=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const wt=Te((function(e,t,r){return xt("function"==typeof e?new Ot(e):e,t,r)}));const St=c((function(e){return g(wt(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function At(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const kt=c(qe("tail",ze(1,1/0)));function Pt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,wt(At,arguments[0],kt(arguments)))}var _t=function(e,t){switch(arguments.length){case 0:return _t;case 1:return function t(r){return 0===arguments.length?t:w(e,r)};default:return w(e,t)}};const Mt=_t;const Nt=g(1,Pt(R,Mt("GeneratorFunction")));const Tt=g(1,Pt(R,Mt("AsyncFunction")));const Rt=St([Pt(R,Mt("Function")),Nt,Tt]);const Ft=ct(Rt);function It(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ct=a((function(e,t){return e&&t}));const $t=a((function(e,t){return It(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ot(Ct)(e,t)}));var Vt=c((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():u(e)?[]:Ee(e)?"":Re(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Dt=Vt;const Lt=c((function(e){return null!=e&&C(e,Dt(e))}));const Jt=g(1,Rt(Array.isArray)?Array.isArray:Pt(R,Mt("Array")));const Bt=$t(Jt,Lt);const qt=g(3,(function(e,t,r){var n=Be(e,r),s=Be(Ge(e),r);if(!Ft(n)&&!Bt(e)){var i=Ue(n,s);return Ke(i,t)}}));const zt=Te((function(e,t,r){return e(Je(t,r))}));const Gt=C(null);const Ut=ct(Gt);function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}const Wt=function(e){return"object"===Kt(e)};const Ht=g(1,$t(Ut,Wt));var Yt=Pt(R,Mt("Object")),Xt=Pt(yt,C(yt(Object))),Zt=zt($t(Rt,Xt),["constructor"]);const Qt=g(1,(function(e){if(!Ht(e)||!Yt(e))return!1;var t=Object.getPrototypeOf(e);return!!Gt(t)||Zt(t)}));class er extends i.g${constructor(){super(),this.register("annotation",L),this.register("comment",B),this.register("parseResult",K),this.register("sourceMap",H)}}const tr=new er,rr=e=>{const t=new er;return Qt(e)&&t.use(e),t},nr=tr,sr=()=>({predicates:{...e},namespace:nr});const ir=g(1,Pt(R,Mt("String")));const or=class extends Ae{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},cr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},ar={},ur=e=>null==e?void 0:e.type,lr=e=>"string"==typeof ur(e),fr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),pr=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=c.call(e[u],d,l,f,p,h,v);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=c.call(e[s],h,o,u,l,f,m);if("function"==typeof(null==t?void 0:t.then))throw new or("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};pr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=cr,nodeTypeGetter:r=ur,breakSymbol:n=ar,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,f,p,h,m){let d=u,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(d),!1);if("function"==typeof c){const t=await c.call(e[u],d,l,f,p,h,v);if(t===i)a[u]=d;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,y=!0}}}}return y?d:void 0},async leave(s,o,u,l,f,p){let h=s;const m={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(h),!0);if("function"==typeof c){const t=await c.call(e[s],h,o,u,l,f,m);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===h&&(a[s]=c)}}};const hr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const w=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),w)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let S;if(!Array.isArray(g)){var x;if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};S=i.call(t,g,r,m,E,j,s)}if("function"==typeof(null===(x=S)||void 0===x?void 0:x.then))throw new or("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===s)break;if(S===o){if(!e){E.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!e)){if(!u(S)){E.pop();continue}g=S}}var O;if(void 0===S&&w&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(O=p[a(g)])&&void 0!==O?O:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};hr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,nodeCloneFn:l=fr,detectCycles:f=!0}={})=>{const p=r||{};let h,m,d=Array.isArray(e),y=[e],v=-1,b=[],g=e;const E=[],j=[];do{v+=1;const e=v===y.length;let r;const O=e&&0!==b.length;if(e){if(r=0===j.length?void 0:E.pop(),g=m,m=j.pop(),O)if(d){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}v=h.index,y=h.keys,b=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(r=d?v:y[v],g=m[r],g===i||void 0===g)continue;E.push(r)}let w;if(!Array.isArray(g)){if(!u(g))throw new or(`Invalid AST Node: ${String(g)}`,{node:g});if(f&&j.includes(g)){E.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,m,E,j):m&&(m[r]=t),e||(g=t)}};w=await i.call(t,g,r,m,E,j,s)}if(w===s)break;if(w===o){if(!e){E.pop();continue}}else if(void 0!==w&&(b.push([r,w]),!e)){if(!u(w)){E.pop();continue}g=w}}var x;if(void 0===w&&O&&b.push([r,g]),!e)h={inArray:d,index:v,keys:y,edits:b,prev:h},d=Array.isArray(g),y=d?g:null!==(x=p[a(g)])&&void 0!==x?x:[],v=-1,b=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==b.length?b[b.length-1][1]:e};const mr=class extends or{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const dr=class extends mr{};const yr=class extends mr{},vr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof i.KeyValuePair){const{key:t,value:s}=e,o=re(t)?vr(t,n):t,c=re(s)?vr(s,n):s,a=new i.KeyValuePair(o,c);return r.set(e,a),a}if(e instanceof i.ot){const t=e=>vr(e,n),s=[...e].map(t),o=new i.ot(s);return r.set(e,o),o}if(e instanceof i.G6){const t=e=>vr(e,n),s=[...e].map(t),o=new i.G6(s);return r.set(e,o),o}if(re(e)){const t=Er(e);if(r.set(e,t),e.content)if(re(e.content))t.content=vr(e.content,n);else if(e.content instanceof i.KeyValuePair)t.content=vr(e.content,n);else if(Array.isArray(e.content)){const r=e=>vr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new dr("Value provided to cloneDeep function couldn't be cloned",{value:e})};vr.safe=e=>{try{return vr(e)}catch{return e}};const br=e=>{const{key:t,value:r}=e;return new i.KeyValuePair(t,r)},gr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=vr(e.meta)),e.attributes.length>0&&(t._attributes=vr(e.attributes)),re(e.content)){const r=e.content;t.content=gr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof i.KeyValuePair?t.content=br(e.content):t.content=e.content;return t},Er=e=>{if(e instanceof i.KeyValuePair)return br(e);if(e instanceof i.ot)return(e=>{const t=[...e];return new i.ot(t)})(e);if(e instanceof i.G6)return(e=>{const t=[...e];return new i.G6(t)})(e);if(re(e))return gr(e);throw new yr("Value provided to cloneShallow function couldn't be cloned",{value:e})};Er.safe=e=>{try{return Er(e)}catch{return e}};const jr=e=>ce(e)?"ObjectElement":ae(e)?"ArrayElement":ue(e)?"MemberElement":ne(e)?"StringElement":oe(e)?"BooleanElement":se(e)?"NumberElement":ie(e)?"NullElement":le(e)?"LinkElement":fe(e)?"RefElement":void 0,xr=e=>re(e)?Er(e):fr(e),Or=Pt(jr,ir),wr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Sr=(e,t,{keyMap:r=wr,...n}={})=>hr(e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=wr,...n}={})=>hr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:jr,nodePredicate:Or,nodeCloneFn:xr,...n});const Ar={toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr,exposeEdits:!0}},kr=(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr(c.map(Le({},"visitor")),{...i});c.forEach(qt(["pre"],[]));const u=Sr(e,a,i);return c.forEach(qt(["post"],[])),u};kr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Ce(Ar,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=pr[Symbol.for("nodejs.util.promisify.custom")],u=Sr[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(Le({},"visitor")),{...i});await Promise.allSettled(c.map(qt(["pre"],[])));const f=await u(e,l,i);return await Promise.allSettled(c.map(qt(["post"],[]))),f};const Pr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return re(e)&&(e.meta.length>0&&(n.meta=vr(e.meta)),e.attributes.length>0&&(n.attributes=vr(e.attributes))),kr(n,r,{toolboxCreator:sr,visitorOptions:{nodeTypeGetter:jr}})},_r=e=>(t,r={})=>Pr(t,{...r,Type:e});i.Sh.refract=_r(i.Sh),i.wE.refract=_r(i.wE),i.Om.refract=_r(i.Om),i.bd.refract=_r(i.bd),i.Os.refract=_r(i.Os),i.kT.refract=_r(i.kT),i.Ft.refract=_r(i.Ft),i.sI.refract=_r(i.sI),L.refract=_r(L),B.refract=_r(B),K.refract=_r(K),H.refract=_r(H);class Mr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Nr=Mr;class Tr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Rr=Tr;class Fr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Ir=Fr;class Cr extends i.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const $r=Cr;const Vr=a((function(e,t){return We((function(r,n){return r[n]=e(t[n],n,t),r}),{},T(t))}));const Dr=c((function(e){return null==e}));var Lr=a((function(e,t){if(0===e.length||Dr(t))return!1;for(var r=t,n=0;n<e.length;){if(Dr(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Jr=Lr;var Br=a((function(e,t){return Jr([e],t)}));const qr=Br;const zr=Te((function(e,t,r){return e(De(t,r))}));const Gr=c((function(e){return g(e.length,e)}));const Ur=a((function(e,t){return g(e+1,(function(){var r=arguments[e];if(null!=r&&It(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(yt(r)+' does not have a method named "'+t+'"')}))}));const Kr=Ur(1,"split");var Wr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=p,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Hr(e){return function(t){return new Wr(e,t)}}const Yr=a(l(["dropWhile"],Hr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return ze(r,1/0,t)})));const Xr=Ur(1,"join");const Zr=Gr((function(e,t){return Pt(Kr(""),Yr(V(e)),Xr(""))(t)})),Qr=(e,t)=>{const r=$e(e,t);return Vr((e=>{if(Qt(e)&&qr("$ref",e)&&zr(ir,"$ref",e)){const t=Be(["$ref"],e),n=Zr("#/",t);return Be(n.split("/"),r)}return Qt(e)?Qr(e,r):e}),e)};const en=function(){return!0},tn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:jr(e),rn={EphemeralObject:["content"],EphemeralArray:["content"],...wr},nn=(e,t,{keyMap:r=rn,...n}={})=>Sr(e,t,{keyMap:r,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rn,...r}={})=>Sr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:tn,nodePredicate:en,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const sn=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const on=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class cn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new on(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new sn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ne(e.href)?e.href.toValue():""}}const an=e=>re(e)?ne(e)||se(e)||oe(e)||ie(e)?e.toValue():nn(e,new cn):e,un=e=>{const t=e.meta.length>0?vr(e.meta):void 0,r=e.attributes.length>0?vr(e.attributes):void 0;return new e.constructor(void 0,t,r)},ln=(e,t)=>t.clone&&t.isMergeableElement(e)?pn(un(e),e,t):e,fn={clone:!0,isMergeableElement:e=>ce(e)||ae(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ln(e,r))),objectElementMerge:(e,t,r)=>{const n=ce(e)?un(e):un(t);return ce(e)&&e.forEach(((e,t,s)=>{const i=Er(s);i.value=ln(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=an(s);let c;if(ce(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=Er(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return pn;const r=t.customMerge(e,t);return"function"==typeof r?r:pn})(s,r)(n,t)}else c=Er(i),c.value=ln(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pn=(e,t,r)=>{var n,s,i;const o={...fn,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:fn.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:fn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:fn.objectElementMerge;const c=ae(t);if(!(c===ae(e)))return ln(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vr(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vr(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};pn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new i.Sh:e.reduce(((e,r)=>pn(e,r,t)),un(e[0]))};const hn=pn;const mn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hn(t.meta,e.meta),ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hn(t.attributes,e.attributes))}};const dn=class extends mn{enter(e){return this.element=vr(e),ar}},yn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},vn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:vn(r,[...t,r])},bn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>vn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=vn(s);for(let t of e){let e=vn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(yn(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},gn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),En=(e,t)=>{const r=t.map((e=>vn(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},jn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(En(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==En(n,e)||void 0!==t[n],get:(r,n)=>(En(n,e)||t)[n],set(t,r,n){const s=En(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),xn=null,On="copy",wn="copy",Sn="deep",An=new WeakMap,kn=e=>An.get(e),Pn=(e,t)=>{var r,n;const s=gn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=gn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},_n=(e,t)=>{var r,n,s,i;return{property:Pn(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Pn(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Mn=(e,t)=>{var r,n,s,i,o,c;return{class:gn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:_n(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:_n(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Nn=new Map,Tn=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...vn(e.prototype).map((e=>e.constructor)),...null!==(t=kn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Nn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))},Rn=e=>{let t=Nn.get(e);return t||(t={},Nn.set(e,t)),t};function Fn(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=xn;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};s.push(r)}function o(...t){for(const r of e)yn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===wn?bn(s,o):(c=s,a=o,jn([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===On?bn(e,null,["prototype"]):jn(e,Function.prototype));let u=o;if("none"!==Sn){const s="deep"===Sn?Tn(...e):((...e)=>{const t=e.map((e=>Rn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Mn(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}In(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),In(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,f;return l=u,f=e,An.set(l,f),u}const In=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Cn=c((function(e){return g(wt(vt,0,bt("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const $n=c((function(e){return!Lt(e)}));const Vn=a((function(e,t){return e||t}));var Dn=ct(g(1,$t(Ut,a((function(e,t){return It(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ot(Vn)(e,t)}))(Wt,Rt))));const Ln=Cn([ir,Dn,$n]);const Jn=a((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Bn=class extends mn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Be(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return zt(Rt,["visitors",...e],this.specObj)?Be(["visitors",...e],this.specObj):Be(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof dn&&(null==n?void 0:n.constructor)===dn?vr(t):(Sr(t,n,r),n.element)}};const qn=class extends Bn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ne(n)&&r.includes(an(n))&&!this.ignoredFields.includes(an(n))){const r=this.toRefractedElement([...t,"fixedFields",an(n)],e),o=new i.Pr(vr(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(n))||this.element.content.push(vr(s))})),this.copyMetaAndAttributes(e,this.element),ar}};const zn=class{parent;constructor({parent:e}){this.parent=e}},Gn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nr||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Un=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rr||e(n)&&t("JSONReference",n)&&r("object",n))),Kn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ir||e(n)&&t("media",n)&&r("object",n))),Wn=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $r||e(n)&&t("linkDescription",n)&&r("object",n)));class Hn extends(Fn(qn,zn,dn)){constructor(e){super(e),this.element=new Nr,this.specPath=q(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,qn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(G(this.parent)&&!ne(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Gn(this.parent)&&!ne(e.get("$schema"))){const e=$e(an(this.parent.meta.get("inheritedDialectIdentifier")),an(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?vr(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new i.wE,n=an(e.get(t));Ln(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Yn=Hn,Xn=e=>ce(e)&&e.hasKey("$ref");class Zn extends(Fn(Bn,zn,dn)){ObjectElement(e){const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const Qn=Zn;const es=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ts=function(){return!1};const rs=class extends Bn{specPath;ignoredFields;fieldPatternPredicate=ts;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(an(t))&&this.fieldPatternPredicate(an(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new i.Pr(vr(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(an(t))||this.element.content.push(vr(r))})),this.copyMetaAndAttributes(e,this.element),ar}};const ns=class extends rs{constructor(e){super(e),this.fieldPatternPredicate=Ln}};class ss extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const is=ss;class os extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cs=os;class as extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const us=as;const ls=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const fs=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ps extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const hs=ps;class ms extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const ds=ms;class ys extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}}const vs=ys;class bs extends(Fn(ns,zn,dn)){constructor(e){super(e),this.element=new i.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const gs=bs;class Es extends(Fn(Bn,zn,dn)){constructor(e){super(e),this.element=new i.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),ar}}const js=Es;class xs extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Rr,this.specPath=q(["document","objects","JSONReference"])}ObjectElement(e){const t=qn.prototype.ObjectElement.call(this,e);return ne(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Os=xs;const ws=class extends dn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Ss=Te((function(e,t,r){return g(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const As=c((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var ks=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ps=ks;const _s=c((function(e){return je(0,e)}));const Ms=c(f);const Ns=ct(Dr);const Ts=$t(Jt,$n);function Rs(e){return function(e){if(Array.isArray(e))return Fs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fs(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fs(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Is=Pt(Ps(As((function(e,t){return e.length>t.length}))),_s,De("length")),Cs=Gr((function(e,t,r){var n=r.apply(void 0,Rs(e));return Ns(n)?Ms(n):t}));const $s=Ss(Ts,(function(e){var t=Is(e);return g(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return wt(Cs(r),void 0,e)}))}),z);const Vs=class extends Bn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ss(e,q(t),z))),r=$s(t)(e);return this.element=this.toRefractedElement(r,e),ar}};const Ds=class extends Vs{constructor(e){super(e),this.alternator=[{predicate:Xn,specPath:["document","objects","JSONReference"]},{predicate:en,specPath:["document","objects","JSONSchema"]}]}};class Ls extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Ir,this.specPath=q(["document","objects","Media"])}}const Js=Ls;class Bs extends(Fn(qn,dn)){constructor(e){super(e),this.element=new $r,this.specPath=q(["document","objects","LinkDescription"])}}const qs={visitors:{value:dn,JSONSchemaOrJSONReferenceVisitor:Ds,document:{objects:{JSONSchema:{$visitor:Yn,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Ds,items:Qn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:es,properties:is,additionalProperties:Ds,patternProperties:cs,dependencies:us,enum:ls,type:fs,allOf:hs,anyOf:ds,oneOf:vs,not:Ds,definitions:gs,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:js,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Os,fixedFields:{$ref:ws}},Media:{$visitor:Js,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Bs,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ds,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ds}}}}}},zs=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gs={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},Us={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Nr),t.register("jSONReference",Rr),t.register("media",Ir),t.register("linkDescription",$r),t}},Ks=()=>{const e=rr(Us);return{predicates:{...t,isStringElement:ne},namespace:e}},Ws=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=qs}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:Ks,visitorOptions:{keyMap:Gs,nodeTypeGetter:zs}})},Hs=e=>(t,r={})=>Ws(t,{specPath:e,...r});Nr.refract=Hs(["visitors","document","objects","JSONSchema","$visitor"]),Rr.refract=Hs(["visitors","document","objects","JSONReference","$visitor"]),Ir.refract=Hs(["visitors","document","objects","Media","$visitor"]),$r.refract=Hs(["visitors","document","objects","LinkDescription","$visitor"]);const Ys=class extends Nr{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new ke("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new ke("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Xs=class extends $r{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new ke("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new ke("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new ke("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new ke("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new ke("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}},Zs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ys),t.register("jSONReference",Rr),t.register("media",Ir),t.register("linkDescription",Xs),t}},Qs=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ei={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wr},ti={JSONSchemaDraft6Element:{additionalItems:(...e)=>new Ys(...e),items:(...e)=>new Ys(...e),contains:(...e)=>new Ys(...e),required(...e){const t=new i.wE(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new Ys(...e),patternProperties(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new Ys(...e),enum(...e){const t=new i.wE(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new i.wE(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Ys(...e),definitions(...e){const t=new i.Sh(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new i.wE(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new i.wE(...e);return t.classes.push("json-schema-links"),t},media:(...e)=>new Ir(...e)},LinkDescriptionElement:{hrefSchema:(...e)=>new Ys(...e),targetSchema:(...e)=>new Ys(...e),submissionSchema:(...e)=>new Ys(...e)},"json-schema-properties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Ys(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new Ys(...e)}},"json-schema-links":{"<*>":function(...e){return new Xs(...e)}}},ri=(e,t)=>{const r=Qs(e),n=ti[r]||ti[an(e.classes.first)];return void 0===n?void 0:Object.prototype.hasOwnProperty.call(n,"[key: *]")?n["[key: *]"]:n[t]},ni=()=>()=>({visitor:{StringElement(e,t,r,n,s){if(!(e=>ne(e)&&ge(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,r].filter(re),o=i[i.length-1];let c,a;return ae(o)?(a=e,c=ri(o,"<*>")):ue(o)&&(a=i[i.length-2],c=ri(a,an(o.key))),"function"==typeof c?c.call({context:a},void 0,vr(e.meta),vr(e.attributes)):void 0}}});var si=Te((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Dr(n)&&O(s,n)&&"object"==typeof n[s]?n[s]:Ve(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ve(e)&&u(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));const ii=si;const oi=Te((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));var ci=Te((function(e,t,r){return ii([e],t,r)}));const ai=ci;var ui=a((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Ve(e)&&u(t))return oi(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Ve(e)&&u(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ai(n,e(s,r[n]),r)}}));const li=ui;class fi extends(Fn(qn,zn,dn)){constructor(e){super(e),this.specPath=q(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}ObjectElement(e){return this.element=new Ys,this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,qn.prototype.ObjectElement.call(this,e)}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleDialectIdentifier(e){return Yn.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e,t="$id"){return Yn.prototype.handleSchemaIdentifier.call(this,e,t)}}const pi=fi;class hi extends(Fn(Bn,zn,dn)){ObjectElement(e){const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ar}ArrayElement(e){return this.element=new i.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),ar}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ar}}const mi=hi;const di=class extends dn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};class yi extends(Fn(qn,dn)){constructor(e){super(e),this.element=new Xs,this.specPath=q(["document","objects","LinkDescription"])}}const vi=yi,bi=Pt(ii(["visitors","document","objects","JSONSchema","$visitor"],pi),li(["visitors","document","objects","JSONSchema","fixedFields","id"]),ii(["visitors","document","objects","JSONSchema","fixedFields","$id"],qs.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","contains"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","items"],mi),ii(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),ii(["visitors","document","objects","JSONSchema","fixedFields","const"],qs.visitors.value),ii(["visitors","document","objects","JSONSchema","fixedFields","examples"],di),ii(["visitors","document","objects","LinkDescription","$visitor"],vi),ii(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qs.visitors.JSONSchemaOrJSONReferenceVisitor),li(["visitors","document","objects","LinkDescription","fixedFields","method"]),li(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ii(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],qs.visitors.value))(qs),gi=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),Ei=te((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("linkDescription",n)&&r("object",n))),ji=()=>{const e=rr(Zs);return{predicates:{...s,isStringElement:ne},namespace:e}},xi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bi}={})=>{const s=(0,i.e)(e),o=Qr(n),c=new(Be(t,o))({specObj:o});return Sr(s,c),kr(c.element,r,{toolboxCreator:ji,visitorOptions:{keyMap:ei,nodeTypeGetter:Qs}})},Oi=e=>(t,r={})=>xi(t,{specPath:e,...r}),wi=xi})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-ns-json-schema-draft-6",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "JSON Schema Draft 6 namespace for ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
45
|
-
"@swagger-api/apidom-core": "^1.0.0-beta.
|
|
46
|
-
"@swagger-api/apidom-error": "^1.0.0-beta.
|
|
47
|
-
"@swagger-api/apidom-ns-json-schema-draft-4": "^1.0.0-beta.
|
|
45
|
+
"@swagger-api/apidom-core": "^1.0.0-beta.7",
|
|
46
|
+
"@swagger-api/apidom-error": "^1.0.0-beta.7",
|
|
47
|
+
"@swagger-api/apidom-ns-json-schema-draft-4": "^1.0.0-beta.7",
|
|
48
48
|
"@types/ramda": "~0.30.0",
|
|
49
49
|
"ramda": "~0.30.0",
|
|
50
50
|
"ramda-adjunct": "^5.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"README.md",
|
|
61
61
|
"CHANGELOG.md"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f0057bba46dc55369b7403cdaf565f44ad4a2267"
|
|
64
64
|
}
|
package/src/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
|
4
4
|
var _interopRequireWildcard = require("@babel/runtime-corejs3/helpers/interopRequireWildcard").default;
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.specificationObj = exports.refractorPluginReplaceEmptyElement = exports.refract = exports.mediaTypes = exports.keyMap = exports.isStringElement = exports.isRefElement = exports.isObjectElement = exports.isNumberElement = exports.isNullElement = exports.isMemberElement = exports.isMediaElement = exports.isLinkElement = exports.isLinkDescriptionElement = exports.isJSONSchemaElement = exports.isJSONReferenceLikeElement = exports.isJSONReferenceElement = exports.isElement = exports.isBooleanElement = exports.isArrayElement = exports.getNodeType = exports.default = exports.createRefractor = exports.Visitor = exports.SpecificationVisitor = exports.PatternedFieldsVisitor = exports.ParentSchemaAwareVisitor = exports.MediaElement = exports.MapVisitor = exports.LinkDescriptionElement = exports.JSONSchemaElement = exports.JSONSchemaDraft6MediaTypes = exports.JSONReferenceElement = exports.FixedFieldsVisitor = exports.FallbackVisitor = exports.AlternatingVisitor = void 0;
|
|
6
|
+
exports.specificationObj = exports.refractorPluginReplaceEmptyElement = exports.refract = exports.mediaTypes = exports.keyMap = exports.isStringElement = exports.isRefElement = exports.isObjectElement = exports.isNumberElement = exports.isNullElement = exports.isMemberElement = exports.isMediaElement = exports.isLinkElement = exports.isLinkDescriptionElement = exports.isJSONSchemaElement = exports.isJSONReferenceLikeElement = exports.isJSONReferenceElement = exports.isElement = exports.isBooleanElement = exports.isArrayElement = exports.getNodeType = exports.default = exports.createRefractor = exports.Visitor = exports.SpecificationVisitor = exports.PatternedFieldsVisitor = exports.ParentSchemaAwareVisitor = exports.MediaElement = exports.MapVisitor = exports.LinkDescriptionElement = exports.JSONSchemaVisitor = exports.JSONSchemaElement = exports.JSONSchemaDraft6MediaTypes = exports.JSONReferenceElement = exports.FixedFieldsVisitor = exports.FallbackVisitor = exports.AlternatingVisitor = void 0;
|
|
7
7
|
var _apidomCore = require("@swagger-api/apidom-core");
|
|
8
8
|
exports.isRefElement = _apidomCore.isRefElement;
|
|
9
9
|
exports.isLinkElement = _apidomCore.isLinkElement;
|
|
@@ -44,6 +44,8 @@ exports.ParentSchemaAwareVisitor = _apidomNsJsonSchemaDraft.ParentSchemaAwareVis
|
|
|
44
44
|
exports.Visitor = _apidomNsJsonSchemaDraft.Visitor;
|
|
45
45
|
exports.JSONReferenceElement = _apidomNsJsonSchemaDraft.JSONReferenceElement;
|
|
46
46
|
exports.MediaElement = _apidomNsJsonSchemaDraft.MediaElement;
|
|
47
|
+
var _index2 = _interopRequireDefault(require("./refractor/visitors/json-schema/index.cjs"));
|
|
48
|
+
exports.JSONSchemaVisitor = _index2.default;
|
|
47
49
|
var _visitor = require("./traversal/visitor.cjs");
|
|
48
50
|
exports.keyMap = _visitor.keyMap;
|
|
49
51
|
exports.getNodeType = _visitor.getNodeType;
|
package/src/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ export { default as refract, createRefractor } from "./refractor/index.mjs";
|
|
|
7
7
|
export { default as specificationObj } from "./refractor/specification.mjs";
|
|
8
8
|
export { isJSONReferenceElement, isJSONSchemaElement, isLinkDescriptionElement, isMediaElement } from "./predicates.mjs";
|
|
9
9
|
export { isJSONReferenceLikeElement, SpecificationVisitor, FallbackVisitor, FixedFieldsVisitor, PatternedFieldsVisitor, MapVisitor, AlternatingVisitor, ParentSchemaAwareVisitor, Visitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
10
|
+
export { default as JSONSchemaVisitor } from "./refractor/visitors/json-schema/index.mjs";
|
|
10
11
|
export { keyMap, getNodeType } from "./traversal/visitor.mjs";
|
|
11
12
|
/**
|
|
12
13
|
* JSON Schema Draft 6 specification elements.
|
|
@@ -14,13 +14,23 @@ var _JSONSchema = _interopRequireDefault(require("../../../elements/JSONSchema.c
|
|
|
14
14
|
/**
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
class JSONSchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
17
|
+
class JSONSchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.FixedFieldsVisitor, _apidomNsJsonSchemaDraft.ParentSchemaAwareVisitor, _apidomNsJsonSchemaDraft.FallbackVisitor) {
|
|
18
18
|
constructor(options) {
|
|
19
19
|
super(options);
|
|
20
20
|
this.specPath = (0, _ramda.always)(['document', 'objects', 'JSONSchema']);
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line class-methods-use-this
|
|
24
|
+
get defaultDialectIdentifier() {
|
|
25
|
+
return 'http://json-schema.org/draft-06/schema#';
|
|
26
|
+
}
|
|
22
27
|
ObjectElement(objectElement) {
|
|
23
28
|
this.element = new _JSONSchema.default();
|
|
29
|
+
this.handleDialectIdentifier(objectElement);
|
|
30
|
+
this.handleSchemaIdentifier(objectElement);
|
|
31
|
+
|
|
32
|
+
// for further processing consider this Schema Element as parent for all embedded Schema Elements
|
|
33
|
+
this.parent = this.element;
|
|
24
34
|
return _apidomNsJsonSchemaDraft.FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
|
|
25
35
|
}
|
|
26
36
|
BooleanElement(booleanElement) {
|
|
@@ -28,5 +38,11 @@ class JSONSchemaVisitor extends (0, _tsMixer.Mixin)(_apidomNsJsonSchemaDraft.Fix
|
|
|
28
38
|
this.element.classes.push('boolean-json-schema');
|
|
29
39
|
return result;
|
|
30
40
|
}
|
|
41
|
+
handleDialectIdentifier(objectElement) {
|
|
42
|
+
return _apidomNsJsonSchemaDraft.JSONSchemaVisitor.prototype.handleDialectIdentifier.call(this, objectElement);
|
|
43
|
+
}
|
|
44
|
+
handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
|
|
45
|
+
return _apidomNsJsonSchemaDraft.JSONSchemaVisitor.prototype.handleSchemaIdentifier.call(this, objectElement, identifierKeyword);
|
|
46
|
+
}
|
|
31
47
|
}
|
|
32
48
|
var _default = exports.default = JSONSchemaVisitor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mixin } from 'ts-mixer';
|
|
2
2
|
import { always } from 'ramda';
|
|
3
|
-
import { FixedFieldsVisitor, FallbackVisitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
3
|
+
import { FixedFieldsVisitor, ParentSchemaAwareVisitor, FallbackVisitor, JSONSchemaVisitor as JSONSchemaDraft4Visitor } from '@swagger-api/apidom-ns-json-schema-draft-4';
|
|
4
4
|
import JSONSchemaElement from "../../../elements/JSONSchema.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -8,13 +8,23 @@ import JSONSchemaElement from "../../../elements/JSONSchema.mjs";
|
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
class JSONSchemaVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
11
|
+
class JSONSchemaVisitor extends Mixin(FixedFieldsVisitor, ParentSchemaAwareVisitor, FallbackVisitor) {
|
|
12
12
|
constructor(options) {
|
|
13
13
|
super(options);
|
|
14
14
|
this.specPath = always(['document', 'objects', 'JSONSchema']);
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line class-methods-use-this
|
|
18
|
+
get defaultDialectIdentifier() {
|
|
19
|
+
return 'http://json-schema.org/draft-06/schema#';
|
|
20
|
+
}
|
|
16
21
|
ObjectElement(objectElement) {
|
|
17
22
|
this.element = new JSONSchemaElement();
|
|
23
|
+
this.handleDialectIdentifier(objectElement);
|
|
24
|
+
this.handleSchemaIdentifier(objectElement);
|
|
25
|
+
|
|
26
|
+
// for further processing consider this Schema Element as parent for all embedded Schema Elements
|
|
27
|
+
this.parent = this.element;
|
|
18
28
|
return FixedFieldsVisitor.prototype.ObjectElement.call(this, objectElement);
|
|
19
29
|
}
|
|
20
30
|
BooleanElement(booleanElement) {
|
|
@@ -22,5 +32,11 @@ class JSONSchemaVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) {
|
|
|
22
32
|
this.element.classes.push('boolean-json-schema');
|
|
23
33
|
return result;
|
|
24
34
|
}
|
|
35
|
+
handleDialectIdentifier(objectElement) {
|
|
36
|
+
return JSONSchemaDraft4Visitor.prototype.handleDialectIdentifier.call(this, objectElement);
|
|
37
|
+
}
|
|
38
|
+
handleSchemaIdentifier(objectElement, identifierKeyword = '$id') {
|
|
39
|
+
return JSONSchemaDraft4Visitor.prototype.handleSchemaIdentifier.call(this, objectElement, identifierKeyword);
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
42
|
export default JSONSchemaVisitor;
|
|
@@ -261,16 +261,19 @@ export declare class JSONSchemaVisitor extends JSONSchemaVisitor_base {
|
|
|
261
261
|
element: JSONSchemaElement;
|
|
262
262
|
protected readonly specPath: SpecPath<['document', 'objects', 'JSONSchema']>;
|
|
263
263
|
constructor(options: JSONSchemaVisitorOptions);
|
|
264
|
+
get defaultDialectIdentifier(): string;
|
|
264
265
|
ObjectElement(objectElement: ObjectElement): {};
|
|
265
266
|
BooleanElement(booleanElement: BooleanElement): {};
|
|
267
|
+
handleDialectIdentifier(objectElement: ObjectElement): void;
|
|
268
|
+
handleSchemaIdentifier(objectElement: ObjectElement, identifierKeyword?: string): void;
|
|
266
269
|
}
|
|
267
270
|
|
|
268
|
-
declare const JSONSchemaVisitor_base: Class<any[], FixedFieldsVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof FallbackVisitor>;
|
|
271
|
+
declare const JSONSchemaVisitor_base: Class<any[], FixedFieldsVisitor & ParentSchemaAwareVisitor & FallbackVisitor, typeof FixedFieldsVisitor & typeof ParentSchemaAwareVisitor & typeof FallbackVisitor>;
|
|
269
272
|
|
|
270
273
|
/**
|
|
271
274
|
* @public
|
|
272
275
|
*/
|
|
273
|
-
export declare interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {
|
|
276
|
+
export declare interface JSONSchemaVisitorOptions extends FixedFieldsVisitorOptions, ParentSchemaAwareVisitorOptions, FallbackVisitorOptions {
|
|
274
277
|
}
|
|
275
278
|
|
|
276
279
|
/**
|