@redocly/reef 0.140.0-next.9 → 0.140.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/client/templates/api-docs/helpers.js +3 -3
  3. package/dist/compiled/svgo/svgo-node.js +1 -1
  4. package/dist/constants/common.d.ts +2 -0
  5. package/dist/constants/common.js +1 -1
  6. package/dist/constants/l10n/langs/ar.js +1 -1
  7. package/dist/constants/l10n/langs/de.js +1 -1
  8. package/dist/constants/l10n/langs/en.js +1 -1
  9. package/dist/constants/l10n/langs/es.js +1 -1
  10. package/dist/constants/l10n/langs/fr.js +1 -1
  11. package/dist/constants/l10n/langs/hi.js +1 -1
  12. package/dist/constants/l10n/langs/it.js +1 -1
  13. package/dist/constants/l10n/langs/ja.js +1 -1
  14. package/dist/constants/l10n/langs/ko.js +1 -1
  15. package/dist/constants/l10n/langs/pl.js +1 -1
  16. package/dist/constants/l10n/langs/pt-BR.js +1 -1
  17. package/dist/constants/l10n/langs/pt.js +1 -1
  18. package/dist/constants/l10n/langs/ru.js +1 -1
  19. package/dist/constants/l10n/langs/uk.js +1 -1
  20. package/dist/constants/l10n/langs/zh.js +1 -1
  21. package/dist/server/constants/entitlements.js +1 -1
  22. package/dist/server/entitlements/entitlements-provider.d.ts +4 -0
  23. package/dist/server/entitlements/entitlements-provider.js +1 -1
  24. package/dist/server/entitlements/plan-denied-markdoc-tags.d.ts +6 -0
  25. package/dist/server/entitlements/plan-denied-markdoc-tags.js +1 -0
  26. package/dist/server/esbuild/plugins/styled-components-ssr.js +1 -1
  27. package/dist/server/fs/fast-mtime.js +3 -3
  28. package/dist/server/plugins/analytics/amplitude/index.js +1 -1
  29. package/dist/server/plugins/analytics/ga/build-scripts.js +6 -6
  30. package/dist/server/plugins/api-docs/index.js +1 -1
  31. package/dist/server/plugins/api-docs/search/get-ai-search-documents.js +23 -23
  32. package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js +1 -1
  33. package/dist/server/plugins/markdown/attribute-resolvers/resolve-openapi-code-samples.js +1 -1
  34. package/dist/server/plugins/markdown/compiler.d.ts +3 -3
  35. package/dist/server/plugins/markdown/compiler.js +1 -1
  36. package/dist/server/plugins/markdown/markdoc/markdoc-options.d.ts +2 -0
  37. package/dist/server/plugins/markdown/markdoc/markdoc-options.js +1 -1
  38. package/dist/server/plugins/mcp/custom-tools/scan-custom-tools.d.ts +4 -1
  39. package/dist/server/plugins/mcp/custom-tools/scan-custom-tools.js +1 -1
  40. package/dist/server/plugins/mcp/index.js +1 -1
  41. package/dist/server/plugins/mcp/types.d.ts +1 -0
  42. package/dist/server/store.d.ts +3 -0
  43. package/dist/server/store.js +1 -1
  44. package/dist/server/tools/notifiers/logger.d.ts +4 -0
  45. package/dist/server/tools/notifiers/reporter.js +1 -1
  46. package/dist/server/types/plugins/common.d.ts +3 -0
  47. package/dist/server/utils/errors.d.ts +3 -0
  48. package/dist/server/utils/errors.js +1 -1
  49. package/dist/server/utils/globs.d.ts +12 -0
  50. package/dist/server/utils/globs.js +1 -1
  51. package/dist/server/web-server/auth.d.ts +1 -0
  52. package/dist/server/web-server/auth.js +3 -3
  53. package/dist/server/web-server/routes/catalog/helpers/create-entity-schema.d.ts +1756 -1756
  54. package/dist/server/web-server/routes/catalog/helpers/create-entity-update-schema.d.ts +295 -295
  55. package/dist/server/web-server/routes/error.js +1 -1
  56. package/dist/types/entitlements.d.ts +4 -0
  57. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,171 @@
1
1
  # @redocly/reef
2
2
 
3
+ ## 0.140.1
4
+
5
+ ### Patch Changes
6
+
7
+ - da7da9cf1f6: Fixed "Last updated" dates that showed the build time instead of the date of the last change.
8
+ - Updated dependencies [e1adc81a31f]
9
+ - Updated dependencies [7f557d312cf]
10
+ - @redocly/theme@0.72.1
11
+ - @redocly/api-docs@0.5.1
12
+
13
+ ## 0.140.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 1427a7a148b: Added support for GitHub alert syntax in Markdown pages: `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, and `> [!CAUTION]` render as admonitions.
18
+ - 5b82f282c92: Deprecated the `mcp.docs` object and moved its options, such as `name` and `ignore`, to `mcp`.
19
+ Projects that use `mcp.docs` still build, with a warning in the build log.
20
+ - c99079a7487: Renamed the `reunite` option and the `access.rbac.reunite` scope in `redocly.yaml` to `platform` and deprecated the old names.
21
+ Using the old names does not fail the build, but produces warnings in the build log.
22
+ - e3bec3465eb: Changed the **Open in Claude** and **Open in ChatGPT** actions of the `prompt` Markdoc tag to open the desktop apps instead of the web chats.
23
+ **Open in Claude** starts a Claude Code session in the Claude desktop app.
24
+ - f2bf486bc39: Improved the design of the `prompt` Markdoc tag: **Copy prompt** is the main button, and its menu lists the `actions` with their icons on the menu button.
25
+ Without a `title` configuration, the prompt text appears in the header.
26
+ - 1427a7a148b: Switched Markdoc to `@redocly/markdoc`, Redocly's fork of Markdoc.
27
+ Custom tags that import from `@markdoc/markdoc` keep working.
28
+ - fe438812a35: Added the `alt` attribute to the `inline-svg` Markdoc tag, which gives the SVG an accessible name for people who use assistive technologies.
29
+
30
+ ### Patch Changes
31
+
32
+ - 47256e6aa0a: Fixed an issue in Firefox that caused the last message in an AI assistant conversation to overlap the input field when scrolling.
33
+ - ec87f4122da: Fixed keyboard and screen reader issues in the sidebar, Markdoc tabs, switches, select fields, search, and Replay.
34
+ For example, the arrow keys switch Markdoc tabs without a mouse click first, and the `Space` key expands sidebar groups and toggles switches.
35
+ - b16218c06df: Fixed security vulnerability `CVE-2026-111757` by upgrading `hono` to version `4.13.13`.
36
+ - 7e43e310476: Updated `@redocly/openapi-core` to version `2.73.0`.
37
+ - dc825f9c248: Improved keyboard navigation in catalog entity version history.
38
+ The arrow keys open the version list and move between versions, the `Escape` key closes the list, and the focused version shows a focus ring.
39
+ - ab7e3992a5a: Fixed an issue where the AI assistant chat jumped to the end of the conversation while a response was streaming, even after the user scrolled up to read earlier messages.
40
+ - fee19712620: Fixed an issue where reaction-specific reasons in page feedback forms did not use the configured labels or components.
41
+ - fee19712620: Fixed an issue where the `rating` and `sentiment` page feedback forms accepted invalid email addresses without prompting users to correct them.
42
+ - fee19712620: Improved page feedback forms so that screen readers announce the comment and email fields with their labels.
43
+ - fee19712620: Fixed an issue where the `mood` page feedback form did not show its reaction-specific default comment label when `comment` was not configured.
44
+ - fee19712620: Fixed an issue where the `sentiment` and `mood` page feedback forms sent the reasons a user selected for one reaction after they switched to another reaction.
45
+ - fee19712620: Fixed the **Cancel** button in the `scale` page feedback form so it uses the same translation key as other feedback forms. If you translated `feedback.settings.comment.cancel` for this button, move that translation to `feedback.cancel`.
46
+ - ff91adf1e0d: Fixed security vulnerabilities `GHSA-cg2g-xh64-v4q7`, `GHSA-mrv2-3pqr-j5jr` and `GHSA-c6gr-qvv4-5v3f` by upgrading `dompurify` to version `3.4.17`.
47
+ - 725184fbef9: Fixed an issue where the Docs MCP setup snippets gave every site without `mcp.name` the same server name, which caused a name conflict in the MCP client when users connected more than one site.
48
+ If `mcp.name` is not set, the server name is based on the site's domain.
49
+ - 5dbc15ee73c: Fixed a security vulnerability that could allow a request to the Docs MCP server to consume excessive memory.
50
+ - aaa4a966832: Fixed security vulnerabilities `GHSA-jm63-cq47-j5jp`, `GHSA-46jr-4wx8-v453` and `GHSA-rvq5-wwqv-78pq` by upgrading `@modelcontextprotocol/server` to version `2.3.1`.
51
+ - d7d79acc8df: Extended how long MCP clients stay signed in to the authenticated Docs MCP server from 24 hours to 30 days when the identity provider issues refresh tokens.
52
+ Without refresh tokens, sessions still expire after 24 hours.
53
+ - 694a8c8c663: Fixed security vulnerability `GHSA-g3hv-75wg-m249` by upgrading `minimatch` to version `11.0.3`.
54
+ - c248752dc08: Improved how fast the mobile menu, search, and other dialogs open on touch devices.
55
+ - d748a5fec1e: Fixed an issue where OIDC login failed with a misleading `400 Invalid JSON` error when the identity provider returned an error status or a non-JSON response, such as an "Access Denied" page from a firewall.
56
+ The login returns a `502 Bad Gateway` error, and the server logs show the identity provider host and the HTTP status of its response.
57
+ - a879730b94d: Fixed an issue where pages translated with the browser translation feature, such as API docs pages, displayed an error.
58
+ - 2f973409954: Fixed an issue where the `connect-mcp` Markdoc tag displayed a connect button on sites that don't serve an MCP server.
59
+ - 1427a7a148b: Fixed raw HTML in Markdown pages and API descriptions: boolean attributes such as `<details open>` take effect, and `style` values that contain semicolons, such as data URLs, are kept.
60
+ - a0fb842a056: Fixed an issue where the project's `@theme` styles and theme overrides did not load when `@redocly/theme` was installed inside the product package instead of the project root.
61
+ - 255f805d4fa: Improved page load performance so that pages respond to clicks and taps sooner.
62
+ The search dialog loads in the background after the page loads, and the code snippet report form loads the first time a user opens it.
63
+ - 6d3be784ce5: Fixed keyboard access in select fields: the arrow keys move through the options, `Escape` closes the list, and a click in a searchable select field lets users type a search right away.
64
+ - 95be56a3591: Fixed an issue where Visual review in Reunite showed a sign-in redirect loop for login-protected projects in browsers that block third-party cookies, such as Safari, Firefox, and Brave.
65
+ - 95be56a3591: Improved the security of the Reunite Visual review sign-in for login-protected projects: Reunite no longer passes the session token in the URL.
66
+ - a411f1866fb: Fixed security vulnerability `GHSA-mrhx-c7xc-m3w5` by upgrading `zod` to version `4.6.6`.
67
+ - Updated dependencies [47256e6aa0a]
68
+ - Updated dependencies [6dbe08e9614]
69
+ - Updated dependencies [ec14ccb7311]
70
+ - Updated dependencies [bed4a5f394a]
71
+ - Updated dependencies [193788e3f12]
72
+ - Updated dependencies [6dbe08e9614]
73
+ - Updated dependencies [8bde47c6eaf]
74
+ - Updated dependencies [6d0d8601978]
75
+ - Updated dependencies [42ce6c31eaf]
76
+ - Updated dependencies [adab160d5c4]
77
+ - Updated dependencies [4e12a3d89f3]
78
+ - Updated dependencies [185f2658cab]
79
+ - Updated dependencies [0d8d14bdb7a]
80
+ - Updated dependencies [ec87f4122da]
81
+ - Updated dependencies [7e43e310476]
82
+ - Updated dependencies [dc825f9c248]
83
+ - Updated dependencies [ab7e3992a5a]
84
+ - Updated dependencies [fee19712620]
85
+ - Updated dependencies [fee19712620]
86
+ - Updated dependencies [fee19712620]
87
+ - Updated dependencies [fee19712620]
88
+ - Updated dependencies [fee19712620]
89
+ - Updated dependencies [fee19712620]
90
+ - Updated dependencies [90819702eb9]
91
+ - Updated dependencies [1427a7a148b]
92
+ - Updated dependencies [ff91adf1e0d]
93
+ - Updated dependencies [725184fbef9]
94
+ - Updated dependencies [c248752dc08]
95
+ - Updated dependencies [a879730b94d]
96
+ - Updated dependencies [e3bec3465eb]
97
+ - Updated dependencies [f2bf486bc39]
98
+ - Updated dependencies [2f973409954]
99
+ - Updated dependencies [1427a7a148b]
100
+ - Updated dependencies [1427a7a148b]
101
+ - Updated dependencies [e0b48b15f34]
102
+ - Updated dependencies [ec14ccb7311]
103
+ - Updated dependencies [255f805d4fa]
104
+ - Updated dependencies [6d3be784ce5]
105
+ - Updated dependencies [83f7857579b]
106
+ - Updated dependencies [0a1aff21460]
107
+ - Updated dependencies [fe438812a35]
108
+ - Updated dependencies [a411f1866fb]
109
+ - @redocly/theme@0.72.0
110
+ - @redocly/api-docs@0.5.0
111
+ - @redocly/portal-plugin-mock-server@0.25.0
112
+
113
+ ## 0.140.0-next.13
114
+
115
+ ### Patch Changes
116
+
117
+ - 7e43e310476: Updated `@redocly/openapi-core` to version `2.73.0`.
118
+ - Updated dependencies [8bde47c6eaf]
119
+ - Updated dependencies [7e43e310476]
120
+ - @redocly/api-docs@0.5.0-next.10
121
+ - @redocly/portal-plugin-mock-server@0.25.0-next.3
122
+
123
+ ## 0.140.0-next.12
124
+
125
+ ### Patch Changes
126
+
127
+ - 694a8c8c663: Fixed security vulnerability `GHSA-g3hv-75wg-m249` by upgrading `minimatch` to version `11.0.3`.
128
+ - Updated dependencies [42ce6c31eaf]
129
+ - Updated dependencies [42ce6c31eaf]
130
+ - Updated dependencies [42ce6c31eaf]
131
+ - @redocly/api-docs@0.5.0-next.9
132
+
133
+ ## 0.140.0-next.11
134
+
135
+ ### Patch Changes
136
+
137
+ - 90819702eb9: Fixed an issue where the top items of the page table of contents were hidden under the navbar when a banner was displayed.
138
+ - f1f6907ccbf: Replaced the `enabled` option with `disabled` in `platform.agent` and its duties, review specialists, and custom duties.
139
+ The build reports an error when `platform.agent` uses `enabled` or sets no options.
140
+ - Updated dependencies [6dbe08e9614]
141
+ - Updated dependencies [6dbe08e9614]
142
+ - Updated dependencies [6d0d8601978]
143
+ - Updated dependencies [0d8d14bdb7a]
144
+ - Updated dependencies [90819702eb9]
145
+ - @redocly/api-docs@0.5.0-next.8
146
+ - @redocly/theme@0.72.0-next.7
147
+
148
+ ## 0.140.0-next.10
149
+
150
+ ### Minor Changes
151
+
152
+ - f2bf486bc39: Improved the design of the `prompt` Markdoc tag: **Copy prompt** is the main button, and its menu lists the `actions` with their icons on the menu button.
153
+ Without a `title` configuration, the prompt text appears in the header.
154
+
155
+ ### Patch Changes
156
+
157
+ - ab7e3992a5a: Fixed an issue where the AI assistant chat was jumping to the end of the conversation while a response was streaming, even after the user scrolled up to read earlier messages.
158
+ - d748a5fec1e: Fixed an issue where OIDC login failed with a misleading `400 Invalid JSON` error when the identity provider returned an error status or a non-JSON response, such as an "Access Denied" page from a firewall.
159
+ The login returns a `502 Bad Gateway` error, and the server logs show the identity provider host and the HTTP status of its response.
160
+ - Updated dependencies [ec14ccb7311]
161
+ - Updated dependencies [adab160d5c4]
162
+ - Updated dependencies [f0fb719a80e]
163
+ - Updated dependencies [ab7e3992a5a]
164
+ - Updated dependencies [f2bf486bc39]
165
+ - Updated dependencies [ec14ccb7311]
166
+ - @redocly/api-docs@0.5.0-next.7
167
+ - @redocly/theme@0.72.0-next.6
168
+
3
169
  ## 0.140.0-next.9
4
170
 
5
171
  ### Minor Changes
@@ -1,5 +1,5 @@
1
- import{useMemo as u,useRef as m}from"react";import{components as c}from"@redocly-markdoc/components";import{schema as s}from"@redocly-markdoc/schema";import{withPathPrefix as i}from"@redocly/theme/core/utils";import{tags as p,components as f}from"@redocly/theme/markdoc/default";import*as l from"../../app/markdoc/custom-components/index.js";import{parsePartials as d}from"../../../markdoc/helpers/parse-partials.js";import*as g from"../../../markdoc/nodes/index.js";import w from"../../../markdoc/tags/index.js";import{normalizeCustomTags as h}from"../../../markdoc/helpers/normalize-custom-tags.js";import{deepEqual as y}from"../../../utils/object/deep-equal.js";function b(t){return t.map(r=>{const o={...r};return typeof o.link=="string"&&(o.link=i(o.link)),typeof o.routeSlug=="string"&&(o.routeSlug=i(o.routeSlug)),Array.isArray(o.items)&&(o.items=b(o.items)),o})}function a(t){const r=m(t);return y(r.current,t)||(r.current=t),r.current}function E(t,r){const o=a(t),n=a(r);return u(()=>{const e=globalThis.__LOADER?.markdocComponents??{};return{...n,...o,tags:{...n?.tags??{},...w,...p,...h(s?.tags??{})},nodes:{...n?.nodes??{},...g,...s?.nodes??{}},functions:{...s?.functions??{}},components:{...n?.components??{},...l,...f,...c,...e},partials:d(o?.partials)}},[o,n])}function M(t){if(typeof window>"u")return null;if(typeof t=="function")return t;if(typeof t!="string")return null;try{const r=t.trim();if(!r.match(/^(\([^)]*\)\s*=>\s*\S.*|[a-zA-Z_$][\w$]*\s*=>\s*\S.*)$/))throw new Error("Invalid function format. Only arrow functions allowed.");if(["eval","Function","constructor","prototype","__proto__","import","require","process","global","window","document"].some(e=>r.includes(e)))throw new Error("Function contains prohibited keywords");return new Function("event",`
1
+ import{useMemo as a,useRef as m}from"react";import{components as c}from"@redocly-markdoc/components";import{schema as s}from"@redocly-markdoc/schema";import{ITEM_ROUTE_PATH_KEYS as u}from"@redocly/api-docs/lib/utils/previous-route-slug.js";import{withPathPrefix as p}from"@redocly/theme/core/utils";import{tags as f,components as l}from"@redocly/theme/markdoc/default";import*as d from"../../app/markdoc/custom-components/index.js";import{parsePartials as g}from"../../../markdoc/helpers/parse-partials.js";import*as w from"../../../markdoc/nodes/index.js";import h from"../../../markdoc/tags/index.js";import{normalizeCustomTags as y}from"../../../markdoc/helpers/normalize-custom-tags.js";import{deepEqual as T}from"../../../utils/object/deep-equal.js";function _(r){return r.map(o=>{const t={...o};for(const n of u){const e=t[n];typeof e=="string"&&(t[n]=p(e))}return Array.isArray(t.items)&&(t.items=_(t.items)),t})}function i(r){const o=m(r);return T(o.current,r)||(o.current=r),o.current}function S(r,o){const t=i(r),n=i(o);return a(()=>{const e=globalThis.__LOADER?.markdocComponents??{};return{...n,...t,tags:{...n?.tags??{},...h,...f,...y(s?.tags??{})},nodes:{...n?.nodes??{},...w,...s?.nodes??{}},functions:{...s?.functions??{}},components:{...n?.components??{},...d,...l,...c,...e},partials:g(t?.partials)}},[t,n])}function $(r){if(typeof window>"u")return null;if(typeof r=="function")return r;if(typeof r!="string")return null;try{const o=r.trim();if(!o.match(/^(\([^)]*\)\s*=>\s*\S.*|[a-zA-Z_$][\w$]*\s*=>\s*\S.*)$/))throw new Error("Invalid function format. Only arrow functions allowed.");if(["eval","Function","constructor","prototype","__proto__","import","require","process","global","window","document"].some(e=>o.includes(e)))throw new Error("Function contains prohibited keywords");return new Function("event",`
2
2
  'use strict';
3
- const userFn = ${r};
3
+ const userFn = ${o};
4
4
  return userFn(event);
5
- `)}catch(r){return console.error("Function parsing error:",r),null}}export{b as applyPathPrefixToApiItems,M as safeParseFunction,E as useCollectMarkdocOptions};
5
+ `)}catch(o){return console.error("Function parsing error:",o),null}}export{_ as applyPathPrefixToApiItems,$ as safeParseFunction,S as useCollectMarkdocOptions};
@@ -34,7 +34,7 @@ plugins: [
34
34
  `)}})}e.createCustomError=t}),Pi=z(e=>{"use strict";var t=et(),d=100,y=60,u=" ";function c({source:o,line:r,column:i},s){function h(p,S){return g.slice(p,S).map((x,C)=>String(p+C+1).padStart(a)+" |"+x).join(`
35
35
  `)}let g=o.split(/\r\n?|\n|\f/),f=Math.max(1,r-s)-1,n=Math.min(r+s,g.length+1),a=Math.max(4,String(n).length)+1,m=0;i+=(u.length-1)*(g[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>d&&(m=i-y+3,i=y-2);for(let p=f;p<=n;p++)p>=0&&p<g.length&&(g[p]=g[p].replace(/\t/g,u),g[p]=(m>0&&g[p].length>m?"\u2026":"")+g[p].substr(m,d-2)+(g[p].length>m+d-1?"\u2026":""));return[h(f,r),new Array(i+a+2).join("-")+"^",h(r,n)].filter(Boolean).join(`
36
36
  `)}function l(o,r,i,s,h){return Object.assign(t.createCustomError("SyntaxError",o),{source:r,offset:i,line:s,column:h,sourceFragment(g){return c({source:r,line:s,column:h},isNaN(g)?0:g)},get formattedMessage(){return`Parse error: ${o}
37
- `+c({source:r,line:s,column:h},2)}})}e.SyntaxError=l}),Mi=z(e=>{"use strict";var t=J();function d(y){let u=this.createList(),c=!1,l={recognizer:y};for(;!this.eof;){switch(this.tokenType){case t.Comment:this.next();continue;case t.WhiteSpace:c=!0,this.next();continue}let o=y.getNode.call(this,l);if(o===void 0)break;c&&(y.onWhiteSpace&&y.onWhiteSpace.call(this,o,u,l),c=!1),u.push(o)}return c&&y.onWhiteSpace&&y.onWhiteSpace.call(this,null,u,l),u}e.readSequence=d}),Ni=z(e=>{"use strict";var t=ze(),d=Pi(),y=Ge(),u=Mi(),c=_t(),l=Je(),o=xe(),r=J(),i=Ie(),s=()=>{},h=33,g=35,f=59,n=123,a=0;function m(C){return function(){return this[C]()}}function p(C){let b=Object.create(null);for(let v in C){let k=C[v],w=k.parse||k;w&&(b[v]=w)}return b}function S(C){let b={context:Object.create(null),scope:Object.assign(Object.create(null),C.scope),atrule:p(C.atrule),pseudo:p(C.pseudo),node:p(C.node)};for(let v in C.parseContext)switch(typeof C.parseContext[v]){case"function":b.context[v]=C.parseContext[v];break;case"string":b.context[v]=m(C.parseContext[v]);break}return{config:b,...b,...b.node}}function x(C){let b="",v="<unknown>",k=!1,w=s,E=!1,A=new c.OffsetToLocation,O=Object.assign(new l.TokenStream,S(C||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:u.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(D){return D===n?1:0},consumeUntilLeftCurlyBracketOrSemicolon(D){return D===n||D===f?1:0},consumeUntilExclamationMarkOrSemicolon(D){return D===h||D===f?1:0},consumeUntilSemicolonIncluded(D){return D===f?2:0},createList(){return new t.List},createSingleNodeList(D){return new t.List().appendData(D)},getFirstListNode(D){return D&&D.first},getLastListNode(D){return D&&D.last},parseWithFallback(D,W){let U=this.tokenIndex;try{return D.call(this)}catch(H){if(E)throw H;let R=W.call(this,U);return E=!0,w(H,R),E=!1,R}},lookupNonWSType(D){let W;do if(W=this.lookupType(D++),W!==r.WhiteSpace)return W;while(W!==a);return a},charCodeAt(D){return D>=0&&D<b.length?b.charCodeAt(D):0},substring(D,W){return b.substring(D,W)},substrToCursor(D){return this.source.substring(D,this.tokenStart)},cmpChar(D,W){return o.cmpChar(b,D,W)},cmpStr(D,W,U){return o.cmpStr(b,D,W,U)},consume(D){let W=this.tokenStart;return this.eat(D),this.substrToCursor(W)},consumeFunctionName(){let D=b.substring(this.tokenStart,this.tokenEnd-1);return this.eat(r.Function),D},consumeNumber(D){let W=b.substring(this.tokenStart,o.consumeNumber(b,this.tokenStart));return this.eat(D),W},eat(D){if(this.tokenType!==D){let W=i[D].slice(0,-6).replace(/-/g," ").replace(/^./,R=>R.toUpperCase()),U=`${/[[\](){}]/.test(W)?`"${W}"`:W} is expected`,H=this.tokenStart;switch(D){case r.Ident:this.tokenType===r.Function||this.tokenType===r.Url?(H=this.tokenEnd-1,U="Identifier is expected but function found"):U="Identifier is expected";break;case r.Hash:this.isDelim(g)&&(this.next(),H++,U="Name is expected");break;case r.Percentage:this.tokenType===r.Number&&(H=this.tokenEnd,U="Percent sign is expected");break}this.error(U,H)}this.next()},eatIdent(D){(this.tokenType!==r.Ident||this.lookupValue(0,D)===!1)&&this.error(`Identifier "${D}" is expected`),this.next()},eatDelim(D){this.isDelim(D)||this.error(`Delim "${String.fromCharCode(D)}" is expected`),this.next()},getLocation(D,W){return k?A.getLocationRange(D,W,v):null},getLocationFromList(D){if(k){let W=this.getFirstListNode(D),U=this.getLastListNode(D);return A.getLocationRange(W!==null?W.loc.start.offset-A.startOffset:this.tokenStart,U!==null?U.loc.end.offset-A.startOffset:this.tokenStart,v)}return null},error(D,W){let U=typeof W<"u"&&W<b.length?A.getLocation(W):this.eof?A.getLocation(o.findWhiteSpaceStart(b,b.length-1)):A.getLocation(this.tokenStart);throw new d.SyntaxError(D||"Unexpected input",b,U.offset,U.line,U.column)}});return Object.assign(function(D,W){b=D,W=W||{},O.setSource(b,y.tokenize),A.setSource(b,W.offset,W.line,W.column),v=W.filename||"<unknown>",k=!!W.positions,w=typeof W.onParseError=="function"?W.onParseError:s,E=!1,O.parseAtrulePrelude="parseAtrulePrelude"in W?!!W.parseAtrulePrelude:!0,O.parseRulePrelude="parseRulePrelude"in W?!!W.parseRulePrelude:!0,O.parseValue="parseValue"in W?!!W.parseValue:!0,O.parseCustomProperty="parseCustomProperty"in W?!!W.parseCustomProperty:!1;let{context:U="default",onComment:H}=W;if(!(U in O.context))throw new Error("Unknown context `"+U+"`");typeof H=="function"&&O.forEachToken((_,M,j)=>{if(_===r.Comment){let K=O.getLocation(M,j),I=o.cmpStr(b,j-2,j,"*/")?b.slice(M+2,j-2):b.slice(M+2,j);H(I,K)}});let R=O.context[U].call(O,W);return O.eof||O.error(),R},{SyntaxError:d.SyntaxError,config:O.config})}e.createParser=x}),Ri=z(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(d){if(0<=d&&d<t.length)return t[d];throw new TypeError("Must be between 0 and 63: "+d)},e.decode=function(d){var y=65,u=90,c=97,l=122,o=48,r=57,i=43,s=47,h=26,g=52;return y<=d&&d<=u?d-y:c<=d&&d<=l?d-c+h:o<=d&&d<=r?d-o+g:d==i?62:d==s?63:-1}}),Ii=z(e=>{var t=Ri(),d=5,y=1<<d,u=y-1,c=y;function l(r){return r<0?(-r<<1)+1:(r<<1)+0}function o(r){var i=(r&1)===1,s=r>>1;return i?-s:s}e.encode=function(r){var i="",s,h=l(r);do s=h&u,h>>>=d,h>0&&(s|=c),i+=t.encode(s);while(h>0);return i},e.decode=function(r,i,s){var h=r.length,g=0,f=0,n,a;do{if(i>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(a=t.decode(r.charCodeAt(i++)),a===-1)throw new Error("Invalid base64 digit: "+r.charAt(i-1));n=!!(a&c),a&=u,g=g+(a<<f),f+=d}while(n);s.value=o(g),s.rest=i}}),tt=z(e=>{function t(w,E,A){if(E in w)return w[E];if(arguments.length===3)return A;throw new Error('"'+E+'" is a required argument.')}e.getArg=t;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,y=/^data:.+\,.+$/;function u(w){var E=w.match(d);return E?{scheme:E[1],auth:E[2],host:E[3],port:E[4],path:E[5]}:null}e.urlParse=u;function c(w){var E="";return w.scheme&&(E+=w.scheme+":"),E+="//",w.auth&&(E+=w.auth+"@"),w.host&&(E+=w.host),w.port&&(E+=":"+w.port),w.path&&(E+=w.path),E}e.urlGenerate=c;var l=32;function o(w){var E=[];return function(A){for(var O=0;O<E.length;O++)if(E[O].input===A){var D=E[0];return E[0]=E[O],E[O]=D,E[0].result}var W=w(A);return E.unshift({input:A,result:W}),E.length>l&&E.pop(),W}}var r=o(function(w){var E=w,A=u(w);if(A){if(!A.path)return w;E=A.path}for(var O=e.isAbsolute(E),D=[],W=0,U=0;;)if(W=U,U=E.indexOf("/",W),U===-1){D.push(E.slice(W));break}else for(D.push(E.slice(W,U));U<E.length&&E[U]==="/";)U++;for(var H,R=0,U=D.length-1;U>=0;U--)H=D[U],H==="."?D.splice(U,1):H===".."?R++:R>0&&(H===""?(D.splice(U+1,R),R=0):(D.splice(U,2),R--));return E=D.join("/"),E===""&&(E=O?"/":"."),A?(A.path=E,c(A)):E});e.normalize=r;function i(w,E){w===""&&(w="."),E===""&&(E=".");var A=u(E),O=u(w);if(O&&(w=O.path||"/"),A&&!A.scheme)return O&&(A.scheme=O.scheme),c(A);if(A||E.match(y))return E;if(O&&!O.host&&!O.path)return O.host=E,c(O);var D=E.charAt(0)==="/"?E:r(w.replace(/\/+$/,"")+"/"+E);return O?(O.path=D,c(O)):D}e.join=i,e.isAbsolute=function(w){return w.charAt(0)==="/"||d.test(w)};function s(w,E){w===""&&(w="."),w=w.replace(/\/$/,"");for(var A=0;E.indexOf(w+"/")!==0;){var O=w.lastIndexOf("/");if(O<0||(w=w.slice(0,O),w.match(/^([^\/]+:\/)?\/*$/)))return E;++A}return Array(A+1).join("../")+E.substr(w.length+1)}e.relative=s;var h=(function(){var w=Object.create(null);return!("__proto__"in w)})();function g(w){return w}function f(w){return a(w)?"$"+w:w}e.toSetString=h?g:f;function n(w){return a(w)?w.slice(1):w}e.fromSetString=h?g:n;function a(w){if(!w)return!1;var E=w.length;if(E<9||w.charCodeAt(E-1)!==95||w.charCodeAt(E-2)!==95||w.charCodeAt(E-3)!==111||w.charCodeAt(E-4)!==116||w.charCodeAt(E-5)!==111||w.charCodeAt(E-6)!==114||w.charCodeAt(E-7)!==112||w.charCodeAt(E-8)!==95||w.charCodeAt(E-9)!==95)return!1;for(var A=E-10;A>=0;A--)if(w.charCodeAt(A)!==36)return!1;return!0}function m(w,E,A){var O=C(w.source,E.source);return O!==0||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositions=m;function p(w,E,A){var O;return O=w.originalLine-E.originalLine,O!==0||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositionsNoSource=p;function S(w,E,A){var O=w.generatedLine-E.generatedLine;return O!==0||(O=w.generatedColumn-E.generatedColumn,O!==0||A)||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflated=S;function x(w,E,A){var O=w.generatedColumn-E.generatedColumn;return O!==0||A||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function C(w,E){return w===E?0:w===null?1:E===null?-1:w>E?1:-1}function b(w,E){var A=w.generatedLine-E.generatedLine;return A!==0||(A=w.generatedColumn-E.generatedColumn,A!==0)||(A=C(w.source,E.source),A!==0)||(A=w.originalLine-E.originalLine,A!==0)||(A=w.originalColumn-E.originalColumn,A!==0)?A:C(w.name,E.name)}e.compareByGeneratedPositionsInflated=b;function v(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function k(w,E,A){if(E=E||"",w&&(w[w.length-1]!=="/"&&E[0]!=="/"&&(w+="/"),E=w+E),A){var O=u(A);if(!O)throw new Error("sourceMapURL could not be parsed");if(O.path){var D=O.path.lastIndexOf("/");D>=0&&(O.path=O.path.substring(0,D+1))}E=i(c(O),E)}return r(E)}e.computeSourceURL=k}),Gi=z(e=>{var t=tt(),d=Object.prototype.hasOwnProperty,y=typeof Map<"u";function u(){this._array=[],this._set=y?new Map:Object.create(null)}u.fromArray=function(c,l){for(var o=new u,r=0,i=c.length;r<i;r++)o.add(c[r],l);return o},u.prototype.size=function(){return y?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(c,l){var o=y?c:t.toSetString(c),r=y?this.has(c):d.call(this._set,o),i=this._array.length;(!r||l)&&this._array.push(c),r||(y?this._set.set(c,i):this._set[o]=i)},u.prototype.has=function(c){if(y)return this._set.has(c);var l=t.toSetString(c);return d.call(this._set,l)},u.prototype.indexOf=function(c){if(y){var l=this._set.get(c);if(l>=0)return l}else{var o=t.toSetString(c);if(d.call(this._set,o))return this._set[o]}throw new Error('"'+c+'" is not in the set.')},u.prototype.at=function(c){if(c>=0&&c<this._array.length)return this._array[c];throw new Error("No element indexed by "+c)},u.prototype.toArray=function(){return this._array.slice()},e.ArraySet=u}),ji=z(e=>{var t=tt();function d(u,c){var l=u.generatedLine,o=c.generatedLine,r=u.generatedColumn,i=c.generatedColumn;return o>l||o==l&&i>=r||t.compareByGeneratedPositionsInflated(u,c)<=0}function y(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}y.prototype.unsortedForEach=function(u,c){this._array.forEach(u,c)},y.prototype.add=function(u){d(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))},y.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=y}),Lt=z(e=>{var t=Ii(),d=tt(),y=Gi().ArraySet,u=ji().MappingList;function c(l){l||(l={}),this._file=d.getArg(l,"file",null),this._sourceRoot=d.getArg(l,"sourceRoot",null),this._skipValidation=d.getArg(l,"skipValidation",!1),this._ignoreInvalidMapping=d.getArg(l,"ignoreInvalidMapping",!1),this._sources=new y,this._names=new y,this._mappings=new u,this._sourcesContents=null}c.prototype._version=3,c.fromSourceMap=function(l,o){var r=l.sourceRoot,i=new c(Object.assign(o||{},{file:l.file,sourceRoot:r}));return l.eachMapping(function(s){var h={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(h.source=s.source,r!=null&&(h.source=d.relative(r,h.source)),h.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(h.name=s.name)),i.addMapping(h)}),l.sources.forEach(function(s){var h=s;r!==null&&(h=d.relative(r,s)),i._sources.has(h)||i._sources.add(h);var g=l.sourceContentFor(s);g!=null&&i.setSourceContent(s,g)}),i},c.prototype.addMapping=function(l){var o=d.getArg(l,"generated"),r=d.getArg(l,"original",null),i=d.getArg(l,"source",null),s=d.getArg(l,"name",null);!this._skipValidation&&this._validateMapping(o,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:o.line,generatedColumn:o.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))},c.prototype.setSourceContent=function(l,o){var r=l;this._sourceRoot!=null&&(r=d.relative(this._sourceRoot,r)),o!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[d.toSetString(r)]=o):this._sourcesContents&&(delete this._sourcesContents[d.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(l,o,r){var i=o;if(o==null){if(l.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=l.file}var s=this._sourceRoot;s!=null&&(i=d.relative(s,i));var h=new y,g=new y;this._mappings.unsortedForEach(function(f){if(f.source===i&&f.originalLine!=null){var n=l.originalPositionFor({line:f.originalLine,column:f.originalColumn});n.source!=null&&(f.source=n.source,r!=null&&(f.source=d.join(r,f.source)),s!=null&&(f.source=d.relative(s,f.source)),f.originalLine=n.line,f.originalColumn=n.column,n.name!=null&&(f.name=n.name))}var a=f.source;a!=null&&!h.has(a)&&h.add(a);var m=f.name;m!=null&&!g.has(m)&&g.add(m)},this),this._sources=h,this._names=g,l.sources.forEach(function(f){var n=l.sourceContentFor(f);n!=null&&(r!=null&&(f=d.join(r,f)),s!=null&&(f=d.relative(s,f)),this.setSourceContent(f,n))},this)},c.prototype._validateMapping=function(l,o,r,i){if(o&&typeof o.line!="number"&&typeof o.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(l&&"line"in l&&"column"in l&&l.line>0&&l.column>=0&&!o&&!r&&!i)){if(l&&"line"in l&&"column"in l&&o&&"line"in o&&"column"in o&&l.line>0&&l.column>=0&&o.line>0&&o.column>=0&&r)return;var s="Invalid mapping: "+JSON.stringify({generated:l,source:r,original:o,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}},c.prototype._serializeMappings=function(){for(var l=0,o=1,r=0,i=0,s=0,h=0,g="",f,n,a,m,p=this._mappings.toArray(),S=0,x=p.length;S<x;S++){if(n=p[S],f="",n.generatedLine!==o)for(l=0;n.generatedLine!==o;)f+=";",o++;else if(S>0){if(!d.compareByGeneratedPositionsInflated(n,p[S-1]))continue;f+=","}f+=t.encode(n.generatedColumn-l),l=n.generatedColumn,n.source!=null&&(m=this._sources.indexOf(n.source),f+=t.encode(m-h),h=m,f+=t.encode(n.originalLine-1-i),i=n.originalLine-1,f+=t.encode(n.originalColumn-r),r=n.originalColumn,n.name!=null&&(a=this._names.indexOf(n.name),f+=t.encode(a-s),s=a)),g+=f}return g},c.prototype._generateSourcesContent=function(l,o){return l.map(function(r){if(!this._sourcesContents)return null;o!=null&&(r=d.relative(o,r));var i=d.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},c.prototype.toJSON=function(){var l={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(l.file=this._file),this._sourceRoot!=null&&(l.sourceRoot=this._sourceRoot),this._sourcesContents&&(l.sourcesContent=this._generateSourcesContent(l.sources,l.sourceRoot)),l},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=c}),Ui=z(e=>{"use strict";var t=Lt(),d=new Set(["Atrule","Selector","Declaration"]);function y(u){let c=new t.SourceMapGenerator,l={line:1,column:0},o={line:0,column:0},r={line:1,column:0},i={generated:r},s=1,h=0,g=!1,f=u.node;u.node=function(m){if(m.loc&&m.loc.start&&d.has(m.type)){let p=m.loc.start.line,S=m.loc.start.column-1;(o.line!==p||o.column!==S)&&(o.line=p,o.column=S,l.line=s,l.column=h,g&&(g=!1,(l.line!==r.line||l.column!==r.column)&&c.addMapping(i)),g=!0,c.addMapping({source:m.loc.source,original:o,generated:l}))}f.call(this,m),g&&d.has(m.type)&&(r.line=s,r.column=h)};let n=u.emit;u.emit=function(m,p,S){for(let x=0;x<m.length;x++)m.charCodeAt(x)===10?(s++,h=0):h++;n(m,p,S)};let a=u.result;return u.result=function(){return g&&c.addMapping(i),{css:a(),map:c}},u}e.generateSourceMap=y}),Vi=z(e=>{"use strict";var t=J(),d=43,y=45,u=(s,h)=>{if(s===t.Delim&&(s=h),typeof s=="string"){let g=s.charCodeAt(0);return g>127?32768:g<<8}return s},c=[[t.Ident,t.Ident],[t.Ident,t.Function],[t.Ident,t.Url],[t.Ident,t.BadUrl],[t.Ident,"-"],[t.Ident,t.Number],[t.Ident,t.Percentage],[t.Ident,t.Dimension],[t.Ident,t.CDC],[t.Ident,t.LeftParenthesis],[t.AtKeyword,t.Ident],[t.AtKeyword,t.Function],[t.AtKeyword,t.Url],[t.AtKeyword,t.BadUrl],[t.AtKeyword,"-"],[t.AtKeyword,t.Number],[t.AtKeyword,t.Percentage],[t.AtKeyword,t.Dimension],[t.AtKeyword,t.CDC],[t.Hash,t.Ident],[t.Hash,t.Function],[t.Hash,t.Url],[t.Hash,t.BadUrl],[t.Hash,"-"],[t.Hash,t.Number],[t.Hash,t.Percentage],[t.Hash,t.Dimension],[t.Hash,t.CDC],[t.Dimension,t.Ident],[t.Dimension,t.Function],[t.Dimension,t.Url],[t.Dimension,t.BadUrl],[t.Dimension,"-"],[t.Dimension,t.Number],[t.Dimension,t.Percentage],[t.Dimension,t.Dimension],[t.Dimension,t.CDC],["#",t.Ident],["#",t.Function],["#",t.Url],["#",t.BadUrl],["#","-"],["#",t.Number],["#",t.Percentage],["#",t.Dimension],["#",t.CDC],["-",t.Ident],["-",t.Function],["-",t.Url],["-",t.BadUrl],["-","-"],["-",t.Number],["-",t.Percentage],["-",t.Dimension],["-",t.CDC],[t.Number,t.Ident],[t.Number,t.Function],[t.Number,t.Url],[t.Number,t.BadUrl],[t.Number,t.Number],[t.Number,t.Percentage],[t.Number,t.Dimension],[t.Number,"%"],[t.Number,t.CDC],["@",t.Ident],["@",t.Function],["@",t.Url],["@",t.BadUrl],["@","-"],["@",t.CDC],[".",t.Number],[".",t.Percentage],[".",t.Dimension],["+",t.Number],["+",t.Percentage],["+",t.Dimension],["/","*"]],l=c.concat([[t.Ident,t.Hash],[t.Dimension,t.Hash],[t.Hash,t.Hash],[t.AtKeyword,t.LeftParenthesis],[t.AtKeyword,t.String],[t.AtKeyword,t.Colon],[t.Percentage,t.Percentage],[t.Percentage,t.Dimension],[t.Percentage,t.Function],[t.Percentage,"-"],[t.RightParenthesis,t.Ident],[t.RightParenthesis,t.Function],[t.RightParenthesis,t.Percentage],[t.RightParenthesis,t.Dimension],[t.RightParenthesis,t.Hash],[t.RightParenthesis,"-"]]);function o(s){let h=new Set(s.map(([g,f])=>u(g)<<16|u(f)));return function(g,f,n){let a=u(f,n),m=n.charCodeAt(0);return(m===y&&f!==t.Ident&&f!==t.Function&&f!==t.CDC||m===d?h.has(g<<16|m<<8):h.has(g<<16|a))&&this.emit(" ",t.WhiteSpace,!0),a}}var r=o(c),i=o(l);e.safe=i,e.spec=r}),Hi=z(e=>{"use strict";var t=Ge(),d=Ui(),y=Vi(),u=J(),c=92;function l(i,s){if(typeof s=="function"){let h=null;i.children.forEach(g=>{h!==null&&s.call(this,h),this.node(g),h=g});return}i.children.forEach(this.node,this)}function o(i){t.tokenize(i,(s,h,g)=>{this.token(s,i.slice(h,g))})}function r(i){let s=new Map;for(let h in i.node){let g=i.node[h];typeof(g.generate||g)=="function"&&s.set(h,g.generate||g)}return function(h,g){let f="",n=0,a={node(p){if(s.has(p.type))s.get(p.type).call(m,p);else throw new Error("Unknown node type: "+p.type)},tokenBefore:y.safe,token(p,S){n=this.tokenBefore(n,p,S),this.emit(S,p,!1),p===u.Delim&&S.charCodeAt(0)===c&&this.emit(`
37
+ `+c({source:r,line:s,column:h},2)}})}e.SyntaxError=l}),Mi=z(e=>{"use strict";var t=J();function d(y){let u=this.createList(),c=!1,l={recognizer:y};for(;!this.eof;){switch(this.tokenType){case t.Comment:this.next();continue;case t.WhiteSpace:c=!0,this.next();continue}let o=y.getNode.call(this,l);if(o===void 0)break;c&&(y.onWhiteSpace&&y.onWhiteSpace.call(this,o,u,l),c=!1),u.push(o)}return c&&y.onWhiteSpace&&y.onWhiteSpace.call(this,null,u,l),u}e.readSequence=d}),Ni=z(e=>{"use strict";var t=ze(),d=Pi(),y=Ge(),u=Mi(),c=_t(),l=Je(),o=xe(),r=J(),i=Ie(),s=()=>{},h=33,g=35,f=59,n=123,a=0;function m(C){return function(){return this[C]()}}function p(C){let b=Object.create(null);for(let v in C){let k=C[v],w=k.parse||k;w&&(b[v]=w)}return b}function S(C){let b={context:Object.create(null),scope:Object.assign(Object.create(null),C.scope),atrule:p(C.atrule),pseudo:p(C.pseudo),node:p(C.node)};for(let v in C.parseContext)switch(typeof C.parseContext[v]){case"function":b.context[v]=C.parseContext[v];break;case"string":b.context[v]=m(C.parseContext[v]);break}return{config:b,...b,...b.node}}function x(C){let b="",v="<unknown>",k=!1,w=s,E=!1,A=new c.OffsetToLocation,O=Object.assign(new l.TokenStream,S(C||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:u.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(D){return D===n?1:0},consumeUntilLeftCurlyBracketOrSemicolon(D){return D===n||D===f?1:0},consumeUntilExclamationMarkOrSemicolon(D){return D===h||D===f?1:0},consumeUntilSemicolonIncluded(D){return D===f?2:0},createList(){return new t.List},createSingleNodeList(D){return new t.List().appendData(D)},getFirstListNode(D){return D&&D.first},getLastListNode(D){return D&&D.last},parseWithFallback(D,W){let U=this.tokenIndex;try{return D.call(this)}catch(H){if(E)throw H;let R=W.call(this,U);return E=!0,w(H,R),E=!1,R}},lookupNonWSType(D){let W;do if(W=this.lookupType(D++),W!==r.WhiteSpace)return W;while(W!==a);return a},charCodeAt(D){return D>=0&&D<b.length?b.charCodeAt(D):0},substring(D,W){return b.substring(D,W)},substrToCursor(D){return this.source.substring(D,this.tokenStart)},cmpChar(D,W){return o.cmpChar(b,D,W)},cmpStr(D,W,U){return o.cmpStr(b,D,W,U)},consume(D){let W=this.tokenStart;return this.eat(D),this.substrToCursor(W)},consumeFunctionName(){let D=b.substring(this.tokenStart,this.tokenEnd-1);return this.eat(r.Function),D},consumeNumber(D){let W=b.substring(this.tokenStart,o.consumeNumber(b,this.tokenStart));return this.eat(D),W},eat(D){if(this.tokenType!==D){let W=i[D].slice(0,-6).replace(/-/g," ").replace(/^./,R=>R.toUpperCase()),U=`${/[[\](){}]/.test(W)?`"${W}"`:W} is expected`,H=this.tokenStart;switch(D){case r.Ident:this.tokenType===r.Function||this.tokenType===r.Url?(H=this.tokenEnd-1,U="Identifier is expected but function found"):U="Identifier is expected";break;case r.Hash:this.isDelim(g)&&(this.next(),H++,U="Name is expected");break;case r.Percentage:this.tokenType===r.Number&&(H=this.tokenEnd,U="Percent sign is expected");break}this.error(U,H)}this.next()},eatIdent(D){(this.tokenType!==r.Ident||this.lookupValue(0,D)===!1)&&this.error(`Identifier "${D}" is expected`),this.next()},eatDelim(D){this.isDelim(D)||this.error(`Delim "${String.fromCharCode(D)}" is expected`),this.next()},getLocation(D,W){return k?A.getLocationRange(D,W,v):null},getLocationFromList(D){if(k){let W=this.getFirstListNode(D),U=this.getLastListNode(D);return A.getLocationRange(W!==null?W.loc.start.offset-A.startOffset:this.tokenStart,U!==null?U.loc.end.offset-A.startOffset:this.tokenStart,v)}return null},error(D,W){let U=typeof W<"u"&&W<b.length?A.getLocation(W):this.eof?A.getLocation(o.findWhiteSpaceStart(b,b.length-1)):A.getLocation(this.tokenStart);throw new d.SyntaxError(D||"Unexpected input",b,U.offset,U.line,U.column)}});return Object.assign(function(D,W){b=D,W=W||{},O.setSource(b,y.tokenize),A.setSource(b,W.offset,W.line,W.column),v=W.filename||"<unknown>",k=!!W.positions,w=typeof W.onParseError=="function"?W.onParseError:s,E=!1,O.parseAtrulePrelude="parseAtrulePrelude"in W?!!W.parseAtrulePrelude:!0,O.parseRulePrelude="parseRulePrelude"in W?!!W.parseRulePrelude:!0,O.parseValue="parseValue"in W?!!W.parseValue:!0,O.parseCustomProperty="parseCustomProperty"in W?!!W.parseCustomProperty:!1;let{context:U="default",onComment:H}=W;if(!(U in O.context))throw new Error("Unknown context `"+U+"`");typeof H=="function"&&O.forEachToken((_,M,j)=>{if(_===r.Comment){let K=O.getLocation(M,j),I=o.cmpStr(b,j-2,j,"*/")?b.slice(M+2,j-2):b.slice(M+2,j);H(I,K)}});let R=O.context[U].call(O,W);return O.eof||O.error(),R},{SyntaxError:d.SyntaxError,config:O.config})}e.createParser=x}),Ri=z(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(d){if(0<=d&&d<t.length)return t[d];throw new TypeError("Must be between 0 and 63: "+d)},e.decode=function(d){var y=65,u=90,c=97,l=122,o=48,r=57,i=43,s=47,h=26,g=52;return y<=d&&d<=u?d-y:c<=d&&d<=l?d-c+h:o<=d&&d<=r?d-o+g:d==i?62:d==s?63:-1}}),Ii=z(e=>{var t=Ri(),d=5,y=1<<d,u=y-1,c=y;function l(r){return r<0?(-r<<1)+1:(r<<1)+0}function o(r){var i=(r&1)===1,s=r>>1;return i?-s:s}e.encode=function(r){var i="",s,h=l(r);do s=h&u,h>>>=d,h>0&&(s|=c),i+=t.encode(s);while(h>0);return i},e.decode=function(r,i,s){var h=r.length,g=0,f=0,n,a;do{if(i>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(a=t.decode(r.charCodeAt(i++)),a===-1)throw new Error("Invalid base64 digit: "+r.charAt(i-1));n=!!(a&c),a&=u,g=g+(a<<f),f+=d}while(n);s.value=o(g),s.rest=i}}),tt=z(e=>{function t(w,E,A){if(E in w)return w[E];if(arguments.length===3)return A;throw new Error('"'+E+'" is a required argument.')}e.getArg=t;var d=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,y=/^data:.+\,.+$/;function u(w){var E=w.match(d);return E?{scheme:E[1],auth:E[2],host:E[3],port:E[4],path:E[5]}:null}e.urlParse=u;function c(w){var E="";return w.scheme&&(E+=w.scheme+":"),E+="//",w.auth&&(E+=w.auth+"@"),w.host&&(E+=w.host),w.port&&(E+=":"+w.port),w.path&&(E+=w.path),E}e.urlGenerate=c;var l=32;function o(w){var E=[];return function(A){for(var O=0;O<E.length;O++)if(E[O].input===A){var D=E[0];return E[0]=E[O],E[O]=D,E[0].result}var W=w(A);return E.unshift({input:A,result:W}),E.length>l&&E.pop(),W}}var r=o(function(w){var E=w,A=u(w);if(A){if(!A.path)return w;E=A.path}for(var O=e.isAbsolute(E),D=[],W=0,U=0;;)if(W=U,U=E.indexOf("/",W),U===-1){D.push(E.slice(W));break}else for(D.push(E.slice(W,U));U<E.length&&E[U]==="/";)U++;for(var H,R=0,U=D.length-1;U>=0;U--)H=D[U],H==="."?D.splice(U,1):H===".."?R++:R>0&&(H===""?(D.splice(U+1,R),R=0):(D.splice(U,2),R--));return E=D.join("/"),E===""&&(E=O?"/":"."),A?(A.path=E,c(A)):E});e.normalize=r;function i(w,E){w===""&&(w="."),E===""&&(E=".");var A=u(E),O=u(w);if(O&&(w=O.path||"/"),A&&!A.scheme)return O&&(A.scheme=O.scheme),c(A);if(A||E.match(y))return E;if(O&&!O.host&&!O.path)return O.host=E,c(O);var D=E.charAt(0)==="/"?E:r(w.replace(/\/+$/,"")+"/"+E);return O?(O.path=D,c(O)):D}e.join=i,e.isAbsolute=function(w){return w.charAt(0)==="/"||d.test(w)};function s(w,E){w===""&&(w="."),w=w.replace(/\/$/,"");for(var A=0;E.indexOf(w+"/")!==0;){var O=w.lastIndexOf("/");if(O<0||(w=w.slice(0,O),w.match(/^([^\/]+:\/)?\/*$/)))return E;++A}return Array(A+1).join("../")+E.substr(w.length+1)}e.relative=s;var h=(function(){var w=Object.create(null);return!("__proto__"in w)})();function g(w){return w}function f(w){return a(w)?"$"+w:w}e.toSetString=h?g:f;function n(w){return a(w)?w.slice(1):w}e.fromSetString=h?g:n;function a(w){if(!w)return!1;var E=w.length;if(E<9||w.charCodeAt(E-1)!==95||w.charCodeAt(E-2)!==95||w.charCodeAt(E-3)!==111||w.charCodeAt(E-4)!==116||w.charCodeAt(E-5)!==111||w.charCodeAt(E-6)!==114||w.charCodeAt(E-7)!==112||w.charCodeAt(E-8)!==95||w.charCodeAt(E-9)!==95)return!1;for(var A=E-10;A>=0;A--)if(w.charCodeAt(A)!==36)return!1;return!0}function m(w,E,A){var O=C(w.source,E.source);return O!==0||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositions=m;function p(w,E,A){var O;return O=w.originalLine-E.originalLine,O!==0||(O=w.originalColumn-E.originalColumn,O!==0||A)||(O=w.generatedColumn-E.generatedColumn,O!==0)||(O=w.generatedLine-E.generatedLine,O!==0)?O:C(w.name,E.name)}e.compareByOriginalPositionsNoSource=p;function S(w,E,A){var O=w.generatedLine-E.generatedLine;return O!==0||(O=w.generatedColumn-E.generatedColumn,O!==0||A)||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflated=S;function x(w,E,A){var O=w.generatedColumn-E.generatedColumn;return O!==0||A||(O=C(w.source,E.source),O!==0)||(O=w.originalLine-E.originalLine,O!==0)||(O=w.originalColumn-E.originalColumn,O!==0)?O:C(w.name,E.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function C(w,E){return w===E?0:w===null?1:E===null?-1:w>E?1:-1}function b(w,E){var A=w.generatedLine-E.generatedLine;return A!==0||(A=w.generatedColumn-E.generatedColumn,A!==0)||(A=C(w.source,E.source),A!==0)||(A=w.originalLine-E.originalLine,A!==0)||(A=w.originalColumn-E.originalColumn,A!==0)?A:C(w.name,E.name)}e.compareByGeneratedPositionsInflated=b;function v(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function k(w,E,A){if(E=E||"",w&&(w[w.length-1]!=="/"&&E[0]!=="/"&&(w+="/"),E=w+E),A){var O=u(A);if(!O)throw new Error("sourceMapURL could not be parsed");if(O.path){var D=O.path.lastIndexOf("/");D>=0&&(O.path=O.path.substring(0,D+1))}E=i(c(O),E)}return r(E)}e.computeSourceURL=k}),Gi=z(e=>{var t=tt(),d=Object.prototype.hasOwnProperty,y=typeof Map<"u";function u(){this._array=[],this._set=y?new Map:Object.create(null)}u.fromArray=function(c,l){for(var o=new u,r=0,i=c.length;r<i;r++)o.add(c[r],l);return o},u.prototype.size=function(){return y?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(c,l){var o=y?c:t.toSetString(c),r=y?this.has(c):d.call(this._set,o),i=this._array.length;(!r||l)&&this._array.push(c),r||(y?this._set.set(c,i):this._set[o]=i)},u.prototype.has=function(c){if(y)return this._set.has(c);var l=t.toSetString(c);return d.call(this._set,l)},u.prototype.indexOf=function(c){if(y){var l=this._set.get(c);if(l>=0)return l}else{var o=t.toSetString(c);if(d.call(this._set,o))return this._set[o]}throw new Error('"'+c+'" is not in the set.')},u.prototype.at=function(c){if(c>=0&&c<this._array.length)return this._array[c];throw new Error("No element indexed by "+c)},u.prototype.toArray=function(){return this._array.slice()},e.ArraySet=u}),ji=z(e=>{var t=tt();function d(u,c){var l=u.generatedLine,o=c.generatedLine,r=u.generatedColumn,i=c.generatedColumn;return o>l||o==l&&i>=r||t.compareByGeneratedPositionsInflated(u,c)<=0}function y(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}y.prototype.unsortedForEach=function(u,c){this._array.forEach(u,c)},y.prototype.add=function(u){d(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))},y.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=y}),Lt=z(e=>{var t=Ii(),d=tt(),y=Gi().ArraySet,u=ji().MappingList;function c(l){l||(l={}),this._file=d.getArg(l,"file",null),this._sourceRoot=d.getArg(l,"sourceRoot",null),this._skipValidation=d.getArg(l,"skipValidation",!1),this._ignoreInvalidMapping=d.getArg(l,"ignoreInvalidMapping",!1),this._sources=new y,this._names=new y,this._mappings=new u,this._sourcesContents=null}c.prototype._version=3,c.fromSourceMap=function(l,o){var r=l.sourceRoot,i=new c(Object.assign(o||{},{file:l.file,sourceRoot:r}));return l.eachMapping(function(s){var h={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(h.source=s.source,r!=null&&(h.source=d.relative(r,h.source)),h.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(h.name=s.name)),i.addMapping(h)}),l.sources.forEach(function(s){var h=s;r!==null&&(h=d.relative(r,s)),i._sources.has(h)||i._sources.add(h);var g=l.sourceContentFor(s);g!=null&&i.setSourceContent(s,g)}),i},c.prototype.addMapping=function(l){var o=d.getArg(l,"generated"),r=d.getArg(l,"original",null),i=d.getArg(l,"source",null),s=d.getArg(l,"name",null);!this._skipValidation&&this._validateMapping(o,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:o.line,generatedColumn:o.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))},c.prototype.setSourceContent=function(l,o){var r=l;this._sourceRoot!=null&&(r=d.relative(this._sourceRoot,r)),o!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[d.toSetString(r)]=o):this._sourcesContents&&(delete this._sourcesContents[d.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(l,o,r){var i=o;if(o==null){if(l.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=l.file}var s=this._sourceRoot;s!=null&&(i=d.relative(s,i));var h=new y,g=new y;this._mappings.unsortedForEach(function(f){if(f.source===i&&f.originalLine!=null){var n=l.originalPositionFor({line:f.originalLine,column:f.originalColumn});n.source!=null&&(f.source=n.source,r!=null&&(f.source=d.join(r,f.source)),s!=null&&(f.source=d.relative(s,f.source)),f.originalLine=n.line,f.originalColumn=n.column,n.name!=null&&(f.name=n.name))}var a=f.source;a!=null&&!h.has(a)&&h.add(a);var m=f.name;m!=null&&!g.has(m)&&g.add(m)},this),this._sources=h,this._names=g,l.sources.forEach(function(f){var n=l.sourceContentFor(f);n!=null&&(r!=null&&(f=d.join(r,f)),s!=null&&(f=d.relative(s,f)),this.setSourceContent(f,n))},this)},c.prototype._validateMapping=function(l,o,r,i){if(o&&typeof o.line!="number"&&typeof o.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(l&&"line"in l&&"column"in l&&l.line>0&&l.column>=0&&!o&&!r&&!i)){if(l&&"line"in l&&"column"in l&&o&&"line"in o&&"column"in o&&l.line>0&&l.column>=0&&o.line>0&&o.column>=0&&r)return;var s="Invalid mapping: "+JSON.stringify({generated:l,source:r,original:o,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}},c.prototype._serializeMappings=function(){for(var l=0,o=1,r=0,i=0,s=0,h=0,g="",f,n,a,m,p=this._mappings.toArray(),S=0,x=p.length;S<x;S++){if(n=p[S],f="",n.generatedLine!==o){l=0;var C=n.generatedLine-o;f+=C===1?";":";".repeat(C),o=n.generatedLine}else if(S>0){if(!d.compareByGeneratedPositionsInflated(n,p[S-1]))continue;f+=","}f+=t.encode(n.generatedColumn-l),l=n.generatedColumn,n.source!=null&&(m=this._sources.indexOf(n.source),f+=t.encode(m-h),h=m,f+=t.encode(n.originalLine-1-i),i=n.originalLine-1,f+=t.encode(n.originalColumn-r),r=n.originalColumn,n.name!=null&&(a=this._names.indexOf(n.name),f+=t.encode(a-s),s=a)),g+=f}return g},c.prototype._generateSourcesContent=function(l,o){return l.map(function(r){if(!this._sourcesContents)return null;o!=null&&(r=d.relative(o,r));var i=d.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)},c.prototype.toJSON=function(){var l={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(l.file=this._file),this._sourceRoot!=null&&(l.sourceRoot=this._sourceRoot),this._sourcesContents&&(l.sourcesContent=this._generateSourcesContent(l.sources,l.sourceRoot)),l},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=c}),Ui=z(e=>{"use strict";var t=Lt(),d=new Set(["Atrule","Selector","Declaration"]);function y(u){let c=new t.SourceMapGenerator,l={line:1,column:0},o={line:0,column:0},r={line:1,column:0},i={generated:r},s=1,h=0,g=!1,f=u.node;u.node=function(m){if(m.loc&&m.loc.start&&d.has(m.type)){let p=m.loc.start.line,S=m.loc.start.column-1;(o.line!==p||o.column!==S)&&(o.line=p,o.column=S,l.line=s,l.column=h,g&&(g=!1,(l.line!==r.line||l.column!==r.column)&&c.addMapping(i)),g=!0,c.addMapping({source:m.loc.source,original:o,generated:l}))}f.call(this,m),g&&d.has(m.type)&&(r.line=s,r.column=h)};let n=u.emit;u.emit=function(m,p,S){for(let x=0;x<m.length;x++)m.charCodeAt(x)===10?(s++,h=0):h++;n(m,p,S)};let a=u.result;return u.result=function(){return g&&c.addMapping(i),{css:a(),map:c}},u}e.generateSourceMap=y}),Vi=z(e=>{"use strict";var t=J(),d=43,y=45,u=(s,h)=>{if(s===t.Delim&&(s=h),typeof s=="string"){let g=s.charCodeAt(0);return g>127?32768:g<<8}return s},c=[[t.Ident,t.Ident],[t.Ident,t.Function],[t.Ident,t.Url],[t.Ident,t.BadUrl],[t.Ident,"-"],[t.Ident,t.Number],[t.Ident,t.Percentage],[t.Ident,t.Dimension],[t.Ident,t.CDC],[t.Ident,t.LeftParenthesis],[t.AtKeyword,t.Ident],[t.AtKeyword,t.Function],[t.AtKeyword,t.Url],[t.AtKeyword,t.BadUrl],[t.AtKeyword,"-"],[t.AtKeyword,t.Number],[t.AtKeyword,t.Percentage],[t.AtKeyword,t.Dimension],[t.AtKeyword,t.CDC],[t.Hash,t.Ident],[t.Hash,t.Function],[t.Hash,t.Url],[t.Hash,t.BadUrl],[t.Hash,"-"],[t.Hash,t.Number],[t.Hash,t.Percentage],[t.Hash,t.Dimension],[t.Hash,t.CDC],[t.Dimension,t.Ident],[t.Dimension,t.Function],[t.Dimension,t.Url],[t.Dimension,t.BadUrl],[t.Dimension,"-"],[t.Dimension,t.Number],[t.Dimension,t.Percentage],[t.Dimension,t.Dimension],[t.Dimension,t.CDC],["#",t.Ident],["#",t.Function],["#",t.Url],["#",t.BadUrl],["#","-"],["#",t.Number],["#",t.Percentage],["#",t.Dimension],["#",t.CDC],["-",t.Ident],["-",t.Function],["-",t.Url],["-",t.BadUrl],["-","-"],["-",t.Number],["-",t.Percentage],["-",t.Dimension],["-",t.CDC],[t.Number,t.Ident],[t.Number,t.Function],[t.Number,t.Url],[t.Number,t.BadUrl],[t.Number,t.Number],[t.Number,t.Percentage],[t.Number,t.Dimension],[t.Number,"%"],[t.Number,t.CDC],["@",t.Ident],["@",t.Function],["@",t.Url],["@",t.BadUrl],["@","-"],["@",t.CDC],[".",t.Number],[".",t.Percentage],[".",t.Dimension],["+",t.Number],["+",t.Percentage],["+",t.Dimension],["/","*"]],l=c.concat([[t.Ident,t.Hash],[t.Dimension,t.Hash],[t.Hash,t.Hash],[t.AtKeyword,t.LeftParenthesis],[t.AtKeyword,t.String],[t.AtKeyword,t.Colon],[t.Percentage,t.Percentage],[t.Percentage,t.Dimension],[t.Percentage,t.Function],[t.Percentage,"-"],[t.RightParenthesis,t.Ident],[t.RightParenthesis,t.Function],[t.RightParenthesis,t.Percentage],[t.RightParenthesis,t.Dimension],[t.RightParenthesis,t.Hash],[t.RightParenthesis,"-"]]);function o(s){let h=new Set(s.map(([g,f])=>u(g)<<16|u(f)));return function(g,f,n){let a=u(f,n),m=n.charCodeAt(0);return(m===y&&f!==t.Ident&&f!==t.Function&&f!==t.CDC||m===d?h.has(g<<16|m<<8):h.has(g<<16|a))&&this.emit(" ",t.WhiteSpace,!0),a}}var r=o(c),i=o(l);e.safe=i,e.spec=r}),Hi=z(e=>{"use strict";var t=Ge(),d=Ui(),y=Vi(),u=J(),c=92;function l(i,s){if(typeof s=="function"){let h=null;i.children.forEach(g=>{h!==null&&s.call(this,h),this.node(g),h=g});return}i.children.forEach(this.node,this)}function o(i){t.tokenize(i,(s,h,g)=>{this.token(s,i.slice(h,g))})}function r(i){let s=new Map;for(let h in i.node){let g=i.node[h];typeof(g.generate||g)=="function"&&s.set(h,g.generate||g)}return function(h,g){let f="",n=0,a={node(p){if(s.has(p.type))s.get(p.type).call(m,p);else throw new Error("Unknown node type: "+p.type)},tokenBefore:y.safe,token(p,S){n=this.tokenBefore(n,p,S),this.emit(S,p,!1),p===u.Delim&&S.charCodeAt(0)===c&&this.emit(`
38
38
  `,u.WhiteSpace,!0)},emit(p){f+=p},result(){return f}};g&&(typeof g.decorator=="function"&&(a=g.decorator(a)),g.sourceMap&&(a=d.generateSourceMap(a)),g.mode in y&&(a.tokenBefore=y[g.mode]));let m={node:p=>a.node(p),children:l,token:(p,S)=>a.token(p,S),tokenize:o};return a.node(h),a.result()}}e.createGenerator=r}),Ki=z(e=>{"use strict";var t=ze();function d(y){return{fromPlainObject(u){return y(u,{enter(c){c.children&&!(c.children instanceof t.List)&&(c.children=new t.List().fromArray(c.children))}}),u},toPlainObject(u){return y(u,{leave(c){c.children&&c.children instanceof t.List&&(c.children=c.children.toArray())}}),u}}}e.createConvertor=d}),Zi=z(e=>{"use strict";var{hasOwnProperty:t}=Object.prototype,d=function(){};function y(s){return typeof s=="function"?s:d}function u(s,h){return function(g,f,n){g.type===h&&s.call(this,g,f,n)}}function c(s,h){let g=h.structure,f=[];for(let n in g){if(t.call(g,n)===!1)continue;let a=g[n],m={name:n,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);for(let p of a)p===null?m.nullable=!0:typeof p=="string"?m.type="node":Array.isArray(p)&&(m.type="list");m.type&&f.push(m)}return f.length?{context:h.walkContext,fields:f}:null}function l(s){let h={};for(let g in s.node)if(t.call(s.node,g)){let f=s.node[g];if(!f.structure)throw new Error("Missed `structure` field in `"+g+"` node type definition");h[g]=c(g,f)}return h}function o(s,h){let g=s.fields.slice(),f=s.context,n=typeof f=="string";return h&&g.reverse(),function(a,m,p,S){let x;n&&(x=m[f],m[f]=a);for(let C of g){let b=a[C.name];if(!C.nullable||b){if(C.type==="list"){if(h?b.reduceRight(S,!1):b.reduce(S,!1))return!0}else if(p(b))return!0}}n&&(m[f]=x)}}function r({StyleSheet:s,Atrule:h,Rule:g,Block:f,DeclarationList:n}){return{Atrule:{StyleSheet:s,Atrule:h,Rule:g,Block:f},Rule:{StyleSheet:s,Atrule:h,Rule:g,Block:f},Declaration:{StyleSheet:s,Atrule:h,Rule:g,Block:f,DeclarationList:n}}}function i(s){let h=l(s),g={},f={},n=Symbol("break-walk"),a=Symbol("skip-node");for(let x in h)t.call(h,x)&&h[x]!==null&&(g[x]=o(h[x],!1),f[x]=o(h[x],!0));let m=r(g),p=r(f),S=function(x,C){function b(O,D,W){let U=v.call(A,O,D,W);return U===n?!0:U===a?!1:!!(w.hasOwnProperty(O.type)&&w[O.type](O,A,b,E)||k.call(A,O,D,W)===n)}let v=d,k=d,w=g,E=(O,D,W,U)=>O||b(D,W,U),A={break:n,skip:a,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof C=="function")v=C;else if(C&&(v=y(C.enter),k=y(C.leave),C.reverse&&(w=f),C.visit)){if(m.hasOwnProperty(C.visit))w=C.reverse?p[C.visit]:m[C.visit];else if(!h.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(h).sort().join(", ")+")");v=u(v,C.visit),k=u(k,C.visit)}if(v===d&&k===d)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");b(x)};return S.break=n,S.skip=a,S.find=function(x,C){let b=null;return S(x,function(v,k,w){if(C.call(this,v,k,w))return b=v,n}),b},S.findLast=function(x,C){let b=null;return S(x,{reverse:!0,enter(v,k,w){if(C.call(this,v,k,w))return b=v,n}}),b},S.findAll=function(x,C){let b=[];return S(x,function(v,k,w){C.call(this,v,k,w)&&b.push(v)}),b},S}e.createWalker=i}),rt=z(e=>{"use strict";function t(o){return o}function d(o){let{min:r,max:i,comma:s}=o;return r===0&&i===0?s?"#?":"*":r===0&&i===1?"?":r===1&&i===0?s?"#":"+":r===1&&i===1?"":(s?"#":"")+(r===i?"{"+r+"}":"{"+r+","+(i!==0?i:"")+"}")}function y(o){if(o.type==="Range")return" ["+(o.min===null?"-\u221E":o.min)+","+(o.max===null?"\u221E":o.max)+"]";throw new Error("Unknown node type `"+o.type+"`")}function u(o,r,i,s){let h=o.combinator===" "||s?o.combinator:" "+o.combinator+" ",g=o.terms.map(f=>c(f,r,i,s)).join(h);return o.explicit||i?(s||g[0]===","?"[":"[ ")+g+(s?"]":" ]"):g}function c(o,r,i,s){let h;switch(o.type){case"Group":h=u(o,r,i,s)+(o.disallowEmpty?"!":"");break;case"Multiplier":return c(o.term,r,i,s)+r(d(o),o);case"Type":h="<"+o.name+(o.opts?r(y(o.opts),o.opts):"")+">";break;case"Property":h="<'"+o.name+"'>";break;case"Keyword":h=o.name;break;case"AtKeyword":h="@"+o.name;break;case"Function":h=o.name+"(";break;case"String":case"Token":h=o.value;break;case"Comma":h=",";break;default:throw new Error("Unknown node type `"+o.type+"`")}return r(h,o)}function l(o,r){let i=t,s=!1,h=!1;return typeof r=="function"?i=r:r&&(s=!!r.forceBraces,h=!!r.compact,typeof r.decorate=="function"&&(i=r.decorate)),c(o,i,s,h)}e.generate=l}),$i=z(e=>{"use strict";var t=et(),d=rt(),y={offset:0,line:1,column:1};function u(i,s){let h=i.tokens,g=i.longestMatch,f=g<h.length&&h[g].node||null,n=f!==s?f:null,a=0,m=0,p=0,S="",x,C;for(let b=0;b<h.length;b++){let v=h[b].value;b===g&&(m=v.length,a=S.length),n!==null&&h[b].node===n&&(b<=g?p++:p=0),S+=v}return g===h.length||p>1?(x=c(n||s,"end")||l(y,S),C=l(x)):(x=c(n,"start")||l(c(s,"start")||y,S.slice(0,a)),C=c(n,"end")||l(x,S.substr(a,m))),{css:S,mismatchOffset:a,mismatchLength:m,start:x,end:C}}function c(i,s){let h=i&&i.loc&&i.loc[s];return h?"line"in h?l(h):h:null}function l({offset:i,line:s,column:h},g){let f={offset:i,line:s,column:h};if(g){let n=g.split(/\n|\r\n?|\f/);f.offset+=g.length,f.line+=n.length-1,f.column=n.length===1?f.column+g.length:n.pop().length+1}return f}var o=function(i,s){let h=t.createCustomError("SyntaxReferenceError",i+(s?" `"+s+"`":""));return h.reference=s,h},r=function(i,s,h,g){let f=t.createCustomError("SyntaxMatchError",i),{css:n,mismatchOffset:a,mismatchLength:m,start:p,end:S}=u(g,h);return f.rawMessage=i,f.syntax=s?d.generate(s):"<generic>",f.css=n,f.mismatchOffset=a,f.mismatchLength=m,f.message=i+`
39
39
  syntax: `+f.syntax+`
40
40
  value: `+(n||"<empty string>")+`
@@ -117,6 +117,8 @@ export declare const FEATURE: {
117
117
  readonly cookieConsent: 'cookieConsent';
118
118
  readonly sdkGeneration: 'sdkGeneration';
119
119
  readonly customPackages: 'customPackages';
120
+ readonly customMarkdocTags: 'customMarkdocTags';
121
+ readonly customMcpTools: 'customMcpTools';
120
122
  };
121
123
  export declare const GATEWAY_FETCH_LIMIT_DEFAULTS: {
122
124
  readonly ratePerMin: 60;
@@ -1 +1 @@
1
- const s={AUTHORIZATION:"authorization",IDP_ID_TOKEN:"idp_id_token",IDP_ACCESS_TOKEN:"idp_access_token",IDP_REFRESH_TOKEN:"idp_refresh_token",FEDERATED_ACCESS_TOKEN:"federated_access_token",FEDERATED_ID_TOKEN:"federated_id_token"},n="post_logout",_="openapi_docs",E="asyncapi_docs",p="graphql_docs",i="api_docs",A="/_spec-gql",S="markdoc",d="tags",a="*",T={[a]:"read"},L=["openid","email"],I=1440*60,R=720*60*60,O="anonymous",P="authenticated",l="**",C="Reunite",x="translations.yaml",D="redocly.yaml",u="@redocly/theme",m="@theme",g="@skills",M="SKILL.md",N="/.well-known/agent-skills",U="/.well-known/agent-card.json",F="/a2a",h="/.well-known/mcp/server-card.json",k="/app-data.json",y="/eject-component";var t;(function(e){e.BUILD="build",e.DEVELOP="develop",e.PREPARE="prepare"})(t||(t={}));var o;(function(e){e.RATING="rating",e.SENTIMENT="sentiment",e.COMMENT="comment",e.MOOD="mood",e.PROBLEM="problem",e.SCALE="scale"})(o||(o={}));var r;(function(e){e.AI_SEARCH="aiSearch",e.MCP="mcp"})(r||(r={}));const G="/login",b="/invite",v={AUTH0_PASS:"/auth/auth0-pass"},H={NotExist:"ENOENT"},w="default_locale",K="sidebar-",B="PUBLIC_",q="branch.",f=["BROKEN_LINK","MARKDOC","RESOLVE"],V=["logo","navbar","products","footer","sidebar","scripts","links","feedback","search","aiAssistant","colorMode","palette","navigation","codeSnippet","markdown","openapi","graphql","analytics","consent","userMenu","versionPicker","breadcrumbs","catalog","entitiesCatalog","scorecard","scorecards","scorecardClassic","mcp","banner"],c="redocly_category",Q="redocly_product",j="redocly_version",X="redocly_teams",W=c,z={asyncapi:"asyncapi",apiFunctions:"apiFunctions",reactPages:"reactPages",catalog:"catalog",catalogClassic:"catalogClassic",lint:"lint",scorecard:"scorecard",scorecards:"scorecards",l10n:"l10n",openapi:"openapi",graphql:"graphql",markdown:"markdown",devOnboarding:"devOnboarding",seo:"seo",redirects:"redirects",customPlugins:"customPlugins",themeEjecting:"themeEjecting",products:"products",breadcrumbs:"breadcrumbs",mockServer:"mockServer",sso:"sso",rbac:"rbac",analytics:"analytics",removeAttribution:"removeAttribution",advancedSearch:"advancedSearch",soap:"soap",ssoDirect:"ssoDirect",codeWalkthrough:"codeWalkthrough",aiSearchLimit:"aiSearchLimit",kvStorageLimit:"kvStorageLimit",mcp:"mcp",mcpGateway:"mcpGateway",mcpMode:"mcpMode",gatewayFetchRatePerMin:"gatewayFetchRatePerMin",gatewayFetchQuotaPerDay:"gatewayFetchQuotaPerDay",gatewayFetchBudgetPerExec:"gatewayFetchBudgetPerExec",mcpRequestRatePerMin:"mcpRequestRatePerMin",mcpRequestQuotaPerDay:"mcpRequestQuotaPerDay",banner:"banner",cookieConsent:"cookieConsent",sdkGeneration:"sdkGeneration",customPackages:"customPackages"},J={ratePerMin:60,quotaPerDay:2e3,budgetPerExec:25},Y={ratePerMin:600,quotaPerDay:2e4};export{F as A2A_SLUG,U as AGENT_CARD_SLUG,N as AGENT_SKILLS_BASE,i as API_DOCS_TEMPLATE_ID,E as ASYNC_API_DOCS_TEMPLATE_ID,s as AuthCookieNames,q as BRANCH_ENV_PREFIX,D as CONFIG_FILE_NAME,S as CUSTOM_MARKDOC_OPTIONS_PATH,d as CUSTOM_MARKDOC_TAGS_PATH,O as DEFAULT_ANONYMOUS_VISITOR_TEAM,P as DEFAULT_AUTHENTICATED_TEAM,I as DEFAULT_COOKIE_EXPIRATION,w as DEFAULT_LOCALE_PLACEHOLDER,l as DEFAULT_RBAC_SCOPE,C as DEFAULT_SSO_IDP_TITLE,u as DEFAULT_THEME_NAME,G as DEV_LOGIN_SLUG,y as EJECT_COMPONENT_URL,v as ExternalRoutes,z as FEATURE,o as FEEDBACK_TYPES,H as FsErrors,J as GATEWAY_FETCH_LIMIT_DEFAULTS,k as GLOBAL_DATA_URL,A as GRAPHQL_SPEC_SLUG,p as GRAPHQL_TEMPLATE_ID,b as INVITE_SLUG,f as MARKDOC_ERROR_TYPES,Y as MCP_REQUEST_LIMIT_DEFAULTS,h as MCP_SERVER_CARD_SLUG,_ as OPENAPI_DOCS_TEMPLATE_ID,R as POST_LOGOUT_COOKIE_EXPIRATION,n as POST_LOGOUT_COOKIE_NAME,B as PUBLIC_ENV_PREFIX,T as PUBLIC_RBAC_SCOPE_ITEM,a as RBAC_ALL_OTHER_TEAMS,L as REQUIRED_OIDC_SCOPES,r as RbacFeatures,c as SEARCH_CATEGORY_FIELD,W as SEARCH_GROUP_FACET_FIELD,Q as SEARCH_PRODUCT_FIELD,X as SEARCH_RBAC_FIELD,j as SEARCH_VERSION_FIELD,K as SIDEBAR_PREFIX,x as TRANSLATIONS_FILE_NAME,V as UI_ACCESSIBLE_CONFIG_PROPS,g as USER_SKILLS_ALIAS,M as USER_SKILL_FILENAME,m as USER_THEME_ALIAS,t as cliCommandNames};
1
+ const s={AUTHORIZATION:"authorization",IDP_ID_TOKEN:"idp_id_token",IDP_ACCESS_TOKEN:"idp_access_token",IDP_REFRESH_TOKEN:"idp_refresh_token",FEDERATED_ACCESS_TOKEN:"federated_access_token",FEDERATED_ID_TOKEN:"federated_id_token"},n="post_logout",_="openapi_docs",E="asyncapi_docs",p="graphql_docs",i="api_docs",A="/_spec-gql",T="markdoc",d="tags",r="*",S={[r]:"read"},L=["openid","email"],I=1440*60,R=720*60*60,O="anonymous",P="authenticated",l="**",C="Reunite",x="translations.yaml",u="redocly.yaml",D="@redocly/theme",m="@theme",M="@skills",g="SKILL.md",N="/.well-known/agent-skills",U="/.well-known/agent-card.json",F="/a2a",k="/.well-known/mcp/server-card.json",h="/app-data.json",y="/eject-component";var t;(function(e){e.BUILD="build",e.DEVELOP="develop",e.PREPARE="prepare"})(t||(t={}));var o;(function(e){e.RATING="rating",e.SENTIMENT="sentiment",e.COMMENT="comment",e.MOOD="mood",e.PROBLEM="problem",e.SCALE="scale"})(o||(o={}));var c;(function(e){e.AI_SEARCH="aiSearch",e.MCP="mcp"})(c||(c={}));const G="/login",b="/invite",v={AUTH0_PASS:"/auth/auth0-pass"},H={NotExist:"ENOENT"},w="default_locale",K="sidebar-",B="PUBLIC_",q="branch.",f=["BROKEN_LINK","MARKDOC","RESOLVE"],V=["logo","navbar","products","footer","sidebar","scripts","links","feedback","search","aiAssistant","colorMode","palette","navigation","codeSnippet","markdown","openapi","graphql","analytics","consent","userMenu","versionPicker","breadcrumbs","catalog","entitiesCatalog","scorecard","scorecards","scorecardClassic","mcp","banner"],a="redocly_category",Q="redocly_product",j="redocly_version",X="redocly_teams",W=a,z={asyncapi:"asyncapi",apiFunctions:"apiFunctions",reactPages:"reactPages",catalog:"catalog",catalogClassic:"catalogClassic",lint:"lint",scorecard:"scorecard",scorecards:"scorecards",l10n:"l10n",openapi:"openapi",graphql:"graphql",markdown:"markdown",devOnboarding:"devOnboarding",seo:"seo",redirects:"redirects",customPlugins:"customPlugins",themeEjecting:"themeEjecting",products:"products",breadcrumbs:"breadcrumbs",mockServer:"mockServer",sso:"sso",rbac:"rbac",analytics:"analytics",removeAttribution:"removeAttribution",advancedSearch:"advancedSearch",soap:"soap",ssoDirect:"ssoDirect",codeWalkthrough:"codeWalkthrough",aiSearchLimit:"aiSearchLimit",kvStorageLimit:"kvStorageLimit",mcp:"mcp",mcpGateway:"mcpGateway",mcpMode:"mcpMode",gatewayFetchRatePerMin:"gatewayFetchRatePerMin",gatewayFetchQuotaPerDay:"gatewayFetchQuotaPerDay",gatewayFetchBudgetPerExec:"gatewayFetchBudgetPerExec",mcpRequestRatePerMin:"mcpRequestRatePerMin",mcpRequestQuotaPerDay:"mcpRequestQuotaPerDay",banner:"banner",cookieConsent:"cookieConsent",sdkGeneration:"sdkGeneration",customPackages:"customPackages",customMarkdocTags:"customMarkdocTags",customMcpTools:"customMcpTools"},J={ratePerMin:60,quotaPerDay:2e3,budgetPerExec:25},Y={ratePerMin:600,quotaPerDay:2e4};export{F as A2A_SLUG,U as AGENT_CARD_SLUG,N as AGENT_SKILLS_BASE,i as API_DOCS_TEMPLATE_ID,E as ASYNC_API_DOCS_TEMPLATE_ID,s as AuthCookieNames,q as BRANCH_ENV_PREFIX,u as CONFIG_FILE_NAME,T as CUSTOM_MARKDOC_OPTIONS_PATH,d as CUSTOM_MARKDOC_TAGS_PATH,O as DEFAULT_ANONYMOUS_VISITOR_TEAM,P as DEFAULT_AUTHENTICATED_TEAM,I as DEFAULT_COOKIE_EXPIRATION,w as DEFAULT_LOCALE_PLACEHOLDER,l as DEFAULT_RBAC_SCOPE,C as DEFAULT_SSO_IDP_TITLE,D as DEFAULT_THEME_NAME,G as DEV_LOGIN_SLUG,y as EJECT_COMPONENT_URL,v as ExternalRoutes,z as FEATURE,o as FEEDBACK_TYPES,H as FsErrors,J as GATEWAY_FETCH_LIMIT_DEFAULTS,h as GLOBAL_DATA_URL,A as GRAPHQL_SPEC_SLUG,p as GRAPHQL_TEMPLATE_ID,b as INVITE_SLUG,f as MARKDOC_ERROR_TYPES,Y as MCP_REQUEST_LIMIT_DEFAULTS,k as MCP_SERVER_CARD_SLUG,_ as OPENAPI_DOCS_TEMPLATE_ID,R as POST_LOGOUT_COOKIE_EXPIRATION,n as POST_LOGOUT_COOKIE_NAME,B as PUBLIC_ENV_PREFIX,S as PUBLIC_RBAC_SCOPE_ITEM,r as RBAC_ALL_OTHER_TEAMS,L as REQUIRED_OIDC_SCOPES,c as RbacFeatures,a as SEARCH_CATEGORY_FIELD,W as SEARCH_GROUP_FACET_FIELD,Q as SEARCH_PRODUCT_FIELD,X as SEARCH_RBAC_FIELD,j as SEARCH_VERSION_FIELD,K as SIDEBAR_PREFIX,x as TRANSLATIONS_FILE_NAME,V as UI_ACCESSIBLE_CONFIG_PROPS,M as USER_SKILLS_ALIAS,g as USER_SKILL_FILENAME,m as USER_THEME_ALIAS,t as cliCommandNames};