react-docs-ui 0.1.3 → 0.1.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.
@@ -1,4 +1,4 @@
1
- (function(ae,me){typeof exports=="object"&&typeof module<"u"?me(exports,require("react"),require("react-router-dom"),require("clsx"),require("tailwind-merge"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","clsx","tailwind-merge","react-dom"],me):(ae=typeof globalThis<"u"?globalThis:ae||self,me(ae.ReactDocsUI={},ae.React,ae.ReactRouterDOM,ae.clsx,ae.tailwindMerge,ae.ReactDOM))})(this,function(ae,me,Je,kl,Mb,Ol){"use strict";function Rl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=Rl(me),Ml=Rl(Ol);function Oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vi={exports:{}},Wr={};/**
1
+ (function(re,me){typeof exports=="object"&&typeof module<"u"?me(exports,require("react"),require("react-router-dom"),require("clsx"),require("tailwind-merge"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","clsx","tailwind-merge","react-dom"],me):(re=typeof globalThis<"u"?globalThis:re||self,me(re.ReactDocsUI={},re.React,re.ReactRouterDOM,re.clsx,re.tailwindMerge,re.ReactDOM))})(this,function(re,me,We,Il,zb,Ol){"use strict";function Rl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=Rl(me),Ml=Rl(Ol);function Ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zi={exports:{}},Kr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ll;function Lb(){if(Ll)return Wr;Ll=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Wr.Fragment=t,Wr.jsx=n,Wr.jsxs=n,Wr}var Kr={};/**
9
+ */var Ll;function $b(){if(Ll)return Kr;Ll=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var s in i)s!=="key"&&(a[s]=i[s])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Kr.Fragment=t,Kr.jsx=n,Kr.jsxs=n,Kr}var qr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,78 +14,128 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Pl;function Pb(){return Pl||(Pl=1,process.env.NODE_ENV!=="production"&&function(){function e(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===I?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case b:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case w:return"SuspenseList";case z:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case g:return"Portal";case N:return(A.displayName||"Context")+".Provider";case x:return(A._context.displayName||"Context")+".Consumer";case k:var ee=A.render;return A=A.displayName,A||(A=ee.displayName||ee.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case M:return ee=A.displayName||null,ee!==null?ee:e(A.type)||"Memo";case H:ee=A._payload,A=A._init;try{return e(A(ee))}catch{}}return null}function t(A){return""+A}function n(A){try{t(A);var ee=!1}catch{ee=!0}if(ee){ee=console;var L=ee.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return L.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),t(A)}}function r(A){if(A===b)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===H)return"<...>";try{var ee=e(A);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function i(){var A=$.A;return A===null?null:A.getOwner()}function a(){return Error("react-stack-top-frame")}function o(A){if(Y.call(A,"key")){var ee=Object.getOwnPropertyDescriptor(A,"key").get;if(ee&&ee.isReactWarning)return!1}return A.key!==void 0}function s(A,ee){function L(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ee))}L.isReactWarning=!0,Object.defineProperty(A,"key",{get:L,configurable:!0})}function u(){var A=e(this.type);return ie[A]||(ie[A]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),A=this.props.ref,A!==void 0?A:null}function l(A,ee,L,y,se,te,ue,de){return L=te.ref,A={$$typeof:p,type:A,key:ee,props:te,_owner:se},(L!==void 0?L:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:u}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function d(A,ee,L,y,se,te,ue,de){var be=ee.children;if(be!==void 0)if(y)if(G(be)){for(y=0;y<be.length;y++)c(be[y]);Object.freeze&&Object.freeze(be)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(be);if(Y.call(ee,"key")){be=e(A);var Re=Object.keys(ee).filter(function(Ut){return Ut!=="key"});y=0<Re.length?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}",Q[be+y]||(Re=0<Re.length?"{"+Re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Pl;function jb(){return Pl||(Pl=1,process.env.NODE_ENV!=="production"&&function(){function e(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===k?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case b:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case w:return"SuspenseList";case z:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case E:return"Portal";case N:return(A.displayName||"Context")+".Provider";case C:return(A._context.displayName||"Context")+".Consumer";case I:var ee=A.render;return A=A.displayName,A||(A=ee.displayName||ee.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case M:return ee=A.displayName||null,ee!==null?ee:e(A.type)||"Memo";case H:ee=A._payload,A=A._init;try{return e(A(ee))}catch{}}return null}function t(A){return""+A}function n(A){try{t(A);var ee=!1}catch{ee=!0}if(ee){ee=console;var L=ee.error,y=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return L.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",y),t(A)}}function r(A){if(A===b)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===H)return"<...>";try{var ee=e(A);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function i(){var A=$.A;return A===null?null:A.getOwner()}function a(){return Error("react-stack-top-frame")}function o(A){if(Y.call(A,"key")){var ee=Object.getOwnPropertyDescriptor(A,"key").get;if(ee&&ee.isReactWarning)return!1}return A.key!==void 0}function s(A,ee){function L(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ee))}L.isReactWarning=!0,Object.defineProperty(A,"key",{get:L,configurable:!0})}function u(){var A=e(this.type);return ae[A]||(ae[A]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),A=this.props.ref,A!==void 0?A:null}function l(A,ee,L,y,se,te,ue,de){return L=te.ref,A={$$typeof:p,type:A,key:ee,props:te,_owner:se},(L!==void 0?L:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:u}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function d(A,ee,L,y,se,te,ue,de){var be=ee.children;if(be!==void 0)if(y)if(G(be)){for(y=0;y<be.length;y++)c(be[y]);Object.freeze&&Object.freeze(be)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(be);if(Y.call(ee,"key")){be=e(A);var Re=Object.keys(ee).filter(function(Ht){return Ht!=="key"});y=0<Re.length?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}",Q[be+y]||(Re=0<Re.length?"{"+Re.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,y,be,Re,be),Q[be+y]=!0)}if(be=null,L!==void 0&&(n(L),be=""+L),o(ee)&&(n(ee.key),be=""+ee.key),"key"in ee){L={};for(var Ge in ee)Ge!=="key"&&(L[Ge]=ee[Ge])}else L=ee;return be&&s(L,typeof A=="function"?A.displayName||A.name||"Unknown":A),l(A,be,te,se,i(),L,ue,de)}function c(A){typeof A=="object"&&A!==null&&A.$$typeof===p&&A._store&&(A._store.validated=1)}var h=me,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),N=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),$=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,G=Array.isArray,B=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(A){return A()}};var K,ie={},pe=h.react_stack_bottom_frame.bind(h,a)(),q=B(r(a)),Q={};Kr.Fragment=b,Kr.jsx=function(A,ee,L,y,se){var te=1e4>$.recentlyCreatedOwnerStacks++;return d(A,ee,L,!1,y,se,te?Error("react-stack-top-frame"):pe,te?B(r(A)):q)},Kr.jsxs=function(A,ee,L,y,se){var te=1e4>$.recentlyCreatedOwnerStacks++;return d(A,ee,L,!0,y,se,te?Error("react-stack-top-frame"):pe,te?B(r(A)):q)}}()),Kr}var Fl;function Fb(){return Fl||(Fl=1,process.env.NODE_ENV==="production"?Vi.exports=Lb():Vi.exports=Pb()),Vi.exports}var E=Fb();/**
22
+ <%s key={someKey} {...props} />`,y,be,Re,be),Q[be+y]=!0)}if(be=null,L!==void 0&&(n(L),be=""+L),o(ee)&&(n(ee.key),be=""+ee.key),"key"in ee){L={};for(var Ge in ee)Ge!=="key"&&(L[Ge]=ee[Ge])}else L=ee;return be&&s(L,typeof A=="function"?A.displayName||A.name||"Unknown":A),l(A,be,te,se,i(),L,ue,de)}function c(A){typeof A=="object"&&A!==null&&A.$$typeof===p&&A._store&&(A._store.validated=1)}var h=me,p=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),N=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),$=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,G=Array.isArray,B=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(A){return A()}};var K,ae={},pe=h.react_stack_bottom_frame.bind(h,a)(),q=B(r(a)),Q={};qr.Fragment=b,qr.jsx=function(A,ee,L,y,se){var te=1e4>$.recentlyCreatedOwnerStacks++;return d(A,ee,L,!1,y,se,te?Error("react-stack-top-frame"):pe,te?B(r(A)):q)},qr.jsxs=function(A,ee,L,y,se){var te=1e4>$.recentlyCreatedOwnerStacks++;return d(A,ee,L,!0,y,se,te?Error("react-stack-top-frame"):pe,te?B(r(A)):q)}}()),qr}var Fl;function Yb(){return Fl||(Fl=1,process.env.NODE_ENV==="production"?Zi.exports=$b():Zi.exports=jb()),Zi.exports}var m=Yb();/**
23
23
  * @license lucide-react v0.539.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const Bb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ub=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Bl=e=>{const t=Ub(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ul=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Hb=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Gb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Bl=e=>{const t=Wb(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ul=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Kb=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.539.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var zb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
32
+ */var qb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
33
  * @license lucide-react v0.539.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const $b=me.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},u)=>me.createElement("svg",{ref:u,...zb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ul("lucide",i),...!a&&!Hb(s)&&{"aria-hidden":"true"},...s},[...o.map(([l,d])=>me.createElement(l,d)),...Array.isArray(a)?a:[a]]));/**
37
+ */const Vb=me.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...s},u)=>me.createElement("svg",{ref:u,...qb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ul("lucide",i),...!a&&!Kb(s)&&{"aria-hidden":"true"},...s},[...o.map(([l,d])=>me.createElement(l,d)),...Array.isArray(a)?a:[a]]));/**
38
38
  * @license lucide-react v0.539.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const dn=(e,t)=>{const n=me.forwardRef(({className:r,...i},a)=>me.createElement($b,{ref:a,iconNode:t,className:Ul(`lucide-${Bb(Bl(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Bl(e),n};/**
42
+ */const et=(e,t)=>{const n=me.forwardRef(({className:r,...i},a)=>me.createElement(Vb,{ref:a,iconNode:t,className:Ul(`lucide-${Gb(Bl(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Bl(e),n};/**
43
43
  * @license lucide-react v0.539.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Hl=dn("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
+ */const Xb=et("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
48
48
  * @license lucide-react v0.539.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const Xi=dn("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
52
+ */const Hl=et("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
53
53
  * @license lucide-react v0.539.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const zl=dn("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
57
+ */const Ji=et("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
58
58
  * @license lucide-react v0.539.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const jb=dn("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
62
+ */const zl=et("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
63
63
  * @license lucide-react v0.539.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const Yb=dn("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
67
+ */const Qb=et("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
68
68
  * @license lucide-react v0.539.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const Gb=dn("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
72
+ */const $l=et("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
73
73
  * @license lucide-react v0.539.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */const Wb=dn("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
77
+ */const jl=et("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
78
78
  * @license lucide-react v0.539.0 - ISC
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const Kb=dn("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
82
+ */const Zb=et("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);/**
83
83
  * @license lucide-react v0.539.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */const qb=dn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vb={theme:"system",setTheme:()=>null},$l=me.createContext(Vb);function jl({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,a]=me.useState(()=>localStorage.getItem(n)||t);me.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),i==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(u);return}s.classList.add(i)},[i]);const o={theme:i,setTheme:s=>{localStorage.setItem(n,s),a(s)}};return E.jsx($l.Provider,{...r,value:o,children:e})}const qr=()=>{const e=me.useContext($l);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function Yl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fn(...e){return t=>{let n=!1;const r=e.map(i=>{const a=Yl(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Yl(e[i],null)}}}}function Ue(...e){return m.useCallback(fn(...e),e)}function or(e){const t=Qb(e),n=m.forwardRef((r,i)=>{const{children:a,...o}=r,s=m.Children.toArray(a),u=s.find(Jb);if(u){const l=u.props.children,d=s.map(c=>c===u?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:c);return E.jsx(t,{...o,ref:i,children:m.isValidElement(l)?m.cloneElement(l,void 0,d):null})}return E.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var Xb=or("Slot");function Qb(e){const t=m.forwardRef((n,r)=>{const{children:i,...a}=n;if(m.isValidElement(i)){const o=t1(i),s=e1(a,i.props);return i.type!==m.Fragment&&(s.ref=r?fn(r,o):o),m.cloneElement(i,s)}return m.Children.count(i)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gl=Symbol("radix.slottable");function Zb(e){const t=({children:n})=>E.jsx(E.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Gl,t}function Jb(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gl}function e1(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const u=a(...s);return i(...s),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function t1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Wl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kl=kl.clsx,n1=(e,t)=>n=>{var r;if(t?.variants==null)return Kl(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(l=>{const d=n?.[l],c=a?.[l];if(d===null)return null;const h=Wl(d)||Wl(c);return i[l][h]}),s=n&&Object.entries(n).reduce((l,d)=>{let[c,h]=d;return h===void 0||(l[c]=h),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:c,className:h,...p}=d;return Object.entries(p).every(g=>{let[b,T]=g;return Array.isArray(T)?T.includes({...a,...s}[b]):{...a,...s}[b]===T})?[...l,c,h]:l},[]);return Kl(e,o,u,n?.class,n?.className)};function xe(...e){return Mb.twMerge(kl.clsx(e))}const Ro=n1("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mo=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?Xb:"button";return E.jsx(o,{className:xe(Ro({variant:t,size:n,className:e})),ref:a,...i})});Mo.displayName="Button";function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function r1(e,t){const n=m.createContext(t),r=a=>{const{children:o,...s}=a,u=m.useMemo(()=>s,Object.values(s));return E.jsx(n.Provider,{value:u,children:o})};r.displayName=e+"Provider";function i(a){const o=m.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function Kt(e,t=[]){let n=[];function r(a,o){const s=m.createContext(o),u=n.length;n=[...n,o];const l=c=>{const{scope:h,children:p,...g}=c,b=h?.[e]?.[u]||s,T=m.useMemo(()=>g,Object.values(g));return E.jsx(b.Provider,{value:T,children:p})};l.displayName=a+"Provider";function d(c,h){const p=h?.[e]?.[u]||s,g=m.useContext(p);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,d]}const i=()=>{const a=n.map(o=>m.createContext(o));return function(s){const u=s?.[e]||a;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,i1(i,...t)]}function i1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:u,scopeName:l})=>{const c=u(a)[`__scope${l}`];return{...s,...c}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var qt=globalThis?.document?m.useLayoutEffect:()=>{},a1=m[" useInsertionEffect ".trim().toString()]||qt;function Hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,o]=o1({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:i;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const l=m.useCallback(d=>{if(s){const c=s1(d)?d(e):d;c!==e&&o.current?.(c)}else a(d)},[s,e,a,o]);return[u,l]}function o1({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),i=m.useRef(n),a=m.useRef(t);return a1(()=>{a.current=t},[t]),m.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function s1(e){return typeof e=="function"}var u1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=u1.reduce((e,t)=>{const n=or(`Primitive.${t}`),r=m.forwardRef((i,a)=>{const{asChild:o,...s}=i,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(u,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ql(e,t){e&&Ml.flushSync(()=>e.dispatchEvent(t))}function Vl(e){const t=e+"CollectionProvider",[n,r]=Kt(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=b=>{const{scope:T,children:_}=b,x=me.useRef(null),N=me.useRef(new Map).current;return E.jsx(i,{scope:T,itemMap:N,collectionRef:x,children:_})};o.displayName=t;const s=e+"CollectionSlot",u=or(s),l=me.forwardRef((b,T)=>{const{scope:_,children:x}=b,N=a(s,_),k=Ue(T,N.collectionRef);return E.jsx(u,{ref:k,children:x})});l.displayName=s;const d=e+"CollectionItemSlot",c="data-radix-collection-item",h=or(d),p=me.forwardRef((b,T)=>{const{scope:_,children:x,...N}=b,k=me.useRef(null),O=Ue(T,k),w=a(d,_);return me.useEffect(()=>(w.itemMap.set(k,{ref:k,...N}),()=>void w.itemMap.delete(k))),E.jsx(h,{[c]:"",ref:O,children:x})});p.displayName=d;function g(b){const T=a(e+"CollectionConsumer",b);return me.useCallback(()=>{const x=T.collectionRef.current;if(!x)return[];const N=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(T.itemMap.values()).sort((w,M)=>N.indexOf(w.ref.current)-N.indexOf(M.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},g,r]}var l1=m.createContext(void 0);function Lo(e){const t=m.useContext(l1);return e||t||"ltr"}function nt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>t.current?.(...n),[])}function c1(e,t=globalThis?.document){const n=nt(e);m.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var d1="DismissableLayer",Po="dismissableLayer.update",f1="dismissableLayer.pointerDownOutside",h1="dismissableLayer.focusOutside",Xl,Ql=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qi=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...u}=e,l=m.useContext(Ql),[d,c]=m.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=m.useState({}),g=Ue(t,M=>c(M)),b=Array.from(l.layers),[T]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(T),x=d?b.indexOf(d):-1,N=l.layersWithOutsidePointerEventsDisabled.size>0,k=x>=_,O=g1(M=>{const H=M.target,z=[...l.branches].some(I=>I.contains(H));!k||z||(i?.(M),o?.(M),M.defaultPrevented||s?.())},h),w=E1(M=>{const H=M.target;[...l.branches].some(I=>I.contains(H))||(a?.(M),o?.(M),M.defaultPrevented||s?.())},h);return c1(M=>{x===l.layers.size-1&&(r?.(M),!M.defaultPrevented&&s&&(M.preventDefault(),s()))},h),m.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Xl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Zl(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Xl)}},[d,h,n,l]),m.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Zl())},[d,l]),m.useEffect(()=>{const M=()=>p({});return document.addEventListener(Po,M),()=>document.removeEventListener(Po,M)},[]),E.jsx(Ne.div,{...u,ref:g,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,w.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,O.onPointerDownCapture)})});Qi.displayName=d1;var p1="DismissableLayerBranch",m1=m.forwardRef((e,t)=>{const n=m.useContext(Ql),r=m.useRef(null),i=Ue(t,r);return m.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),E.jsx(Ne.div,{...e,ref:i})});m1.displayName=p1;function g1(e,t=globalThis?.document){const n=nt(e),r=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){Jl(f1,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function E1(e,t=globalThis?.document){const n=nt(e),r=m.useRef(!1);return m.useEffect(()=>{const i=a=>{a.target&&!r.current&&Jl(h1,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zl(){const e=new CustomEvent(Po);document.dispatchEvent(e)}function Jl(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ql(i,a):i.dispatchEvent(a)}var Fo=0;function ec(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??tc()),document.body.insertAdjacentElement("beforeend",e[1]??tc()),Fo++,()=>{Fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fo--}},[])}function tc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bo="focusScope.autoFocusOnMount",Uo="focusScope.autoFocusOnUnmount",nc={bubbles:!1,cancelable:!0},b1="FocusScope",Ho=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,u]=m.useState(null),l=nt(i),d=nt(a),c=m.useRef(null),h=Ue(t,b=>u(b)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let b=function(N){if(p.paused||!s)return;const k=N.target;s.contains(k)?c.current=k:xn(c.current,{select:!0})},T=function(N){if(p.paused||!s)return;const k=N.relatedTarget;k!==null&&(s.contains(k)||xn(c.current,{select:!0}))},_=function(N){if(document.activeElement===document.body)for(const O of N)O.removedNodes.length>0&&xn(s)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const x=new MutationObserver(_);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),x.disconnect()}}},[r,s,p.paused]),m.useEffect(()=>{if(s){ac.add(p);const b=document.activeElement;if(!s.contains(b)){const _=new CustomEvent(Bo,nc);s.addEventListener(Bo,l),s.dispatchEvent(_),_.defaultPrevented||(_1(y1(rc(s)),{select:!0}),document.activeElement===b&&xn(s))}return()=>{s.removeEventListener(Bo,l),setTimeout(()=>{const _=new CustomEvent(Uo,nc);s.addEventListener(Uo,d),s.dispatchEvent(_),_.defaultPrevented||xn(b??document.body,{select:!0}),s.removeEventListener(Uo,d),ac.remove(p)},0)}}},[s,l,d,p]);const g=m.useCallback(b=>{if(!n&&!r||p.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(T&&_){const x=b.currentTarget,[N,k]=T1(x);N&&k?!b.shiftKey&&_===k?(b.preventDefault(),n&&xn(N,{select:!0})):b.shiftKey&&_===N&&(b.preventDefault(),n&&xn(k,{select:!0})):_===x&&b.preventDefault()}},[n,r,p.paused]);return E.jsx(Ne.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});Ho.displayName=b1;function _1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xn(r,{select:t}),document.activeElement!==n)return}function T1(e){const t=rc(e),n=ic(t,e),r=ic(t.reverse(),e);return[n,r]}function rc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ic(e,t){for(const n of e)if(!A1(n,{upTo:t}))return n}function A1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function C1(e){return e instanceof HTMLInputElement&&"select"in e}function xn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&C1(e)&&t&&e.select()}}var ac=x1();function x1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=oc(e,t),e.unshift(t)},remove(t){e=oc(e,t),e[0]?.resume()}}}function oc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function y1(e){return e.filter(t=>t.tagName!=="A")}var S1=m[" useId ".trim().toString()]||(()=>{}),N1=0;function lt(e){const[t,n]=m.useState(S1());return qt(()=>{n(r=>r??String(N1++))},[e]),t?`radix-${t}`:""}const D1=["top","right","bottom","left"],yn=Math.min,Nt=Math.max,Zi=Math.round,Ji=Math.floor,Vt=e=>({x:e,y:e}),w1={left:"right",right:"left",bottom:"top",top:"bottom"},v1={start:"end",end:"start"};function zo(e,t,n){return Nt(e,yn(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function $o(e){return e==="x"?"y":"x"}function jo(e){return e==="y"?"height":"width"}const I1=new Set(["top","bottom"]);function Xt(e){return I1.has(pn(e))?"y":"x"}function Yo(e){return $o(Xt(e))}function k1(e,t,n){n===void 0&&(n=!1);const r=sr(e),i=Yo(e),a=jo(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ea(o)),[o,ea(o)]}function O1(e){const t=ea(e);return[Go(e),t,Go(t)]}function Go(e){return e.replace(/start|end/g,t=>v1[t])}const sc=["left","right"],uc=["right","left"],R1=["top","bottom"],M1=["bottom","top"];function L1(e,t,n){switch(e){case"top":case"bottom":return n?t?uc:sc:t?sc:uc;case"left":case"right":return t?R1:M1;default:return[]}}function P1(e,t,n,r){const i=sr(e);let a=L1(pn(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Go)))),a}function ea(e){return e.replace(/left|right|bottom|top/g,t=>w1[t])}function F1(e){return{top:0,right:0,bottom:0,left:0,...e}}function lc(e){return typeof e!="number"?F1(e):{top:e,right:e,bottom:e,left:e}}function ta(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cc(e,t,n){let{reference:r,floating:i}=e;const a=Xt(t),o=Yo(t),s=jo(o),u=pn(t),l=a==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let p;switch(u){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(sr(t)){case"start":p[o]-=h*(n&&l?-1:1);break;case"end":p[o]+=h*(n&&l?-1:1);break}return p}const B1=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=cc(l,r,u),h=r,p={},g=0;for(let b=0;b<s.length;b++){const{name:T,fn:_}=s[b],{x,y:N,data:k,reset:O}=await _({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});d=x??d,c=N??c,p={...p,[T]:{...p[T],...k}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(h=O.placement),O.rects&&(l=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:c}=cc(l,h,u)),b=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};async function Vr(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:p=0}=hn(t,e),g=lc(p),T=s[h?c==="floating"?"reference":"floating":c],_=ta(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:u})),x=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),k=await(a.isElement==null?void 0:a.isElement(N))?await(a.getScale==null?void 0:a.getScale(N))||{x:1,y:1}:{x:1,y:1},O=ta(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:N,strategy:u}):x);return{top:(_.top-O.top+g.top)/k.y,bottom:(O.bottom-_.bottom+g.bottom)/k.y,left:(_.left-O.left+g.left)/k.x,right:(O.right-_.right+g.right)/k.x}}const U1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:u}=t,{element:l,padding:d=0}=hn(e,t)||{};if(l==null)return{};const c=lc(d),h={x:n,y:r},p=Yo(i),g=jo(p),b=await o.getDimensions(l),T=p==="y",_=T?"top":"left",x=T?"bottom":"right",N=T?"clientHeight":"clientWidth",k=a.reference[g]+a.reference[p]-h[p]-a.floating[g],O=h[p]-a.reference[p],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let M=w?w[N]:0;(!M||!await(o.isElement==null?void 0:o.isElement(w)))&&(M=s.floating[N]||a.floating[g]);const H=k/2-O/2,z=M/2-b[g]/2-1,I=yn(c[_],z),$=yn(c[x],z),Y=I,G=M-b[g]-$,B=M/2-b[g]/2+H,K=zo(Y,B,G),ie=!u.arrow&&sr(i)!=null&&B!==K&&a.reference[g]/2-(B<Y?I:$)-b[g]/2<0,pe=ie?B<Y?B-Y:B-G:0;return{[p]:h[p]+pe,data:{[p]:K,centerOffset:B-K-pe,...ie&&{alignmentOffset:pe}},reset:ie}}}),H1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...T}=hn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const _=pn(i),x=Xt(s),N=pn(s)===s,k=await(u.isRTL==null?void 0:u.isRTL(l.floating)),O=h||(N||!b?[ea(s)]:O1(s)),w=g!=="none";!h&&w&&O.push(...P1(s,b,g,k));const M=[s,...O],H=await Vr(t,T),z=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&z.push(H[_]),c){const B=k1(i,o,k);z.push(H[B[0]],H[B[1]])}if(I=[...I,{placement:i,overflows:z}],!z.every(B=>B<=0)){var $,Y;const B=((($=a.flip)==null?void 0:$.index)||0)+1,K=M[B];if(K&&(!(c==="alignment"?x!==Xt(K):!1)||I.every(q=>Xt(q.placement)===x?q.overflows[0]>0:!0)))return{data:{index:B,overflows:I},reset:{placement:K}};let ie=(Y=I.filter(pe=>pe.overflows[0]<=0).sort((pe,q)=>pe.overflows[1]-q.overflows[1])[0])==null?void 0:Y.placement;if(!ie)switch(p){case"bestFit":{var G;const pe=(G=I.filter(q=>{if(w){const Q=Xt(q.placement);return Q===x||Q==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Q=>Q>0).reduce((Q,A)=>Q+A,0)]).sort((q,Q)=>q[1]-Q[1])[0])==null?void 0:G[0];pe&&(ie=pe);break}case"initialPlacement":ie=s;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function dc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fc(e){return D1.some(t=>e[t]>=0)}const z1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=hn(e,t);switch(r){case"referenceHidden":{const a=await Vr(t,{...i,elementContext:"reference"}),o=dc(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:fc(o)}}}case"escaped":{const a=await Vr(t,{...i,altBoundary:!0}),o=dc(a,n.floating);return{data:{escapedOffsets:o,escaped:fc(o)}}}default:return{}}}}},hc=new Set(["left","top"]);async function $1(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pn(n),s=sr(n),u=Xt(n)==="y",l=hc.has(o)?-1:1,d=a&&u?-1:1,c=hn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),u?{x:p*d,y:h*l}:{x:h*l,y:p*d}}const j1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,u=await $1(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},Y1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:_,y:x}=T;return{x:_,y:x}}},...u}=hn(e,t),l={x:n,y:r},d=await Vr(t,u),c=Xt(pn(i)),h=$o(c);let p=l[h],g=l[c];if(a){const T=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=p+d[T],N=p-d[_];p=zo(x,p,N)}if(o){const T=c==="y"?"top":"left",_=c==="y"?"bottom":"right",x=g+d[T],N=g-d[_];g=zo(x,g,N)}const b=s.fn({...t,[h]:p,[c]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:a,[c]:o}}}}}},G1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=hn(e,t),d={x:n,y:r},c=Xt(i),h=$o(c);let p=d[h],g=d[c];const b=hn(s,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const N=h==="y"?"height":"width",k=a.reference[h]-a.floating[N]+T.mainAxis,O=a.reference[h]+a.reference[N]-T.mainAxis;p<k?p=k:p>O&&(p=O)}if(l){var _,x;const N=h==="y"?"width":"height",k=hc.has(pn(i)),O=a.reference[c]-a.floating[N]+(k&&((_=o.offset)==null?void 0:_[c])||0)+(k?0:T.crossAxis),w=a.reference[c]+a.reference[N]+(k?0:((x=o.offset)==null?void 0:x[c])||0)-(k?T.crossAxis:0);g<O?g=O:g>w&&(g=w)}return{[h]:p,[c]:g}}}},W1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:u=()=>{},...l}=hn(e,t),d=await Vr(t,l),c=pn(i),h=sr(i),p=Xt(i)==="y",{width:g,height:b}=a.floating;let T,_;c==="top"||c==="bottom"?(T=c,_=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(_=c,T=h==="end"?"top":"bottom");const x=b-d.top-d.bottom,N=g-d.left-d.right,k=yn(b-d[T],x),O=yn(g-d[_],N),w=!t.middlewareData.shift;let M=k,H=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=x),w&&!h){const I=Nt(d.left,0),$=Nt(d.right,0),Y=Nt(d.top,0),G=Nt(d.bottom,0);p?H=g-2*(I!==0||$!==0?I+$:Nt(d.left,d.right)):M=b-2*(Y!==0||G!==0?Y+G:Nt(d.top,d.bottom))}await u({...t,availableWidth:H,availableHeight:M});const z=await o.getDimensions(s.floating);return g!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function na(){return typeof window<"u"}function ur(e){return pc(e)?(e.nodeName||"").toLowerCase():"#document"}function Dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){var t;return(t=(pc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pc(e){return na()?e instanceof Node||e instanceof Dt(e).Node:!1}function Ht(e){return na()?e instanceof Element||e instanceof Dt(e).Element:!1}function Zt(e){return na()?e instanceof HTMLElement||e instanceof Dt(e).HTMLElement:!1}function mc(e){return!na()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dt(e).ShadowRoot}const K1=new Set(["inline","contents"]);function Xr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!K1.has(i)}const q1=new Set(["table","td","th"]);function V1(e){return q1.has(ur(e))}const X1=[":popover-open",":modal"];function ra(e){return X1.some(t=>{try{return e.matches(t)}catch{return!1}})}const Q1=["transform","translate","scale","rotate","perspective"],Z1=["transform","translate","scale","rotate","perspective","filter"],J1=["paint","layout","strict","content"];function Wo(e){const t=Ko(),n=Ht(e)?zt(e):e;return Q1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Z1.some(r=>(n.willChange||"").includes(r))||J1.some(r=>(n.contain||"").includes(r))}function e_(e){let t=Sn(e);for(;Zt(t)&&!lr(t);){if(Wo(t))return t;if(ra(t))return null;t=Sn(t)}return null}function Ko(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const t_=new Set(["html","body","#document"]);function lr(e){return t_.has(ur(e))}function zt(e){return Dt(e).getComputedStyle(e)}function ia(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sn(e){if(ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mc(e)&&e.host||Qt(e);return mc(t)?t.host:t}function gc(e){const t=Sn(e);return lr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&Xr(t)?t:gc(t)}function Qr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=gc(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Dt(i);if(a){const s=qo(o);return t.concat(o,o.visualViewport||[],Xr(i)?i:[],s&&n?Qr(s):[])}return t.concat(i,Qr(i,[],n))}function qo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Zi(n)!==a||Zi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Vo(e){return Ht(e)?e:e.contextElement}function cr(e){const t=Vo(e);if(!Zt(t))return Vt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ec(t);let o=(a?Zi(n.width):n.width)/r,s=(a?Zi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const n_=Vt(0);function bc(e){const t=Dt(e);return!Ko()||!t.visualViewport?n_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dt(e)?!1:t}function zn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Vo(e);let o=Vt(1);t&&(r?Ht(r)&&(o=cr(r)):o=cr(e));const s=r_(a,n,r)?bc(a):Vt(0);let u=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,d=i.width/o.x,c=i.height/o.y;if(a){const h=Dt(a),p=r&&Ht(r)?Dt(r):r;let g=h,b=qo(g);for(;b&&r&&p!==g;){const T=cr(b),_=b.getBoundingClientRect(),x=zt(b),N=_.left+(b.clientLeft+parseFloat(x.paddingLeft))*T.x,k=_.top+(b.clientTop+parseFloat(x.paddingTop))*T.y;u*=T.x,l*=T.y,d*=T.x,c*=T.y,u+=N,l+=k,g=Dt(b),b=qo(g)}}return ta({width:d,height:c,x:u,y:l})}function Xo(e,t){const n=ia(e).scrollLeft;return t?t.left+n:zn(Qt(e)).left+n}function _c(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Xo(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function i_(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Qt(r),s=t?ra(t.floating):!1;if(r===o||s&&a)return n;let u={scrollLeft:0,scrollTop:0},l=Vt(1);const d=Vt(0),c=Zt(r);if((c||!c&&!a)&&((ur(r)!=="body"||Xr(o))&&(u=ia(r)),Zt(r))){const p=zn(r);l=cr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=o&&!c&&!a?_c(o,u,!0):Vt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-u.scrollTop*l.y+d.y+h.y}}function a_(e){return Array.from(e.getClientRects())}function o_(e){const t=Qt(e),n=ia(e),r=e.ownerDocument.body,i=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Xo(e);const s=-n.scrollTop;return zt(r).direction==="rtl"&&(o+=Nt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function s_(e,t){const n=Dt(e),r=Qt(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const l=Ko();(!l||l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}const u_=new Set(["absolute","fixed"]);function l_(e,t){const n=zn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Zt(e)?cr(e):Vt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,l=r*a.y;return{width:o,height:s,x:u,y:l}}function Tc(e,t,n){let r;if(t==="viewport")r=s_(e,n);else if(t==="document")r=o_(Qt(e));else if(Ht(t))r=l_(t,n);else{const i=bc(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ta(r)}function Ac(e,t){const n=Sn(e);return n===t||!Ht(n)||lr(n)?!1:zt(n).position==="fixed"||Ac(n,t)}function c_(e,t){const n=t.get(e);if(n)return n;let r=Qr(e,[],!1).filter(s=>Ht(s)&&ur(s)!=="body"),i=null;const a=zt(e).position==="fixed";let o=a?Sn(e):e;for(;Ht(o)&&!lr(o);){const s=zt(o),u=Wo(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&u_.has(i.position)||Xr(o)&&!u&&Ac(e,o))?r=r.filter(d=>d!==o):i=s,o=Sn(o)}return t.set(e,r),r}function d_(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?ra(t)?[]:c_(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((l,d)=>{const c=Tc(t,d,i);return l.top=Nt(c.top,l.top),l.right=yn(c.right,l.right),l.bottom=yn(c.bottom,l.bottom),l.left=Nt(c.left,l.left),l},Tc(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function f_(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}}function h_(e,t,n){const r=Zt(t),i=Qt(t),a=n==="fixed",o=zn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=Vt(0);function l(){u.x=Xo(i)}if(r||!r&&!a)if((ur(t)!=="body"||Xr(i))&&(s=ia(t)),r){const p=zn(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&l();a&&!r&&i&&l();const d=i&&!r&&!a?_c(i,s):Vt(0),c=o.left+s.scrollLeft-u.x-d.x,h=o.top+s.scrollTop-u.y-d.y;return{x:c,y:h,width:o.width,height:o.height}}function Qo(e){return zt(e).position==="static"}function Cc(e,t){if(!Zt(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function xc(e,t){const n=Dt(e);if(ra(e))return n;if(!Zt(e)){let i=Sn(e);for(;i&&!lr(i);){if(Ht(i)&&!Qo(i))return i;i=Sn(i)}return n}let r=Cc(e,t);for(;r&&V1(r)&&Qo(r);)r=Cc(r,t);return r&&lr(r)&&Qo(r)&&!Wo(r)?n:r||e_(e)||n}const p_=async function(e){const t=this.getOffsetParent||xc,n=this.getDimensions,r=await n(e.floating);return{reference:h_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m_(e){return zt(e).direction==="rtl"}const g_={convertOffsetParentRelativeRectToViewportRelativeRect:i_,getDocumentElement:Qt,getClippingRect:d_,getOffsetParent:xc,getElementRects:p_,getClientRects:a_,getDimensions:f_,getScale:cr,isElement:Ht,isRTL:m_};function yc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function E_(e,t){let n=null,r;const i=Qt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:d,top:c,width:h,height:p}=l;if(s||t(),!h||!p)return;const g=Ji(c),b=Ji(i.clientWidth-(d+h)),T=Ji(i.clientHeight-(c+p)),_=Ji(d),N={rootMargin:-g+"px "+-b+"px "+-T+"px "+-_+"px",threshold:Nt(0,yn(1,u))||1};let k=!0;function O(w){const M=w[0].intersectionRatio;if(M!==u){if(!k)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}M===1&&!yc(l,e.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(O,{...N,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,N)}n.observe(e)}return o(!0),a}function b_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Vo(e),d=i||a?[...l?Qr(l):[],...Qr(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),a&&_.addEventListener("resize",n)});const c=l&&s?E_(l,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var N;(N=p)==null||N.observe(t)})),n()}),l&&!u&&p.observe(l),p.observe(t));let g,b=u?zn(e):null;u&&T();function T(){const _=zn(e);b&&!yc(b,_)&&n(),b=_,g=requestAnimationFrame(T)}return n(),()=>{var _;d.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c?.(),(_=p)==null||_.disconnect(),p=null,u&&cancelAnimationFrame(g)}}const __=j1,T_=Y1,A_=H1,C_=W1,x_=z1,Sc=U1,y_=G1,S_=(e,t,n)=>{const r=new Map,i={platform:g_,...n},a={...i.platform,_c:r};return B1(e,t,{...i,platform:a})};var N_=typeof document<"u",D_=function(){},aa=N_?me.useLayoutEffect:D_;function oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!oa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!oa(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Nc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dc(e,t){const n=Nc(e);return Math.round(t*n)/n}function Zo(e){const t=m.useRef(e);return aa(()=>{t.current=e}),t}function w_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[d,c]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=m.useState(r);oa(h,r)||p(r);const[g,b]=m.useState(null),[T,_]=m.useState(null),x=m.useCallback(q=>{q!==w.current&&(w.current=q,b(q))},[]),N=m.useCallback(q=>{q!==M.current&&(M.current=q,_(q))},[]),k=a||g,O=o||T,w=m.useRef(null),M=m.useRef(null),H=m.useRef(d),z=u!=null,I=Zo(u),$=Zo(i),Y=Zo(l),G=m.useCallback(()=>{if(!w.current||!M.current)return;const q={placement:t,strategy:n,middleware:h};$.current&&(q.platform=$.current),S_(w.current,M.current,q).then(Q=>{const A={...Q,isPositioned:Y.current!==!1};B.current&&!oa(H.current,A)&&(H.current=A,Ml.flushSync(()=>{c(A)}))})},[h,t,n,$,Y]);aa(()=>{l===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,c(q=>({...q,isPositioned:!1})))},[l]);const B=m.useRef(!1);aa(()=>(B.current=!0,()=>{B.current=!1}),[]),aa(()=>{if(k&&(w.current=k),O&&(M.current=O),k&&O){if(I.current)return I.current(k,O,G);G()}},[k,O,G,I,z]);const K=m.useMemo(()=>({reference:w,floating:M,setReference:x,setFloating:N}),[x,N]),ie=m.useMemo(()=>({reference:k,floating:O}),[k,O]),pe=m.useMemo(()=>{const q={position:n,left:0,top:0};if(!ie.floating)return q;const Q=Dc(ie.floating,d.x),A=Dc(ie.floating,d.y);return s?{...q,transform:"translate("+Q+"px, "+A+"px)",...Nc(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:A}},[n,s,ie.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:G,refs:K,elements:ie,floatingStyles:pe}),[d,G,K,ie,pe])}const v_=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Sc({element:r.current,padding:i}).fn(n):{}:r?Sc({element:r,padding:i}).fn(n):{}}}},I_=(e,t)=>({...__(e),options:[e,t]}),k_=(e,t)=>({...T_(e),options:[e,t]}),O_=(e,t)=>({...y_(e),options:[e,t]}),R_=(e,t)=>({...A_(e),options:[e,t]}),M_=(e,t)=>({...C_(e),options:[e,t]}),L_=(e,t)=>({...x_(e),options:[e,t]}),P_=(e,t)=>({...v_(e),options:[e,t]});var F_="Arrow",wc=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return E.jsx(Ne.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});wc.displayName=F_;var B_=wc;function U_(e){const[t,n]=m.useState(void 0);return qt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;o=l.inlineSize,s=l.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jo="Popper",[vc,sa]=Kt(Jo),[H_,Ic]=vc(Jo),kc=e=>{const{__scopePopper:t,children:n}=e,[r,i]=m.useState(null);return E.jsx(H_,{scope:t,anchor:r,onAnchorChange:i,children:n})};kc.displayName=Jo;var Oc="PopperAnchor",Rc=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Ic(Oc,n),o=m.useRef(null),s=Ue(t,o);return m.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:E.jsx(Ne.div,{...i,ref:s})});Rc.displayName=Oc;var es="PopperContent",[z_,$_]=vc(es),Mc=m.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:g,...b}=e,T=Ic(es,n),[_,x]=m.useState(null),N=Ue(t,de=>x(de)),[k,O]=m.useState(null),w=U_(k),M=w?.width??0,H=w?.height??0,z=r+(a!=="center"?"-"+a:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],Y=$.length>0,G={padding:I,boundary:$.filter(Y_),altBoundary:Y},{refs:B,floatingStyles:K,placement:ie,isPositioned:pe,middlewareData:q}=w_({strategy:"fixed",placement:z,whileElementsMounted:(...de)=>b_(...de,{animationFrame:p==="always"}),elements:{reference:T.anchor},middleware:[I_({mainAxis:i+H,alignmentAxis:o}),u&&k_({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?O_():void 0,...G}),u&&R_({...G}),M_({...G,apply:({elements:de,rects:be,availableWidth:Re,availableHeight:Ge})=>{const{width:Ut,height:rr}=be.reference,un=de.floating.style;un.setProperty("--radix-popper-available-width",`${Re}px`),un.setProperty("--radix-popper-available-height",`${Ge}px`),un.setProperty("--radix-popper-anchor-width",`${Ut}px`),un.setProperty("--radix-popper-anchor-height",`${rr}px`)}}),k&&P_({element:k,padding:s}),G_({arrowWidth:M,arrowHeight:H}),h&&L_({strategy:"referenceHidden",...G})]}),[Q,A]=Fc(ie),ee=nt(g);qt(()=>{pe&&ee?.()},[pe,ee]);const L=q.arrow?.x,y=q.arrow?.y,se=q.arrow?.centerOffset!==0,[te,ue]=m.useState();return qt(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),E.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:pe?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(z_,{scope:n,placedSide:Q,onArrowChange:O,arrowX:L,arrowY:y,shouldHideArrow:se,children:E.jsx(Ne.div,{"data-side":Q,"data-align":A,...b,ref:N,style:{...b.style,animation:pe?void 0:"none"}})})})});Mc.displayName=es;var Lc="PopperArrow",j_={top:"bottom",right:"left",bottom:"top",left:"right"},Pc=m.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=$_(Lc,r),o=j_[a.placedSide];return E.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:E.jsx(B_,{...i,ref:n,style:{...i.style,display:"block"}})})});Pc.displayName=Lc;function Y_(e){return e!==null}var G_=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,u=o?0:e.arrowHeight,[l,d]=Fc(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+u/2;let g="",b="";return l==="bottom"?(g=o?c:`${h}px`,b=`${-u}px`):l==="top"?(g=o?c:`${h}px`,b=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,b=o?c:`${p}px`):l==="left"&&(g=`${r.floating.width+u}px`,b=o?c:`${p}px`),{data:{x:g,y:b}}}});function Fc(e){const[t,n="center"]=e.split("-");return[t,n]}var ts=kc,Bc=Rc,Uc=Mc,Hc=Pc,W_="Portal",ua=m.forwardRef((e,t)=>{const{container:n,...r}=e,[i,a]=m.useState(!1);qt(()=>a(!0),[]);const o=n||i&&globalThis?.document?.body;return o?Ol.createPortal(E.jsx(Ne.div,{...r,ref:t}),o):null});ua.displayName=W_;function K_(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var Et=e=>{const{present:t,children:n}=e,r=q_(t),i=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),a=Ue(r.ref,V_(i));return typeof n=="function"||r.isPresent?m.cloneElement(i,{ref:a}):null};Et.displayName="Presence";function q_(e){const[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),a=m.useRef("none"),o=e?"mounted":"unmounted",[s,u]=K_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=la(r.current);a.current=s==="mounted"?l:"none"},[s]),qt(()=>{const l=r.current,d=i.current;if(d!==e){const h=a.current,p=la(l);e?u("MOUNT"):p==="none"||l?.display==="none"?u("UNMOUNT"):u(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),qt(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,c=p=>{const b=la(r.current).includes(p.animationName);if(p.target===t&&b&&(u("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},h=p=>{p.target===t&&(a.current=la(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function la(e){return e?.animationName||"none"}function V_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ns="rovingFocusGroup.onEntryFocus",X_={bubbles:!1,cancelable:!0},Zr="RovingFocusGroup",[rs,zc,Q_]=Vl(Zr),[Z_,$c]=Kt(Zr,[Q_]),[J_,eT]=Z_(Zr),jc=m.forwardRef((e,t)=>E.jsx(rs.Provider,{scope:e.__scopeRovingFocusGroup,children:E.jsx(rs.Slot,{scope:e.__scopeRovingFocusGroup,children:E.jsx(tT,{...e,ref:t})})}));jc.displayName=Zr;var tT=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...c}=e,h=m.useRef(null),p=Ue(t,h),g=Lo(a),[b,T]=Hn({prop:o,defaultProp:s??null,onChange:u,caller:Zr}),[_,x]=m.useState(!1),N=nt(l),k=zc(n),O=m.useRef(!1),[w,M]=m.useState(0);return m.useEffect(()=>{const H=h.current;if(H)return H.addEventListener(ns,N),()=>H.removeEventListener(ns,N)},[N]),E.jsx(J_,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:b,onItemFocus:m.useCallback(H=>T(H),[T]),onItemShiftTab:m.useCallback(()=>x(!0),[]),onFocusableItemAdd:m.useCallback(()=>M(H=>H+1),[]),onFocusableItemRemove:m.useCallback(()=>M(H=>H-1),[]),children:E.jsx(Ne.div,{tabIndex:_||w===0?-1:0,"data-orientation":r,...c,ref:p,style:{outline:"none",...e.style},onMouseDown:ce(e.onMouseDown,()=>{O.current=!0}),onFocus:ce(e.onFocus,H=>{const z=!O.current;if(H.target===H.currentTarget&&z&&!_){const I=new CustomEvent(ns,X_);if(H.currentTarget.dispatchEvent(I),!I.defaultPrevented){const $=k().filter(ie=>ie.focusable),Y=$.find(ie=>ie.active),G=$.find(ie=>ie.id===b),K=[Y,G,...$].filter(Boolean).map(ie=>ie.ref.current);Wc(K,d)}}O.current=!1}),onBlur:ce(e.onBlur,()=>x(!1))})})}),Yc="RovingFocusGroupItem",Gc=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,u=lt(),l=a||u,d=eT(Yc,n),c=d.currentTabStopId===l,h=zc(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:b}=d;return m.useEffect(()=>{if(r)return p(),()=>g()},[r,p,g]),E.jsx(rs.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:E.jsx(Ne.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:ce(e.onMouseDown,T=>{r?d.onItemFocus(l):T.preventDefault()}),onFocus:ce(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:ce(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){d.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const _=iT(T,d.orientation,d.dir);if(_!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let N=h().filter(k=>k.focusable).map(k=>k.ref.current);if(_==="last")N.reverse();else if(_==="prev"||_==="next"){_==="prev"&&N.reverse();const k=N.indexOf(T.currentTarget);N=d.loop?aT(N,k+1):N.slice(k+1)}setTimeout(()=>Wc(N))}}),children:typeof o=="function"?o({isCurrentTabStop:c,hasTabStop:b!=null}):o})})});Gc.displayName=Yc;var nT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iT(e,t,n){const r=rT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return nT[r]}function Wc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function aT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var oT=jc,sT=Gc,uT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dr=new WeakMap,ca=new WeakMap,da={},is=0,Kc=function(e){return e&&(e.host||Kc(e.parentNode))},lT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Kc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cT=function(e,t,n,r){var i=lT(t,Array.isArray(e)?e:[e]);da[n]||(da[n]=new WeakMap);var a=da[n],o=[],s=new Set,u=new Set(i),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};i.forEach(l);var d=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))d(h);else try{var p=h.getAttribute(r),g=p!==null&&p!=="false",b=(dr.get(h)||0)+1,T=(a.get(h)||0)+1;dr.set(h,b),a.set(h,T),o.push(h),b===1&&g&&ca.set(h,!0),T===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),s.clear(),is++,function(){o.forEach(function(c){var h=dr.get(c)-1,p=a.get(c)-1;dr.set(c,h),a.set(c,p),h||(ca.has(c)||c.removeAttribute(r),ca.delete(c)),p||c.removeAttribute(n)}),is--,is||(dr=new WeakMap,dr=new WeakMap,ca=new WeakMap,da={})}},qc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=uT(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),cT(r,i,n,"aria-hidden")):function(){return null}},Jt=function(){return Jt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Jt.apply(this,arguments)};function Vc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function dT(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var fa="right-scroll-bar-position",ha="width-before-scroll-bar",fT="with-scroll-bars-hidden",hT="--removed-body-scroll-bar-size";function as(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pT(e,t){var n=me.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var mT=typeof window<"u"?m.useLayoutEffect:m.useEffect,Xc=new WeakMap;function gT(e,t){var n=pT(null,function(r){return e.forEach(function(i){return as(i,r)})});return mT(function(){var r=Xc.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||as(s,null)}),a.forEach(function(s){i.has(s)||as(s,o)})}Xc.set(n,e)},[e]),n}function ET(e){return e}function bT(e,t){t===void 0&&(t=ET);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var u=function(){var d=o;o=[],d.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(d){o.push(d),l()},filter:function(d){return o=o.filter(d),n}}}};return i}function _T(e){e===void 0&&(e={});var t=bT(null);return t.options=Jt({async:!0,ssr:!1},e),t}var Qc=function(e){var t=e.sideCar,n=Vc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Jt({},n))};Qc.isSideCarExport=!0;function TT(e,t){return e.useMedium(t),Qc}var Zc=_T(),os=function(){},pa=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:os,onWheelCapture:os,onTouchMoveCapture:os}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,p=e.noRelative,g=e.noIsolation,b=e.inert,T=e.allowPinchZoom,_=e.as,x=_===void 0?"div":_,N=e.gapMode,k=Vc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=h,w=gT([n,t]),M=Jt(Jt({},k),i);return m.createElement(m.Fragment,null,d&&m.createElement(O,{sideCar:Zc,removeScrollBar:l,shards:c,noRelative:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:N}),o?m.cloneElement(m.Children.only(s),Jt(Jt({},M),{ref:w})):m.createElement(x,Jt({},M,{className:u,ref:w}),s))});pa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pa.classNames={fullWidth:ha,zeroRight:fa};var AT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AT();return t&&e.setAttribute("nonce",t),e}function xT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ST=function(){var e=0,t=null;return{add:function(n){e==0&&(t=CT())&&(xT(t,n),yT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NT=function(){var e=ST();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jc=function(){var e=NT(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},DT={left:0,top:0,right:0,gap:0},ss=function(e){return parseInt(e||"",10)||0},wT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ss(n),ss(r),ss(i)]},vT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DT;var t=wT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IT=Jc(),fr="data-scroll-locked",kT=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
88
- .`.concat(fT,` {
87
+ */const Jb=et("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);/**
88
+ * @license lucide-react v0.539.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Yl=et("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/**
93
+ * @license lucide-react v0.539.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const e1=et("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
98
+ * @license lucide-react v0.539.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const t1=et("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
103
+ * @license lucide-react v0.539.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const n1=et("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
108
+ * @license lucide-react v0.539.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const r1=et("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
113
+ * @license lucide-react v0.539.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const i1=et("tv",[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]]);/**
118
+ * @license lucide-react v0.539.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const a1=et("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
123
+ * @license lucide-react v0.539.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const o1=et("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
128
+ * @license lucide-react v0.539.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const s1=et("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
133
+ * @license lucide-react v0.539.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const u1=et("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),l1={theme:"system",setTheme:()=>null},Gl=me.createContext(l1);function Wl({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,a]=me.useState(()=>localStorage.getItem(n)||t);me.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),i==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(u);return}s.classList.add(i)},[i]);const o={theme:i,setTheme:s=>{localStorage.setItem(n,s),a(s)}};return m.jsx(Gl.Provider,{...r,value:o,children:e})}const Vr=()=>{const e=me.useContext(Gl);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function Kl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fn(...e){return t=>{let n=!1;const r=e.map(i=>{const a=Kl(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Kl(e[i],null)}}}}function Ue(...e){return g.useCallback(fn(...e),e)}function or(e){const t=d1(e),n=g.forwardRef((r,i)=>{const{children:a,...o}=r,s=g.Children.toArray(a),u=s.find(h1);if(u){const l=u.props.children,d=s.map(c=>c===u?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:c);return m.jsx(t,{...o,ref:i,children:g.isValidElement(l)?g.cloneElement(l,void 0,d):null})}return m.jsx(t,{...o,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var c1=or("Slot");function d1(e){const t=g.forwardRef((n,r)=>{const{children:i,...a}=n;if(g.isValidElement(i)){const o=m1(i),s=p1(a,i.props);return i.type!==g.Fragment&&(s.ref=r?fn(r,o):o),g.cloneElement(i,s)}return g.Children.count(i)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ql=Symbol("radix.slottable");function f1(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ql,t}function h1(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ql}function p1(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...s)=>{const u=a(...s);return i(...s),u}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function m1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Vl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xl=Il.clsx,g1=(e,t)=>n=>{var r;if(t?.variants==null)return Xl(e,n?.class,n?.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(l=>{const d=n?.[l],c=a?.[l];if(d===null)return null;const h=Vl(d)||Vl(c);return i[l][h]}),s=n&&Object.entries(n).reduce((l,d)=>{let[c,h]=d;return h===void 0||(l[c]=h),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:c,className:h,...p}=d;return Object.entries(p).every(E=>{let[b,T]=E;return Array.isArray(T)?T.includes({...a,...s}[b]):{...a,...s}[b]===T})?[...l,c,h]:l},[]);return Xl(e,o,u,n?.class,n?.className)};function _e(...e){return zb.twMerge(Il.clsx(e))}const ea=g1("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mo=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?c1:"button";return m.jsx(o,{className:_e(ea({variant:t,size:n,className:e})),ref:a,...i})});Mo.displayName="Button";function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function E1(e,t){const n=g.createContext(t),r=a=>{const{children:o,...s}=a,u=g.useMemo(()=>s,Object.values(s));return m.jsx(n.Provider,{value:u,children:o})};r.displayName=e+"Provider";function i(a){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function qt(e,t=[]){let n=[];function r(a,o){const s=g.createContext(o),u=n.length;n=[...n,o];const l=c=>{const{scope:h,children:p,...E}=c,b=h?.[e]?.[u]||s,T=g.useMemo(()=>E,Object.values(E));return m.jsx(b.Provider,{value:T,children:p})};l.displayName=a+"Provider";function d(c,h){const p=h?.[e]?.[u]||s,E=g.useContext(p);if(E)return E;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,d]}const i=()=>{const a=n.map(o=>g.createContext(o));return function(s){const u=s?.[e]||a;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return i.scopeName=e,[r,b1(i,...t)]}function b1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:u,scopeName:l})=>{const c=u(a)[`__scope${l}`];return{...s,...c}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Vt=globalThis?.document?g.useLayoutEffect:()=>{},_1=g[" useInsertionEffect ".trim().toString()]||Vt;function Hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,o]=T1({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:i;{const d=g.useRef(e!==void 0);g.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const l=g.useCallback(d=>{if(s){const c=A1(d)?d(e):d;c!==e&&o.current?.(c)}else a(d)},[s,e,a,o]);return[u,l]}function T1({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),i=g.useRef(n),a=g.useRef(t);return _1(()=>{a.current=t},[t]),g.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function A1(e){return typeof e=="function"}var x1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=x1.reduce((e,t)=>{const n=or(`Primitive.${t}`),r=g.forwardRef((i,a)=>{const{asChild:o,...s}=i,u=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ql(e,t){e&&Ml.flushSync(()=>e.dispatchEvent(t))}function Zl(e){const t=e+"CollectionProvider",[n,r]=qt(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=b=>{const{scope:T,children:_}=b,C=me.useRef(null),N=me.useRef(new Map).current;return m.jsx(i,{scope:T,itemMap:N,collectionRef:C,children:_})};o.displayName=t;const s=e+"CollectionSlot",u=or(s),l=me.forwardRef((b,T)=>{const{scope:_,children:C}=b,N=a(s,_),I=Ue(T,N.collectionRef);return m.jsx(u,{ref:I,children:C})});l.displayName=s;const d=e+"CollectionItemSlot",c="data-radix-collection-item",h=or(d),p=me.forwardRef((b,T)=>{const{scope:_,children:C,...N}=b,I=me.useRef(null),O=Ue(T,I),w=a(d,_);return me.useEffect(()=>(w.itemMap.set(I,{ref:I,...N}),()=>void w.itemMap.delete(I))),m.jsx(h,{[c]:"",ref:O,children:C})});p.displayName=d;function E(b){const T=a(e+"CollectionConsumer",b);return me.useCallback(()=>{const C=T.collectionRef.current;if(!C)return[];const N=Array.from(C.querySelectorAll(`[${c}]`));return Array.from(T.itemMap.values()).sort((w,M)=>N.indexOf(w.ref.current)-N.indexOf(M.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},E,r]}var C1=g.createContext(void 0);function Lo(e){const t=g.useContext(C1);return e||t||"ltr"}function rt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>t.current?.(...n),[])}function y1(e,t=globalThis?.document){const n=rt(e);g.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var S1="DismissableLayer",Po="dismissableLayer.update",N1="dismissableLayer.pointerDownOutside",D1="dismissableLayer.focusOutside",Jl,ec=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ta=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...u}=e,l=g.useContext(ec),[d,c]=g.useState(null),h=d?.ownerDocument??globalThis?.document,[,p]=g.useState({}),E=Ue(t,M=>c(M)),b=Array.from(l.layers),[T]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=b.indexOf(T),C=d?b.indexOf(d):-1,N=l.layersWithOutsidePointerEventsDisabled.size>0,I=C>=_,O=k1(M=>{const H=M.target,z=[...l.branches].some(k=>k.contains(H));!I||z||(i?.(M),o?.(M),M.defaultPrevented||s?.())},h),w=I1(M=>{const H=M.target;[...l.branches].some(k=>k.contains(H))||(a?.(M),o?.(M),M.defaultPrevented||s?.())},h);return y1(M=>{C===l.layers.size-1&&(r?.(M),!M.defaultPrevented&&s&&(M.preventDefault(),s()))},h),g.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Jl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),tc(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Jl)}},[d,h,n,l]),g.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),tc())},[d,l]),g.useEffect(()=>{const M=()=>p({});return document.addEventListener(Po,M),()=>document.removeEventListener(Po,M)},[]),m.jsx(Ne.div,{...u,ref:E,style:{pointerEvents:N?I?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,w.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,O.onPointerDownCapture)})});ta.displayName=S1;var w1="DismissableLayerBranch",v1=g.forwardRef((e,t)=>{const n=g.useContext(ec),r=g.useRef(null),i=Ue(t,r);return g.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(Ne.div,{...e,ref:i})});v1.displayName=w1;function k1(e,t=globalThis?.document){const n=rt(e),r=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){nc(N1,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function I1(e,t=globalThis?.document){const n=rt(e),r=g.useRef(!1);return g.useEffect(()=>{const i=a=>{a.target&&!r.current&&nc(D1,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tc(){const e=new CustomEvent(Po);document.dispatchEvent(e)}function nc(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ql(i,a):i.dispatchEvent(a)}var Fo=0;function rc(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ic()),document.body.insertAdjacentElement("beforeend",e[1]??ic()),Fo++,()=>{Fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fo--}},[])}function ic(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bo="focusScope.autoFocusOnMount",Uo="focusScope.autoFocusOnUnmount",ac={bubbles:!1,cancelable:!0},O1="FocusScope",Ho=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,u]=g.useState(null),l=rt(i),d=rt(a),c=g.useRef(null),h=Ue(t,b=>u(b)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let b=function(N){if(p.paused||!s)return;const I=N.target;s.contains(I)?c.current=I:Cn(c.current,{select:!0})},T=function(N){if(p.paused||!s)return;const I=N.relatedTarget;I!==null&&(s.contains(I)||Cn(c.current,{select:!0}))},_=function(N){if(document.activeElement===document.body)for(const O of N)O.removedNodes.length>0&&Cn(s)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const C=new MutationObserver(_);return s&&C.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),C.disconnect()}}},[r,s,p.paused]),g.useEffect(()=>{if(s){uc.add(p);const b=document.activeElement;if(!s.contains(b)){const _=new CustomEvent(Bo,ac);s.addEventListener(Bo,l),s.dispatchEvent(_),_.defaultPrevented||(R1(B1(oc(s)),{select:!0}),document.activeElement===b&&Cn(s))}return()=>{s.removeEventListener(Bo,l),setTimeout(()=>{const _=new CustomEvent(Uo,ac);s.addEventListener(Uo,d),s.dispatchEvent(_),_.defaultPrevented||Cn(b??document.body,{select:!0}),s.removeEventListener(Uo,d),uc.remove(p)},0)}}},[s,l,d,p]);const E=g.useCallback(b=>{if(!n&&!r||p.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,_=document.activeElement;if(T&&_){const C=b.currentTarget,[N,I]=M1(C);N&&I?!b.shiftKey&&_===I?(b.preventDefault(),n&&Cn(N,{select:!0})):b.shiftKey&&_===N&&(b.preventDefault(),n&&Cn(I,{select:!0})):_===C&&b.preventDefault()}},[n,r,p.paused]);return m.jsx(Ne.div,{tabIndex:-1,...o,ref:h,onKeyDown:E})});Ho.displayName=O1;function R1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function M1(e){const t=oc(e),n=sc(t,e),r=sc(t.reverse(),e);return[n,r]}function oc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sc(e,t){for(const n of e)if(!L1(n,{upTo:t}))return n}function L1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function P1(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&P1(e)&&t&&e.select()}}var uc=F1();function F1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=lc(e,t),e.unshift(t)},remove(t){e=lc(e,t),e[0]?.resume()}}}function lc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function B1(e){return e.filter(t=>t.tagName!=="A")}var U1=g[" useId ".trim().toString()]||(()=>{}),H1=0;function ct(e){const[t,n]=g.useState(U1());return Vt(()=>{n(r=>r??String(H1++))},[e]),t?`radix-${t}`:""}const z1=["top","right","bottom","left"],yn=Math.min,Dt=Math.max,na=Math.round,ra=Math.floor,Xt=e=>({x:e,y:e}),$1={left:"right",right:"left",bottom:"top",top:"bottom"},j1={start:"end",end:"start"};function zo(e,t,n){return Dt(e,yn(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function $o(e){return e==="x"?"y":"x"}function jo(e){return e==="y"?"height":"width"}const Y1=new Set(["top","bottom"]);function Qt(e){return Y1.has(pn(e))?"y":"x"}function Yo(e){return $o(Qt(e))}function G1(e,t,n){n===void 0&&(n=!1);const r=sr(e),i=Yo(e),a=jo(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ia(o)),[o,ia(o)]}function W1(e){const t=ia(e);return[Go(e),t,Go(t)]}function Go(e){return e.replace(/start|end/g,t=>j1[t])}const cc=["left","right"],dc=["right","left"],K1=["top","bottom"],q1=["bottom","top"];function V1(e,t,n){switch(e){case"top":case"bottom":return n?t?dc:cc:t?cc:dc;case"left":case"right":return t?K1:q1;default:return[]}}function X1(e,t,n,r){const i=sr(e);let a=V1(pn(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Go)))),a}function ia(e){return e.replace(/left|right|bottom|top/g,t=>$1[t])}function Q1(e){return{top:0,right:0,bottom:0,left:0,...e}}function fc(e){return typeof e!="number"?Q1(e):{top:e,right:e,bottom:e,left:e}}function aa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hc(e,t,n){let{reference:r,floating:i}=e;const a=Qt(t),o=Yo(t),s=jo(o),u=pn(t),l=a==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let p;switch(u){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(sr(t)){case"start":p[o]-=h*(n&&l?-1:1);break;case"end":p[o]+=h*(n&&l?-1:1);break}return p}const Z1=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=hc(l,r,u),h=r,p={},E=0;for(let b=0;b<s.length;b++){const{name:T,fn:_}=s[b],{x:C,y:N,data:I,reset:O}=await _({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});d=C??d,c=N??c,p={...p,[T]:{...p[T],...I}},O&&E<=50&&(E++,typeof O=="object"&&(O.placement&&(h=O.placement),O.rects&&(l=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:c}=hc(l,h,u)),b=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};async function Xr(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:p=0}=hn(t,e),E=fc(p),T=s[h?c==="floating"?"reference":"floating":c],_=aa(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:u})),C=c==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),I=await(a.isElement==null?void 0:a.isElement(N))?await(a.getScale==null?void 0:a.getScale(N))||{x:1,y:1}:{x:1,y:1},O=aa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:N,strategy:u}):C);return{top:(_.top-O.top+E.top)/I.y,bottom:(O.bottom-_.bottom+E.bottom)/I.y,left:(_.left-O.left+E.left)/I.x,right:(O.right-_.right+E.right)/I.x}}const J1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:u}=t,{element:l,padding:d=0}=hn(e,t)||{};if(l==null)return{};const c=fc(d),h={x:n,y:r},p=Yo(i),E=jo(p),b=await o.getDimensions(l),T=p==="y",_=T?"top":"left",C=T?"bottom":"right",N=T?"clientHeight":"clientWidth",I=a.reference[E]+a.reference[p]-h[p]-a.floating[E],O=h[p]-a.reference[p],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let M=w?w[N]:0;(!M||!await(o.isElement==null?void 0:o.isElement(w)))&&(M=s.floating[N]||a.floating[E]);const H=I/2-O/2,z=M/2-b[E]/2-1,k=yn(c[_],z),$=yn(c[C],z),Y=k,G=M-b[E]-$,B=M/2-b[E]/2+H,K=zo(Y,B,G),ae=!u.arrow&&sr(i)!=null&&B!==K&&a.reference[E]/2-(B<Y?k:$)-b[E]/2<0,pe=ae?B<Y?B-Y:B-G:0;return{[p]:h[p]+pe,data:{[p]:K,centerOffset:B-K-pe,...ae&&{alignmentOffset:pe}},reset:ae}}}),e_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...T}=hn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const _=pn(i),C=Qt(s),N=pn(s)===s,I=await(u.isRTL==null?void 0:u.isRTL(l.floating)),O=h||(N||!b?[ia(s)]:W1(s)),w=E!=="none";!h&&w&&O.push(...X1(s,b,E,I));const M=[s,...O],H=await Xr(t,T),z=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&z.push(H[_]),c){const B=G1(i,o,I);z.push(H[B[0]],H[B[1]])}if(k=[...k,{placement:i,overflows:z}],!z.every(B=>B<=0)){var $,Y;const B=((($=a.flip)==null?void 0:$.index)||0)+1,K=M[B];if(K&&(!(c==="alignment"?C!==Qt(K):!1)||k.every(q=>Qt(q.placement)===C?q.overflows[0]>0:!0)))return{data:{index:B,overflows:k},reset:{placement:K}};let ae=(Y=k.filter(pe=>pe.overflows[0]<=0).sort((pe,q)=>pe.overflows[1]-q.overflows[1])[0])==null?void 0:Y.placement;if(!ae)switch(p){case"bestFit":{var G;const pe=(G=k.filter(q=>{if(w){const Q=Qt(q.placement);return Q===C||Q==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Q=>Q>0).reduce((Q,A)=>Q+A,0)]).sort((q,Q)=>q[1]-Q[1])[0])==null?void 0:G[0];pe&&(ae=pe);break}case"initialPlacement":ae=s;break}if(i!==ae)return{reset:{placement:ae}}}return{}}}};function pc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mc(e){return z1.some(t=>e[t]>=0)}const t_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=hn(e,t);switch(r){case"referenceHidden":{const a=await Xr(t,{...i,elementContext:"reference"}),o=pc(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:mc(o)}}}case"escaped":{const a=await Xr(t,{...i,altBoundary:!0}),o=pc(a,n.floating);return{data:{escapedOffsets:o,escaped:mc(o)}}}default:return{}}}}},gc=new Set(["left","top"]);async function n_(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=pn(n),s=sr(n),u=Qt(n)==="y",l=gc.has(o)?-1:1,d=a&&u?-1:1,c=hn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:E}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof E=="number"&&(p=s==="end"?E*-1:E),u?{x:p*d,y:h*l}:{x:h*l,y:p*d}}const r_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,u=await n_(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:o}}}}},i_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:_,y:C}=T;return{x:_,y:C}}},...u}=hn(e,t),l={x:n,y:r},d=await Xr(t,u),c=Qt(pn(i)),h=$o(c);let p=l[h],E=l[c];if(a){const T=h==="y"?"top":"left",_=h==="y"?"bottom":"right",C=p+d[T],N=p-d[_];p=zo(C,p,N)}if(o){const T=c==="y"?"top":"left",_=c==="y"?"bottom":"right",C=E+d[T],N=E-d[_];E=zo(C,E,N)}const b=s.fn({...t,[h]:p,[c]:E});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:a,[c]:o}}}}}},a_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=hn(e,t),d={x:n,y:r},c=Qt(i),h=$o(c);let p=d[h],E=d[c];const b=hn(s,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const N=h==="y"?"height":"width",I=a.reference[h]-a.floating[N]+T.mainAxis,O=a.reference[h]+a.reference[N]-T.mainAxis;p<I?p=I:p>O&&(p=O)}if(l){var _,C;const N=h==="y"?"width":"height",I=gc.has(pn(i)),O=a.reference[c]-a.floating[N]+(I&&((_=o.offset)==null?void 0:_[c])||0)+(I?0:T.crossAxis),w=a.reference[c]+a.reference[N]+(I?0:((C=o.offset)==null?void 0:C[c])||0)-(I?T.crossAxis:0);E<O?E=O:E>w&&(E=w)}return{[h]:p,[c]:E}}}},o_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:u=()=>{},...l}=hn(e,t),d=await Xr(t,l),c=pn(i),h=sr(i),p=Qt(i)==="y",{width:E,height:b}=a.floating;let T,_;c==="top"||c==="bottom"?(T=c,_=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(_=c,T=h==="end"?"top":"bottom");const C=b-d.top-d.bottom,N=E-d.left-d.right,I=yn(b-d[T],C),O=yn(E-d[_],N),w=!t.middlewareData.shift;let M=I,H=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=N),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=C),w&&!h){const k=Dt(d.left,0),$=Dt(d.right,0),Y=Dt(d.top,0),G=Dt(d.bottom,0);p?H=E-2*(k!==0||$!==0?k+$:Dt(d.left,d.right)):M=b-2*(Y!==0||G!==0?Y+G:Dt(d.top,d.bottom))}await u({...t,availableWidth:H,availableHeight:M});const z=await o.getDimensions(s.floating);return E!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function oa(){return typeof window<"u"}function ur(e){return Ec(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(Ec(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ec(e){return oa()?e instanceof Node||e instanceof wt(e).Node:!1}function zt(e){return oa()?e instanceof Element||e instanceof wt(e).Element:!1}function Jt(e){return oa()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function bc(e){return!oa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}const s_=new Set(["inline","contents"]);function Qr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!s_.has(i)}const u_=new Set(["table","td","th"]);function l_(e){return u_.has(ur(e))}const c_=[":popover-open",":modal"];function sa(e){return c_.some(t=>{try{return e.matches(t)}catch{return!1}})}const d_=["transform","translate","scale","rotate","perspective"],f_=["transform","translate","scale","rotate","perspective","filter"],h_=["paint","layout","strict","content"];function Wo(e){const t=Ko(),n=zt(e)?$t(e):e;return d_.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||f_.some(r=>(n.willChange||"").includes(r))||h_.some(r=>(n.contain||"").includes(r))}function p_(e){let t=Sn(e);for(;Jt(t)&&!lr(t);){if(Wo(t))return t;if(sa(t))return null;t=Sn(t)}return null}function Ko(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const m_=new Set(["html","body","#document"]);function lr(e){return m_.has(ur(e))}function $t(e){return wt(e).getComputedStyle(e)}function ua(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Sn(e){if(ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bc(e)&&e.host||Zt(e);return bc(t)?t.host:t}function _c(e){const t=Sn(e);return lr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Qr(t)?t:_c(t)}function Zr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_c(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=wt(i);if(a){const s=qo(o);return t.concat(o,o.visualViewport||[],Qr(i)?i:[],s&&n?Zr(s):[])}return t.concat(i,Zr(i,[],n))}function qo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tc(e){const t=$t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Jt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=na(n)!==a||na(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Vo(e){return zt(e)?e:e.contextElement}function cr(e){const t=Vo(e);if(!Jt(t))return Xt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Tc(t);let o=(a?na(n.width):n.width)/r,s=(a?na(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const g_=Xt(0);function Ac(e){const t=wt(e);return!Ko()||!t.visualViewport?g_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function E_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function zn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Vo(e);let o=Xt(1);t&&(r?zt(r)&&(o=cr(r)):o=cr(e));const s=E_(a,n,r)?Ac(a):Xt(0);let u=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,d=i.width/o.x,c=i.height/o.y;if(a){const h=wt(a),p=r&&zt(r)?wt(r):r;let E=h,b=qo(E);for(;b&&r&&p!==E;){const T=cr(b),_=b.getBoundingClientRect(),C=$t(b),N=_.left+(b.clientLeft+parseFloat(C.paddingLeft))*T.x,I=_.top+(b.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,l*=T.y,d*=T.x,c*=T.y,u+=N,l+=I,E=wt(b),b=qo(E)}}return aa({width:d,height:c,x:u,y:l})}function Xo(e,t){const n=ua(e).scrollLeft;return t?t.left+n:zn(Zt(e)).left+n}function xc(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Xo(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function b_(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Zt(r),s=t?sa(t.floating):!1;if(r===o||s&&a)return n;let u={scrollLeft:0,scrollTop:0},l=Xt(1);const d=Xt(0),c=Jt(r);if((c||!c&&!a)&&((ur(r)!=="body"||Qr(o))&&(u=ua(r)),Jt(r))){const p=zn(r);l=cr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=o&&!c&&!a?xc(o,u,!0):Xt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-u.scrollTop*l.y+d.y+h.y}}function __(e){return Array.from(e.getClientRects())}function T_(e){const t=Zt(e),n=ua(e),r=e.ownerDocument.body,i=Dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Xo(e);const s=-n.scrollTop;return $t(r).direction==="rtl"&&(o+=Dt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function A_(e,t){const n=wt(e),r=Zt(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const l=Ko();(!l||l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}const x_=new Set(["absolute","fixed"]);function C_(e,t){const n=zn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Jt(e)?cr(e):Xt(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,l=r*a.y;return{width:o,height:s,x:u,y:l}}function Cc(e,t,n){let r;if(t==="viewport")r=A_(e,n);else if(t==="document")r=T_(Zt(e));else if(zt(t))r=C_(t,n);else{const i=Ac(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return aa(r)}function yc(e,t){const n=Sn(e);return n===t||!zt(n)||lr(n)?!1:$t(n).position==="fixed"||yc(n,t)}function y_(e,t){const n=t.get(e);if(n)return n;let r=Zr(e,[],!1).filter(s=>zt(s)&&ur(s)!=="body"),i=null;const a=$t(e).position==="fixed";let o=a?Sn(e):e;for(;zt(o)&&!lr(o);){const s=$t(o),u=Wo(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&x_.has(i.position)||Qr(o)&&!u&&yc(e,o))?r=r.filter(d=>d!==o):i=s,o=Sn(o)}return t.set(e,r),r}function S_(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sa(t)?[]:y_(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((l,d)=>{const c=Cc(t,d,i);return l.top=Dt(c.top,l.top),l.right=yn(c.right,l.right),l.bottom=yn(c.bottom,l.bottom),l.left=Dt(c.left,l.left),l},Cc(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function N_(e){const{width:t,height:n}=Tc(e);return{width:t,height:n}}function D_(e,t,n){const r=Jt(t),i=Zt(t),a=n==="fixed",o=zn(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=Xt(0);function l(){u.x=Xo(i)}if(r||!r&&!a)if((ur(t)!=="body"||Qr(i))&&(s=ua(t)),r){const p=zn(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&l();a&&!r&&i&&l();const d=i&&!r&&!a?xc(i,s):Xt(0),c=o.left+s.scrollLeft-u.x-d.x,h=o.top+s.scrollTop-u.y-d.y;return{x:c,y:h,width:o.width,height:o.height}}function Qo(e){return $t(e).position==="static"}function Sc(e,t){if(!Jt(e)||$t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zt(e)===n&&(n=n.ownerDocument.body),n}function Nc(e,t){const n=wt(e);if(sa(e))return n;if(!Jt(e)){let i=Sn(e);for(;i&&!lr(i);){if(zt(i)&&!Qo(i))return i;i=Sn(i)}return n}let r=Sc(e,t);for(;r&&l_(r)&&Qo(r);)r=Sc(r,t);return r&&lr(r)&&Qo(r)&&!Wo(r)?n:r||p_(e)||n}const w_=async function(e){const t=this.getOffsetParent||Nc,n=this.getDimensions,r=await n(e.floating);return{reference:D_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function v_(e){return $t(e).direction==="rtl"}const k_={convertOffsetParentRelativeRectToViewportRelativeRect:b_,getDocumentElement:Zt,getClippingRect:S_,getOffsetParent:Nc,getElementRects:w_,getClientRects:__,getDimensions:N_,getScale:cr,isElement:zt,isRTL:v_};function Dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function I_(e,t){let n=null,r;const i=Zt(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:d,top:c,width:h,height:p}=l;if(s||t(),!h||!p)return;const E=ra(c),b=ra(i.clientWidth-(d+h)),T=ra(i.clientHeight-(c+p)),_=ra(d),N={rootMargin:-E+"px "+-b+"px "+-T+"px "+-_+"px",threshold:Dt(0,yn(1,u))||1};let I=!0;function O(w){const M=w[0].intersectionRatio;if(M!==u){if(!I)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}M===1&&!Dc(l,e.getBoundingClientRect())&&o(),I=!1}try{n=new IntersectionObserver(O,{...N,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,N)}n.observe(e)}return o(!0),a}function O_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Vo(e),d=i||a?[...l?Zr(l):[],...Zr(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),a&&_.addEventListener("resize",n)});const c=l&&s?I_(l,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(_=>{let[C]=_;C&&C.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var N;(N=p)==null||N.observe(t)})),n()}),l&&!u&&p.observe(l),p.observe(t));let E,b=u?zn(e):null;u&&T();function T(){const _=zn(e);b&&!Dc(b,_)&&n(),b=_,E=requestAnimationFrame(T)}return n(),()=>{var _;d.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),c?.(),(_=p)==null||_.disconnect(),p=null,u&&cancelAnimationFrame(E)}}const R_=r_,M_=i_,L_=e_,P_=o_,F_=t_,wc=J1,B_=a_,U_=(e,t,n)=>{const r=new Map,i={platform:k_,...n},a={...i.platform,_c:r};return Z1(e,t,{...i,platform:a})};var H_=typeof document<"u",z_=function(){},la=H_?me.useLayoutEffect:z_;function ca(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ca(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!ca(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function vc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kc(e,t){const n=vc(e);return Math.round(t*n)/n}function Zo(e){const t=g.useRef(e);return la(()=>{t.current=e}),t}function $_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[d,c]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=g.useState(r);ca(h,r)||p(r);const[E,b]=g.useState(null),[T,_]=g.useState(null),C=g.useCallback(q=>{q!==w.current&&(w.current=q,b(q))},[]),N=g.useCallback(q=>{q!==M.current&&(M.current=q,_(q))},[]),I=a||E,O=o||T,w=g.useRef(null),M=g.useRef(null),H=g.useRef(d),z=u!=null,k=Zo(u),$=Zo(i),Y=Zo(l),G=g.useCallback(()=>{if(!w.current||!M.current)return;const q={placement:t,strategy:n,middleware:h};$.current&&(q.platform=$.current),U_(w.current,M.current,q).then(Q=>{const A={...Q,isPositioned:Y.current!==!1};B.current&&!ca(H.current,A)&&(H.current=A,Ml.flushSync(()=>{c(A)}))})},[h,t,n,$,Y]);la(()=>{l===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,c(q=>({...q,isPositioned:!1})))},[l]);const B=g.useRef(!1);la(()=>(B.current=!0,()=>{B.current=!1}),[]),la(()=>{if(I&&(w.current=I),O&&(M.current=O),I&&O){if(k.current)return k.current(I,O,G);G()}},[I,O,G,k,z]);const K=g.useMemo(()=>({reference:w,floating:M,setReference:C,setFloating:N}),[C,N]),ae=g.useMemo(()=>({reference:I,floating:O}),[I,O]),pe=g.useMemo(()=>{const q={position:n,left:0,top:0};if(!ae.floating)return q;const Q=kc(ae.floating,d.x),A=kc(ae.floating,d.y);return s?{...q,transform:"translate("+Q+"px, "+A+"px)",...vc(ae.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:A}},[n,s,ae.floating,d.x,d.y]);return g.useMemo(()=>({...d,update:G,refs:K,elements:ae,floatingStyles:pe}),[d,G,K,ae,pe])}const j_=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?wc({element:r.current,padding:i}).fn(n):{}:r?wc({element:r,padding:i}).fn(n):{}}}},Y_=(e,t)=>({...R_(e),options:[e,t]}),G_=(e,t)=>({...M_(e),options:[e,t]}),W_=(e,t)=>({...B_(e),options:[e,t]}),K_=(e,t)=>({...L_(e),options:[e,t]}),q_=(e,t)=>({...P_(e),options:[e,t]}),V_=(e,t)=>({...F_(e),options:[e,t]}),X_=(e,t)=>({...j_(e),options:[e,t]});var Q_="Arrow",Ic=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return m.jsx(Ne.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ic.displayName=Q_;var Z_=Ic;function J_(e){const[t,n]=g.useState(void 0);return Vt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;o=l.inlineSize,s=l.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jo="Popper",[Oc,da]=qt(Jo),[eT,Rc]=Oc(Jo),Mc=e=>{const{__scopePopper:t,children:n}=e,[r,i]=g.useState(null);return m.jsx(eT,{scope:t,anchor:r,onAnchorChange:i,children:n})};Mc.displayName=Jo;var Lc="PopperAnchor",Pc=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=Rc(Lc,n),o=g.useRef(null),s=Ue(t,o);return g.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:m.jsx(Ne.div,{...i,ref:s})});Pc.displayName=Lc;var es="PopperContent",[tT,nT]=Oc(es),Fc=g.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:E,...b}=e,T=Rc(es,n),[_,C]=g.useState(null),N=Ue(t,de=>C(de)),[I,O]=g.useState(null),w=J_(I),M=w?.width??0,H=w?.height??0,z=r+(a!=="center"?"-"+a:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(l)?l:[l],Y=$.length>0,G={padding:k,boundary:$.filter(iT),altBoundary:Y},{refs:B,floatingStyles:K,placement:ae,isPositioned:pe,middlewareData:q}=$_({strategy:"fixed",placement:z,whileElementsMounted:(...de)=>O_(...de,{animationFrame:p==="always"}),elements:{reference:T.anchor},middleware:[Y_({mainAxis:i+H,alignmentAxis:o}),u&&G_({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?W_():void 0,...G}),u&&K_({...G}),q_({...G,apply:({elements:de,rects:be,availableWidth:Re,availableHeight:Ge})=>{const{width:Ht,height:rr}=be.reference,ln=de.floating.style;ln.setProperty("--radix-popper-available-width",`${Re}px`),ln.setProperty("--radix-popper-available-height",`${Ge}px`),ln.setProperty("--radix-popper-anchor-width",`${Ht}px`),ln.setProperty("--radix-popper-anchor-height",`${rr}px`)}}),I&&X_({element:I,padding:s}),aT({arrowWidth:M,arrowHeight:H}),h&&V_({strategy:"referenceHidden",...G})]}),[Q,A]=Hc(ae),ee=rt(E);Vt(()=>{pe&&ee?.()},[pe,ee]);const L=q.arrow?.x,y=q.arrow?.y,se=q.arrow?.centerOffset!==0,[te,ue]=g.useState();return Vt(()=>{_&&ue(window.getComputedStyle(_).zIndex)},[_]),m.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:pe?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(tT,{scope:n,placedSide:Q,onArrowChange:O,arrowX:L,arrowY:y,shouldHideArrow:se,children:m.jsx(Ne.div,{"data-side":Q,"data-align":A,...b,ref:N,style:{...b.style,animation:pe?void 0:"none"}})})})});Fc.displayName=es;var Bc="PopperArrow",rT={top:"bottom",right:"left",bottom:"top",left:"right"},Uc=g.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=nT(Bc,r),o=rT[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(Z_,{...i,ref:n,style:{...i.style,display:"block"}})})});Uc.displayName=Bc;function iT(e){return e!==null}var aT=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,u=o?0:e.arrowHeight,[l,d]=Hc(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+u/2;let E="",b="";return l==="bottom"?(E=o?c:`${h}px`,b=`${-u}px`):l==="top"?(E=o?c:`${h}px`,b=`${r.floating.height+u}px`):l==="right"?(E=`${-u}px`,b=o?c:`${p}px`):l==="left"&&(E=`${r.floating.width+u}px`,b=o?c:`${p}px`),{data:{x:E,y:b}}}});function Hc(e){const[t,n="center"]=e.split("-");return[t,n]}var ts=Mc,zc=Pc,$c=Fc,jc=Uc,oT="Portal",fa=g.forwardRef((e,t)=>{const{container:n,...r}=e,[i,a]=g.useState(!1);Vt(()=>a(!0),[]);const o=n||i&&globalThis?.document?.body;return o?Ol.createPortal(m.jsx(Ne.div,{...r,ref:t}),o):null});fa.displayName=oT;function sT(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var bt=e=>{const{present:t,children:n}=e,r=uT(t),i=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),a=Ue(r.ref,lT(i));return typeof n=="function"||r.isPresent?g.cloneElement(i,{ref:a}):null};bt.displayName="Presence";function uT(e){const[t,n]=g.useState(),r=g.useRef(null),i=g.useRef(e),a=g.useRef("none"),o=e?"mounted":"unmounted",[s,u]=sT(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const l=ha(r.current);a.current=s==="mounted"?l:"none"},[s]),Vt(()=>{const l=r.current,d=i.current;if(d!==e){const h=a.current,p=ha(l);e?u("MOUNT"):p==="none"||l?.display==="none"?u("UNMOUNT"):u(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Vt(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,c=p=>{const b=ha(r.current).includes(p.animationName);if(p.target===t&&b&&(u("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},h=p=>{p.target===t&&(a.current=ha(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function ha(e){return e?.animationName||"none"}function lT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ns="rovingFocusGroup.onEntryFocus",cT={bubbles:!1,cancelable:!0},Jr="RovingFocusGroup",[rs,Yc,dT]=Zl(Jr),[fT,Gc]=qt(Jr,[dT]),[hT,pT]=fT(Jr),Wc=g.forwardRef((e,t)=>m.jsx(rs.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(rs.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(mT,{...e,ref:t})})}));Wc.displayName=Jr;var mT=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...c}=e,h=g.useRef(null),p=Ue(t,h),E=Lo(a),[b,T]=Hn({prop:o,defaultProp:s??null,onChange:u,caller:Jr}),[_,C]=g.useState(!1),N=rt(l),I=Yc(n),O=g.useRef(!1),[w,M]=g.useState(0);return g.useEffect(()=>{const H=h.current;if(H)return H.addEventListener(ns,N),()=>H.removeEventListener(ns,N)},[N]),m.jsx(hT,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:b,onItemFocus:g.useCallback(H=>T(H),[T]),onItemShiftTab:g.useCallback(()=>C(!0),[]),onFocusableItemAdd:g.useCallback(()=>M(H=>H+1),[]),onFocusableItemRemove:g.useCallback(()=>M(H=>H-1),[]),children:m.jsx(Ne.div,{tabIndex:_||w===0?-1:0,"data-orientation":r,...c,ref:p,style:{outline:"none",...e.style},onMouseDown:ce(e.onMouseDown,()=>{O.current=!0}),onFocus:ce(e.onFocus,H=>{const z=!O.current;if(H.target===H.currentTarget&&z&&!_){const k=new CustomEvent(ns,cT);if(H.currentTarget.dispatchEvent(k),!k.defaultPrevented){const $=I().filter(ae=>ae.focusable),Y=$.find(ae=>ae.active),G=$.find(ae=>ae.id===b),K=[Y,G,...$].filter(Boolean).map(ae=>ae.ref.current);Vc(K,d)}}O.current=!1}),onBlur:ce(e.onBlur,()=>C(!1))})})}),Kc="RovingFocusGroupItem",qc=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,u=ct(),l=a||u,d=pT(Kc,n),c=d.currentTabStopId===l,h=Yc(n),{onFocusableItemAdd:p,onFocusableItemRemove:E,currentTabStopId:b}=d;return g.useEffect(()=>{if(r)return p(),()=>E()},[r,p,E]),m.jsx(rs.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:m.jsx(Ne.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:ce(e.onMouseDown,T=>{r?d.onItemFocus(l):T.preventDefault()}),onFocus:ce(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:ce(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){d.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const _=bT(T,d.orientation,d.dir);if(_!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let N=h().filter(I=>I.focusable).map(I=>I.ref.current);if(_==="last")N.reverse();else if(_==="prev"||_==="next"){_==="prev"&&N.reverse();const I=N.indexOf(T.currentTarget);N=d.loop?_T(N,I+1):N.slice(I+1)}setTimeout(()=>Vc(N))}}),children:typeof o=="function"?o({isCurrentTabStop:c,hasTabStop:b!=null}):o})})});qc.displayName=Kc;var gT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ET(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function bT(e,t,n){const r=ET(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gT[r]}function Vc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function _T(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var TT=Wc,AT=qc,xT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dr=new WeakMap,pa=new WeakMap,ma={},is=0,Xc=function(e){return e&&(e.host||Xc(e.parentNode))},CT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Xc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yT=function(e,t,n,r){var i=CT(t,Array.isArray(e)?e:[e]);ma[n]||(ma[n]=new WeakMap);var a=ma[n],o=[],s=new Set,u=new Set(i),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};i.forEach(l);var d=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))d(h);else try{var p=h.getAttribute(r),E=p!==null&&p!=="false",b=(dr.get(h)||0)+1,T=(a.get(h)||0)+1;dr.set(h,b),a.set(h,T),o.push(h),b===1&&E&&pa.set(h,!0),T===1&&h.setAttribute(n,"true"),E||h.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",h,_)}})};return d(t),s.clear(),is++,function(){o.forEach(function(c){var h=dr.get(c)-1,p=a.get(c)-1;dr.set(c,h),a.set(c,p),h||(pa.has(c)||c.removeAttribute(r),pa.delete(c)),p||c.removeAttribute(n)}),is--,is||(dr=new WeakMap,dr=new WeakMap,pa=new WeakMap,ma={})}},Qc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=xT(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),yT(r,i,n,"aria-hidden")):function(){return null}},en=function(){return en=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},en.apply(this,arguments)};function Zc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ST(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ga="right-scroll-bar-position",Ea="width-before-scroll-bar",NT="with-scroll-bars-hidden",DT="--removed-body-scroll-bar-size";function as(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wT(e,t){var n=me.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var vT=typeof window<"u"?g.useLayoutEffect:g.useEffect,Jc=new WeakMap;function kT(e,t){var n=wT(null,function(r){return e.forEach(function(i){return as(i,r)})});return vT(function(){var r=Jc.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;i.forEach(function(s){a.has(s)||as(s,null)}),a.forEach(function(s){i.has(s)||as(s,o)})}Jc.set(n,e)},[e]),n}function IT(e){return e}function OT(e,t){t===void 0&&(t=IT);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(a),o=n}var u=function(){var d=o;o=[],d.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(d){o.push(d),l()},filter:function(d){return o=o.filter(d),n}}}};return i}function RT(e){e===void 0&&(e={});var t=OT(null);return t.options=en({async:!0,ssr:!1},e),t}var ed=function(e){var t=e.sideCar,n=Zc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,en({},n))};ed.isSideCarExport=!0;function MT(e,t){return e.useMedium(t),ed}var td=RT(),os=function(){},ba=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:os,onWheelCapture:os,onTouchMoveCapture:os}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,c=e.shards,h=e.sideCar,p=e.noRelative,E=e.noIsolation,b=e.inert,T=e.allowPinchZoom,_=e.as,C=_===void 0?"div":_,N=e.gapMode,I=Zc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=h,w=kT([n,t]),M=en(en({},I),i);return g.createElement(g.Fragment,null,d&&g.createElement(O,{sideCar:td,removeScrollBar:l,shards:c,noRelative:p,noIsolation:E,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:N}),o?g.cloneElement(g.Children.only(s),en(en({},M),{ref:w})):g.createElement(C,en({},M,{className:u,ref:w}),s))});ba.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ba.classNames={fullWidth:Ea,zeroRight:ga};var LT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LT();return t&&e.setAttribute("nonce",t),e}function FT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function BT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=PT())&&(FT(t,n),BT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HT=function(){var e=UT();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nd=function(){var e=HT(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},zT={left:0,top:0,right:0,gap:0},ss=function(e){return parseInt(e||"",10)||0},$T=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ss(n),ss(r),ss(i)]},jT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zT;var t=$T(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},YT=nd(),fr="data-scroll-locked",GT=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
138
+ .`.concat(NT,` {
89
139
  overflow: hidden `).concat(r,`;
90
140
  padding-right: `).concat(s,"px ").concat(r,`;
91
141
  }
@@ -102,101 +152,101 @@ React keys must be passed directly to JSX without using spread:
102
152
  `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
103
153
  }
104
154
 
105
- .`).concat(fa,` {
155
+ .`).concat(ga,` {
106
156
  right: `).concat(s,"px ").concat(r,`;
107
157
  }
108
158
 
109
- .`).concat(ha,` {
159
+ .`).concat(Ea,` {
110
160
  margin-right: `).concat(s,"px ").concat(r,`;
111
161
  }
112
162
 
113
- .`).concat(fa," .").concat(fa,` {
163
+ .`).concat(ga," .").concat(ga,` {
114
164
  right: 0 `).concat(r,`;
115
165
  }
116
166
 
117
- .`).concat(ha," .").concat(ha,` {
167
+ .`).concat(Ea," .").concat(Ea,` {
118
168
  margin-right: 0 `).concat(r,`;
119
169
  }
120
170
 
121
171
  body[`).concat(fr,`] {
122
- `).concat(hT,": ").concat(s,`px;
172
+ `).concat(DT,": ").concat(s,`px;
123
173
  }
124
- `)},ed=function(){var e=parseInt(document.body.getAttribute(fr)||"0",10);return isFinite(e)?e:0},OT=function(){m.useEffect(function(){return document.body.setAttribute(fr,(ed()+1).toString()),function(){var e=ed()-1;e<=0?document.body.removeAttribute(fr):document.body.setAttribute(fr,e.toString())}},[])},RT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;OT();var a=m.useMemo(function(){return vT(i)},[i]);return m.createElement(IT,{styles:kT(a,!t,i,n?"":"!important")})},us=!1;if(typeof window<"u")try{var ma=Object.defineProperty({},"passive",{get:function(){return us=!0,!0}});window.addEventListener("test",ma,ma),window.removeEventListener("test",ma,ma)}catch{us=!1}var hr=us?{passive:!1}:!1,MT=function(e){return e.tagName==="TEXTAREA"},td=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MT(e)&&n[t]==="visible")},LT=function(e){return td(e,"overflowY")},PT=function(e){return td(e,"overflowX")},nd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=rd(e,r);if(i){var a=id(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},FT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},BT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},rd=function(e,t){return e==="v"?LT(t):PT(t)},id=function(e,t){return e==="v"?FT(t):BT(t)},UT=function(e,t){return e==="h"&&t==="rtl"?-1:1},HT=function(e,t,n,r,i){var a=UT(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,u=t.contains(s),l=!1,d=o>0,c=0,h=0;do{if(!s)break;var p=id(e,s),g=p[0],b=p[1],T=p[2],_=b-T-a*g;(g||_)&&rd(e,s)&&(c+=_,h+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(d&&Math.abs(c)<1||!d&&Math.abs(h)<1)&&(l=!0),l},ga=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ad=function(e){return[e.deltaX,e.deltaY]},od=function(e){return e&&"current"in e?e.current:e},zT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$T=function(e){return`
174
+ `)},rd=function(){var e=parseInt(document.body.getAttribute(fr)||"0",10);return isFinite(e)?e:0},WT=function(){g.useEffect(function(){return document.body.setAttribute(fr,(rd()+1).toString()),function(){var e=rd()-1;e<=0?document.body.removeAttribute(fr):document.body.setAttribute(fr,e.toString())}},[])},KT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;WT();var a=g.useMemo(function(){return jT(i)},[i]);return g.createElement(YT,{styles:GT(a,!t,i,n?"":"!important")})},us=!1;if(typeof window<"u")try{var _a=Object.defineProperty({},"passive",{get:function(){return us=!0,!0}});window.addEventListener("test",_a,_a),window.removeEventListener("test",_a,_a)}catch{us=!1}var hr=us?{passive:!1}:!1,qT=function(e){return e.tagName==="TEXTAREA"},id=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!qT(e)&&n[t]==="visible")},VT=function(e){return id(e,"overflowY")},XT=function(e){return id(e,"overflowX")},ad=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=od(e,r);if(i){var a=sd(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},QT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ZT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},od=function(e,t){return e==="v"?VT(t):XT(t)},sd=function(e,t){return e==="v"?QT(t):ZT(t)},JT=function(e,t){return e==="h"&&t==="rtl"?-1:1},eA=function(e,t,n,r,i){var a=JT(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,u=t.contains(s),l=!1,d=o>0,c=0,h=0;do{if(!s)break;var p=sd(e,s),E=p[0],b=p[1],T=p[2],_=b-T-a*E;(E||_)&&od(e,s)&&(c+=_,h+=E);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(d&&Math.abs(c)<1||!d&&Math.abs(h)<1)&&(l=!0),l},Ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ud=function(e){return[e.deltaX,e.deltaY]},ld=function(e){return e&&"current"in e?e.current:e},tA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nA=function(e){return`
125
175
  .block-interactivity-`.concat(e,` {pointer-events: none;}
126
176
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
127
- `)},jT=0,pr=[];function YT(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(jT++)[0],a=m.useState(Jc)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=dT([e.lockRef.current],(e.shards||[]).map(od),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(b,T){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!o.current.allowPinchZoom;var _=ga(b),x=n.current,N="deltaX"in b?b.deltaX:x[0]-_[0],k="deltaY"in b?b.deltaY:x[1]-_[1],O,w=b.target,M=Math.abs(N)>Math.abs(k)?"h":"v";if("touches"in b&&M==="h"&&w.type==="range")return!1;var H=nd(M,w);if(!H)return!0;if(H?O=M:(O=M==="v"?"h":"v",H=nd(M,w)),!H)return!1;if(!r.current&&"changedTouches"in b&&(N||k)&&(r.current=O),!O)return!0;var z=r.current||O;return HT(z,T,b,z==="h"?N:k)},[]),u=m.useCallback(function(b){var T=b;if(!(!pr.length||pr[pr.length-1]!==a)){var _="deltaY"in T?ad(T):ga(T),x=t.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&zT(O.delta,_)})[0];if(x&&x.should){T.cancelable&&T.preventDefault();return}if(!x){var N=(o.current.shards||[]).map(od).filter(Boolean).filter(function(O){return O.contains(T.target)}),k=N.length>0?s(T,N[0]):!o.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),l=m.useCallback(function(b,T,_,x){var N={name:b,delta:T,target:_,should:x,shadowParent:GT(_)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(k){return k!==N})},1)},[]),d=m.useCallback(function(b){n.current=ga(b),r.current=void 0},[]),c=m.useCallback(function(b){l(b.type,ad(b),b.target,s(b,e.lockRef.current))},[]),h=m.useCallback(function(b){l(b.type,ga(b),b.target,s(b,e.lockRef.current))},[]);m.useEffect(function(){return pr.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",u,hr),document.addEventListener("touchmove",u,hr),document.addEventListener("touchstart",d,hr),function(){pr=pr.filter(function(b){return b!==a}),document.removeEventListener("wheel",u,hr),document.removeEventListener("touchmove",u,hr),document.removeEventListener("touchstart",d,hr)}},[]);var p=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(a,{styles:$T(i)}):null,p?m.createElement(RT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const WT=TT(Zc,YT);var ls=m.forwardRef(function(e,t){return m.createElement(pa,Jt({},e,{ref:t,sideCar:WT}))});ls.classNames=pa.classNames;var cs=["Enter"," "],KT=["ArrowDown","PageUp","Home"],sd=["ArrowUp","PageDown","End"],qT=[...KT,...sd],VT={ltr:[...cs,"ArrowRight"],rtl:[...cs,"ArrowLeft"]},XT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Jr="Menu",[ei,QT,ZT]=Vl(Jr),[$n,Ea]=Kt(Jr,[ZT,sa,$c]),ti=sa(),ud=$c(),[ld,Nn]=$n(Jr),[JT,ni]=$n(Jr),cd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=ti(t),[u,l]=m.useState(null),d=m.useRef(!1),c=nt(a),h=Lo(i);return m.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),E.jsx(ts,{...s,children:E.jsx(ld,{scope:t,open:n,onOpenChange:c,content:u,onContentChange:l,children:E.jsx(JT,{scope:t,onClose:m.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:h,modal:o,children:r})})})};cd.displayName=Jr;var eA="MenuAnchor",ds=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ti(n);return E.jsx(Bc,{...i,...r,ref:t})});ds.displayName=eA;var fs="MenuPortal",[tA,dd]=$n(fs,{forceMount:void 0}),fd=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Nn(fs,t);return E.jsx(tA,{scope:t,forceMount:n,children:E.jsx(Et,{present:n||a.open,children:E.jsx(ua,{asChild:!0,container:i,children:r})})})};fd.displayName=fs;var Mt="MenuContent",[nA,hs]=$n(Mt),hd=m.forwardRef((e,t)=>{const n=dd(Mt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nn(Mt,e.__scopeMenu),o=ni(Mt,e.__scopeMenu);return E.jsx(ei.Provider,{scope:e.__scopeMenu,children:E.jsx(Et,{present:r||a.open,children:E.jsx(ei.Slot,{scope:e.__scopeMenu,children:o.modal?E.jsx(rA,{...i,ref:t}):E.jsx(iA,{...i,ref:t})})})})}),rA=m.forwardRef((e,t)=>{const n=Nn(Mt,e.__scopeMenu),r=m.useRef(null),i=Ue(t,r);return m.useEffect(()=>{const a=r.current;if(a)return qc(a)},[]),E.jsx(ps,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),iA=m.forwardRef((e,t)=>{const n=Nn(Mt,e.__scopeMenu);return E.jsx(ps,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),aA=or("MenuContent.ScrollLock"),ps=m.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:h,onDismiss:p,disableOutsideScroll:g,...b}=e,T=Nn(Mt,n),_=ni(Mt,n),x=ti(n),N=ud(n),k=QT(n),[O,w]=m.useState(null),M=m.useRef(null),H=Ue(t,M,T.onContentChange),z=m.useRef(0),I=m.useRef(""),$=m.useRef(0),Y=m.useRef(null),G=m.useRef("right"),B=m.useRef(0),K=g?ls:m.Fragment,ie=g?{as:aA,allowPinchZoom:!0}:void 0,pe=Q=>{const A=I.current+Q,ee=k().filter(de=>!de.disabled),L=document.activeElement,y=ee.find(de=>de.ref.current===L)?.textValue,se=ee.map(de=>de.textValue),te=EA(se,A,y),ue=ee.find(de=>de.textValue===te)?.ref.current;(function de(be){I.current=be,window.clearTimeout(z.current),be!==""&&(z.current=window.setTimeout(()=>de(""),1e3))})(A),ue&&setTimeout(()=>ue.focus())};m.useEffect(()=>()=>window.clearTimeout(z.current),[]),ec();const q=m.useCallback(Q=>G.current===Y.current?.side&&_A(Q,Y.current?.area),[]);return E.jsx(nA,{scope:n,searchRef:I,onItemEnter:m.useCallback(Q=>{q(Q)&&Q.preventDefault()},[q]),onItemLeave:m.useCallback(Q=>{q(Q)||(M.current?.focus(),w(null))},[q]),onTriggerLeave:m.useCallback(Q=>{q(Q)&&Q.preventDefault()},[q]),pointerGraceTimerRef:$,onPointerGraceIntentChange:m.useCallback(Q=>{Y.current=Q},[]),children:E.jsx(K,{...ie,children:E.jsx(Ho,{asChild:!0,trapped:i,onMountAutoFocus:ce(a,Q=>{Q.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:E.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:h,onDismiss:p,children:E.jsx(oT,{asChild:!0,...N,dir:_.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:w,onEntryFocus:ce(u,Q=>{_.isUsingKeyboardRef.current||Q.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(Uc,{role:"menu","aria-orientation":"vertical","data-state":kd(T.open),"data-radix-menu-content":"",dir:_.dir,...x,...b,ref:H,style:{outline:"none",...b.style},onKeyDown:ce(b.onKeyDown,Q=>{const ee=Q.target.closest("[data-radix-menu-content]")===Q.currentTarget,L=Q.ctrlKey||Q.altKey||Q.metaKey,y=Q.key.length===1;ee&&(Q.key==="Tab"&&Q.preventDefault(),!L&&y&&pe(Q.key));const se=M.current;if(Q.target!==se||!qT.includes(Q.key))return;Q.preventDefault();const ue=k().filter(de=>!de.disabled).map(de=>de.ref.current);sd.includes(Q.key)&&ue.reverse(),mA(ue)}),onBlur:ce(e.onBlur,Q=>{Q.currentTarget.contains(Q.target)||(window.clearTimeout(z.current),I.current="")}),onPointerMove:ce(e.onPointerMove,ii(Q=>{const A=Q.target,ee=B.current!==Q.clientX;if(Q.currentTarget.contains(A)&&ee){const L=Q.clientX>B.current?"right":"left";G.current=L,B.current=Q.clientX}}))})})})})})})});hd.displayName=Mt;var oA="MenuGroup",ms=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return E.jsx(Ne.div,{role:"group",...r,ref:t})});ms.displayName=oA;var sA="MenuLabel",pd=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return E.jsx(Ne.div,{...r,ref:t})});pd.displayName=sA;var ba="MenuItem",md="menu.itemSelect",_a=m.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=m.useRef(null),o=ni(ba,e.__scopeMenu),s=hs(ba,e.__scopeMenu),u=Ue(t,a),l=m.useRef(!1),d=()=>{const c=a.current;if(!n&&c){const h=new CustomEvent(md,{bubbles:!0,cancelable:!0});c.addEventListener(md,p=>r?.(p),{once:!0}),ql(c,h),h.defaultPrevented?l.current=!1:o.onClose()}};return E.jsx(gd,{...i,ref:u,disabled:n,onClick:ce(e.onClick,d),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:ce(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:ce(e.onKeyDown,c=>{const h=s.searchRef.current!=="";n||h&&c.key===" "||cs.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});_a.displayName=ba;var gd=m.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=hs(ba,n),s=ud(n),u=m.useRef(null),l=Ue(t,u),[d,c]=m.useState(!1),[h,p]=m.useState("");return m.useEffect(()=>{const g=u.current;g&&p((g.textContent??"").trim())},[a.children]),E.jsx(ei.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:E.jsx(sT,{asChild:!0,...s,focusable:!r,children:E.jsx(Ne.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:ce(e.onPointerMove,ii(g=>{r?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(e.onPointerLeave,ii(g=>o.onItemLeave(g))),onFocus:ce(e.onFocus,()=>c(!0)),onBlur:ce(e.onBlur,()=>c(!1))})})})}),uA="MenuCheckboxItem",Ed=m.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return E.jsx(Cd,{scope:e.__scopeMenu,checked:n,children:E.jsx(_a,{role:"menuitemcheckbox","aria-checked":Ta(n)?"mixed":n,...i,ref:t,"data-state":bs(n),onSelect:ce(i.onSelect,()=>r?.(Ta(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ed.displayName=uA;var bd="MenuRadioGroup",[lA,cA]=$n(bd,{value:void 0,onValueChange:()=>{}}),_d=m.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=nt(r);return E.jsx(lA,{scope:e.__scopeMenu,value:n,onValueChange:a,children:E.jsx(ms,{...i,ref:t})})});_d.displayName=bd;var Td="MenuRadioItem",Ad=m.forwardRef((e,t)=>{const{value:n,...r}=e,i=cA(Td,e.__scopeMenu),a=n===i.value;return E.jsx(Cd,{scope:e.__scopeMenu,checked:a,children:E.jsx(_a,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":bs(a),onSelect:ce(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ad.displayName=Td;var gs="MenuItemIndicator",[Cd,dA]=$n(gs,{checked:!1}),xd=m.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=dA(gs,n);return E.jsx(Et,{present:r||Ta(a.checked)||a.checked===!0,children:E.jsx(Ne.span,{...i,ref:t,"data-state":bs(a.checked)})})});xd.displayName=gs;var fA="MenuSeparator",yd=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return E.jsx(Ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});yd.displayName=fA;var hA="MenuArrow",Sd=m.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ti(n);return E.jsx(Hc,{...i,...r,ref:t})});Sd.displayName=hA;var Es="MenuSub",[pA,Nd]=$n(Es),Dd=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Nn(Es,t),o=ti(t),[s,u]=m.useState(null),[l,d]=m.useState(null),c=nt(i);return m.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),E.jsx(ts,{...o,children:E.jsx(ld,{scope:t,open:r,onOpenChange:c,content:l,onContentChange:d,children:E.jsx(pA,{scope:t,contentId:lt(),triggerId:lt(),trigger:s,onTriggerChange:u,children:n})})})};Dd.displayName=Es;var ri="MenuSubTrigger",wd=m.forwardRef((e,t)=>{const n=Nn(ri,e.__scopeMenu),r=ni(ri,e.__scopeMenu),i=Nd(ri,e.__scopeMenu),a=hs(ri,e.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},d=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>d,[d]),m.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),u(null)}},[s,u]),E.jsx(ds,{asChild:!0,...l,children:E.jsx(gd,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":kd(n.open),...e,ref:fn(t,i.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ce(e.onPointerMove,ii(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:ce(e.onPointerLeave,ii(c=>{d();const h=n.content?.getBoundingClientRect();if(h){const p=n.content?.dataset.side,g=p==="right",b=g?-5:5,T=h[g?"left":"right"],_=h[g?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+b,y:c.clientY},{x:T,y:h.top},{x:_,y:h.top},{x:_,y:h.bottom},{x:T,y:h.bottom}],side:p}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ce(e.onKeyDown,c=>{const h=a.searchRef.current!=="";e.disabled||h&&c.key===" "||VT[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});wd.displayName=ri;var vd="MenuSubContent",Id=m.forwardRef((e,t)=>{const n=dd(Mt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nn(Mt,e.__scopeMenu),o=ni(Mt,e.__scopeMenu),s=Nd(vd,e.__scopeMenu),u=m.useRef(null),l=Ue(t,u);return E.jsx(ei.Provider,{scope:e.__scopeMenu,children:E.jsx(Et,{present:r||a.open,children:E.jsx(ei.Slot,{scope:e.__scopeMenu,children:E.jsx(ps,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{o.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ce(e.onFocusOutside,d=>{d.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ce(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:ce(e.onKeyDown,d=>{const c=d.currentTarget.contains(d.target),h=XT[o.dir].includes(d.key);c&&h&&(a.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});Id.displayName=vd;function kd(e){return e?"open":"closed"}function Ta(e){return e==="indeterminate"}function bs(e){return Ta(e)?"indeterminate":e?"checked":"unchecked"}function mA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function gA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function EA(e,t,n){const i=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=gA(e,Math.max(a,0));i.length===1&&(o=o.filter(l=>l!==n));const u=o.find(l=>l.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}function bA(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],u=t[o],l=s.x,d=s.y,c=u.x,h=u.y;d>r!=h>r&&n<(c-l)*(r-d)/(h-d)+l&&(i=!i)}return i}function _A(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return bA(n,t)}function ii(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Od=cd,Rd=ds,Md=fd,Ld=hd,Pd=ms,Fd=pd,Bd=_a,Ud=Ed,Hd=_d,zd=Ad,$d=xd,jd=yd,Yd=Sd,Gd=Dd,Wd=wd,Kd=Id,Aa="DropdownMenu",[TA,CP]=Kt(Aa,[Ea]),ct=Ea(),[AA,qd]=TA(Aa),Vd=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,u=ct(t),l=m.useRef(null),[d,c]=Hn({prop:i,defaultProp:a??!1,onChange:o,caller:Aa});return E.jsx(AA,{scope:t,triggerId:lt(),triggerRef:l,contentId:lt(),open:d,onOpenChange:c,onOpenToggle:m.useCallback(()=>c(h=>!h),[c]),modal:s,children:E.jsx(Od,{...u,open:d,onOpenChange:c,dir:r,modal:s,children:n})})};Vd.displayName=Aa;var Xd="DropdownMenuTrigger",Qd=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=qd(Xd,n),o=ct(n);return E.jsx(Rd,{asChild:!0,...o,children:E.jsx(Ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:fn(t,a.triggerRef),onPointerDown:ce(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:ce(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Qd.displayName=Xd;var CA="DropdownMenuPortal",Zd=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ct(t);return E.jsx(Md,{...r,...n})};Zd.displayName=CA;var Jd="DropdownMenuContent",ef=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=qd(Jd,n),a=ct(n),o=m.useRef(!1);return E.jsx(Ld,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{o.current||i.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:ce(e.onInteractOutside,s=>{const u=s.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,d=u.button===2||l;(!i.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ef.displayName=Jd;var xA="DropdownMenuGroup",tf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Pd,{...i,...r,ref:t})});tf.displayName=xA;var yA="DropdownMenuLabel",nf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Fd,{...i,...r,ref:t})});nf.displayName=yA;var SA="DropdownMenuItem",rf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Bd,{...i,...r,ref:t})});rf.displayName=SA;var NA="DropdownMenuCheckboxItem",af=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Ud,{...i,...r,ref:t})});af.displayName=NA;var DA="DropdownMenuRadioGroup",of=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Hd,{...i,...r,ref:t})});of.displayName=DA;var wA="DropdownMenuRadioItem",sf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(zd,{...i,...r,ref:t})});sf.displayName=wA;var vA="DropdownMenuItemIndicator",uf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx($d,{...i,...r,ref:t})});uf.displayName=vA;var IA="DropdownMenuSeparator",lf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(jd,{...i,...r,ref:t})});lf.displayName=IA;var kA="DropdownMenuArrow",OA=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Yd,{...i,...r,ref:t})});OA.displayName=kA;var RA=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=ct(t),[s,u]=Hn({prop:r,defaultProp:a??!1,onChange:i,caller:"DropdownMenuSub"});return E.jsx(Gd,{...o,open:s,onOpenChange:u,children:n})},MA="DropdownMenuSubTrigger",cf=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Wd,{...i,...r,ref:t})});cf.displayName=MA;var LA="DropdownMenuSubContent",df=m.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ct(n);return E.jsx(Kd,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});df.displayName=LA;var PA=Vd,FA=Qd,ff=Zd,hf=ef,BA=tf,pf=nf,mf=rf,gf=af,UA=of,Ef=sf,bf=uf,_f=lf,HA=RA,Tf=cf,Af=df;const _s=PA,Ts=FA,zA=BA,$A=ff,jA=HA,YA=UA,Cf=m.forwardRef(({className:e,inset:t,children:n,...r},i)=>E.jsxs(Tf,{ref:i,className:xe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,E.jsx(Xi,{className:"ml-auto h-4 w-4"})]}));Cf.displayName=Tf.displayName;const xf=m.forwardRef(({className:e,...t},n)=>E.jsx(Af,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));xf.displayName=Af.displayName;const Ca=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(ff,{children:E.jsx(hf,{ref:r,sideOffset:t,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ca.displayName=hf.displayName;const mr=m.forwardRef(({className:e,inset:t,...n},r)=>E.jsx(mf,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));mr.displayName=mf.displayName;const yf=m.forwardRef(({className:e,children:t,checked:n,...r},i)=>E.jsxs(gf,{ref:i,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[E.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:E.jsx(bf,{children:E.jsx(Hl,{className:"h-4 w-4"})})}),t]}));yf.displayName=gf.displayName;const Sf=m.forwardRef(({className:e,children:t,...n},r)=>E.jsxs(Ef,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[E.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:E.jsx(bf,{children:E.jsx(zl,{className:"h-2 w-2 fill-current"})})}),t]}));Sf.displayName=Ef.displayName;const Nf=m.forwardRef(({className:e,inset:t,...n},r)=>E.jsx(pf,{ref:r,className:xe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Nf.displayName=pf.displayName;const Df=m.forwardRef(({className:e,...t},n)=>E.jsx(_f,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));Df.displayName=_f.displayName;const wf=({className:e,...t})=>E.jsx("span",{className:xe("ml-auto text-xs tracking-widest opacity-60",e),...t});wf.displayName="DropdownMenuShortcut";function vf(){const e=Je.useNavigate(),t=Je.useLocation(),n=[{code:"en",name:"English"},{code:"zh-cn",name:"简体中文"}],r=i=>{const a=t.pathname.split("/").filter(s=>s);a.length>0&&(a[0]==="en"||a[0]==="zh-cn")?a[0]=i:a.unshift(i);const o=`/${a.join("/")}`;e(o)};return E.jsxs(_s,{children:[E.jsx(Ts,{asChild:!0,children:E.jsxs(Mo,{variant:"ghost",size:"icon",children:[E.jsx(Yb,{className:"h-4 w-4"}),E.jsx("span",{className:"sr-only",children:"Switch language"})]})}),E.jsx(Ca,{align:"end",children:n.map(i=>E.jsx(mr,{onClick:()=>r(i.code),children:i.name},i.code))})]})}function If(){const{setTheme:e}=qr();return E.jsxs(_s,{children:[E.jsx(Ts,{asChild:!0,children:E.jsxs(Mo,{variant:"ghost",size:"icon",children:[E.jsx(Kb,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),E.jsx(Gb,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),E.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),E.jsxs(Ca,{align:"end",children:[E.jsx(mr,{onClick:()=>e("light"),children:"Light"}),E.jsx(mr,{onClick:()=>e("dark"),children:"Dark"}),E.jsx(mr,{onClick:()=>e("system"),children:"System"})]})]})}var GA=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),WA="VisuallyHidden",kf=m.forwardRef((e,t)=>E.jsx(Ne.span,{...e,ref:t,style:{...GA,...e.style}}));kf.displayName=WA;var KA=kf,[xa,xP]=Kt("Tooltip",[sa]),ya=sa(),Of="TooltipProvider",qA=700,As="tooltip.open",[VA,Cs]=xa(Of),Rf=e=>{const{__scopeTooltip:t,delayDuration:n=qA,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=m.useRef(!0),s=m.useRef(!1),u=m.useRef(0);return m.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),E.jsx(VA,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(u.current),o.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:m.useCallback(l=>{s.current=l},[]),disableHoverableContent:i,children:a})};Rf.displayName=Of;var ai="Tooltip",[XA,oi]=xa(ai),Mf=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,u=Cs(ai,e.__scopeTooltip),l=ya(t),[d,c]=m.useState(null),h=lt(),p=m.useRef(0),g=o??u.disableHoverableContent,b=s??u.delayDuration,T=m.useRef(!1),[_,x]=Hn({prop:r,defaultProp:i??!1,onChange:M=>{M?(u.onOpen(),document.dispatchEvent(new CustomEvent(As))):u.onClose(),a?.(M)},caller:ai}),N=m.useMemo(()=>_?T.current?"delayed-open":"instant-open":"closed",[_]),k=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,T.current=!1,x(!0)},[x]),O=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),w=m.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{T.current=!0,x(!0),p.current=0},b)},[b,x]);return m.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),E.jsx(ts,{...l,children:E.jsx(XA,{scope:t,contentId:h,open:_,stateAttribute:N,trigger:d,onTriggerChange:c,onTriggerEnter:m.useCallback(()=>{u.isOpenDelayedRef.current?w():k()},[u.isOpenDelayedRef,w,k]),onTriggerLeave:m.useCallback(()=>{g?O():(window.clearTimeout(p.current),p.current=0)},[O,g]),onOpen:k,onClose:O,disableHoverableContent:g,children:n})})};Mf.displayName=ai;var xs="TooltipTrigger",Lf=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=oi(xs,n),a=Cs(xs,n),o=ya(n),s=m.useRef(null),u=Ue(t,s,i.onTriggerChange),l=m.useRef(!1),d=m.useRef(!1),c=m.useCallback(()=>l.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),E.jsx(Bc,{asChild:!0,...o,children:E.jsx(Ne.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:ce(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ce(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ce(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:ce(e.onBlur,i.onClose),onClick:ce(e.onClick,i.onClose)})})});Lf.displayName=xs;var ys="TooltipPortal",[QA,ZA]=xa(ys,{forceMount:void 0}),Pf=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=oi(ys,t);return E.jsx(QA,{scope:t,forceMount:n,children:E.jsx(Et,{present:n||a.open,children:E.jsx(ua,{asChild:!0,container:i,children:r})})})};Pf.displayName=ys;var gr="TooltipContent",Ff=m.forwardRef((e,t)=>{const n=ZA(gr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=oi(gr,e.__scopeTooltip);return E.jsx(Et,{present:r||o.open,children:o.disableHoverableContent?E.jsx(Bf,{side:i,...a,ref:t}):E.jsx(JA,{side:i,...a,ref:t})})}),JA=m.forwardRef((e,t)=>{const n=oi(gr,e.__scopeTooltip),r=Cs(gr,e.__scopeTooltip),i=m.useRef(null),a=Ue(t,i),[o,s]=m.useState(null),{trigger:u,onClose:l}=n,d=i.current,{onPointerInTransitChange:c}=r,h=m.useCallback(()=>{s(null),c(!1)},[c]),p=m.useCallback((g,b)=>{const T=g.currentTarget,_={x:g.clientX,y:g.clientY},x=iC(_,T.getBoundingClientRect()),N=aC(_,x),k=oC(b.getBoundingClientRect()),O=uC([...N,...k]);s(O),c(!0)},[c]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(u&&d){const g=T=>p(T,d),b=T=>p(T,u);return u.addEventListener("pointerleave",g),d.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",b)}}},[u,d,p,h]),m.useEffect(()=>{if(o){const g=b=>{const T=b.target,_={x:b.clientX,y:b.clientY},x=u?.contains(T)||d?.contains(T),N=!sC(_,o);x?h():N&&(h(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,d,o,l,h]),E.jsx(Bf,{...e,ref:a})}),[eC,tC]=xa(ai,{isInside:!1}),nC=Zb("TooltipContent"),Bf=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,u=oi(gr,n),l=ya(n),{onClose:d}=u;return m.useEffect(()=>(document.addEventListener(As,d),()=>document.removeEventListener(As,d)),[d]),m.useEffect(()=>{if(u.trigger){const c=h=>{h.target?.contains(u.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[u.trigger,d]),E.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:E.jsxs(Uc,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(nC,{children:r}),E.jsx(eC,{scope:n,isInside:!0,children:E.jsx(KA,{id:u.contentId,role:"tooltip",children:i||r})})]})})});Ff.displayName=gr;var Uf="TooltipArrow",rC=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=ya(n);return tC(Uf,n).isInside?null:E.jsx(Hc,{...i,...r,ref:t})});rC.displayName=Uf;function iC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function aC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function oC(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function sC(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],u=t[o],l=s.x,d=s.y,c=u.x,h=u.y;d>r!=h>r&&n<(c-l)*(r-d)/(h-d)+l&&(i=!i)}return i}function uC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),lC(t)}function lC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cC=Rf,dC=Mf,fC=Lf,hC=Pf,Hf=Ff;const Sa=cC,Na=dC,Da=fC,si=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx(hC,{children:E.jsx(Hf,{ref:r,sideOffset:t,className:xe("z-50 overflow-hidden rounded-md bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md border data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...n})}));si.displayName=Hf.displayName;function zf({lang:e,site:t,navbar:n,themeConfig:r}){const a=Je.useLocation().pathname,{theme:o}=qr(),[s,u]=me.useState("light");me.useEffect(()=>{if(o==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)").matches;u(h?"dark":"light")}else u(o)},[o]);const l=h=>h.startsWith("http")?h:`/${h.replace(/^\//,"")}`,{light:d,dark:c}=typeof t.logo=="string"?{light:l(t.logo),dark:l(t.logo)}:{light:l(t.logo.light),dark:l(t.logo.dark)};return E.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:E.jsxs("div",{className:"container flex h-14 max-w-screen-2xl items-center px-4 md:px-8",children:[((n.showLogo??!0)||(n.showTitle??!0))&&E.jsxs(Je.Link,{to:`/${e}`,className:"mr-6 flex items-center space-x-2",children:[(n.showLogo??!0)&&E.jsx("img",{src:s==="dark"?c:d,alt:t.title,width:24,height:24}),(n.showTitle??!0)&&E.jsx("span",{className:"font-bold sm:inline-block",children:t.title})]}),E.jsx("nav",{className:"ml-6 flex items-center space-x-6 text-sm font-medium",children:n.items.filter(h=>h.visible!==!1).map(h=>!h.external&&E.jsx(Je.Link,{to:`/${e}${h.link}`,className:xe("transition-colors hover:text-foreground/80",a===`/${e}${h.link}`?"text-foreground":"text-foreground/60"),children:h.title},h.link))}),E.jsx("div",{className:"flex flex-1 items-center justify-end space-x-2",children:E.jsxs("nav",{className:"flex items-center",children:[(n.actions||[]).filter(h=>h.enabled!==!1).map((h,p)=>{const g=h.title||(h.type==="github"?"GitHub":"Action");return E.jsx(Sa,{children:E.jsxs(Na,{children:[E.jsx(Da,{asChild:!0,children:E.jsx("a",{href:h.link,target:"_blank",rel:"noopener noreferrer","aria-label":g,children:E.jsx("div",{className:xe(Ro({variant:"ghost"}),"w-9 px-0"),children:h.type==="github"?E.jsx(jb,{className:"h-4 w-4"}):E.jsx("span",{className:"text-sm",children:g})})})}),E.jsx(si,{align:"center",children:g})]})},h.link||`${h.type||"action"}-${p}`)}),n.showLanguageSwitcher!==!1&&E.jsx(Sa,{children:E.jsxs(Na,{children:[E.jsx(Da,{asChild:!0,children:E.jsx("div",{children:E.jsx(vf,{})})}),E.jsx(si,{align:"center",children:"切换语言"})]})}),(r?.allowToggle??!0)&&E.jsx(Sa,{children:E.jsxs(Na,{children:[E.jsx(Da,{asChild:!0,children:E.jsx("div",{children:E.jsx(If,{})})}),E.jsx(si,{align:"center",children:"切换主题"})]})})]})})]})})}var wa="Collapsible",[pC,yP]=Kt(wa),[mC,Ss]=pC(wa),$f=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[u,l]=Hn({prop:r,defaultProp:i??!1,onChange:o,caller:wa});return E.jsx(mC,{scope:n,disabled:a,contentId:lt(),open:u,onOpenToggle:m.useCallback(()=>l(d=>!d),[l]),children:E.jsx(Ne.div,{"data-state":Ds(u),"data-disabled":a?"":void 0,...s,ref:t})})});$f.displayName=wa;var jf="CollapsibleTrigger",Yf=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Ss(jf,n);return E.jsx(Ne.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Ds(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ce(e.onClick,i.onOpenToggle)})});Yf.displayName=jf;var Ns="CollapsibleContent",Gf=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Ss(Ns,e.__scopeCollapsible);return E.jsx(Et,{present:n||i.open,children:({present:a})=>E.jsx(gC,{...r,ref:t,present:a})})});Gf.displayName=Ns;var gC=m.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Ss(Ns,n),[s,u]=m.useState(r),l=m.useRef(null),d=Ue(t,l),c=m.useRef(0),h=c.current,p=m.useRef(0),g=p.current,b=o.open||s,T=m.useRef(b),_=m.useRef(void 0);return m.useEffect(()=>{const x=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(x)},[]),qt(()=>{const x=l.current;if(x){_.current=_.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const N=x.getBoundingClientRect();c.current=N.height,p.current=N.width,T.current||(x.style.transitionDuration=_.current.transitionDuration,x.style.animationName=_.current.animationName),u(r)}},[o.open,r]),E.jsx(Ne.div,{"data-state":Ds(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!b,...a,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:b&&i})});function Ds(e){return e?"open":"closed"}var EC=$f;const Wf=EC,ws=Yf,Kf=Gf;function qf({lang:e,sidebar:t}){const r=Je.useLocation().pathname,i=m.useMemo(()=>{const s=r.split("/").filter(Boolean);return s.length>=2?s[1]:""},[r]),a=m.useMemo(()=>{if(!t)return null;const s=t.collections?.[i]?.sections,u=t.sections;return s&&s.length>0?s:u},[t,i]);return!m.useMemo(()=>t?typeof t.enabled=="boolean"?t.enabled:!!(a&&a.length>0):!1,[t,a])||!a?null:E.jsx("div",{className:"w-full",children:a.map(s=>E.jsxs(Wf,{defaultOpen:s.path?r.startsWith(`/${e}${s.path}`):!1,children:[s.path?E.jsx(ws,{asChild:!0,children:E.jsxs(Je.Link,{to:`/${e}${s.path}`,className:"flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted",children:[E.jsx("span",{children:s.title}),E.jsx(Xi,{className:"h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90"})]})}):E.jsxs(ws,{className:"flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted",children:[s.title,E.jsx(Xi,{className:"h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90"})]}),E.jsx(Kf,{className:"py-1 pl-4",children:E.jsx("div",{className:"grid grid-flow-row auto-rows-max text-sm",children:(s.children||[]).map(u=>{const l=`/${e}${u.path}`;return E.jsx(Je.Link,{to:l,className:xe("group flex w-full items-center rounded-md border border-transparent px-3 py-2 hover:underline transition-colors",r===l?"font-medium text-foreground":"text-muted-foreground"),children:u.title},u.path)})})})]},s.title))})}function Vf({toc:e}){const[t,n]=me.useState(null);me.useEffect(()=>{const i=new IntersectionObserver(a=>{a.forEach(o=>{o.isIntersecting&&n(o.target.id)})},{rootMargin:"0% 0% -80% 0%"});return e.forEach(a=>{const o=document.getElementById(a.url.slice(1));o&&i.observe(o)}),()=>{e.forEach(a=>{const o=document.getElementById(a.url.slice(1));o&&i.unobserve(o)})}},[e]);const r=(i,a)=>{i.preventDefault();const o=document.getElementById(a.slice(1));o&&(o.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",a))};return e.length===0?null:E.jsxs("div",{className:"space-y-2",children:[E.jsx("p",{className:"font-medium",children:"On This Page"}),E.jsx("ul",{className:"m-0 list-none",children:e.map(i=>E.jsx("li",{className:xe("mt-0 pt-2"),children:E.jsx("a",{href:i.url,onClick:a=>r(a,i.url),className:xe("inline-block no-underline transition-colors hover:text-foreground",i.url.slice(1)===t?"text-foreground font-medium":"text-muted-foreground",i.depth>2?"pl-4":""),children:i.title})},i.url))})]})}function bC(e,[t,n]){return Math.min(n,Math.max(t,e))}function _C(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var vs="ScrollArea",[Xf,SP]=Kt(vs),[TC,Lt]=Xf(vs),Qf=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,u]=m.useState(null),[l,d]=m.useState(null),[c,h]=m.useState(null),[p,g]=m.useState(null),[b,T]=m.useState(null),[_,x]=m.useState(0),[N,k]=m.useState(0),[O,w]=m.useState(!1),[M,H]=m.useState(!1),z=Ue(t,$=>u($)),I=Lo(i);return E.jsx(TC,{scope:n,type:r,dir:I,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:d,content:c,onContentChange:h,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:O,onScrollbarXEnabledChange:w,scrollbarY:b,onScrollbarYChange:T,scrollbarYEnabled:M,onScrollbarYEnabledChange:H,onCornerWidthChange:x,onCornerHeightChange:k,children:E.jsx(Ne.div,{dir:I,...o,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});Qf.displayName=vs;var Zf="ScrollAreaViewport",Jf=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=Lt(Zf,n),s=m.useRef(null),u=Ue(t,s,o.onViewportChange);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),E.jsx(Ne.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:E.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Jf.displayName=Zf;var en="ScrollAreaScrollbar",eh=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Lt(en,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return m.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?E.jsx(AC,{...r,ref:t,forceMount:n}):i.type==="scroll"?E.jsx(CC,{...r,ref:t,forceMount:n}):i.type==="auto"?E.jsx(th,{...r,ref:t,forceMount:n}):i.type==="always"?E.jsx(Is,{...r,ref:t}):null});eh.displayName=en;var AC=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Lt(en,e.__scopeScrollArea),[a,o]=m.useState(!1);return m.useEffect(()=>{const s=i.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),o(!0)},d=()=>{u=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",d)}}},[i.scrollArea,i.scrollHideDelay]),E.jsx(Et,{present:n||a,children:E.jsx(th,{"data-state":a?"visible":"hidden",...r,ref:t})})}),CC=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Lt(en,e.__scopeScrollArea),a=e.orientation==="horizontal",o=Oa(()=>u("SCROLL_END"),100),[s,u]=_C("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,i.scrollHideDelay,u]),m.useEffect(()=>{const l=i.viewport,d=a?"scrollLeft":"scrollTop";if(l){let c=l[d];const h=()=>{const p=l[d];c!==p&&(u("SCROLL"),o()),c=p};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[i.viewport,a,u,o]),E.jsx(Et,{present:n||s!=="hidden",children:E.jsx(Is,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ce(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ce(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),th=m.forwardRef((e,t)=>{const n=Lt(en,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=m.useState(!1),s=e.orientation==="horizontal",u=Oa(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?l:d)}},10);return Er(n.viewport,u),Er(n.content,u),E.jsx(Et,{present:r||a,children:E.jsx(Is,{"data-state":a?"visible":"hidden",...i,ref:t})})}),Is=m.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=Lt(en,e.__scopeScrollArea),a=m.useRef(null),o=m.useRef(0),[s,u]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=oh(s.viewport,s.content),d={...r,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function c(h,p){return wC(h,o.current,s,p)}return n==="horizontal"?E.jsx(xC,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollLeft,p=sh(h,s,i.dir);a.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=c(h,i.dir))}}):n==="vertical"?E.jsx(yC,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollTop,p=sh(h,s);a.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=c(h))}}):null}),xC=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=Lt(en,e.__scopeScrollArea),[o,s]=m.useState(),u=m.useRef(null),l=Ue(t,u,a.onScrollbarXChange);return m.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),E.jsx(rh,{"data-orientation":"horizontal",...i,ref:l,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ka(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(a.viewport){const h=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),lh(h,c)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ia(o.paddingLeft),paddingEnd:Ia(o.paddingRight)}})}})}),yC=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=Lt(en,e.__scopeScrollArea),[o,s]=m.useState(),u=m.useRef(null),l=Ue(t,u,a.onScrollbarYChange);return m.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),E.jsx(rh,{"data-orientation":"vertical",...i,ref:l,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ka(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(a.viewport){const h=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),lh(h,c)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ia(o.paddingTop),paddingEnd:Ia(o.paddingBottom)}})}})}),[SC,nh]=Xf(en),rh=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:d,onResize:c,...h}=e,p=Lt(en,n),[g,b]=m.useState(null),T=Ue(t,z=>b(z)),_=m.useRef(null),x=m.useRef(""),N=p.viewport,k=r.content-r.viewport,O=nt(d),w=nt(u),M=Oa(c,10);function H(z){if(_.current){const I=z.clientX-_.current.left,$=z.clientY-_.current.top;l({x:I,y:$})}}return m.useEffect(()=>{const z=I=>{const $=I.target;g?.contains($)&&O(I,k)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[N,g,k,O]),m.useEffect(w,[r,w]),Er(g,M),Er(p.content,M),E.jsx(SC,{scope:n,scrollbar:g,hasThumb:i,onThumbChange:nt(a),onThumbPointerUp:nt(o),onThumbPositionChange:w,onThumbPointerDown:nt(s),children:E.jsx(Ne.div,{...h,ref:T,style:{position:"absolute",...h.style},onPointerDown:ce(e.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),_.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),H(z))}),onPointerMove:ce(e.onPointerMove,H),onPointerUp:ce(e.onPointerUp,z=>{const I=z.target;I.hasPointerCapture(z.pointerId)&&I.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=x.current,p.viewport&&(p.viewport.style.scrollBehavior=""),_.current=null})})})}),va="ScrollAreaThumb",ih=m.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=nh(va,e.__scopeScrollArea);return E.jsx(Et,{present:n||i.hasThumb,children:E.jsx(NC,{ref:t,...r})})}),NC=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=Lt(va,n),o=nh(va,n),{onThumbPositionChange:s}=o,u=Ue(t,c=>o.onThumbChange(c)),l=m.useRef(void 0),d=Oa(()=>{l.current&&(l.current(),l.current=void 0)},100);return m.useEffect(()=>{const c=a.viewport;if(c){const h=()=>{if(d(),!l.current){const p=vC(c,s);l.current=p,s()}};return s(),c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[a.viewport,d,s]),E.jsx(Ne.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ce(e.onPointerDownCapture,c=>{const p=c.target.getBoundingClientRect(),g=c.clientX-p.left,b=c.clientY-p.top;o.onThumbPointerDown({x:g,y:b})}),onPointerUp:ce(e.onPointerUp,o.onThumbPointerUp)})});ih.displayName=va;var ks="ScrollAreaCorner",ah=m.forwardRef((e,t)=>{const n=Lt(ks,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?E.jsx(DC,{...e,ref:t}):null});ah.displayName=ks;var DC=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=Lt(ks,n),[a,o]=m.useState(0),[s,u]=m.useState(0),l=!!(a&&s);return Er(i.scrollbarX,()=>{const d=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(d),u(d)}),Er(i.scrollbarY,()=>{const d=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(d),o(d)}),l?E.jsx(Ne.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ia(e){return e?parseInt(e,10):0}function oh(e,t){const n=e/t;return isNaN(n)?0:n}function ka(e){const t=oh(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function wC(e,t,n,r="ltr"){const i=ka(n),a=i/2,o=t||a,s=i-o,u=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return uh([u,l],c)(e)}function sh(e,t,n="ltr"){const r=ka(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,u=n==="ltr"?[0,o]:[o*-1,0],l=bC(e,u);return uh([0,o],[0,s])(l)}function uh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function lh(e,t){return e>0&&e<t}var vC=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Oa(e,t){const n=nt(e),r=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(r.current),[]),m.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Er(e,t){const n=nt(t);qt(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var IC=Qf,kC=Jf,OC=ah;function Os({className:e,children:t,...n}){return E.jsxs(IC,{"data-slot":"scroll-area",className:xe("relative",e),...n,children:[E.jsx(kC,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),E.jsx(RC,{}),E.jsx(OC,{})]})}function RC({className:e,orientation:t="vertical",...n}){return E.jsx(eh,{"data-slot":"scroll-area-scrollbar",orientation:t,className:xe("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:E.jsx(ih,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function ch({lang:e,config:t,frontmatter:n,children:r}){const{site:i,navbar:a,sidebar:o,theme:s}=t,u=n?.toc;return E.jsxs("div",{className:"relative flex min-h-screen flex-col",children:[E.jsx(zf,{lang:e,site:i,navbar:a,themeConfig:s}),E.jsxs("div",{className:"container flex-1 items-start md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-6 lg:grid-cols-[240px_minmax(0,1fr)] lg:gap-10 px-4 md:px-8",children:[o&&E.jsx("aside",{className:"fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",children:E.jsx(Os,{className:"h-full py-6 pr-6 lg:py-8",children:E.jsx(qf,{lang:e,sidebar:o})})}),E.jsxs("div",{className:"relative flex",children:[E.jsx("main",{className:"relative py-6 lg:py-8 flex-auto",children:r}),u&&E.jsx("aside",{className:"fixed top-14 z-30 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",style:{right:"2rem",width:"200px"},children:E.jsx(Os,{className:"h-full py-6 pr-6 lg:py-8",children:E.jsx(Vf,{toc:u})})})]})]})]})}var dh=1,MC=.9,LC=.8,PC=.17,Rs=.1,Ms=.999,FC=.9999,BC=.99,UC=/[\\\/_+.#"@\[\(\{&]/,HC=/[\\\/_+.#"@\[\(\{&]/g,zC=/[\s-]/,fh=/[\s-]/g;function Ls(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?dh:BC;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var u=r.charAt(a),l=n.indexOf(u,i),d=0,c,h,p,g;l>=0;)c=Ls(e,t,n,r,l+1,a+1,o),c>d&&(l===i?c*=dh:UC.test(e.charAt(l-1))?(c*=LC,p=e.slice(i,l-1).match(HC),p&&i>0&&(c*=Math.pow(Ms,p.length))):zC.test(e.charAt(l-1))?(c*=MC,g=e.slice(i,l-1).match(fh),g&&i>0&&(c*=Math.pow(Ms,g.length))):(c*=PC,i>0&&(c*=Math.pow(Ms,l-i))),e.charAt(l)!==t.charAt(a)&&(c*=FC)),(c<Rs&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(h=Ls(e,t,n,r,l+1,a+2,o),h*Rs>c&&(c=h*Rs)),c>d&&(d=c),l=n.indexOf(u,l+1);return o[s]=d,d}function hh(e){return e.toLowerCase().replace(fh," ")}function $C(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ls(e,t,hh(e),hh(t),0,0,{})}var Ra="Dialog",[ph,NP]=Kt(Ra),[jC,$t]=ph(Ra),mh=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=m.useRef(null),u=m.useRef(null),[l,d]=Hn({prop:r,defaultProp:i??!1,onChange:a,caller:Ra});return E.jsx(jC,{scope:t,triggerRef:s,contentRef:u,contentId:lt(),titleId:lt(),descriptionId:lt(),open:l,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(c=>!c),[d]),modal:o,children:n})};mh.displayName=Ra;var gh="DialogTrigger",Eh=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$t(gh,n),a=Ue(t,i.triggerRef);return E.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Bs(i.open),...r,ref:a,onClick:ce(e.onClick,i.onOpenToggle)})});Eh.displayName=gh;var Ps="DialogPortal",[YC,bh]=ph(Ps,{forceMount:void 0}),_h=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=$t(Ps,t);return E.jsx(YC,{scope:t,forceMount:n,children:m.Children.map(r,o=>E.jsx(Et,{present:n||a.open,children:E.jsx(ua,{asChild:!0,container:i,children:o})}))})};_h.displayName=Ps;var Ma="DialogOverlay",Th=m.forwardRef((e,t)=>{const n=bh(Ma,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$t(Ma,e.__scopeDialog);return a.modal?E.jsx(Et,{present:r||a.open,children:E.jsx(WC,{...i,ref:t})}):null});Th.displayName=Ma;var GC=or("DialogOverlay.RemoveScroll"),WC=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$t(Ma,n);return E.jsx(ls,{as:GC,allowPinchZoom:!0,shards:[i.contentRef],children:E.jsx(Ne.div,{"data-state":Bs(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jn="DialogContent",Ah=m.forwardRef((e,t)=>{const n=bh(jn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$t(jn,e.__scopeDialog);return E.jsx(Et,{present:r||a.open,children:a.modal?E.jsx(KC,{...i,ref:t}):E.jsx(qC,{...i,ref:t})})});Ah.displayName=jn;var KC=m.forwardRef((e,t)=>{const n=$t(jn,e.__scopeDialog),r=m.useRef(null),i=Ue(t,n.contentRef,r);return m.useEffect(()=>{const a=r.current;if(a)return qc(a)},[]),E.jsx(Ch,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault())})}),qC=m.forwardRef((e,t)=>{const n=$t(jn,e.__scopeDialog),r=m.useRef(!1),i=m.useRef(!1);return E.jsx(Ch,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;n.triggerRef.current?.contains(o)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),Ch=m.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=$t(jn,n),u=m.useRef(null),l=Ue(t,u);return ec(),E.jsxs(E.Fragment,{children:[E.jsx(Ho,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:E.jsx(Qi,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Bs(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(VC,{titleId:s.titleId}),E.jsx(QC,{contentRef:u,descriptionId:s.descriptionId})]})]})}),Fs="DialogTitle",xh=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$t(Fs,n);return E.jsx(Ne.h2,{id:i.titleId,...r,ref:t})});xh.displayName=Fs;var yh="DialogDescription",Sh=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$t(yh,n);return E.jsx(Ne.p,{id:i.descriptionId,...r,ref:t})});Sh.displayName=yh;var Nh="DialogClose",Dh=m.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$t(Nh,n);return E.jsx(Ne.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>i.onOpenChange(!1))})});Dh.displayName=Nh;function Bs(e){return e?"open":"closed"}var wh="DialogTitleWarning",[DP,vh]=r1(wh,{contentName:jn,titleName:Fs,docsSlug:"dialog"}),VC=({titleId:e})=>{const t=vh(wh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
177
+ `)},rA=0,pr=[];function iA(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(rA++)[0],a=g.useState(nd)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=ST([e.lockRef.current],(e.shards||[]).map(ld),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(b,T){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!o.current.allowPinchZoom;var _=Ta(b),C=n.current,N="deltaX"in b?b.deltaX:C[0]-_[0],I="deltaY"in b?b.deltaY:C[1]-_[1],O,w=b.target,M=Math.abs(N)>Math.abs(I)?"h":"v";if("touches"in b&&M==="h"&&w.type==="range")return!1;var H=ad(M,w);if(!H)return!0;if(H?O=M:(O=M==="v"?"h":"v",H=ad(M,w)),!H)return!1;if(!r.current&&"changedTouches"in b&&(N||I)&&(r.current=O),!O)return!0;var z=r.current||O;return eA(z,T,b,z==="h"?N:I)},[]),u=g.useCallback(function(b){var T=b;if(!(!pr.length||pr[pr.length-1]!==a)){var _="deltaY"in T?ud(T):Ta(T),C=t.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&tA(O.delta,_)})[0];if(C&&C.should){T.cancelable&&T.preventDefault();return}if(!C){var N=(o.current.shards||[]).map(ld).filter(Boolean).filter(function(O){return O.contains(T.target)}),I=N.length>0?s(T,N[0]):!o.current.noIsolation;I&&T.cancelable&&T.preventDefault()}}},[]),l=g.useCallback(function(b,T,_,C){var N={name:b,delta:T,target:_,should:C,shadowParent:aA(_)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(I){return I!==N})},1)},[]),d=g.useCallback(function(b){n.current=Ta(b),r.current=void 0},[]),c=g.useCallback(function(b){l(b.type,ud(b),b.target,s(b,e.lockRef.current))},[]),h=g.useCallback(function(b){l(b.type,Ta(b),b.target,s(b,e.lockRef.current))},[]);g.useEffect(function(){return pr.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",u,hr),document.addEventListener("touchmove",u,hr),document.addEventListener("touchstart",d,hr),function(){pr=pr.filter(function(b){return b!==a}),document.removeEventListener("wheel",u,hr),document.removeEventListener("touchmove",u,hr),document.removeEventListener("touchstart",d,hr)}},[]);var p=e.removeScrollBar,E=e.inert;return g.createElement(g.Fragment,null,E?g.createElement(a,{styles:nA(i)}):null,p?g.createElement(KT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oA=MT(td,iA);var ls=g.forwardRef(function(e,t){return g.createElement(ba,en({},e,{ref:t,sideCar:oA}))});ls.classNames=ba.classNames;var cs=["Enter"," "],sA=["ArrowDown","PageUp","Home"],cd=["ArrowUp","PageDown","End"],uA=[...sA,...cd],lA={ltr:[...cs,"ArrowRight"],rtl:[...cs,"ArrowLeft"]},cA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ei="Menu",[ti,dA,fA]=Zl(ei),[$n,Aa]=qt(ei,[fA,da,Gc]),ni=da(),dd=Gc(),[fd,Nn]=$n(ei),[hA,ri]=$n(ei),hd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=ni(t),[u,l]=g.useState(null),d=g.useRef(!1),c=rt(a),h=Lo(i);return g.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),m.jsx(ts,{...s,children:m.jsx(fd,{scope:t,open:n,onOpenChange:c,content:u,onContentChange:l,children:m.jsx(hA,{scope:t,onClose:g.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:h,modal:o,children:r})})})};hd.displayName=ei;var pA="MenuAnchor",ds=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ni(n);return m.jsx(zc,{...i,...r,ref:t})});ds.displayName=pA;var fs="MenuPortal",[mA,pd]=$n(fs,{forceMount:void 0}),md=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Nn(fs,t);return m.jsx(mA,{scope:t,forceMount:n,children:m.jsx(bt,{present:n||a.open,children:m.jsx(fa,{asChild:!0,container:i,children:r})})})};md.displayName=fs;var Lt="MenuContent",[gA,hs]=$n(Lt),gd=g.forwardRef((e,t)=>{const n=pd(Lt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nn(Lt,e.__scopeMenu),o=ri(Lt,e.__scopeMenu);return m.jsx(ti.Provider,{scope:e.__scopeMenu,children:m.jsx(bt,{present:r||a.open,children:m.jsx(ti.Slot,{scope:e.__scopeMenu,children:o.modal?m.jsx(EA,{...i,ref:t}):m.jsx(bA,{...i,ref:t})})})})}),EA=g.forwardRef((e,t)=>{const n=Nn(Lt,e.__scopeMenu),r=g.useRef(null),i=Ue(t,r);return g.useEffect(()=>{const a=r.current;if(a)return Qc(a)},[]),m.jsx(ps,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bA=g.forwardRef((e,t)=>{const n=Nn(Lt,e.__scopeMenu);return m.jsx(ps,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_A=or("MenuContent.ScrollLock"),ps=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:h,onDismiss:p,disableOutsideScroll:E,...b}=e,T=Nn(Lt,n),_=ri(Lt,n),C=ni(n),N=dd(n),I=dA(n),[O,w]=g.useState(null),M=g.useRef(null),H=Ue(t,M,T.onContentChange),z=g.useRef(0),k=g.useRef(""),$=g.useRef(0),Y=g.useRef(null),G=g.useRef("right"),B=g.useRef(0),K=E?ls:g.Fragment,ae=E?{as:_A,allowPinchZoom:!0}:void 0,pe=Q=>{const A=k.current+Q,ee=I().filter(de=>!de.disabled),L=document.activeElement,y=ee.find(de=>de.ref.current===L)?.textValue,se=ee.map(de=>de.textValue),te=IA(se,A,y),ue=ee.find(de=>de.textValue===te)?.ref.current;(function de(be){k.current=be,window.clearTimeout(z.current),be!==""&&(z.current=window.setTimeout(()=>de(""),1e3))})(A),ue&&setTimeout(()=>ue.focus())};g.useEffect(()=>()=>window.clearTimeout(z.current),[]),rc();const q=g.useCallback(Q=>G.current===Y.current?.side&&RA(Q,Y.current?.area),[]);return m.jsx(gA,{scope:n,searchRef:k,onItemEnter:g.useCallback(Q=>{q(Q)&&Q.preventDefault()},[q]),onItemLeave:g.useCallback(Q=>{q(Q)||(M.current?.focus(),w(null))},[q]),onTriggerLeave:g.useCallback(Q=>{q(Q)&&Q.preventDefault()},[q]),pointerGraceTimerRef:$,onPointerGraceIntentChange:g.useCallback(Q=>{Y.current=Q},[]),children:m.jsx(K,{...ae,children:m.jsx(Ho,{asChild:!0,trapped:i,onMountAutoFocus:ce(a,Q=>{Q.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:m.jsx(ta,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:h,onDismiss:p,children:m.jsx(TT,{asChild:!0,...N,dir:_.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:w,onEntryFocus:ce(u,Q=>{_.isUsingKeyboardRef.current||Q.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx($c,{role:"menu","aria-orientation":"vertical","data-state":Md(T.open),"data-radix-menu-content":"",dir:_.dir,...C,...b,ref:H,style:{outline:"none",...b.style},onKeyDown:ce(b.onKeyDown,Q=>{const ee=Q.target.closest("[data-radix-menu-content]")===Q.currentTarget,L=Q.ctrlKey||Q.altKey||Q.metaKey,y=Q.key.length===1;ee&&(Q.key==="Tab"&&Q.preventDefault(),!L&&y&&pe(Q.key));const se=M.current;if(Q.target!==se||!uA.includes(Q.key))return;Q.preventDefault();const ue=I().filter(de=>!de.disabled).map(de=>de.ref.current);cd.includes(Q.key)&&ue.reverse(),vA(ue)}),onBlur:ce(e.onBlur,Q=>{Q.currentTarget.contains(Q.target)||(window.clearTimeout(z.current),k.current="")}),onPointerMove:ce(e.onPointerMove,ai(Q=>{const A=Q.target,ee=B.current!==Q.clientX;if(Q.currentTarget.contains(A)&&ee){const L=Q.clientX>B.current?"right":"left";G.current=L,B.current=Q.clientX}}))})})})})})})});gd.displayName=Lt;var TA="MenuGroup",ms=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Ne.div,{role:"group",...r,ref:t})});ms.displayName=TA;var AA="MenuLabel",Ed=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Ne.div,{...r,ref:t})});Ed.displayName=AA;var xa="MenuItem",bd="menu.itemSelect",Ca=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,a=g.useRef(null),o=ri(xa,e.__scopeMenu),s=hs(xa,e.__scopeMenu),u=Ue(t,a),l=g.useRef(!1),d=()=>{const c=a.current;if(!n&&c){const h=new CustomEvent(bd,{bubbles:!0,cancelable:!0});c.addEventListener(bd,p=>r?.(p),{once:!0}),Ql(c,h),h.defaultPrevented?l.current=!1:o.onClose()}};return m.jsx(_d,{...i,ref:u,disabled:n,onClick:ce(e.onClick,d),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:ce(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:ce(e.onKeyDown,c=>{const h=s.searchRef.current!=="";n||h&&c.key===" "||cs.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Ca.displayName=xa;var _d=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=hs(xa,n),s=dd(n),u=g.useRef(null),l=Ue(t,u),[d,c]=g.useState(!1),[h,p]=g.useState("");return g.useEffect(()=>{const E=u.current;E&&p((E.textContent??"").trim())},[a.children]),m.jsx(ti.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:m.jsx(AT,{asChild:!0,...s,focusable:!r,children:m.jsx(Ne.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:ce(e.onPointerMove,ai(E=>{r?o.onItemLeave(E):(o.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(e.onPointerLeave,ai(E=>o.onItemLeave(E))),onFocus:ce(e.onFocus,()=>c(!0)),onBlur:ce(e.onBlur,()=>c(!1))})})})}),xA="MenuCheckboxItem",Td=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return m.jsx(Sd,{scope:e.__scopeMenu,checked:n,children:m.jsx(Ca,{role:"menuitemcheckbox","aria-checked":ya(n)?"mixed":n,...i,ref:t,"data-state":bs(n),onSelect:ce(i.onSelect,()=>r?.(ya(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Td.displayName=xA;var Ad="MenuRadioGroup",[CA,yA]=$n(Ad,{value:void 0,onValueChange:()=>{}}),xd=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,a=rt(r);return m.jsx(CA,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(ms,{...i,ref:t})})});xd.displayName=Ad;var Cd="MenuRadioItem",yd=g.forwardRef((e,t)=>{const{value:n,...r}=e,i=yA(Cd,e.__scopeMenu),a=n===i.value;return m.jsx(Sd,{scope:e.__scopeMenu,checked:a,children:m.jsx(Ca,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":bs(a),onSelect:ce(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});yd.displayName=Cd;var gs="MenuItemIndicator",[Sd,SA]=$n(gs,{checked:!1}),Nd=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,a=SA(gs,n);return m.jsx(bt,{present:r||ya(a.checked)||a.checked===!0,children:m.jsx(Ne.span,{...i,ref:t,"data-state":bs(a.checked)})})});Nd.displayName=gs;var NA="MenuSeparator",Dd=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Ne.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Dd.displayName=NA;var DA="MenuArrow",wd=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=ni(n);return m.jsx(jc,{...i,...r,ref:t})});wd.displayName=DA;var Es="MenuSub",[wA,vd]=$n(Es),kd=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=Nn(Es,t),o=ni(t),[s,u]=g.useState(null),[l,d]=g.useState(null),c=rt(i);return g.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),m.jsx(ts,{...o,children:m.jsx(fd,{scope:t,open:r,onOpenChange:c,content:l,onContentChange:d,children:m.jsx(wA,{scope:t,contentId:ct(),triggerId:ct(),trigger:s,onTriggerChange:u,children:n})})})};kd.displayName=Es;var ii="MenuSubTrigger",Id=g.forwardRef((e,t)=>{const n=Nn(ii,e.__scopeMenu),r=ri(ii,e.__scopeMenu),i=vd(ii,e.__scopeMenu),a=hs(ii,e.__scopeMenu),o=g.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},d=g.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return g.useEffect(()=>d,[d]),g.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),u(null)}},[s,u]),m.jsx(ds,{asChild:!0,...l,children:m.jsx(_d,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Md(n.open),...e,ref:fn(t,i.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ce(e.onPointerMove,ai(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:ce(e.onPointerLeave,ai(c=>{d();const h=n.content?.getBoundingClientRect();if(h){const p=n.content?.dataset.side,E=p==="right",b=E?-5:5,T=h[E?"left":"right"],_=h[E?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+b,y:c.clientY},{x:T,y:h.top},{x:_,y:h.top},{x:_,y:h.bottom},{x:T,y:h.bottom}],side:p}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ce(e.onKeyDown,c=>{const h=a.searchRef.current!=="";e.disabled||h&&c.key===" "||lA[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});Id.displayName=ii;var Od="MenuSubContent",Rd=g.forwardRef((e,t)=>{const n=pd(Lt,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Nn(Lt,e.__scopeMenu),o=ri(Lt,e.__scopeMenu),s=vd(Od,e.__scopeMenu),u=g.useRef(null),l=Ue(t,u);return m.jsx(ti.Provider,{scope:e.__scopeMenu,children:m.jsx(bt,{present:r||a.open,children:m.jsx(ti.Slot,{scope:e.__scopeMenu,children:m.jsx(ps,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{o.isUsingKeyboardRef.current&&u.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:ce(e.onFocusOutside,d=>{d.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ce(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:ce(e.onKeyDown,d=>{const c=d.currentTarget.contains(d.target),h=cA[o.dir].includes(d.key);c&&h&&(a.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});Rd.displayName=Od;function Md(e){return e?"open":"closed"}function ya(e){return e==="indeterminate"}function bs(e){return ya(e)?"indeterminate":e?"checked":"unchecked"}function vA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function kA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function IA(e,t,n){const i=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=kA(e,Math.max(a,0));i.length===1&&(o=o.filter(l=>l!==n));const u=o.find(l=>l.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}function OA(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],u=t[o],l=s.x,d=s.y,c=u.x,h=u.y;d>r!=h>r&&n<(c-l)*(r-d)/(h-d)+l&&(i=!i)}return i}function RA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return OA(n,t)}function ai(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ld=hd,Pd=ds,Fd=md,Bd=gd,Ud=ms,Hd=Ed,zd=Ca,$d=Td,jd=xd,Yd=yd,Gd=Nd,Wd=Dd,Kd=wd,qd=kd,Vd=Id,Xd=Rd,Sa="DropdownMenu",[MA,WP]=qt(Sa,[Aa]),dt=Aa(),[LA,Qd]=MA(Sa),Zd=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,u=dt(t),l=g.useRef(null),[d,c]=Hn({prop:i,defaultProp:a??!1,onChange:o,caller:Sa});return m.jsx(LA,{scope:t,triggerId:ct(),triggerRef:l,contentId:ct(),open:d,onOpenChange:c,onOpenToggle:g.useCallback(()=>c(h=>!h),[c]),modal:s,children:m.jsx(Ld,{...u,open:d,onOpenChange:c,dir:r,modal:s,children:n})})};Zd.displayName=Sa;var Jd="DropdownMenuTrigger",ef=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Qd(Jd,n),o=dt(n);return m.jsx(Pd,{asChild:!0,...o,children:m.jsx(Ne.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:fn(t,a.triggerRef),onPointerDown:ce(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:ce(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});ef.displayName=Jd;var PA="DropdownMenuPortal",tf=e=>{const{__scopeDropdownMenu:t,...n}=e,r=dt(t);return m.jsx(Fd,{...r,...n})};tf.displayName=PA;var nf="DropdownMenuContent",rf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Qd(nf,n),a=dt(n),o=g.useRef(!1);return m.jsx(Bd,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{o.current||i.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:ce(e.onInteractOutside,s=>{const u=s.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,d=u.button===2||l;(!i.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rf.displayName=nf;var FA="DropdownMenuGroup",af=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Ud,{...i,...r,ref:t})});af.displayName=FA;var BA="DropdownMenuLabel",of=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Hd,{...i,...r,ref:t})});of.displayName=BA;var UA="DropdownMenuItem",sf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(zd,{...i,...r,ref:t})});sf.displayName=UA;var HA="DropdownMenuCheckboxItem",uf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx($d,{...i,...r,ref:t})});uf.displayName=HA;var zA="DropdownMenuRadioGroup",lf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(jd,{...i,...r,ref:t})});lf.displayName=zA;var $A="DropdownMenuRadioItem",cf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Yd,{...i,...r,ref:t})});cf.displayName=$A;var jA="DropdownMenuItemIndicator",df=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Gd,{...i,...r,ref:t})});df.displayName=jA;var YA="DropdownMenuSeparator",ff=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Wd,{...i,...r,ref:t})});ff.displayName=YA;var GA="DropdownMenuArrow",WA=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Kd,{...i,...r,ref:t})});WA.displayName=GA;var KA=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=dt(t),[s,u]=Hn({prop:r,defaultProp:a??!1,onChange:i,caller:"DropdownMenuSub"});return m.jsx(qd,{...o,open:s,onOpenChange:u,children:n})},qA="DropdownMenuSubTrigger",hf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Vd,{...i,...r,ref:t})});hf.displayName=qA;var VA="DropdownMenuSubContent",pf=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dt(n);return m.jsx(Xd,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});pf.displayName=VA;var XA=Zd,QA=ef,mf=tf,gf=rf,ZA=af,Ef=of,bf=sf,_f=uf,JA=lf,Tf=cf,Af=df,xf=ff,ex=KA,Cf=hf,yf=pf;const _s=XA,Ts=QA,tx=ZA,nx=mf,rx=ex,ix=JA,Sf=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>m.jsxs(Cf,{ref:i,className:_e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,m.jsx(Ji,{className:"ml-auto h-4 w-4"})]}));Sf.displayName=Cf.displayName;const Nf=g.forwardRef(({className:e,...t},n)=>m.jsx(yf,{ref:n,className:_e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Nf.displayName=yf.displayName;const Na=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(mf,{children:m.jsx(gf,{ref:r,sideOffset:t,className:_e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Na.displayName=gf.displayName;const mr=g.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(bf,{ref:r,className:_e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));mr.displayName=bf.displayName;const Df=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>m.jsxs(_f,{ref:i,className:_e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Af,{children:m.jsx(Hl,{className:"h-4 w-4"})})}),t]}));Df.displayName=_f.displayName;const wf=g.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(Tf,{ref:r,className:_e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Af,{children:m.jsx(zl,{className:"h-2 w-2 fill-current"})})}),t]}));wf.displayName=Tf.displayName;const vf=g.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Ef,{ref:r,className:_e("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));vf.displayName=Ef.displayName;const kf=g.forwardRef(({className:e,...t},n)=>m.jsx(xf,{ref:n,className:_e("-mx-1 my-1 h-px bg-muted",e),...t}));kf.displayName=xf.displayName;const If=({className:e,...t})=>m.jsx("span",{className:_e("ml-auto text-xs tracking-widest opacity-60",e),...t});If.displayName="DropdownMenuShortcut";function Of(){const e=We.useNavigate(),t=We.useLocation(),n=[{code:"en",name:"English"},{code:"zh-cn",name:"简体中文"}],r=i=>{const a=t.pathname.split("/").filter(s=>s);a.length>0&&(a[0]==="en"||a[0]==="zh-cn")?a[0]=i:a.unshift(i);const o=`/${a.join("/")}`;e(o)};return m.jsxs(_s,{children:[m.jsx(Ts,{asChild:!0,children:m.jsxs(Mo,{variant:"ghost",size:"icon",children:[m.jsx(jl,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Switch language"})]})}),m.jsx(Na,{align:"end",children:n.map(i=>m.jsx(mr,{onClick:()=>r(i.code),children:i.name},i.code))})]})}function Rf(){const{setTheme:e}=Vr();return m.jsxs(_s,{children:[m.jsx(Ts,{asChild:!0,children:m.jsxs(Mo,{variant:"ghost",size:"icon",children:[m.jsx(r1,{className:"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),m.jsx(e1,{className:"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),m.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),m.jsxs(Na,{align:"end",children:[m.jsx(mr,{onClick:()=>e("light"),children:"Light"}),m.jsx(mr,{onClick:()=>e("dark"),children:"Dark"}),m.jsx(mr,{onClick:()=>e("system"),children:"System"})]})]})}var ax=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ox="VisuallyHidden",Mf=g.forwardRef((e,t)=>m.jsx(Ne.span,{...e,ref:t,style:{...ax,...e.style}}));Mf.displayName=ox;var sx=Mf,[Da,KP]=qt("Tooltip",[da]),wa=da(),Lf="TooltipProvider",ux=700,As="tooltip.open",[lx,xs]=Da(Lf),Pf=e=>{const{__scopeTooltip:t,delayDuration:n=ux,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=g.useRef(!0),s=g.useRef(!1),u=g.useRef(0);return g.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),m.jsx(lx,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(u.current),o.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(l=>{s.current=l},[]),disableHoverableContent:i,children:a})};Pf.displayName=Lf;var oi="Tooltip",[cx,si]=Da(oi),Ff=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,u=xs(oi,e.__scopeTooltip),l=wa(t),[d,c]=g.useState(null),h=ct(),p=g.useRef(0),E=o??u.disableHoverableContent,b=s??u.delayDuration,T=g.useRef(!1),[_,C]=Hn({prop:r,defaultProp:i??!1,onChange:M=>{M?(u.onOpen(),document.dispatchEvent(new CustomEvent(As))):u.onClose(),a?.(M)},caller:oi}),N=g.useMemo(()=>_?T.current?"delayed-open":"instant-open":"closed",[_]),I=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,T.current=!1,C(!0)},[C]),O=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,C(!1)},[C]),w=g.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{T.current=!0,C(!0),p.current=0},b)},[b,C]);return g.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),m.jsx(ts,{...l,children:m.jsx(cx,{scope:t,contentId:h,open:_,stateAttribute:N,trigger:d,onTriggerChange:c,onTriggerEnter:g.useCallback(()=>{u.isOpenDelayedRef.current?w():I()},[u.isOpenDelayedRef,w,I]),onTriggerLeave:g.useCallback(()=>{E?O():(window.clearTimeout(p.current),p.current=0)},[O,E]),onOpen:I,onClose:O,disableHoverableContent:E,children:n})})};Ff.displayName=oi;var Cs="TooltipTrigger",Bf=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=si(Cs,n),a=xs(Cs,n),o=wa(n),s=g.useRef(null),u=Ue(t,s,i.onTriggerChange),l=g.useRef(!1),d=g.useRef(!1),c=g.useCallback(()=>l.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),m.jsx(zc,{asChild:!0,...o,children:m.jsx(Ne.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:ce(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ce(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ce(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:ce(e.onBlur,i.onClose),onClick:ce(e.onClick,i.onClose)})})});Bf.displayName=Cs;var ys="TooltipPortal",[dx,fx]=Da(ys,{forceMount:void 0}),Uf=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=si(ys,t);return m.jsx(dx,{scope:t,forceMount:n,children:m.jsx(bt,{present:n||a.open,children:m.jsx(fa,{asChild:!0,container:i,children:r})})})};Uf.displayName=ys;var gr="TooltipContent",Hf=g.forwardRef((e,t)=>{const n=fx(gr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=si(gr,e.__scopeTooltip);return m.jsx(bt,{present:r||o.open,children:o.disableHoverableContent?m.jsx(zf,{side:i,...a,ref:t}):m.jsx(hx,{side:i,...a,ref:t})})}),hx=g.forwardRef((e,t)=>{const n=si(gr,e.__scopeTooltip),r=xs(gr,e.__scopeTooltip),i=g.useRef(null),a=Ue(t,i),[o,s]=g.useState(null),{trigger:u,onClose:l}=n,d=i.current,{onPointerInTransitChange:c}=r,h=g.useCallback(()=>{s(null),c(!1)},[c]),p=g.useCallback((E,b)=>{const T=E.currentTarget,_={x:E.clientX,y:E.clientY},C=bx(_,T.getBoundingClientRect()),N=_x(_,C),I=Tx(b.getBoundingClientRect()),O=xx([...N,...I]);s(O),c(!0)},[c]);return g.useEffect(()=>()=>h(),[h]),g.useEffect(()=>{if(u&&d){const E=T=>p(T,d),b=T=>p(T,u);return u.addEventListener("pointerleave",E),d.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",E),d.removeEventListener("pointerleave",b)}}},[u,d,p,h]),g.useEffect(()=>{if(o){const E=b=>{const T=b.target,_={x:b.clientX,y:b.clientY},C=u?.contains(T)||d?.contains(T),N=!Ax(_,o);C?h():N&&(h(),l())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[u,d,o,l,h]),m.jsx(zf,{...e,ref:a})}),[px,mx]=Da(oi,{isInside:!1}),gx=f1("TooltipContent"),zf=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,u=si(gr,n),l=wa(n),{onClose:d}=u;return g.useEffect(()=>(document.addEventListener(As,d),()=>document.removeEventListener(As,d)),[d]),g.useEffect(()=>{if(u.trigger){const c=h=>{h.target?.contains(u.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[u.trigger,d]),m.jsx(ta,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:m.jsxs($c,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(gx,{children:r}),m.jsx(px,{scope:n,isInside:!0,children:m.jsx(sx,{id:u.contentId,role:"tooltip",children:i||r})})]})})});Hf.displayName=gr;var $f="TooltipArrow",Ex=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=wa(n);return mx($f,n).isInside?null:m.jsx(jc,{...i,...r,ref:t})});Ex.displayName=$f;function bx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function _x(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Tx(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Ax(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],u=t[o],l=s.x,d=s.y,c=u.x,h=u.y;d>r!=h>r&&n<(c-l)*(r-d)/(h-d)+l&&(i=!i)}return i}function xx(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Cx(t)}function Cx(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var yx=Pf,Sx=Ff,Nx=Bf,Dx=Uf,jf=Hf;const ui=yx,li=Sx,ci=Nx,Er=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(Dx,{children:m.jsx(jf,{ref:r,sideOffset:t,className:_e("z-50 overflow-hidden rounded-md bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md border data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...n})}));Er.displayName=jf.displayName;function Yf({lang:e,site:t,navbar:n,themeConfig:r}){const a=We.useLocation().pathname,{theme:o}=Vr(),[s,u]=me.useState("light");me.useEffect(()=>{if(o==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)").matches;u(h?"dark":"light")}else u(o)},[o]);const l=h=>h.startsWith("http")?h:`/${h.replace(/^\//,"")}`,{light:d,dark:c}=typeof t.logo=="string"?{light:l(t.logo),dark:l(t.logo)}:{light:l(t.logo.light),dark:l(t.logo.dark)};return m.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:m.jsxs("div",{className:"container flex h-14 max-w-screen-2xl items-center px-4 md:px-8",children:[((n.showLogo??!0)||(n.showTitle??!0))&&m.jsxs(We.Link,{to:`/${e}`,className:"mr-6 flex items-center space-x-2",children:[(n.showLogo??!0)&&m.jsx("img",{src:s==="dark"?c:d,alt:t.title,width:24,height:24}),(n.showTitle??!0)&&m.jsx("span",{className:"font-bold sm:inline-block",children:t.title})]}),m.jsx("nav",{className:"ml-6 flex items-center space-x-6 text-sm font-medium",children:n.items.filter(h=>h.visible!==!1).map(h=>!h.external&&m.jsx(We.Link,{to:`/${e}${h.link}`,className:_e("transition-colors hover:text-foreground/80",a===`/${e}${h.link}`?"text-foreground":"text-foreground/60"),children:h.title},h.link))}),m.jsx("div",{className:"flex flex-1 items-center justify-end space-x-2",children:m.jsxs("nav",{className:"flex items-center",children:[(n.actions||[]).filter(h=>h.enabled!==!1).map((h,p)=>{const E=h.title||(h.type==="github"?"GitHub":"Action");return m.jsx(ui,{children:m.jsxs(li,{children:[m.jsx(ci,{asChild:!0,children:m.jsx("a",{href:h.link,target:"_blank",rel:"noopener noreferrer","aria-label":E,children:m.jsx("div",{className:_e(ea({variant:"ghost"}),"w-9 px-0"),children:h.type==="github"?m.jsx($l,{className:"h-4 w-4"}):m.jsx("span",{className:"text-sm",children:E})})})}),m.jsx(Er,{align:"center",children:E})]})},h.link||`${h.type||"action"}-${p}`)}),n.showLanguageSwitcher!==!1&&m.jsx(ui,{children:m.jsxs(li,{children:[m.jsx(ci,{asChild:!0,children:m.jsx("div",{children:m.jsx(Of,{})})}),m.jsx(Er,{align:"center",children:"切换语言"})]})}),(r?.allowToggle??!0)&&m.jsx(ui,{children:m.jsxs(li,{children:[m.jsx(ci,{asChild:!0,children:m.jsx("div",{children:m.jsx(Rf,{})})}),m.jsx(Er,{align:"center",children:"切换主题"})]})})]})})]})})}var va="Collapsible",[wx,qP]=qt(va),[vx,Ss]=wx(va),Gf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[u,l]=Hn({prop:r,defaultProp:i??!1,onChange:o,caller:va});return m.jsx(vx,{scope:n,disabled:a,contentId:ct(),open:u,onOpenToggle:g.useCallback(()=>l(d=>!d),[l]),children:m.jsx(Ne.div,{"data-state":Ds(u),"data-disabled":a?"":void 0,...s,ref:t})})});Gf.displayName=va;var Wf="CollapsibleTrigger",Kf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Ss(Wf,n);return m.jsx(Ne.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Ds(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ce(e.onClick,i.onOpenToggle)})});Kf.displayName=Wf;var Ns="CollapsibleContent",qf=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Ss(Ns,e.__scopeCollapsible);return m.jsx(bt,{present:n||i.open,children:({present:a})=>m.jsx(kx,{...r,ref:t,present:a})})});qf.displayName=Ns;var kx=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Ss(Ns,n),[s,u]=g.useState(r),l=g.useRef(null),d=Ue(t,l),c=g.useRef(0),h=c.current,p=g.useRef(0),E=p.current,b=o.open||s,T=g.useRef(b),_=g.useRef(void 0);return g.useEffect(()=>{const C=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(C)},[]),Vt(()=>{const C=l.current;if(C){_.current=_.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const N=C.getBoundingClientRect();c.current=N.height,p.current=N.width,T.current||(C.style.transitionDuration=_.current.transitionDuration,C.style.animationName=_.current.animationName),u(r)}},[o.open,r]),m.jsx(Ne.div,{"data-state":Ds(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!b,...a,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:b&&i})});function Ds(e){return e?"open":"closed"}var Ix=Gf;const Vf=Ix,ws=Kf,Xf=qf;function Qf({lang:e,sidebar:t}){const r=We.useLocation().pathname,i=g.useMemo(()=>{const s=r.split("/").filter(Boolean);return s.length>=2?s[1]:""},[r]),a=g.useMemo(()=>{if(!t)return null;const s=t.collections?.[i]?.sections,u=t.sections;return s&&s.length>0?s:u},[t,i]);return!g.useMemo(()=>t?typeof t.enabled=="boolean"?t.enabled:!!(a&&a.length>0):!1,[t,a])||!a?null:m.jsx("div",{className:"w-full",children:a.map(s=>m.jsxs(Vf,{defaultOpen:s.path?r.startsWith(`/${e}${s.path}`):!1,children:[s.path?m.jsx(ws,{asChild:!0,children:m.jsxs(We.Link,{to:`/${e}${s.path}`,className:"flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted",children:[m.jsx("span",{children:s.title}),m.jsx(Ji,{className:"h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90"})]})}):m.jsxs(ws,{className:"flex w-full items-center justify-between rounded-md px-2 py-2 font-medium text-sm hover:bg-muted",children:[s.title,m.jsx(Ji,{className:"h-4 w-4 transition-transform duration-200 [&[data-state=open]]:rotate-90"})]}),m.jsx(Xf,{className:"py-1 pl-4",children:m.jsx("div",{className:"grid grid-flow-row auto-rows-max text-sm",children:(s.children||[]).map(u=>{const l=`/${e}${u.path}`;return m.jsx(We.Link,{to:l,className:_e("group flex w-full items-center rounded-md border border-transparent px-3 py-2 hover:underline transition-colors",r===l?"font-medium text-foreground":"text-muted-foreground"),children:u.title},u.path)})})})]},s.title))})}function Zf({toc:e}){const[t,n]=me.useState(null);me.useEffect(()=>{const i=new IntersectionObserver(a=>{a.forEach(o=>{o.isIntersecting&&n(o.target.id)})},{rootMargin:"0% 0% -80% 0%"});return e.forEach(a=>{const o=document.getElementById(a.url.slice(1));o&&i.observe(o)}),()=>{e.forEach(a=>{const o=document.getElementById(a.url.slice(1));o&&i.unobserve(o)})}},[e]);const r=(i,a)=>{i.preventDefault();const o=document.getElementById(a.slice(1));o&&(o.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",a))};return e.length===0?null:m.jsxs("div",{className:"space-y-2",children:[m.jsx("p",{className:"font-medium",children:"On This Page"}),m.jsx("ul",{className:"m-0 list-none",children:e.map(i=>m.jsx("li",{className:_e("mt-0 pt-2"),children:m.jsx("a",{href:i.url,onClick:a=>r(a,i.url),className:_e("inline-block no-underline transition-colors hover:text-foreground",i.url.slice(1)===t?"text-foreground font-medium":"text-muted-foreground",i.depth>2?"pl-4":""),children:i.title})},i.url))})]})}function Ox(e,[t,n]){return Math.min(n,Math.max(t,e))}function Rx(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var vs="ScrollArea",[Jf,VP]=qt(vs),[Mx,Pt]=Jf(vs),eh=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,u]=g.useState(null),[l,d]=g.useState(null),[c,h]=g.useState(null),[p,E]=g.useState(null),[b,T]=g.useState(null),[_,C]=g.useState(0),[N,I]=g.useState(0),[O,w]=g.useState(!1),[M,H]=g.useState(!1),z=Ue(t,$=>u($)),k=Lo(i);return m.jsx(Mx,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:d,content:c,onContentChange:h,scrollbarX:p,onScrollbarXChange:E,scrollbarXEnabled:O,onScrollbarXEnabledChange:w,scrollbarY:b,onScrollbarYChange:T,scrollbarYEnabled:M,onScrollbarYEnabledChange:H,onCornerWidthChange:C,onCornerHeightChange:I,children:m.jsx(Ne.div,{dir:k,...o,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});eh.displayName=vs;var th="ScrollAreaViewport",nh=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=Pt(th,n),s=g.useRef(null),u=Ue(t,s,o.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),m.jsx(Ne.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});nh.displayName=th;var tn="ScrollAreaScrollbar",rh=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Pt(tn,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation==="horizontal";return g.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type==="hover"?m.jsx(Lx,{...r,ref:t,forceMount:n}):i.type==="scroll"?m.jsx(Px,{...r,ref:t,forceMount:n}):i.type==="auto"?m.jsx(ih,{...r,ref:t,forceMount:n}):i.type==="always"?m.jsx(ks,{...r,ref:t}):null});rh.displayName=tn;var Lx=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Pt(tn,e.__scopeScrollArea),[a,o]=g.useState(!1);return g.useEffect(()=>{const s=i.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),o(!0)},d=()=>{u=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",d)}}},[i.scrollArea,i.scrollHideDelay]),m.jsx(bt,{present:n||a,children:m.jsx(ih,{"data-state":a?"visible":"hidden",...r,ref:t})})}),Px=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Pt(tn,e.__scopeScrollArea),a=e.orientation==="horizontal",o=Ra(()=>u("SCROLL_END"),100),[s,u]=Rx("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,i.scrollHideDelay,u]),g.useEffect(()=>{const l=i.viewport,d=a?"scrollLeft":"scrollTop";if(l){let c=l[d];const h=()=>{const p=l[d];c!==p&&(u("SCROLL"),o()),c=p};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[i.viewport,a,u,o]),m.jsx(bt,{present:n||s!=="hidden",children:m.jsx(ks,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ce(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ce(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),ih=g.forwardRef((e,t)=>{const n=Pt(tn,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=g.useState(!1),s=e.orientation==="horizontal",u=Ra(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?l:d)}},10);return br(n.viewport,u),br(n.content,u),m.jsx(bt,{present:r||a,children:m.jsx(ks,{"data-state":a?"visible":"hidden",...i,ref:t})})}),ks=g.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,i=Pt(tn,e.__scopeScrollArea),a=g.useRef(null),o=g.useRef(0),[s,u]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=lh(s.viewport,s.content),d={...r,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function c(h,p){return $x(h,o.current,s,p)}return n==="horizontal"?m.jsx(Fx,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollLeft,p=ch(h,s,i.dir);a.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=c(h,i.dir))}}):n==="vertical"?m.jsx(Bx,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){const h=i.viewport.scrollTop,p=ch(h,s);a.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=c(h))}}):null}),Fx=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=Pt(tn,e.__scopeScrollArea),[o,s]=g.useState(),u=g.useRef(null),l=Ue(t,u,a.onScrollbarXChange);return g.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),m.jsx(oh,{"data-orientation":"horizontal",...i,ref:l,sizes:n,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Oa(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(a.viewport){const h=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),fh(h,c)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ia(o.paddingLeft),paddingEnd:Ia(o.paddingRight)}})}})}),Bx=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,a=Pt(tn,e.__scopeScrollArea),[o,s]=g.useState(),u=g.useRef(null),l=Ue(t,u,a.onScrollbarYChange);return g.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),m.jsx(oh,{"data-orientation":"vertical",...i,ref:l,sizes:n,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Oa(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(a.viewport){const h=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),fh(h,c)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ia(o.paddingTop),paddingEnd:Ia(o.paddingBottom)}})}})}),[Ux,ah]=Jf(tn),oh=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:d,onResize:c,...h}=e,p=Pt(tn,n),[E,b]=g.useState(null),T=Ue(t,z=>b(z)),_=g.useRef(null),C=g.useRef(""),N=p.viewport,I=r.content-r.viewport,O=rt(d),w=rt(u),M=Ra(c,10);function H(z){if(_.current){const k=z.clientX-_.current.left,$=z.clientY-_.current.top;l({x:k,y:$})}}return g.useEffect(()=>{const z=k=>{const $=k.target;E?.contains($)&&O(k,I)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[N,E,I,O]),g.useEffect(w,[r,w]),br(E,M),br(p.content,M),m.jsx(Ux,{scope:n,scrollbar:E,hasThumb:i,onThumbChange:rt(a),onThumbPointerUp:rt(o),onThumbPositionChange:w,onThumbPointerDown:rt(s),children:m.jsx(Ne.div,{...h,ref:T,style:{position:"absolute",...h.style},onPointerDown:ce(e.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),_.current=E.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),H(z))}),onPointerMove:ce(e.onPointerMove,H),onPointerUp:ce(e.onPointerUp,z=>{const k=z.target;k.hasPointerCapture(z.pointerId)&&k.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=C.current,p.viewport&&(p.viewport.style.scrollBehavior=""),_.current=null})})})}),ka="ScrollAreaThumb",sh=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=ah(ka,e.__scopeScrollArea);return m.jsx(bt,{present:n||i.hasThumb,children:m.jsx(Hx,{ref:t,...r})})}),Hx=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,a=Pt(ka,n),o=ah(ka,n),{onThumbPositionChange:s}=o,u=Ue(t,c=>o.onThumbChange(c)),l=g.useRef(void 0),d=Ra(()=>{l.current&&(l.current(),l.current=void 0)},100);return g.useEffect(()=>{const c=a.viewport;if(c){const h=()=>{if(d(),!l.current){const p=jx(c,s);l.current=p,s()}};return s(),c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[a.viewport,d,s]),m.jsx(Ne.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ce(e.onPointerDownCapture,c=>{const p=c.target.getBoundingClientRect(),E=c.clientX-p.left,b=c.clientY-p.top;o.onThumbPointerDown({x:E,y:b})}),onPointerUp:ce(e.onPointerUp,o.onThumbPointerUp)})});sh.displayName=ka;var Is="ScrollAreaCorner",uh=g.forwardRef((e,t)=>{const n=Pt(Is,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(zx,{...e,ref:t}):null});uh.displayName=Is;var zx=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,i=Pt(Is,n),[a,o]=g.useState(0),[s,u]=g.useState(0),l=!!(a&&s);return br(i.scrollbarX,()=>{const d=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(d),u(d)}),br(i.scrollbarY,()=>{const d=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(d),o(d)}),l?m.jsx(Ne.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ia(e){return e?parseInt(e,10):0}function lh(e,t){const n=e/t;return isNaN(n)?0:n}function Oa(e){const t=lh(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function $x(e,t,n,r="ltr"){const i=Oa(n),a=i/2,o=t||a,s=i-o,u=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return dh([u,l],c)(e)}function ch(e,t,n="ltr"){const r=Oa(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,u=n==="ltr"?[0,o]:[o*-1,0],l=Ox(e,u);return dh([0,o],[0,s])(l)}function dh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function fh(e,t){return e>0&&e<t}var jx=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Ra(e,t){const n=rt(e),r=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),g.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function br(e,t){const n=rt(t);Vt(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var Yx=eh,Gx=nh,Wx=uh;function Os({className:e,children:t,...n}){return m.jsxs(Yx,{"data-slot":"scroll-area",className:_e("relative",e),...n,children:[m.jsx(Gx,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),m.jsx(Kx,{}),m.jsx(Wx,{})]})}function Kx({className:e,orientation:t="vertical",...n}){return m.jsx(rh,{"data-slot":"scroll-area-scrollbar",orientation:t,className:_e("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:m.jsx(sh,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function hh({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx("div",{role:n?"none":"separator","aria-orientation":t,className:_e("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px",e),...r})}function ph({className:e,variant:t="default",...n}){const r="inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-medium",i={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground",success:"border-transparent bg-emerald-100 text-emerald-700",destructive:"border-transparent bg-red-100 text-red-700",warning:"border-transparent bg-orange-100 text-orange-700"};return m.jsx("span",{className:_e(r,i[t],e),...n})}function mh({footer:e,lang:t}){if(!e||e.enabled===!1)return null;const n=e.links||[],r=e.social||[],i=e.groups||[],a=s=>s.action==="scrollTop"||s.link==="#"||s.link?.startsWith("#"),o=s=>{s.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})};return m.jsx("footer",{className:"mt-8",children:m.jsxs("div",{className:"container max-w-screen-2xl px-4 md:px-8 py-8 rounded-md border",children:[m.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:[m.jsxs("div",{className:"space-y-2 text-sm text-muted-foreground",children:[e.copyright&&m.jsx("div",{className:"text-foreground/80",children:e.copyright}),m.jsxs("div",{className:"flex flex-wrap gap-3 items-center",children:[e.repository?.url&&m.jsxs("a",{className:"hover:underline",href:e.repository.url,target:"_blank",rel:"noopener noreferrer",children:["Repo",e.repository.branch?` (${e.repository.branch})`:""]}),e.lastUpdated&&m.jsxs("span",{className:"text-xs",children:["Last updated: ",e.lastUpdated]}),e.version&&m.jsx(ph,{variant:"warning",children:e.version})]})]}),i.length>0&&m.jsx("div",{className:"lg:col-span-2 grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:i.map(s=>m.jsxs("div",{children:[m.jsx("div",{className:"font-medium mb-2",children:s.title}),m.jsx("ul",{className:"space-y-1 text-sm",children:s.items.map(u=>m.jsx("li",{children:u.external?m.jsx("a",{className:"hover:underline",href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.title}):a(u)?m.jsx("a",{href:"#",className:"hover:underline",onClick:o,children:u.title}):m.jsx(We.Link,{className:"hover:underline",to:`/${t}${u.link}`,children:u.title})},`${u.title}-${u.link}`))})]},s.title))}),i.length===0&&n.length>0&&m.jsxs("div",{children:[m.jsx("div",{className:"font-medium mb-2",children:"Links"}),m.jsx("ul",{className:"space-y-1 text-sm",children:n.map(s=>m.jsx("li",{children:s.external?m.jsx("a",{className:"hover:underline",href:s.link,target:"_blank",rel:"noopener noreferrer",children:s.title}):a(s)?m.jsx("a",{href:"#",className:"hover:underline",onClick:o,children:s.title}):m.jsx(We.Link,{className:"hover:underline",to:`/${t}${s.link}`,children:s.title})},`${s.title}-${s.link}`))})]}),r.length>0&&m.jsxs("div",{children:[m.jsx("div",{className:"font-medium mb-2",children:"Social"}),m.jsx("div",{className:"flex flex-wrap gap-2",children:m.jsx(ui,{children:r.map(s=>{const u=(s.icon||s.name||"").toLowerCase(),l=u.includes("github")?$l:u.includes("mail")||u.includes("email")?Zb:u.includes("bilibili")?i1:u==="qq"?Jb:u.includes("wechat")||u.includes("weixin")?Yl:u.includes("youtube")?u1:u.includes("twitter")||u==="x"?a1:u.includes("discord")?Yl:u.includes("telegram")?n1:u.includes("tiktok")||u.includes("douyin")?o1:u.includes("weibo")?Qb:u.includes("zhihu")?Xb:jl;return m.jsxs(li,{children:[m.jsx(ci,{asChild:!0,children:m.jsx("a",{href:s.url||s.link,target:"_blank",rel:"noopener noreferrer","aria-label":s.name,className:_e(ea({variant:"ghost"}),"w-9 h-9 p-0"),children:m.jsx(l,{className:"h-4 w-4"})})}),m.jsx(Er,{align:"center",children:s.name})]},`${s.name}-${s.url}`)})})})]})]}),m.jsx(hh,{className:"my-6"}),m.jsx("div",{className:"text-xs text-muted-foreground",children:"Built with React Docs UI"})]})})}function gh({lang:e,config:t,frontmatter:n,children:r}){const{site:i,navbar:a,sidebar:o,theme:s}=t,u=n?.toc;return m.jsxs("div",{className:"relative flex min-h-screen flex-col",children:[m.jsx(Yf,{lang:e,site:i,navbar:a,themeConfig:s}),m.jsxs("div",{className:"container flex-1 items-start md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-6 lg:grid-cols-[240px_minmax(0,1fr)] lg:gap-10 px-4 md:px-8",children:[o&&m.jsx("aside",{className:"fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",children:m.jsx(Os,{className:"h-full py-6 pr-6 lg:py-8",children:m.jsx(Qf,{lang:e,sidebar:o})})}),m.jsxs("div",{className:"relative flex md:col-start-2",children:[m.jsx("main",{className:"relative py-6 lg:py-8 flex-auto",children:r}),u&&m.jsx("aside",{className:"fixed top-14 z-30 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block",style:{right:"2rem",width:"200px"},children:m.jsx(Os,{className:"h-full py-6 pr-6 lg:py-8",children:m.jsx(Zf,{toc:u})})})]}),t.footer?.enabled!==!1&&m.jsx("div",{className:"md:col-start-2",children:m.jsx(mh,{footer:t.footer,lang:e,site:i})})]})]})}const Eh=g.forwardRef(({className:e,...t},n)=>m.jsx("label",{ref:n,className:_e("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Eh.displayName="Label";var bh=1,qx=.9,Vx=.8,Xx=.17,Rs=.1,Ms=.999,Qx=.9999,Zx=.99,Jx=/[\\\/_+.#"@\[\(\{&]/,eC=/[\\\/_+.#"@\[\(\{&]/g,tC=/[\s-]/,_h=/[\s-]/g;function Ls(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?bh:Zx;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var u=r.charAt(a),l=n.indexOf(u,i),d=0,c,h,p,E;l>=0;)c=Ls(e,t,n,r,l+1,a+1,o),c>d&&(l===i?c*=bh:Jx.test(e.charAt(l-1))?(c*=Vx,p=e.slice(i,l-1).match(eC),p&&i>0&&(c*=Math.pow(Ms,p.length))):tC.test(e.charAt(l-1))?(c*=qx,E=e.slice(i,l-1).match(_h),E&&i>0&&(c*=Math.pow(Ms,E.length))):(c*=Xx,i>0&&(c*=Math.pow(Ms,l-i))),e.charAt(l)!==t.charAt(a)&&(c*=Qx)),(c<Rs&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(h=Ls(e,t,n,r,l+1,a+2,o),h*Rs>c&&(c=h*Rs)),c>d&&(d=c),l=n.indexOf(u,l+1);return o[s]=d,d}function Th(e){return e.toLowerCase().replace(_h," ")}function nC(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ls(e,t,Th(e),Th(t),0,0,{})}var Ma="Dialog",[Ah,XP]=qt(Ma),[rC,jt]=Ah(Ma),xh=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=g.useRef(null),u=g.useRef(null),[l,d]=Hn({prop:r,defaultProp:i??!1,onChange:a,caller:Ma});return m.jsx(rC,{scope:t,triggerRef:s,contentRef:u,contentId:ct(),titleId:ct(),descriptionId:ct(),open:l,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(c=>!c),[d]),modal:o,children:n})};xh.displayName=Ma;var Ch="DialogTrigger",yh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=jt(Ch,n),a=Ue(t,i.triggerRef);return m.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Bs(i.open),...r,ref:a,onClick:ce(e.onClick,i.onOpenToggle)})});yh.displayName=Ch;var Ps="DialogPortal",[iC,Sh]=Ah(Ps,{forceMount:void 0}),Nh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=jt(Ps,t);return m.jsx(iC,{scope:t,forceMount:n,children:g.Children.map(r,o=>m.jsx(bt,{present:n||a.open,children:m.jsx(fa,{asChild:!0,container:i,children:o})}))})};Nh.displayName=Ps;var La="DialogOverlay",Dh=g.forwardRef((e,t)=>{const n=Sh(La,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=jt(La,e.__scopeDialog);return a.modal?m.jsx(bt,{present:r||a.open,children:m.jsx(oC,{...i,ref:t})}):null});Dh.displayName=La;var aC=or("DialogOverlay.RemoveScroll"),oC=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=jt(La,n);return m.jsx(ls,{as:aC,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(Ne.div,{"data-state":Bs(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),jn="DialogContent",wh=g.forwardRef((e,t)=>{const n=Sh(jn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=jt(jn,e.__scopeDialog);return m.jsx(bt,{present:r||a.open,children:a.modal?m.jsx(sC,{...i,ref:t}):m.jsx(uC,{...i,ref:t})})});wh.displayName=jn;var sC=g.forwardRef((e,t)=>{const n=jt(jn,e.__scopeDialog),r=g.useRef(null),i=Ue(t,n.contentRef,r);return g.useEffect(()=>{const a=r.current;if(a)return Qc(a)},[]),m.jsx(vh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,a=>a.preventDefault())})}),uC=g.forwardRef((e,t)=>{const n=jt(jn,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return m.jsx(vh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||n.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;n.triggerRef.current?.contains(o)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),vh=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=jt(jn,n),u=g.useRef(null),l=Ue(t,u);return rc(),m.jsxs(m.Fragment,{children:[m.jsx(Ho,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:m.jsx(ta,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Bs(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(lC,{titleId:s.titleId}),m.jsx(dC,{contentRef:u,descriptionId:s.descriptionId})]})]})}),Fs="DialogTitle",kh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=jt(Fs,n);return m.jsx(Ne.h2,{id:i.titleId,...r,ref:t})});kh.displayName=Fs;var Ih="DialogDescription",Oh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=jt(Ih,n);return m.jsx(Ne.p,{id:i.descriptionId,...r,ref:t})});Oh.displayName=Ih;var Rh="DialogClose",Mh=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=jt(Rh,n);return m.jsx(Ne.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>i.onOpenChange(!1))})});Mh.displayName=Rh;function Bs(e){return e?"open":"closed"}var Lh="DialogTitleWarning",[QP,Ph]=E1(Lh,{contentName:jn,titleName:Fs,docsSlug:"dialog"}),lC=({titleId:e})=>{const t=Ph(Lh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
128
178
 
129
179
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
130
180
 
131
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return m.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},XC="DialogDescriptionWarning",QC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vh(XC).contentName}}.`;return m.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ih=mh,ZC=Eh,kh=_h,Oh=Th,Rh=Ah,JC=xh,ex=Sh,Mh=Dh,ui='[cmdk-group=""]',Us='[cmdk-group-items=""]',tx='[cmdk-group-heading=""]',Lh='[cmdk-item=""]',Ph=`${Lh}:not([aria-disabled="true"])`,Hs="cmdk-item-select",br="data-value",nx=(e,t,n)=>$C(e,t,n),Fh=m.createContext(void 0),li=()=>m.useContext(Fh),Bh=m.createContext(void 0),zs=()=>m.useContext(Bh),Uh=m.createContext(void 0),Hh=m.forwardRef((e,t)=>{let n=_r(()=>{var L,y;return{search:"",value:(y=(L=e.value)!=null?L:e.defaultValue)!=null?y:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=_r(()=>new Set),i=_r(()=>new Map),a=_r(()=>new Map),o=_r(()=>new Set),s=zh(e),{label:u,children:l,value:d,onValueChange:c,filter:h,shouldFilter:p,loop:g,disablePointerSelection:b=!1,vimBindings:T=!0,..._}=e,x=lt(),N=lt(),k=lt(),O=m.useRef(null),w=hx();Gn(()=>{if(d!==void 0){let L=d.trim();n.current.value=L,M.emit()}},[d]),Gn(()=>{w(6,G)},[]);let M=m.useMemo(()=>({subscribe:L=>(o.current.add(L),()=>o.current.delete(L)),snapshot:()=>n.current,setState:(L,y,se)=>{var te,ue,de,be;if(!Object.is(n.current[L],y)){if(n.current[L]=y,L==="search")Y(),I(),w(1,$);else if(L==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Re=document.getElementById(k);Re?Re.focus():(te=document.getElementById(x))==null||te.focus()}if(w(7,()=>{var Re;n.current.selectedItemId=(Re=B())==null?void 0:Re.id,M.emit()}),se||w(5,G),((ue=s.current)==null?void 0:ue.value)!==void 0){let Re=y??"";(be=(de=s.current).onValueChange)==null||be.call(de,Re);return}}M.emit()}},emit:()=>{o.current.forEach(L=>L())}}),[]),H=m.useMemo(()=>({value:(L,y,se)=>{var te;y!==((te=a.current.get(L))==null?void 0:te.value)&&(a.current.set(L,{value:y,keywords:se}),n.current.filtered.items.set(L,z(y,se)),w(2,()=>{I(),M.emit()}))},item:(L,y)=>(r.current.add(L),y&&(i.current.has(y)?i.current.get(y).add(L):i.current.set(y,new Set([L]))),w(3,()=>{Y(),I(),n.current.value||$(),M.emit()}),()=>{a.current.delete(L),r.current.delete(L),n.current.filtered.items.delete(L);let se=B();w(4,()=>{Y(),se?.getAttribute("id")===L&&$(),M.emit()})}),group:L=>(i.current.has(L)||i.current.set(L,new Set),()=>{a.current.delete(L),i.current.delete(L)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:k,labelId:N,listInnerRef:O}),[]);function z(L,y){var se,te;let ue=(te=(se=s.current)==null?void 0:se.filter)!=null?te:nx;return L?ue(L,n.current.search,y):0}function I(){if(!n.current.search||s.current.shouldFilter===!1)return;let L=n.current.filtered.items,y=[];n.current.filtered.groups.forEach(te=>{let ue=i.current.get(te),de=0;ue.forEach(be=>{let Re=L.get(be);de=Math.max(Re,de)}),y.push([te,de])});let se=O.current;K().sort((te,ue)=>{var de,be;let Re=te.getAttribute("id"),Ge=ue.getAttribute("id");return((de=L.get(Ge))!=null?de:0)-((be=L.get(Re))!=null?be:0)}).forEach(te=>{let ue=te.closest(Us);ue?ue.appendChild(te.parentElement===ue?te:te.closest(`${Us} > *`)):se.appendChild(te.parentElement===se?te:te.closest(`${Us} > *`))}),y.sort((te,ue)=>ue[1]-te[1]).forEach(te=>{var ue;let de=(ue=O.current)==null?void 0:ue.querySelector(`${ui}[${br}="${encodeURIComponent(te[0])}"]`);de?.parentElement.appendChild(de)})}function $(){let L=K().find(se=>se.getAttribute("aria-disabled")!=="true"),y=L?.getAttribute(br);M.setState("value",y||void 0)}function Y(){var L,y,se,te;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ue=0;for(let de of r.current){let be=(y=(L=a.current.get(de))==null?void 0:L.value)!=null?y:"",Re=(te=(se=a.current.get(de))==null?void 0:se.keywords)!=null?te:[],Ge=z(be,Re);n.current.filtered.items.set(de,Ge),Ge>0&&ue++}for(let[de,be]of i.current)for(let Re of be)if(n.current.filtered.items.get(Re)>0){n.current.filtered.groups.add(de);break}n.current.filtered.count=ue}function G(){var L,y,se;let te=B();te&&(((L=te.parentElement)==null?void 0:L.firstChild)===te&&((se=(y=te.closest(ui))==null?void 0:y.querySelector(tx))==null||se.scrollIntoView({block:"nearest"})),te.scrollIntoView({block:"nearest"}))}function B(){var L;return(L=O.current)==null?void 0:L.querySelector(`${Lh}[aria-selected="true"]`)}function K(){var L;return Array.from(((L=O.current)==null?void 0:L.querySelectorAll(Ph))||[])}function ie(L){let y=K()[L];y&&M.setState("value",y.getAttribute(br))}function pe(L){var y;let se=B(),te=K(),ue=te.findIndex(be=>be===se),de=te[ue+L];(y=s.current)!=null&&y.loop&&(de=ue+L<0?te[te.length-1]:ue+L===te.length?te[0]:te[ue+L]),de&&M.setState("value",de.getAttribute(br))}function q(L){let y=B(),se=y?.closest(ui),te;for(;se&&!te;)se=L>0?dx(se,ui):fx(se,ui),te=se?.querySelector(Ph);te?M.setState("value",te.getAttribute(br)):pe(L)}let Q=()=>ie(K().length-1),A=L=>{L.preventDefault(),L.metaKey?Q():L.altKey?q(1):pe(1)},ee=L=>{L.preventDefault(),L.metaKey?ie(0):L.altKey?q(-1):pe(-1)};return m.createElement(Ne.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:L=>{var y;(y=_.onKeyDown)==null||y.call(_,L);let se=L.nativeEvent.isComposing||L.keyCode===229;if(!(L.defaultPrevented||se))switch(L.key){case"n":case"j":{T&&L.ctrlKey&&A(L);break}case"ArrowDown":{A(L);break}case"p":case"k":{T&&L.ctrlKey&&ee(L);break}case"ArrowUp":{ee(L);break}case"Home":{L.preventDefault(),ie(0);break}case"End":{L.preventDefault(),Q();break}case"Enter":{L.preventDefault();let te=B();if(te){let ue=new Event(Hs);te.dispatchEvent(ue)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:mx},u),La(e,L=>m.createElement(Bh.Provider,{value:M},m.createElement(Fh.Provider,{value:H},L))))}),rx=m.forwardRef((e,t)=>{var n,r;let i=lt(),a=m.useRef(null),o=m.useContext(Uh),s=li(),u=zh(e),l=(r=(n=u.current)==null?void 0:n.forceMount)!=null?r:o?.forceMount;Gn(()=>{if(!l)return s.item(i,o?.id)},[l]);let d=$h(i,a,[e.value,e.children,a],e.keywords),c=zs(),h=Dn(w=>w.value&&w.value===d.current),p=Dn(w=>l||s.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);m.useEffect(()=>{let w=a.current;if(!(!w||e.disabled))return w.addEventListener(Hs,g),()=>w.removeEventListener(Hs,g)},[p,e.onSelect,e.disabled]);function g(){var w,M;b(),(M=(w=u.current).onSelect)==null||M.call(w,d.current)}function b(){c.setState("value",d.current,!0)}if(!p)return null;let{disabled:T,value:_,onSelect:x,forceMount:N,keywords:k,...O}=e;return m.createElement(Ne.div,{ref:fn(a,t),...O,id:i,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!h,"data-disabled":!!T,"data-selected":!!h,onPointerMove:T||s.getDisablePointerSelection()?void 0:b,onClick:T?void 0:g},e.children)}),ix=m.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=lt(),s=m.useRef(null),u=m.useRef(null),l=lt(),d=li(),c=Dn(p=>i||d.filter()===!1?!0:p.search?p.filtered.groups.has(o):!0);Gn(()=>d.group(o),[]),$h(o,s,[e.value,e.heading,u]);let h=m.useMemo(()=>({id:o,forceMount:i}),[i]);return m.createElement(Ne.div,{ref:fn(s,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&m.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),La(e,p=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},m.createElement(Uh.Provider,{value:h},p))))}),ax=m.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=m.useRef(null),a=Dn(o=>!o.search);return!n&&!a?null:m.createElement(Ne.div,{ref:fn(i,t),...r,"cmdk-separator":"",role:"separator"})}),ox=m.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=zs(),o=Dn(l=>l.search),s=Dn(l=>l.selectedItemId),u=li();return m.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),m.createElement(Ne.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:i?e.value:o,onChange:l=>{i||a.setState("search",l.target.value),n?.(l.target.value)}})}),sx=m.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,a=m.useRef(null),o=m.useRef(null),s=Dn(l=>l.selectedItemId),u=li();return m.useEffect(()=>{if(o.current&&a.current){let l=o.current,d=a.current,c,h=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=l.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return h.observe(l),()=>{cancelAnimationFrame(c),h.unobserve(l)}}},[]),m.createElement(Ne.div,{ref:fn(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:u.listId},La(e,l=>m.createElement("div",{ref:fn(o,u.listInnerRef),"cmdk-list-sizer":""},l)))}),ux=m.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return m.createElement(Ih,{open:n,onOpenChange:r},m.createElement(kh,{container:o},m.createElement(Oh,{"cmdk-overlay":"",className:i}),m.createElement(Rh,{"aria-label":e.label,"cmdk-dialog":"",className:a},m.createElement(Hh,{ref:t,...s}))))}),lx=m.forwardRef((e,t)=>Dn(n=>n.filtered.count===0)?m.createElement(Ne.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),cx=m.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...a}=e;return m.createElement(Ne.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},La(e,o=>m.createElement("div",{"aria-hidden":!0},o)))}),Yn=Object.assign(Hh,{List:sx,Item:rx,Input:ox,Group:ix,Separator:ax,Dialog:ux,Empty:lx,Loading:cx});function dx(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function fx(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function zh(e){let t=m.useRef(e);return Gn(()=>{t.current=e}),t}var Gn=typeof window>"u"?m.useEffect:m.useLayoutEffect;function _r(e){let t=m.useRef();return t.current===void 0&&(t.current=e()),t}function Dn(e){let t=zs(),n=()=>e(t.snapshot());return m.useSyncExternalStore(t.subscribe,n,n)}function $h(e,t,n,r=[]){let i=m.useRef(),a=li();return Gn(()=>{var o;let s=(()=>{var l;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(l=d.current.textContent)==null?void 0:l.trim():i.current}})(),u=r.map(l=>l.trim());a.value(e,s,u),(o=t.current)==null||o.setAttribute(br,s),i.current=s}),i}var hx=()=>{let[e,t]=m.useState(),n=_r(()=>new Map);return Gn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,i)=>{n.current.set(r,i),t({})}};function px(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function La({asChild:e,children:t},n){return e&&m.isValidElement(t)?m.cloneElement(px(t),{ref:t.ref},n(t.props.children)):n(t)}var mx={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function jh({...e}){return E.jsx(Ih,{"data-slot":"dialog",...e})}function gx({...e}){return E.jsx(ZC,{"data-slot":"dialog-trigger",...e})}function Ex({...e}){return E.jsx(kh,{"data-slot":"dialog-portal",...e})}function bx({...e}){return E.jsx(Mh,{"data-slot":"dialog-close",...e})}function _x({className:e,...t}){return E.jsx(Oh,{"data-slot":"dialog-overlay",className:xe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Yh({className:e,children:t,showCloseButton:n=!0,...r}){return E.jsxs(Ex,{"data-slot":"dialog-portal",children:[E.jsx(_x,{}),E.jsxs(Rh,{"data-slot":"dialog-content",className:xe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&E.jsxs(Mh,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[E.jsx(qb,{}),E.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Gh({className:e,...t}){return E.jsx("div",{"data-slot":"dialog-header",className:xe("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Tx({className:e,...t}){return E.jsx("div",{"data-slot":"dialog-footer",className:xe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Wh({className:e,...t}){return E.jsx(JC,{"data-slot":"dialog-title",className:xe("text-lg leading-none font-semibold",e),...t})}function Kh({className:e,...t}){return E.jsx(ex,{"data-slot":"dialog-description",className:xe("text-muted-foreground text-sm",e),...t})}function $s({className:e,...t}){return E.jsx(Yn,{"data-slot":"command",className:xe("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function qh({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:i=!0,...a}){return E.jsxs(jh,{...a,children:[E.jsxs(Gh,{className:"sr-only",children:[E.jsx(Wh,{children:e}),E.jsx(Kh,{children:t})]}),E.jsx(Yh,{className:xe("overflow-hidden p-0",r),showCloseButton:i,children:E.jsx($s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function Ax({className:e,...t}){return E.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[E.jsx(Wb,{className:"size-4 shrink-0 opacity-50"}),E.jsx(Yn.Input,{"data-slot":"command-input",className:xe("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Cx({className:e,...t}){return E.jsx(Yn.List,{"data-slot":"command-list",className:xe("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function xx({...e}){return E.jsx(Yn.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function js({className:e,...t}){return E.jsx(Yn.Group,{"data-slot":"command-group",className:xe("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Vh({className:e,...t}){return E.jsx(Yn.Separator,{"data-slot":"command-separator",className:xe("bg-border -mx-1 h-px",e),...t})}function Tr({className:e,...t}){return E.jsx(Yn.Item,{"data-slot":"command-item",className:xe("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function yx({className:e,...t}){return E.jsx("span",{"data-slot":"command-shortcut",className:xe("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var Ys="ContextMenu",[Sx,wP]=Kt(Ys,[Ea]),dt=Ea(),[Nx,Xh]=Sx(Ys),Qh=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=m.useState(!1),u=dt(t),l=nt(r),d=m.useCallback(c=>{s(c),l(c)},[l]);return E.jsx(Nx,{scope:t,open:o,onOpenChange:d,modal:a,children:E.jsx(Od,{...u,dir:i,open:o,onOpenChange:d,modal:a,children:n})})};Qh.displayName=Ys;var Zh="ContextMenuTrigger",Jh=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Xh(Zh,n),o=dt(n),s=m.useRef({x:0,y:0}),u=m.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=m.useRef(0),d=m.useCallback(()=>window.clearTimeout(l.current),[]),c=h=>{s.current={x:h.clientX,y:h.clientY},a.onOpenChange(!0)};return m.useEffect(()=>d,[d]),m.useEffect(()=>void(r&&d()),[r,d]),E.jsxs(E.Fragment,{children:[E.jsx(Rd,{...o,virtualRef:u}),E.jsx(Ne.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...i,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:ce(e.onContextMenu,h=>{d(),c(h),h.preventDefault()}),onPointerDown:r?e.onPointerDown:ce(e.onPointerDown,Pa(h=>{d(),l.current=window.setTimeout(()=>c(h),700)})),onPointerMove:r?e.onPointerMove:ce(e.onPointerMove,Pa(d)),onPointerCancel:r?e.onPointerCancel:ce(e.onPointerCancel,Pa(d)),onPointerUp:r?e.onPointerUp:ce(e.onPointerUp,Pa(d))})]})});Jh.displayName=Zh;var Dx="ContextMenuPortal",ep=e=>{const{__scopeContextMenu:t,...n}=e,r=dt(t);return E.jsx(Md,{...r,...n})};ep.displayName=Dx;var tp="ContextMenuContent",np=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=Xh(tp,n),a=dt(n),o=m.useRef(!1);return E.jsx(Ld,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&o.current&&s.preventDefault(),o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});np.displayName=tp;var wx="ContextMenuGroup",rp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Pd,{...i,...r,ref:t})});rp.displayName=wx;var vx="ContextMenuLabel",ip=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Fd,{...i,...r,ref:t})});ip.displayName=vx;var Ix="ContextMenuItem",ap=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Bd,{...i,...r,ref:t})});ap.displayName=Ix;var kx="ContextMenuCheckboxItem",op=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Ud,{...i,...r,ref:t})});op.displayName=kx;var Ox="ContextMenuRadioGroup",sp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Hd,{...i,...r,ref:t})});sp.displayName=Ox;var Rx="ContextMenuRadioItem",up=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(zd,{...i,...r,ref:t})});up.displayName=Rx;var Mx="ContextMenuItemIndicator",lp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx($d,{...i,...r,ref:t})});lp.displayName=Mx;var Lx="ContextMenuSeparator",cp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(jd,{...i,...r,ref:t})});cp.displayName=Lx;var Px="ContextMenuArrow",Fx=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Yd,{...i,...r,ref:t})});Fx.displayName=Px;var dp="ContextMenuSub",fp=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=dt(t),[s,u]=Hn({prop:i,defaultProp:a??!1,onChange:r,caller:dp});return E.jsx(Gd,{...o,open:s,onOpenChange:u,children:n})};fp.displayName=dp;var Bx="ContextMenuSubTrigger",hp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Wd,{...i,...r,ref:t})});hp.displayName=Bx;var Ux="ContextMenuSubContent",pp=m.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=dt(n);return E.jsx(Kd,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});pp.displayName=Ux;function Pa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var Hx=Qh,zx=Jh,$x=ep,mp=np,jx=rp,gp=ip,Ep=ap,bp=op,Yx=sp,_p=up,Tp=lp,Ap=cp,Gx=fp,Cp=hp,xp=pp;const yp=Hx,Sp=zx,Gs=jx,Fa=Gx,Ws=Yx,ci=m.forwardRef(({className:e,inset:t,children:n,...r},i)=>E.jsxs(Cp,{ref:i,className:xe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,E.jsx(Xi,{className:"ml-auto h-4 w-4"})]}));ci.displayName=Cp.displayName;const di=m.forwardRef(({className:e,...t},n)=>E.jsx(xp,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));di.displayName=xp.displayName;const Ks=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>E.jsx($x,{children:E.jsx(mp,{ref:r,sideOffset:t,className:xe("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ks.displayName=mp.displayName;const rt=m.forwardRef(({className:e,inset:t,...n},r)=>E.jsx(Ep,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));rt.displayName=Ep.displayName;const Np=m.forwardRef(({className:e,children:t,checked:n,...r},i)=>E.jsxs(bp,{ref:i,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[E.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:E.jsx(Tp,{children:E.jsx(Hl,{className:"h-4 w-4"})})}),t]}));Np.displayName=bp.displayName;const Wn=m.forwardRef(({className:e,children:t,...n},r)=>E.jsxs(_p,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[E.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:E.jsx(Tp,{children:E.jsx(zl,{className:"h-2 w-2 fill-current"})})}),t]}));Wn.displayName=_p.displayName;const fi=m.forwardRef(({className:e,inset:t,...n},r)=>E.jsx(gp,{ref:r,className:xe("px-2 py-1.5 text-xs font-semibold text-muted-foreground",t&&"pl-8",e),...n}));fi.displayName=gp.displayName;const hi=m.forwardRef(({className:e,...t},n)=>E.jsx(Ap,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));hi.displayName=Ap.displayName;const Dp=({className:e,...t})=>E.jsx("span",{className:xe("ml-auto text-xs tracking-widest opacity-60",e),...t});Dp.displayName="ContextMenuShortcut";function vP(){}function IP(){}function wp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function vp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Wx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qx={};function Ip(e,t){return(qx.jsx?Kx:Wx).test(e)}const Vx=/[ \t\n\f\r]/g;function Xx(e){return typeof e=="object"?e.type==="text"?kp(e.value):!1:kp(e)}function kp(e){return e.replace(Vx,"")===""}let pi=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};pi.prototype.normal={},pi.prototype.property={},pi.prototype.space=void 0;function Op(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new pi(n,r,t)}function mi(e){return e.toLowerCase()}let Ct=class{constructor(t,n){this.attribute=n,this.property=t}};Ct.prototype.attribute="",Ct.prototype.booleanish=!1,Ct.prototype.boolean=!1,Ct.prototype.commaOrSpaceSeparated=!1,Ct.prototype.commaSeparated=!1,Ct.prototype.defined=!1,Ct.prototype.mustUseProperty=!1,Ct.prototype.number=!1,Ct.prototype.overloadedBoolean=!1,Ct.prototype.property="",Ct.prototype.spaceSeparated=!1,Ct.prototype.space=void 0;let Qx=0;const Se=Kn(),Ve=Kn(),qs=Kn(),V=Kn(),He=Kn(),Ar=Kn(),wt=Kn();function Kn(){return 2**++Qx}const Vs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ve,commaOrSpaceSeparated:wt,commaSeparated:Ar,number:V,overloadedBoolean:qs,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),Xs=Object.keys(Vs);let Qs=class extends Ct{constructor(t,n,r,i){let a=-1;if(super(t,n),Rp(this,"space",i),typeof r=="number")for(;++a<Xs.length;){const o=Xs[a];Rp(this,Xs[a],(r&Vs[o])===Vs[o])}}};Qs.prototype.defined=!0;function Rp(e,t,n){n&&(e[t]=n)}function Cr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Qs(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[mi(r)]=r,n[mi(a.attribute)]=r}return new pi(t,n,e.space)}const Mp=Cr({properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:He,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:V,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:He,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Ve,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Lp(e,t){return t in e?e[t]:t}function Pp(e,t){return Lp(e,t.toLowerCase())}const Zx=Cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ar,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:He,autoFocus:Se,autoPlay:Se,blocking:He,capture:null,charSet:null,checked:Se,cite:null,className:He,cols:V,colSpan:null,content:null,contentEditable:Ve,controls:Se,controlsList:He,coords:V|Ar,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:qs,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:He,height:V,hidden:qs,high:V,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:He,itemRef:He,itemScope:Se,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:V,pattern:null,ping:He,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:He,required:Se,reversed:Se,rows:V,rowSpan:V,sandbox:He,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ve,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Pp}),Jx=Cr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:wt,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ar,g2:Ar,glyphName:Ar,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wt,rev:wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wt,requiredFeatures:wt,requiredFonts:wt,requiredFormats:wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Lp}),Fp=Cr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Bp=Cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Pp}),Up=Cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ey={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ty=/[A-Z]/g,Hp=/-[a-z]/g,ny=/^data[-\w.:]+$/i;function Zs(e,t){const n=mi(t);let r=t,i=Ct;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ny.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Hp,iy);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Hp.test(a)){let o=a.replace(ty,ry);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Qs}return new i(r,t)}function ry(e){return"-"+e.toLowerCase()}function iy(e){return e.charAt(1).toUpperCase()}const Ba=Op([Mp,Zx,Fp,Bp,Up],"html"),xr=Op([Mp,Jx,Fp,Bp,Up],"svg");function zp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function $p(e){return e.join(" ").trim()}var yr={},Js,jp;function ay(){if(jp)return Js;jp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,u=`
132
- `,l="/",d="*",c="",h="comment",p="declaration";Js=function(b,T){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];T=T||{};var _=1,x=1;function N(G){var B=G.match(t);B&&(_+=B.length);var K=G.lastIndexOf(u);x=~K?G.length-K:x+G.length}function k(){var G={line:_,column:x};return function(B){return B.position=new O(G),H(),B}}function O(G){this.start=G,this.end={line:_,column:x},this.source=T.source}O.prototype.content=b;function w(G){var B=new Error(T.source+":"+_+":"+x+": "+G);if(B.reason=G,B.filename=T.source,B.line=_,B.column=x,B.source=b,!T.silent)throw B}function M(G){var B=G.exec(b);if(B){var K=B[0];return N(K),b=b.slice(K.length),B}}function H(){M(n)}function z(G){var B;for(G=G||[];B=I();)B!==!1&&G.push(B);return G}function I(){var G=k();if(!(l!=b.charAt(0)||d!=b.charAt(1))){for(var B=2;c!=b.charAt(B)&&(d!=b.charAt(B)||l!=b.charAt(B+1));)++B;if(B+=2,c===b.charAt(B-1))return w("End of comment missing");var K=b.slice(2,B-2);return x+=2,N(K),b=b.slice(B),x+=2,G({type:h,comment:K})}}function $(){var G=k(),B=M(r);if(B){if(I(),!M(i))return w("property missing ':'");var K=M(a),ie=G({type:p,property:g(B[0].replace(e,c)),value:K?g(K[0].replace(e,c)):c});return M(o),ie}}function Y(){var G=[];z(G);for(var B;B=$();)B!==!1&&(G.push(B),z(G));return G}return H(),Y()};function g(b){return b?b.replace(s,c):c}return Js}var Yp;function oy(){if(Yp)return yr;Yp=1;var e=yr&&yr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=n;var t=e(ay());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var o=(0,t.default)(r),s=typeof i=="function";return o.forEach(function(u){if(u.type==="declaration"){var l=u.property,d=u.value;s?i(l,d,u):d&&(a=a||{},a[l]=d)}}),a}return yr}var gi={},Gp;function sy(){if(Gp)return gi;Gp=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},o=function(l,d){return d.toUpperCase()},s=function(l,d){return"".concat(d,"-")},u=function(l,d){return d===void 0&&(d={}),a(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(i,s):l=l.replace(r,s),l.replace(t,o))};return gi.camelCase=u,gi}var Ei,Wp;function uy(){if(Wp)return Ei;Wp=1;var e=Ei&&Ei.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(oy()),n=sy();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,u){s&&u&&(o[(0,n.camelCase)(s,a)]=u)}),o}return r.default=r,Ei=r,Ei}var ly=uy();const cy=Oo(ly),Ua=Kp("end"),tn=Kp("start");function Kp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function dy(e){const t=tn(e),n=Ua(e);if(t&&n)return{start:t,end:n}}function bi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qp(e.position):"start"in e||"end"in e?qp(e):"line"in e||"column"in e?eu(e):""}function eu(e){return Vp(e&&e.line)+":"+Vp(e&&e.column)}function qp(e){return eu(e&&e.start)+"-"+eu(e&&e.end)}function Vp(e){return e&&typeof e=="number"?e:1}class ft extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=bi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ft.prototype.file="",ft.prototype.name="",ft.prototype.reason="",ft.prototype.message="",ft.prototype.stack="",ft.prototype.column=void 0,ft.prototype.line=void 0,ft.prototype.ancestors=void 0,ft.prototype.cause=void 0,ft.prototype.fatal=void 0,ft.prototype.place=void 0,ft.prototype.ruleId=void 0,ft.prototype.source=void 0;const tu={}.hasOwnProperty,fy=new Map,hy=/[A-Z]/g,py=new Set(["table","tbody","thead","tfoot","tr"]),my=new Set(["td","th"]),Xp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gy(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=yy(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=xy(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xr:Ba,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Qp(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Qp(e,t,n){if(t.type==="element")return Ey(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return by(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ty(e,t,n);if(t.type==="mdxjsEsm")return _y(e,t);if(t.type==="root")return Ay(e,t,n);if(t.type==="text")return Cy(e,t)}function Ey(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=xr,e.schema=i),e.ancestors.push(t);const a=Jp(e,t.tagName,!1),o=Sy(e,t);let s=ru(e,t);return py.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!Xx(u):!0})),Zp(e,o,a,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function by(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}_i(e,t.position)}function _y(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_i(e,t.position)}function Ty(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=xr,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Jp(e,t.name,!0),o=Ny(e,t),s=ru(e,t);return Zp(e,o,a,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ay(e,t,n){const r={};return nu(r,ru(e,t)),e.create(t,e.Fragment,r,n)}function Cy(e,t){return t.value}function Zp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xy(e,t,n){return r;function r(i,a,o,s){const l=Array.isArray(o.children)?n:t;return s?l(a,o,s):l(a,o)}}function yy(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),u=tn(r);return t(i,a,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Sy(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&tu.call(t.properties,i)){const a=Dy(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&my.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ny(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else _i(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else _i(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ru(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:fy;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;o=u+"-"+l,i.set(u,l+1)}}const s=Qp(e,a,o);s!==void 0&&n.push(s)}return n}function Dy(e,t,n){const r=Zs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vp(n):$p(n)),r.property==="style"){let i=typeof n=="object"?n:wy(e,String(n));return e.stylePropertyNameCase==="css"&&(i=vy(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ey[r.property]||r.property:r.attribute,n]}}function wy(e,t){try{return cy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ft("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Xp+"#cannot-parse-style-attribute",i}}function Jp(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=Ip(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=Ip(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return tu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);_i(e)}function _i(e,t){const n=new ft("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function vy(e){const t={};let n;for(n in e)tu.call(e,n)&&(t[Iy(n)]=e[n]);return t}function Iy(e){let t=e.replace(hy,ky);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ky(e){return"-"+e.toLowerCase()}const iu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Oy={};function au(e,t){const n=Oy,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return em(e,r,i)}function em(e,t,n){if(Ry(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tm(e.children,t,n)}return Array.isArray(e)?tm(e,t,n):""}function tm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=em(e[i],t,n);return r.join("")}function Ry(e){return!!(e&&typeof e=="object")}const nm=document.createElement("i");function ou(e){const t="&"+e+";";nm.innerHTML=t;const n=nm.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function vt(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Pt(e,t){return e.length>0?(vt(e,e.length,0,t),e):t}const rm={}.hasOwnProperty;function im(e){const t={};let n=-1;for(;++n<e.length;)My(t,e[n]);return t}function My(e,t){let n;for(n in t){const i=(rm.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){rm.call(i,o)||(i[o]=[]);const s=a[o];Ly(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Ly(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);vt(e,0,0,r)}function am(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bt=wn(/[A-Za-z]/),ht=wn(/[\dA-Za-z]/),Py=wn(/[#-'*+\--9=?A-Z^-~]/);function Ha(e){return e!==null&&(e<32||e===127)}const su=wn(/\d/),Fy=wn(/[\dA-Fa-f]/),By=wn(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function Be(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const za=wn(new RegExp("\\p{P}|\\p{S}","u")),qn=wn(/\s/);function wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Sr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&ht(e.charCodeAt(n+1))&&ht(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(u){return ve(u)?(e.enter(n),s(u)):t(u)}function s(u){return ve(u)&&a++<i?(e.consume(u),s):(e.exit(n),t(u))}}const Uy={tokenize:Hy};function Hy(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Oe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ee(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const zy={tokenize:$y},om={tokenize:jy};function $y(e){const t=this,n=[];let r=0,i,a,o;return s;function s(N){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,u,l)(N)}return l(N)}function u(N){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const k=t.events.length;let O=k,w;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){w=t.events[O][1].end;break}_(r);let M=k;for(;M<t.events.length;)t.events[M][1].end={...w},M++;return vt(t.events,O+1,0,t.events.slice(k)),t.events.length=M,l(N)}return s(N)}function l(N){if(r===n.length){if(!i)return h(N);if(i.currentConstruct&&i.currentConstruct.concrete)return g(N);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(om,d,c)(N)}function d(N){return i&&x(),_(r),h(N)}function c(N){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(N)}function h(N){return t.containerState={},e.attempt(om,p,g)(N)}function p(N){return r++,n.push([t.currentConstruct,t.containerState]),h(N)}function g(N){if(N===null){i&&x(),_(0),e.consume(N);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(N)}function b(N){if(N===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(N);return}return Ee(N)?(e.consume(N),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(N),b)}function T(N,k){const O=t.sliceStream(N);if(k&&O.push(null),N.previous=a,a&&(a.next=N),a=N,i.defineSkip(N.start),i.write(O),t.parser.lazy[N.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const M=t.events.length;let H=M,z,I;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(z){I=t.events[H][1].end;break}z=!0}for(_(r),w=M;w<t.events.length;)t.events[w][1].end={...I},w++;vt(t.events,H+1,0,t.events.slice(M)),t.events.length=w}}function _(N){let k=n.length;for(;k-- >N;){const O=n[k];t.containerState=O[1],O[0].exit.call(t,e)}n.length=N}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function jy(e,t,n){return Oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nr(e){if(e===null||Be(e)||qn(e))return 1;if(za(e))return 2}function $a(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const uu={name:"attention",resolveAll:Yy,tokenize:Gy};function Yy(e,t){let n=-1,r,i,a,o,s,u,l,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};sm(c,-u),sm(h,u),o={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Pt(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Pt(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Pt(l,$a(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Pt(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=Pt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,vt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Gy(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Nr(r);let a;return o;function o(u){return a=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===a)return e.consume(u),s;const l=e.exit("attentionSequence"),d=Nr(u),c=!d||d===2&&i||n.includes(u),h=!i||i===2&&d||n.includes(r);return l._open=!!(a===42?c:c&&(i||!h)),l._close=!!(a===42?h:h&&(d||!c)),t(u)}}function sm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Wy={name:"autolink",tokenize:Ky};function Ky(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return bt(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||ht(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||ht(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ha(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),d):Py(p)?(e.consume(p),l):n(p)}function d(p){return ht(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||ht(p))&&r++<63){const g=p===45?h:c;return e.consume(p),g}return n(p)}}const Ti={partial:!0,tokenize:qy};function qy(e,t,n){return r;function r(a){return ve(a)?Oe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ee(a)?t(a):n(a)}}const um={continuation:{tokenize:Xy},exit:Qy,name:"blockQuote",tokenize:Vy};function Vy(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ve(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Xy(e,t,n){const r=this;return i;function i(o){return ve(o)?Oe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(um,t,n)(o)}}function Qy(e){e.exit("blockQuote")}const lm={name:"characterEscape",tokenize:Zy};function Zy(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return By(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const cm={name:"characterReference",tokenize:Jy};function Jy(e,t,n){const r=this;let i=0,a,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=ht,d(c))}function l(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Fy,d):(e.enter("characterReferenceValue"),a=7,o=su,d(c))}function d(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===ht&&!ou(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<a?(e.consume(c),d):n(c)}}const dm={partial:!0,tokenize:tS},fm={concrete:!0,name:"codeFenced",tokenize:eS};function eS(e,t,n){const r=this,i={partial:!0,tokenize:O};let a=0,o=0,s;return u;function u(w){return l(w)}function l(w){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(w)}function d(w){return w===s?(o++,e.consume(w),d):o<3?n(w):(e.exit("codeFencedFenceSequence"),ve(w)?Oe(e,c,"whitespace")(w):c(w))}function c(w){return w===null||Ee(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(dm,b,k)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):ve(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Oe(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),h)}function p(w){return w===null||Ee(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),g)}function b(w){return e.attempt(i,k,T)(w)}function T(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),_}function _(w){return a>0&&ve(w)?Oe(e,x,"linePrefix",a+1)(w):x(w)}function x(w){return w===null||Ee(w)?e.check(dm,b,k)(w):(e.enter("codeFlowValue"),N(w))}function N(w){return w===null||Ee(w)?(e.exit("codeFlowValue"),x(w)):(e.consume(w),N)}function k(w){return e.exit("codeFenced"),t(w)}function O(w,M,H){let z=0;return I;function I(K){return w.enter("lineEnding"),w.consume(K),w.exit("lineEnding"),$}function $(K){return w.enter("codeFencedFence"),ve(K)?Oe(w,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):Y(K)}function Y(K){return K===s?(w.enter("codeFencedFenceSequence"),G(K)):H(K)}function G(K){return K===s?(z++,w.consume(K),G):z>=o?(w.exit("codeFencedFenceSequence"),ve(K)?Oe(w,B,"whitespace")(K):B(K)):H(K)}function B(K){return K===null||Ee(K)?(w.exit("codeFencedFence"),M(K)):H(K)}}}function tS(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const lu={name:"codeIndented",tokenize:rS},nS={partial:!0,tokenize:iS};function rS(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Oe(e,a,"linePrefix",5)(l)}function a(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?u(l):Ee(l)?e.attempt(nS,o,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||Ee(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function iS(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Oe(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ee(o)?i(o):n(o)}}const aS={name:"codeText",previous:sS,resolve:oS,tokenize:uS};function oS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function sS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uS(e,t,n){let r=0,i,a;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(a=e.enter("codeTextSequence"),i=0,d(c)):Ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(c))}function l(c){return c===null||c===32||c===96||Ee(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),l)}function d(c){return c===96?(e.consume(c),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(a.type="codeTextData",l(c))}}class lS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ai(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ai(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ai(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ai(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ai(this.left,n.reverse())}}}function Ai(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hm(e){const t={};let n=-1,r,i,a,o,s,u,l;const d=new lS(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,cS(d,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return vt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function cS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],l={};let d,c,h=-1,p=n,g=0,b=0;const T=[b];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(b=h+1,T.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),h=T.length;h--;){const _=s.slice(T[h],T[h+1]),x=a.pop();u.push([x,x+_.length-1]),e.splice(x,2,_)}for(u.reverse(),h=-1;++h<u.length;)l[g+u[h][0]]=g+u[h][1],g+=u[h][1]-u[h][0]-1;return l}const dS={resolve:hS,tokenize:pS},fS={partial:!0,tokenize:mS};function hS(e){return hm(e),e}function pS(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Ee(s)?e.check(fS,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function mS(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Oe(e,a,"linePrefix")}function a(o){if(o===null||Ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function pm(e,t,n,r,i,a,o,s,u){const l=u||Number.POSITIVE_INFINITY;let d=0;return c;function c(_){return _===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(_),e.exit(a),h):_===null||_===32||_===41||Ha(_)?n(_):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(_))}function h(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===62?(e.exit("chunkString"),e.exit(s),h(_)):_===null||_===60||Ee(_)?n(_):(e.consume(_),_===92?g:p)}function g(_){return _===60||_===62||_===92?(e.consume(_),p):p(_)}function b(_){return!d&&(_===null||_===41||Be(_))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(_)):d<l&&_===40?(e.consume(_),d++,b):_===41?(e.consume(_),d--,b):_===null||_===32||_===40||Ha(_)?n(_):(e.consume(_),_===92?T:b)}function T(_){return _===40||_===41||_===92?(e.consume(_),b):b(_)}}function mm(e,t,n,r,i,a){const o=this;let s=0,u;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):Ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||Ee(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),u||(u=!ve(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function gm(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,u):n(h)}function u(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),l(h))}function l(h){return h===o?(e.exit(a),u(o)):h===null?n(h):Ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Oe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||Ee(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?c:d)}function c(h){return h===o||h===92?(e.consume(h),d):d(h)}}function Ci(e,t){let n;return r;function r(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ve(i)?Oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const gS={name:"definition",tokenize:bS},ES={partial:!0,tokenize:_S};function bS(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return mm.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Be(p)?Ci(e,l)(p):l(p)}function l(p){return pm(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(ES,c,c)(p)}function c(p){return ve(p)?Oe(e,h,"whitespace")(p):h(p)}function h(p){return p===null||Ee(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function _S(e,t,n){return r;function r(s){return Be(s)?Ci(e,i)(s):n(s)}function i(s){return gm(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ve(s)?Oe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ee(s)?t(s):n(s)}}const TS={name:"hardBreakEscape",tokenize:AS};function AS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const CS={name:"headingAtx",resolve:xS,tokenize:yS};function xS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},vt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yS(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Be(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Ee(d)?(e.exit("atxHeading"),t(d)):ve(d)?Oe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),l(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),s(d))}function l(d){return d===null||d===35||Be(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),l)}}const SS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Em=["pre","script","style","textarea"],NS={concrete:!0,name:"htmlFlow",resolveTo:vS,tokenize:IS},DS={partial:!0,tokenize:OS},wS={partial:!0,tokenize:kS};function vS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function IS(e,t,n){const r=this;let i,a,o,s,u;return l;function l(y){return d(y)}function d(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),c}function c(y){return y===33?(e.consume(y),h):y===47?(e.consume(y),a=!0,b):y===63?(e.consume(y),i=3,r.interrupt?t:A):bt(y)?(e.consume(y),o=String.fromCharCode(y),T):n(y)}function h(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,g):bt(y)?(e.consume(y),i=4,r.interrupt?t:A):n(y)}function p(y){return y===45?(e.consume(y),r.interrupt?t:A):n(y)}function g(y){const se="CDATA[";return y===se.charCodeAt(s++)?(e.consume(y),s===se.length?r.interrupt?t:Y:g):n(y)}function b(y){return bt(y)?(e.consume(y),o=String.fromCharCode(y),T):n(y)}function T(y){if(y===null||y===47||y===62||Be(y)){const se=y===47,te=o.toLowerCase();return!se&&!a&&Em.includes(te)?(i=1,r.interrupt?t(y):Y(y)):SS.includes(o.toLowerCase())?(i=6,se?(e.consume(y),_):r.interrupt?t(y):Y(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):a?x(y):N(y))}return y===45||ht(y)?(e.consume(y),o+=String.fromCharCode(y),T):n(y)}function _(y){return y===62?(e.consume(y),r.interrupt?t:Y):n(y)}function x(y){return ve(y)?(e.consume(y),x):I(y)}function N(y){return y===47?(e.consume(y),I):y===58||y===95||bt(y)?(e.consume(y),k):ve(y)?(e.consume(y),N):I(y)}function k(y){return y===45||y===46||y===58||y===95||ht(y)?(e.consume(y),k):O(y)}function O(y){return y===61?(e.consume(y),w):ve(y)?(e.consume(y),O):N(y)}function w(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),u=y,M):ve(y)?(e.consume(y),w):H(y)}function M(y){return y===u?(e.consume(y),u=null,z):y===null||Ee(y)?n(y):(e.consume(y),M)}function H(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||Be(y)?O(y):(e.consume(y),H)}function z(y){return y===47||y===62||ve(y)?N(y):n(y)}function I(y){return y===62?(e.consume(y),$):n(y)}function $(y){return y===null||Ee(y)?Y(y):ve(y)?(e.consume(y),$):n(y)}function Y(y){return y===45&&i===2?(e.consume(y),ie):y===60&&i===1?(e.consume(y),pe):y===62&&i===4?(e.consume(y),ee):y===63&&i===3?(e.consume(y),A):y===93&&i===5?(e.consume(y),Q):Ee(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(DS,L,G)(y)):y===null||Ee(y)?(e.exit("htmlFlowData"),G(y)):(e.consume(y),Y)}function G(y){return e.check(wS,B,L)(y)}function B(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),K}function K(y){return y===null||Ee(y)?G(y):(e.enter("htmlFlowData"),Y(y))}function ie(y){return y===45?(e.consume(y),A):Y(y)}function pe(y){return y===47?(e.consume(y),o="",q):Y(y)}function q(y){if(y===62){const se=o.toLowerCase();return Em.includes(se)?(e.consume(y),ee):Y(y)}return bt(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),q):Y(y)}function Q(y){return y===93?(e.consume(y),A):Y(y)}function A(y){return y===62?(e.consume(y),ee):y===45&&i===2?(e.consume(y),A):Y(y)}function ee(y){return y===null||Ee(y)?(e.exit("htmlFlowData"),L(y)):(e.consume(y),ee)}function L(y){return e.exit("htmlFlow"),t(y)}}function kS(e,t,n){const r=this;return i;function i(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function OS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ti,t,n)}}const RS={name:"htmlText",tokenize:MS};function MS(e,t,n){const r=this;let i,a,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),u}function u(A){return A===33?(e.consume(A),l):A===47?(e.consume(A),O):A===63?(e.consume(A),N):bt(A)?(e.consume(A),H):n(A)}function l(A){return A===45?(e.consume(A),d):A===91?(e.consume(A),a=0,g):bt(A)?(e.consume(A),x):n(A)}function d(A){return A===45?(e.consume(A),p):n(A)}function c(A){return A===null?n(A):A===45?(e.consume(A),h):Ee(A)?(o=c,pe(A)):(e.consume(A),c)}function h(A){return A===45?(e.consume(A),p):c(A)}function p(A){return A===62?ie(A):A===45?h(A):c(A)}function g(A){const ee="CDATA[";return A===ee.charCodeAt(a++)?(e.consume(A),a===ee.length?b:g):n(A)}function b(A){return A===null?n(A):A===93?(e.consume(A),T):Ee(A)?(o=b,pe(A)):(e.consume(A),b)}function T(A){return A===93?(e.consume(A),_):b(A)}function _(A){return A===62?ie(A):A===93?(e.consume(A),_):b(A)}function x(A){return A===null||A===62?ie(A):Ee(A)?(o=x,pe(A)):(e.consume(A),x)}function N(A){return A===null?n(A):A===63?(e.consume(A),k):Ee(A)?(o=N,pe(A)):(e.consume(A),N)}function k(A){return A===62?ie(A):N(A)}function O(A){return bt(A)?(e.consume(A),w):n(A)}function w(A){return A===45||ht(A)?(e.consume(A),w):M(A)}function M(A){return Ee(A)?(o=M,pe(A)):ve(A)?(e.consume(A),M):ie(A)}function H(A){return A===45||ht(A)?(e.consume(A),H):A===47||A===62||Be(A)?z(A):n(A)}function z(A){return A===47?(e.consume(A),ie):A===58||A===95||bt(A)?(e.consume(A),I):Ee(A)?(o=z,pe(A)):ve(A)?(e.consume(A),z):ie(A)}function I(A){return A===45||A===46||A===58||A===95||ht(A)?(e.consume(A),I):$(A)}function $(A){return A===61?(e.consume(A),Y):Ee(A)?(o=$,pe(A)):ve(A)?(e.consume(A),$):z(A)}function Y(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,G):Ee(A)?(o=Y,pe(A)):ve(A)?(e.consume(A),Y):(e.consume(A),B)}function G(A){return A===i?(e.consume(A),i=void 0,K):A===null?n(A):Ee(A)?(o=G,pe(A)):(e.consume(A),G)}function B(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||Be(A)?z(A):(e.consume(A),B)}function K(A){return A===47||A===62||Be(A)?z(A):n(A)}function ie(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function pe(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),q}function q(A){return ve(A)?Oe(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Q(A)}function Q(A){return e.enter("htmlTextData"),o(A)}}const cu={name:"labelEnd",resolveAll:BS,resolveTo:US,tokenize:HS},LS={tokenize:zS},PS={tokenize:$S},FS={tokenize:jS};function BS(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&vt(e,0,e.length,n),e}function US(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",l,t]],s=Pt(s,e.slice(a+1,a+r+3)),s=Pt(s,[["enter",d,t]]),s=Pt(s,$a(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Pt(s,[["exit",d,t],e[o-2],e[o-1],["exit",l,t]]),s=Pt(s,e.slice(o+1)),s=Pt(s,[["exit",u,t]]),vt(e,a,e.length,s),e}function HS(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(h){return a?a._inactive?c(h):(o=r.parser.defined.includes(jt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):n(h)}function u(h){return h===40?e.attempt(LS,d,o?d:c)(h):h===91?e.attempt(PS,d,o?l:c)(h):o?d(h):c(h)}function l(h){return e.attempt(FS,d,c)(h)}function d(h){return t(h)}function c(h){return a._balanced=!0,n(h)}}function zS(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Be(c)?Ci(e,a)(c):a(c)}function a(c){return c===41?d(c):pm(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Be(c)?Ci(e,u)(c):d(c)}function s(c){return n(c)}function u(c){return c===34||c===39||c===40?gm(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function l(c){return Be(c)?Ci(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function $S(e,t,n){const r=this;return i;function i(s){return mm.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function jS(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const YS={name:"labelStartImage",resolveAll:cu.resolveAll,tokenize:GS};function GS(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const WS={name:"labelStartLink",resolveAll:cu.resolveAll,tokenize:KS};function KS(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const du={name:"lineEnding",tokenize:qS};function qS(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Oe(e,t,"linePrefix")}}const ja={name:"thematicBreak",tokenize:VS};function VS(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||Ee(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),ve(l)?Oe(e,s,"whitespace")(l):s(l))}}const xt={continuation:{tokenize:JS},exit:tN,name:"list",tokenize:ZS},XS={partial:!0,tokenize:nN},QS={partial:!0,tokenize:eN};function ZS(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:su(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ja,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return su(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ti,r.interrupt?n:d,e.attempt(XS,h,c))}function d(p){return r.containerState.initialBlankLine=!0,a++,h(p)}function c(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function JS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ti,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Oe(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ve(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(QS,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Oe(e,e.attempt(xt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function eN(e,t,n){const r=this;return Oe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function tN(e){e.exit(this.containerState.type)}function nN(e,t,n){const r=this;return Oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ve(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bm={name:"setextUnderline",resolveTo:rN,tokenize:iN};function rN(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function iN(e,t,n){const r=this;let i;return a;function a(l){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ve(l)?Oe(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||Ee(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const aN={tokenize:oN};function oN(e){const t=this,n=e.attempt(Ti,r,e.attempt(this.parser.constructs.flowInitial,i,Oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(dS,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sN={resolveAll:Tm()},uN=_m("string"),lN=_m("text");function _m(e){return{resolveAll:Tm(e==="text"?cN:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return l(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return l(d)?(n.exit("data"),a(d)):(n.consume(d),u)}function l(d){if(d===null)return!0;const c=i[d];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Tm(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function cN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const l={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const dN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:gS},disable:{null:[]},document:{42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:um},flow:{35:CS,42:ja,45:[bm,ja],60:NS,61:bm,95:ja,96:fm,126:fm},flowInitial:{[-2]:lu,[-1]:lu,32:lu},insideSpan:{null:[uu,sN]},string:{38:cm,92:lm},text:{[-5]:du,[-4]:du,[-3]:du,33:YS,38:cm,42:uu,60:[Wy,RS],91:WS,92:[TS,lm],93:cu,95:uu,96:aS}},Symbol.toStringTag,{value:"Module"}));function fN(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const u={attempt:M(O),check:M(w),consume:x,enter:N,exit:k,interrupt:M(w,{interrupt:!0})},l={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let d=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function c($){return o=Pt(o,$),T(),o[o.length-1]!==null?[]:(H(t,0),l.events=$a(a,l.events,l),l.events)}function h($,Y){return pN(p($),Y)}function p($){return hN(o,$)}function g(){const{_bufferIndex:$,_index:Y,line:G,column:B,offset:K}=r;return{_bufferIndex:$,_index:Y,line:G,column:B,offset:K}}function b($){i[$.line]=$.column,I()}function T(){let $;for(;r._index<o.length;){const Y=o[r._index];if(typeof Y=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<Y.length;)_(Y.charCodeAt(r._bufferIndex));else _(Y)}}function _($){d=d($)}function x($){Ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,I()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=$}function N($,Y){const G=Y||{};return G.type=$,G.start=g(),l.events.push(["enter",G,l]),s.push(G),G}function k($){const Y=s.pop();return Y.end=g(),l.events.push(["exit",Y,l]),Y}function O($,Y){H($,Y.from)}function w($,Y){Y.restore()}function M($,Y){return G;function G(B,K,ie){let pe,q,Q,A;return Array.isArray(B)?L(B):"tokenize"in B?L([B]):ee(B);function ee(ue){return de;function de(be){const Re=be!==null&&ue[be],Ge=be!==null&&ue.null,Ut=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return L(Ut)(be)}}function L(ue){return pe=ue,q=0,ue.length===0?ie:y(ue[q])}function y(ue){return de;function de(be){return A=z(),Q=ue,ue.partial||(l.currentConstruct=ue),ue.name&&l.parser.constructs.disable.null.includes(ue.name)?te():ue.tokenize.call(Y?Object.assign(Object.create(l),Y):l,u,se,te)(be)}}function se(ue){return $(Q,A),K}function te(ue){return A.restore(),++q<pe.length?y(pe[q]):ie}}}function H($,Y){$.resolveAll&&!a.includes($)&&a.push($),$.resolve&&vt(l.events,Y,l.events.length-Y,$.resolve(l.events.slice(Y),l)),$.resolveTo&&(l.events=$.resolveTo(l.events,l))}function z(){const $=g(),Y=l.previous,G=l.currentConstruct,B=l.events.length,K=Array.from(s);return{from:B,restore:ie};function ie(){r=$,l.previous=Y,l.currentConstruct=G,l.events.length=B,s=K,I()}}function I(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function hN(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function pN(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
181
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cC="DialogDescriptionWarning",dC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ph(cC).contentName}}.`;return g.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Fh=xh,fC=yh,Bh=Nh,Uh=Dh,Hh=wh,hC=kh,pC=Oh,zh=Mh,di='[cmdk-group=""]',Us='[cmdk-group-items=""]',mC='[cmdk-group-heading=""]',$h='[cmdk-item=""]',jh=`${$h}:not([aria-disabled="true"])`,Hs="cmdk-item-select",_r="data-value",gC=(e,t,n)=>nC(e,t,n),Yh=g.createContext(void 0),fi=()=>g.useContext(Yh),Gh=g.createContext(void 0),zs=()=>g.useContext(Gh),Wh=g.createContext(void 0),Kh=g.forwardRef((e,t)=>{let n=Tr(()=>{var L,y;return{search:"",value:(y=(L=e.value)!=null?L:e.defaultValue)!=null?y:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Tr(()=>new Set),i=Tr(()=>new Map),a=Tr(()=>new Map),o=Tr(()=>new Set),s=qh(e),{label:u,children:l,value:d,onValueChange:c,filter:h,shouldFilter:p,loop:E,disablePointerSelection:b=!1,vimBindings:T=!0,..._}=e,C=ct(),N=ct(),I=ct(),O=g.useRef(null),w=DC();Gn(()=>{if(d!==void 0){let L=d.trim();n.current.value=L,M.emit()}},[d]),Gn(()=>{w(6,G)},[]);let M=g.useMemo(()=>({subscribe:L=>(o.current.add(L),()=>o.current.delete(L)),snapshot:()=>n.current,setState:(L,y,se)=>{var te,ue,de,be;if(!Object.is(n.current[L],y)){if(n.current[L]=y,L==="search")Y(),k(),w(1,$);else if(L==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Re=document.getElementById(I);Re?Re.focus():(te=document.getElementById(C))==null||te.focus()}if(w(7,()=>{var Re;n.current.selectedItemId=(Re=B())==null?void 0:Re.id,M.emit()}),se||w(5,G),((ue=s.current)==null?void 0:ue.value)!==void 0){let Re=y??"";(be=(de=s.current).onValueChange)==null||be.call(de,Re);return}}M.emit()}},emit:()=>{o.current.forEach(L=>L())}}),[]),H=g.useMemo(()=>({value:(L,y,se)=>{var te;y!==((te=a.current.get(L))==null?void 0:te.value)&&(a.current.set(L,{value:y,keywords:se}),n.current.filtered.items.set(L,z(y,se)),w(2,()=>{k(),M.emit()}))},item:(L,y)=>(r.current.add(L),y&&(i.current.has(y)?i.current.get(y).add(L):i.current.set(y,new Set([L]))),w(3,()=>{Y(),k(),n.current.value||$(),M.emit()}),()=>{a.current.delete(L),r.current.delete(L),n.current.filtered.items.delete(L);let se=B();w(4,()=>{Y(),se?.getAttribute("id")===L&&$(),M.emit()})}),group:L=>(i.current.has(L)||i.current.set(L,new Set),()=>{a.current.delete(L),i.current.delete(L)}),filter:()=>s.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:C,inputId:I,labelId:N,listInnerRef:O}),[]);function z(L,y){var se,te;let ue=(te=(se=s.current)==null?void 0:se.filter)!=null?te:gC;return L?ue(L,n.current.search,y):0}function k(){if(!n.current.search||s.current.shouldFilter===!1)return;let L=n.current.filtered.items,y=[];n.current.filtered.groups.forEach(te=>{let ue=i.current.get(te),de=0;ue.forEach(be=>{let Re=L.get(be);de=Math.max(Re,de)}),y.push([te,de])});let se=O.current;K().sort((te,ue)=>{var de,be;let Re=te.getAttribute("id"),Ge=ue.getAttribute("id");return((de=L.get(Ge))!=null?de:0)-((be=L.get(Re))!=null?be:0)}).forEach(te=>{let ue=te.closest(Us);ue?ue.appendChild(te.parentElement===ue?te:te.closest(`${Us} > *`)):se.appendChild(te.parentElement===se?te:te.closest(`${Us} > *`))}),y.sort((te,ue)=>ue[1]-te[1]).forEach(te=>{var ue;let de=(ue=O.current)==null?void 0:ue.querySelector(`${di}[${_r}="${encodeURIComponent(te[0])}"]`);de?.parentElement.appendChild(de)})}function $(){let L=K().find(se=>se.getAttribute("aria-disabled")!=="true"),y=L?.getAttribute(_r);M.setState("value",y||void 0)}function Y(){var L,y,se,te;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ue=0;for(let de of r.current){let be=(y=(L=a.current.get(de))==null?void 0:L.value)!=null?y:"",Re=(te=(se=a.current.get(de))==null?void 0:se.keywords)!=null?te:[],Ge=z(be,Re);n.current.filtered.items.set(de,Ge),Ge>0&&ue++}for(let[de,be]of i.current)for(let Re of be)if(n.current.filtered.items.get(Re)>0){n.current.filtered.groups.add(de);break}n.current.filtered.count=ue}function G(){var L,y,se;let te=B();te&&(((L=te.parentElement)==null?void 0:L.firstChild)===te&&((se=(y=te.closest(di))==null?void 0:y.querySelector(mC))==null||se.scrollIntoView({block:"nearest"})),te.scrollIntoView({block:"nearest"}))}function B(){var L;return(L=O.current)==null?void 0:L.querySelector(`${$h}[aria-selected="true"]`)}function K(){var L;return Array.from(((L=O.current)==null?void 0:L.querySelectorAll(jh))||[])}function ae(L){let y=K()[L];y&&M.setState("value",y.getAttribute(_r))}function pe(L){var y;let se=B(),te=K(),ue=te.findIndex(be=>be===se),de=te[ue+L];(y=s.current)!=null&&y.loop&&(de=ue+L<0?te[te.length-1]:ue+L===te.length?te[0]:te[ue+L]),de&&M.setState("value",de.getAttribute(_r))}function q(L){let y=B(),se=y?.closest(di),te;for(;se&&!te;)se=L>0?SC(se,di):NC(se,di),te=se?.querySelector(jh);te?M.setState("value",te.getAttribute(_r)):pe(L)}let Q=()=>ae(K().length-1),A=L=>{L.preventDefault(),L.metaKey?Q():L.altKey?q(1):pe(1)},ee=L=>{L.preventDefault(),L.metaKey?ae(0):L.altKey?q(-1):pe(-1)};return g.createElement(Ne.div,{ref:t,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:L=>{var y;(y=_.onKeyDown)==null||y.call(_,L);let se=L.nativeEvent.isComposing||L.keyCode===229;if(!(L.defaultPrevented||se))switch(L.key){case"n":case"j":{T&&L.ctrlKey&&A(L);break}case"ArrowDown":{A(L);break}case"p":case"k":{T&&L.ctrlKey&&ee(L);break}case"ArrowUp":{ee(L);break}case"Home":{L.preventDefault(),ae(0);break}case"End":{L.preventDefault(),Q();break}case"Enter":{L.preventDefault();let te=B();if(te){let ue=new Event(Hs);te.dispatchEvent(ue)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:vC},u),Pa(e,L=>g.createElement(Gh.Provider,{value:M},g.createElement(Yh.Provider,{value:H},L))))}),EC=g.forwardRef((e,t)=>{var n,r;let i=ct(),a=g.useRef(null),o=g.useContext(Wh),s=fi(),u=qh(e),l=(r=(n=u.current)==null?void 0:n.forceMount)!=null?r:o?.forceMount;Gn(()=>{if(!l)return s.item(i,o?.id)},[l]);let d=Vh(i,a,[e.value,e.children,a],e.keywords),c=zs(),h=Dn(w=>w.value&&w.value===d.current),p=Dn(w=>l||s.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);g.useEffect(()=>{let w=a.current;if(!(!w||e.disabled))return w.addEventListener(Hs,E),()=>w.removeEventListener(Hs,E)},[p,e.onSelect,e.disabled]);function E(){var w,M;b(),(M=(w=u.current).onSelect)==null||M.call(w,d.current)}function b(){c.setState("value",d.current,!0)}if(!p)return null;let{disabled:T,value:_,onSelect:C,forceMount:N,keywords:I,...O}=e;return g.createElement(Ne.div,{ref:fn(a,t),...O,id:i,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!h,"data-disabled":!!T,"data-selected":!!h,onPointerMove:T||s.getDisablePointerSelection()?void 0:b,onClick:T?void 0:E},e.children)}),bC=g.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=ct(),s=g.useRef(null),u=g.useRef(null),l=ct(),d=fi(),c=Dn(p=>i||d.filter()===!1?!0:p.search?p.filtered.groups.has(o):!0);Gn(()=>d.group(o),[]),Vh(o,s,[e.value,e.heading,u]);let h=g.useMemo(()=>({id:o,forceMount:i}),[i]);return g.createElement(Ne.div,{ref:fn(s,t),...a,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&g.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Pa(e,p=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},g.createElement(Wh.Provider,{value:h},p))))}),_C=g.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=g.useRef(null),a=Dn(o=>!o.search);return!n&&!a?null:g.createElement(Ne.div,{ref:fn(i,t),...r,"cmdk-separator":"",role:"separator"})}),TC=g.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=zs(),o=Dn(l=>l.search),s=Dn(l=>l.selectedItemId),u=fi();return g.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),g.createElement(Ne.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:i?e.value:o,onChange:l=>{i||a.setState("search",l.target.value),n?.(l.target.value)}})}),AC=g.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,a=g.useRef(null),o=g.useRef(null),s=Dn(l=>l.selectedItemId),u=fi();return g.useEffect(()=>{if(o.current&&a.current){let l=o.current,d=a.current,c,h=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=l.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return h.observe(l),()=>{cancelAnimationFrame(c),h.unobserve(l)}}},[]),g.createElement(Ne.div,{ref:fn(a,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:u.listId},Pa(e,l=>g.createElement("div",{ref:fn(o,u.listInnerRef),"cmdk-list-sizer":""},l)))}),xC=g.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return g.createElement(Fh,{open:n,onOpenChange:r},g.createElement(Bh,{container:o},g.createElement(Uh,{"cmdk-overlay":"",className:i}),g.createElement(Hh,{"aria-label":e.label,"cmdk-dialog":"",className:a},g.createElement(Kh,{ref:t,...s}))))}),CC=g.forwardRef((e,t)=>Dn(n=>n.filtered.count===0)?g.createElement(Ne.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),yC=g.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...a}=e;return g.createElement(Ne.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Pa(e,o=>g.createElement("div",{"aria-hidden":!0},o)))}),Yn=Object.assign(Kh,{List:AC,Item:EC,Input:TC,Group:bC,Separator:_C,Dialog:xC,Empty:CC,Loading:yC});function SC(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function NC(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qh(e){let t=g.useRef(e);return Gn(()=>{t.current=e}),t}var Gn=typeof window>"u"?g.useEffect:g.useLayoutEffect;function Tr(e){let t=g.useRef();return t.current===void 0&&(t.current=e()),t}function Dn(e){let t=zs(),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function Vh(e,t,n,r=[]){let i=g.useRef(),a=fi();return Gn(()=>{var o;let s=(()=>{var l;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(l=d.current.textContent)==null?void 0:l.trim():i.current}})(),u=r.map(l=>l.trim());a.value(e,s,u),(o=t.current)==null||o.setAttribute(_r,s),i.current=s}),i}var DC=()=>{let[e,t]=g.useState(),n=Tr(()=>new Map);return Gn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,i)=>{n.current.set(r,i),t({})}};function wC(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Pa({asChild:e,children:t},n){return e&&g.isValidElement(t)?g.cloneElement(wC(t),{ref:t.ref},n(t.props.children)):n(t)}var vC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Xh({...e}){return m.jsx(Fh,{"data-slot":"dialog",...e})}function kC({...e}){return m.jsx(fC,{"data-slot":"dialog-trigger",...e})}function IC({...e}){return m.jsx(Bh,{"data-slot":"dialog-portal",...e})}function OC({...e}){return m.jsx(zh,{"data-slot":"dialog-close",...e})}function RC({className:e,...t}){return m.jsx(Uh,{"data-slot":"dialog-overlay",className:_e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Qh({className:e,children:t,showCloseButton:n=!0,...r}){return m.jsxs(IC,{"data-slot":"dialog-portal",children:[m.jsx(RC,{}),m.jsxs(Hh,{"data-slot":"dialog-content",className:_e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&m.jsxs(zh,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[m.jsx(s1,{}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Zh({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-header",className:_e("flex flex-col gap-2 text-center sm:text-left",e),...t})}function MC({className:e,...t}){return m.jsx("div",{"data-slot":"dialog-footer",className:_e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Jh({className:e,...t}){return m.jsx(hC,{"data-slot":"dialog-title",className:_e("text-lg leading-none font-semibold",e),...t})}function ep({className:e,...t}){return m.jsx(pC,{"data-slot":"dialog-description",className:_e("text-muted-foreground text-sm",e),...t})}function $s({className:e,...t}){return m.jsx(Yn,{"data-slot":"command",className:_e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function tp({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:i=!0,...a}){return m.jsxs(Xh,{...a,children:[m.jsxs(Zh,{className:"sr-only",children:[m.jsx(Jh,{children:e}),m.jsx(ep,{children:t})]}),m.jsx(Qh,{className:_e("overflow-hidden p-0",r),showCloseButton:i,children:m.jsx($s,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function LC({className:e,...t}){return m.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[m.jsx(t1,{className:"size-4 shrink-0 opacity-50"}),m.jsx(Yn.Input,{"data-slot":"command-input",className:_e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function PC({className:e,...t}){return m.jsx(Yn.List,{"data-slot":"command-list",className:_e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function FC({...e}){return m.jsx(Yn.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function js({className:e,...t}){return m.jsx(Yn.Group,{"data-slot":"command-group",className:_e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function np({className:e,...t}){return m.jsx(Yn.Separator,{"data-slot":"command-separator",className:_e("bg-border -mx-1 h-px",e),...t})}function Ar({className:e,...t}){return m.jsx(Yn.Item,{"data-slot":"command-item",className:_e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function BC({className:e,...t}){return m.jsx("span",{"data-slot":"command-shortcut",className:_e("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var Ys="ContextMenu",[UC,ZP]=qt(Ys,[Aa]),ft=Aa(),[HC,rp]=UC(Ys),ip=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=g.useState(!1),u=ft(t),l=rt(r),d=g.useCallback(c=>{s(c),l(c)},[l]);return m.jsx(HC,{scope:t,open:o,onOpenChange:d,modal:a,children:m.jsx(Ld,{...u,dir:i,open:o,onOpenChange:d,modal:a,children:n})})};ip.displayName=Ys;var ap="ContextMenuTrigger",op=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=rp(ap,n),o=ft(n),s=g.useRef({x:0,y:0}),u=g.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=g.useRef(0),d=g.useCallback(()=>window.clearTimeout(l.current),[]),c=h=>{s.current={x:h.clientX,y:h.clientY},a.onOpenChange(!0)};return g.useEffect(()=>d,[d]),g.useEffect(()=>void(r&&d()),[r,d]),m.jsxs(m.Fragment,{children:[m.jsx(Pd,{...o,virtualRef:u}),m.jsx(Ne.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...i,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:ce(e.onContextMenu,h=>{d(),c(h),h.preventDefault()}),onPointerDown:r?e.onPointerDown:ce(e.onPointerDown,Fa(h=>{d(),l.current=window.setTimeout(()=>c(h),700)})),onPointerMove:r?e.onPointerMove:ce(e.onPointerMove,Fa(d)),onPointerCancel:r?e.onPointerCancel:ce(e.onPointerCancel,Fa(d)),onPointerUp:r?e.onPointerUp:ce(e.onPointerUp,Fa(d))})]})});op.displayName=ap;var zC="ContextMenuPortal",sp=e=>{const{__scopeContextMenu:t,...n}=e,r=ft(t);return m.jsx(Fd,{...r,...n})};sp.displayName=zC;var up="ContextMenuContent",lp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=rp(up,n),a=ft(n),o=g.useRef(!1);return m.jsx(Bd,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&o.current&&s.preventDefault(),o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});lp.displayName=up;var $C="ContextMenuGroup",cp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Ud,{...i,...r,ref:t})});cp.displayName=$C;var jC="ContextMenuLabel",dp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Hd,{...i,...r,ref:t})});dp.displayName=jC;var YC="ContextMenuItem",fp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(zd,{...i,...r,ref:t})});fp.displayName=YC;var GC="ContextMenuCheckboxItem",hp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx($d,{...i,...r,ref:t})});hp.displayName=GC;var WC="ContextMenuRadioGroup",pp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(jd,{...i,...r,ref:t})});pp.displayName=WC;var KC="ContextMenuRadioItem",mp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Yd,{...i,...r,ref:t})});mp.displayName=KC;var qC="ContextMenuItemIndicator",gp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Gd,{...i,...r,ref:t})});gp.displayName=qC;var VC="ContextMenuSeparator",Ep=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Wd,{...i,...r,ref:t})});Ep.displayName=VC;var XC="ContextMenuArrow",QC=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Kd,{...i,...r,ref:t})});QC.displayName=XC;var bp="ContextMenuSub",_p=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=ft(t),[s,u]=Hn({prop:i,defaultProp:a??!1,onChange:r,caller:bp});return m.jsx(qd,{...o,open:s,onOpenChange:u,children:n})};_p.displayName=bp;var ZC="ContextMenuSubTrigger",Tp=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Vd,{...i,...r,ref:t})});Tp.displayName=ZC;var JC="ContextMenuSubContent",Ap=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,i=ft(n);return m.jsx(Xd,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ap.displayName=JC;function Fa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var ey=ip,ty=op,ny=sp,xp=lp,ry=cp,Cp=dp,yp=fp,Sp=hp,iy=pp,Np=mp,Dp=gp,wp=Ep,ay=_p,vp=Tp,kp=Ap;const Ip=ey,Op=ty,Gs=ry,Ba=ay,Ws=iy,hi=g.forwardRef(({className:e,inset:t,children:n,...r},i)=>m.jsxs(vp,{ref:i,className:_e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,m.jsx(Ji,{className:"ml-auto h-4 w-4"})]}));hi.displayName=vp.displayName;const pi=g.forwardRef(({className:e,...t},n)=>m.jsx(kp,{ref:n,className:_e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));pi.displayName=kp.displayName;const Ks=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(ny,{children:m.jsx(xp,{ref:r,sideOffset:t,className:_e("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ks.displayName=xp.displayName;const it=g.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(yp,{ref:r,className:_e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));it.displayName=yp.displayName;const Rp=g.forwardRef(({className:e,children:t,checked:n,...r},i)=>m.jsxs(Sp,{ref:i,className:_e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Dp,{children:m.jsx(Hl,{className:"h-4 w-4"})})}),t]}));Rp.displayName=Sp.displayName;const Wn=g.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(Np,{ref:r,className:_e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Dp,{children:m.jsx(zl,{className:"h-2 w-2 fill-current"})})}),t]}));Wn.displayName=Np.displayName;const mi=g.forwardRef(({className:e,inset:t,...n},r)=>m.jsx(Cp,{ref:r,className:_e("px-2 py-1.5 text-xs font-semibold text-muted-foreground",t&&"pl-8",e),...n}));mi.displayName=Cp.displayName;const gi=g.forwardRef(({className:e,...t},n)=>m.jsx(wp,{ref:n,className:_e("-mx-1 my-1 h-px bg-muted",e),...t}));gi.displayName=wp.displayName;const Mp=({className:e,...t})=>m.jsx("span",{className:_e("ml-auto text-xs tracking-widest opacity-60",e),...t});Mp.displayName="ContextMenuShortcut";function JP(){}function eF(){}function Lp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function Pp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const oy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uy={};function Fp(e,t){return(uy.jsx?sy:oy).test(e)}const ly=/[ \t\n\f\r]/g;function cy(e){return typeof e=="object"?e.type==="text"?Bp(e.value):!1:Bp(e)}function Bp(e){return e.replace(ly,"")===""}let Ei=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ei.prototype.normal={},Ei.prototype.property={},Ei.prototype.space=void 0;function Up(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ei(n,r,t)}function bi(e){return e.toLowerCase()}let Ct=class{constructor(t,n){this.attribute=n,this.property=t}};Ct.prototype.attribute="",Ct.prototype.booleanish=!1,Ct.prototype.boolean=!1,Ct.prototype.commaOrSpaceSeparated=!1,Ct.prototype.commaSeparated=!1,Ct.prototype.defined=!1,Ct.prototype.mustUseProperty=!1,Ct.prototype.number=!1,Ct.prototype.overloadedBoolean=!1,Ct.prototype.property="",Ct.prototype.spaceSeparated=!1,Ct.prototype.space=void 0;let dy=0;const Se=Kn(),Xe=Kn(),qs=Kn(),V=Kn(),He=Kn(),xr=Kn(),vt=Kn();function Kn(){return 2**++dy}const Vs=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Xe,commaOrSpaceSeparated:vt,commaSeparated:xr,number:V,overloadedBoolean:qs,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),Xs=Object.keys(Vs);let Qs=class extends Ct{constructor(t,n,r,i){let a=-1;if(super(t,n),Hp(this,"space",i),typeof r=="number")for(;++a<Xs.length;){const o=Xs[a];Hp(this,Xs[a],(r&Vs[o])===Vs[o])}}};Qs.prototype.defined=!0;function Hp(e,t,n){n&&(e[t]=n)}function Cr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Qs(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[bi(r)]=r,n[bi(a.attribute)]=r}return new Ei(t,n,e.space)}const zp=Cr({properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:He,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:V,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:He,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Xe,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $p(e,t){return t in e?e[t]:t}function jp(e,t){return $p(e,t.toLowerCase())}const fy=Cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xr,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:He,autoFocus:Se,autoPlay:Se,blocking:He,capture:null,charSet:null,checked:Se,cite:null,className:He,cols:V,colSpan:null,content:null,contentEditable:Xe,controls:Se,controlsList:He,coords:V|xr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:qs,draggable:Xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:He,height:V,hidden:qs,high:V,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:He,itemRef:He,itemScope:Se,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:V,pattern:null,ping:He,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:He,required:Se,reversed:Se,rows:V,rowSpan:V,sandbox:He,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Xe,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:jp}),hy=Cr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vt,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:He,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xr,g2:xr,glyphName:xr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:vt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vt,rev:vt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vt,requiredFeatures:vt,requiredFonts:vt,requiredFormats:vt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:vt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$p}),Yp=Cr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Gp=Cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:jp}),Wp=Cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),py={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},my=/[A-Z]/g,Kp=/-[a-z]/g,gy=/^data[-\w.:]+$/i;function Zs(e,t){const n=bi(t);let r=t,i=Ct;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gy.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Kp,by);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Kp.test(a)){let o=a.replace(my,Ey);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Qs}return new i(r,t)}function Ey(e){return"-"+e.toLowerCase()}function by(e){return e.charAt(1).toUpperCase()}const Ua=Up([zp,fy,Yp,Gp,Wp],"html"),yr=Up([zp,hy,Yp,Gp,Wp],"svg");function qp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Vp(e){return e.join(" ").trim()}var Sr={},Js,Xp;function _y(){if(Xp)return Js;Xp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,u=`
182
+ `,l="/",d="*",c="",h="comment",p="declaration";Js=function(b,T){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];T=T||{};var _=1,C=1;function N(G){var B=G.match(t);B&&(_+=B.length);var K=G.lastIndexOf(u);C=~K?G.length-K:C+G.length}function I(){var G={line:_,column:C};return function(B){return B.position=new O(G),H(),B}}function O(G){this.start=G,this.end={line:_,column:C},this.source=T.source}O.prototype.content=b;function w(G){var B=new Error(T.source+":"+_+":"+C+": "+G);if(B.reason=G,B.filename=T.source,B.line=_,B.column=C,B.source=b,!T.silent)throw B}function M(G){var B=G.exec(b);if(B){var K=B[0];return N(K),b=b.slice(K.length),B}}function H(){M(n)}function z(G){var B;for(G=G||[];B=k();)B!==!1&&G.push(B);return G}function k(){var G=I();if(!(l!=b.charAt(0)||d!=b.charAt(1))){for(var B=2;c!=b.charAt(B)&&(d!=b.charAt(B)||l!=b.charAt(B+1));)++B;if(B+=2,c===b.charAt(B-1))return w("End of comment missing");var K=b.slice(2,B-2);return C+=2,N(K),b=b.slice(B),C+=2,G({type:h,comment:K})}}function $(){var G=I(),B=M(r);if(B){if(k(),!M(i))return w("property missing ':'");var K=M(a),ae=G({type:p,property:E(B[0].replace(e,c)),value:K?E(K[0].replace(e,c)):c});return M(o),ae}}function Y(){var G=[];z(G);for(var B;B=$();)B!==!1&&(G.push(B),z(G));return G}return H(),Y()};function E(b){return b?b.replace(s,c):c}return Js}var Qp;function Ty(){if(Qp)return Sr;Qp=1;var e=Sr&&Sr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=n;var t=e(_y());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var o=(0,t.default)(r),s=typeof i=="function";return o.forEach(function(u){if(u.type==="declaration"){var l=u.property,d=u.value;s?i(l,d,u):d&&(a=a||{},a[l]=d)}}),a}return Sr}var _i={},Zp;function Ay(){if(Zp)return _i;Zp=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},o=function(l,d){return d.toUpperCase()},s=function(l,d){return"".concat(d,"-")},u=function(l,d){return d===void 0&&(d={}),a(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(i,s):l=l.replace(r,s),l.replace(t,o))};return _i.camelCase=u,_i}var Ti,Jp;function xy(){if(Jp)return Ti;Jp=1;var e=Ti&&Ti.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Ty()),n=Ay();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,u){s&&u&&(o[(0,n.camelCase)(s,a)]=u)}),o}return r.default=r,Ti=r,Ti}var Cy=xy();const yy=Ro(Cy),Ha=em("end"),nn=em("start");function em(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Sy(e){const t=nn(e),n=Ha(e);if(t&&n)return{start:t,end:n}}function Ai(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tm(e.position):"start"in e||"end"in e?tm(e):"line"in e||"column"in e?eu(e):""}function eu(e){return nm(e&&e.line)+":"+nm(e&&e.column)}function tm(e){return eu(e&&e.start)+"-"+eu(e&&e.end)}function nm(e){return e&&typeof e=="number"?e:1}class ht extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Ai(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ht.prototype.file="",ht.prototype.name="",ht.prototype.reason="",ht.prototype.message="",ht.prototype.stack="",ht.prototype.column=void 0,ht.prototype.line=void 0,ht.prototype.ancestors=void 0,ht.prototype.cause=void 0,ht.prototype.fatal=void 0,ht.prototype.place=void 0,ht.prototype.ruleId=void 0,ht.prototype.source=void 0;const tu={}.hasOwnProperty,Ny=new Map,Dy=/[A-Z]/g,wy=new Set(["table","tbody","thead","tfoot","tr"]),vy=new Set(["td","th"]),rm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ky(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=By(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Fy(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?yr:Ua,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=im(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function im(e,t,n){if(t.type==="element")return Iy(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Oy(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return My(e,t,n);if(t.type==="mdxjsEsm")return Ry(e,t);if(t.type==="root")return Ly(e,t,n);if(t.type==="text")return Py(e,t)}function Iy(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yr,e.schema=i),e.ancestors.push(t);const a=om(e,t.tagName,!1),o=Uy(e,t);let s=ru(e,t);return wy.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!cy(u):!0})),am(e,o,a,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Oy(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}xi(e,t.position)}function Ry(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xi(e,t.position)}function My(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=yr,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:om(e,t.name,!0),o=Hy(e,t),s=ru(e,t);return am(e,o,a,t),nu(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ly(e,t,n){const r={};return nu(r,ru(e,t)),e.create(t,e.Fragment,r,n)}function Py(e,t){return t.value}function am(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Fy(e,t,n){return r;function r(i,a,o,s){const l=Array.isArray(o.children)?n:t;return s?l(a,o,s):l(a,o)}}function By(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),u=nn(r);return t(i,a,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Uy(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&tu.call(t.properties,i)){const a=zy(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&vy.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Hy(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else xi(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else xi(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ru(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ny;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const l=i.get(u)||0;o=u+"-"+l,i.set(u,l+1)}}const s=im(e,a,o);s!==void 0&&n.push(s)}return n}function zy(e,t,n){const r=Zs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Pp(n):Vp(n)),r.property==="style"){let i=typeof n=="object"?n:$y(e,String(n));return e.stylePropertyNameCase==="css"&&(i=jy(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?py[r.property]||r.property:r.attribute,n]}}function $y(e,t){try{return yy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ht("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=rm+"#cannot-parse-style-attribute",i}}function om(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=Fp(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=Fp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return tu.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);xi(e)}function xi(e,t){const n=new ht("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=rm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jy(e){const t={};let n;for(n in e)tu.call(e,n)&&(t[Yy(n)]=e[n]);return t}function Yy(e){let t=e.replace(Dy,Gy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Gy(e){return"-"+e.toLowerCase()}const iu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Wy={};function au(e,t){const n=Wy,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sm(e,r,i)}function sm(e,t,n){if(Ky(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return um(e.children,t,n)}return Array.isArray(e)?um(e,t,n):""}function um(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=sm(e[i],t,n);return r.join("")}function Ky(e){return!!(e&&typeof e=="object")}const lm=document.createElement("i");function ou(e){const t="&"+e+";";lm.innerHTML=t;const n=lm.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kt(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ft(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const cm={}.hasOwnProperty;function dm(e){const t={};let n=-1;for(;++n<e.length;)qy(t,e[n]);return t}function qy(e,t){let n;for(n in t){const i=(cm.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){cm.call(i,o)||(i[o]=[]);const s=a[o];Vy(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Vy(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kt(e,0,0,r)}function fm(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _t=wn(/[A-Za-z]/),pt=wn(/[\dA-Za-z]/),Xy=wn(/[#-'*+\--9=?A-Z^-~]/);function za(e){return e!==null&&(e<32||e===127)}const su=wn(/\d/),Qy=wn(/[\dA-Fa-f]/),Zy=wn(/[!-/:-@[-`{-~]/);function Ee(e){return e!==null&&e<-2}function Be(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const $a=wn(new RegExp("\\p{P}|\\p{S}","u")),qn=wn(/\s/);function wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Nr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&pt(e.charCodeAt(n+1))&&pt(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(u){return ve(u)?(e.enter(n),s(u)):t(u)}function s(u){return ve(u)&&a++<i?(e.consume(u),s):(e.exit(n),t(u))}}const Jy={tokenize:eS};function eS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Oe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Ee(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const tS={tokenize:nS},hm={tokenize:rS};function nS(e){const t=this,n=[];let r=0,i,a,o;return s;function s(N){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,u,l)(N)}return l(N)}function u(N){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const I=t.events.length;let O=I,w;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){w=t.events[O][1].end;break}_(r);let M=I;for(;M<t.events.length;)t.events[M][1].end={...w},M++;return kt(t.events,O+1,0,t.events.slice(I)),t.events.length=M,l(N)}return s(N)}function l(N){if(r===n.length){if(!i)return h(N);if(i.currentConstruct&&i.currentConstruct.concrete)return E(N);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hm,d,c)(N)}function d(N){return i&&C(),_(r),h(N)}function c(N){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,E(N)}function h(N){return t.containerState={},e.attempt(hm,p,E)(N)}function p(N){return r++,n.push([t.currentConstruct,t.containerState]),h(N)}function E(N){if(N===null){i&&C(),_(0),e.consume(N);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),b(N)}function b(N){if(N===null){T(e.exit("chunkFlow"),!0),_(0),e.consume(N);return}return Ee(N)?(e.consume(N),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(N),b)}function T(N,I){const O=t.sliceStream(N);if(I&&O.push(null),N.previous=a,a&&(a.next=N),a=N,i.defineSkip(N.start),i.write(O),t.parser.lazy[N.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const M=t.events.length;let H=M,z,k;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(z){k=t.events[H][1].end;break}z=!0}for(_(r),w=M;w<t.events.length;)t.events[w][1].end={...k},w++;kt(t.events,H+1,0,t.events.slice(M)),t.events.length=w}}function _(N){let I=n.length;for(;I-- >N;){const O=n[I];t.containerState=O[1],O[0].exit.call(t,e)}n.length=N}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function rS(e,t,n){return Oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Dr(e){if(e===null||Be(e)||qn(e))return 1;if($a(e))return 2}function ja(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const uu={name:"attention",resolveAll:iS,tokenize:aS};function iS(e,t){let n=-1,r,i,a,o,s,u,l,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};pm(c,-u),pm(h,u),o={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ft(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Ft(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=Ft(l,ja(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ft(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=Ft(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,kt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function aS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Dr(r);let a;return o;function o(u){return a=u,e.enter("attentionSequence"),s(u)}function s(u){if(u===a)return e.consume(u),s;const l=e.exit("attentionSequence"),d=Dr(u),c=!d||d===2&&i||n.includes(u),h=!i||i===2&&d||n.includes(r);return l._open=!!(a===42?c:c&&(i||!h)),l._close=!!(a===42?h:h&&(d||!c)),t(u)}}function pm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oS={name:"autolink",tokenize:sS};function sS(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return _t(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||pt(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||pt(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||za(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),d):Xy(p)?(e.consume(p),l):n(p)}function d(p){return pt(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||pt(p))&&r++<63){const E=p===45?h:c;return e.consume(p),E}return n(p)}}const Ci={partial:!0,tokenize:uS};function uS(e,t,n){return r;function r(a){return ve(a)?Oe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Ee(a)?t(a):n(a)}}const mm={continuation:{tokenize:cS},exit:dS,name:"blockQuote",tokenize:lS};function lS(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ve(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function cS(e,t,n){const r=this;return i;function i(o){return ve(o)?Oe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(mm,t,n)(o)}}function dS(e){e.exit("blockQuote")}const gm={name:"characterEscape",tokenize:fS};function fS(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Zy(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Em={name:"characterReference",tokenize:hS};function hS(e,t,n){const r=this;let i=0,a,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=pt,d(c))}function l(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Qy,d):(e.enter("characterReferenceValue"),a=7,o=su,d(c))}function d(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===pt&&!ou(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<a?(e.consume(c),d):n(c)}}const bm={partial:!0,tokenize:mS},_m={concrete:!0,name:"codeFenced",tokenize:pS};function pS(e,t,n){const r=this,i={partial:!0,tokenize:O};let a=0,o=0,s;return u;function u(w){return l(w)}function l(w){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(w)}function d(w){return w===s?(o++,e.consume(w),d):o<3?n(w):(e.exit("codeFencedFenceSequence"),ve(w)?Oe(e,c,"whitespace")(w):c(w))}function c(w){return w===null||Ee(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(bm,b,I)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):ve(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Oe(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),h)}function p(w){return w===null||Ee(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(w))}function E(w){return w===null||Ee(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),E)}function b(w){return e.attempt(i,I,T)(w)}function T(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),_}function _(w){return a>0&&ve(w)?Oe(e,C,"linePrefix",a+1)(w):C(w)}function C(w){return w===null||Ee(w)?e.check(bm,b,I)(w):(e.enter("codeFlowValue"),N(w))}function N(w){return w===null||Ee(w)?(e.exit("codeFlowValue"),C(w)):(e.consume(w),N)}function I(w){return e.exit("codeFenced"),t(w)}function O(w,M,H){let z=0;return k;function k(K){return w.enter("lineEnding"),w.consume(K),w.exit("lineEnding"),$}function $(K){return w.enter("codeFencedFence"),ve(K)?Oe(w,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):Y(K)}function Y(K){return K===s?(w.enter("codeFencedFenceSequence"),G(K)):H(K)}function G(K){return K===s?(z++,w.consume(K),G):z>=o?(w.exit("codeFencedFenceSequence"),ve(K)?Oe(w,B,"whitespace")(K):B(K)):H(K)}function B(K){return K===null||Ee(K)?(w.exit("codeFencedFence"),M(K)):H(K)}}}function mS(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const lu={name:"codeIndented",tokenize:ES},gS={partial:!0,tokenize:bS};function ES(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Oe(e,a,"linePrefix",5)(l)}function a(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?u(l):Ee(l)?e.attempt(gS,o,u)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||Ee(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function u(l){return e.exit("codeIndented"),t(l)}}function bS(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Oe(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ee(o)?i(o):n(o)}}const _S={name:"codeText",previous:AS,resolve:TS,tokenize:xS};function TS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function AS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xS(e,t,n){let r=0,i,a;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(a=e.enter("codeTextSequence"),i=0,d(c)):Ee(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),l(c))}function l(c){return c===null||c===32||c===96||Ee(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),l)}function d(c){return c===96?(e.consume(c),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(a.type="codeTextData",l(c))}}class CS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&yi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),yi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);yi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yi(this.left,n.reverse())}}}function yi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Tm(e){const t={};let n=-1,r,i,a,o,s,u,l;const d=new CS(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yS(d,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return kt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function yS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,u=[],l={};let d,c,h=-1,p=n,E=0,b=0;const T=[b];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(b=h+1,T.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),h=T.length;h--;){const _=s.slice(T[h],T[h+1]),C=a.pop();u.push([C,C+_.length-1]),e.splice(C,2,_)}for(u.reverse(),h=-1;++h<u.length;)l[E+u[h][0]]=E+u[h][1],E+=u[h][1]-u[h][0]-1;return l}const SS={resolve:DS,tokenize:wS},NS={partial:!0,tokenize:vS};function DS(e){return Tm(e),e}function wS(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Ee(s)?e.check(NS,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function vS(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Oe(e,a,"linePrefix")}function a(o){if(o===null||Ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Am(e,t,n,r,i,a,o,s,u){const l=u||Number.POSITIVE_INFINITY;let d=0;return c;function c(_){return _===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(_),e.exit(a),h):_===null||_===32||_===41||za(_)?n(_):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(_))}function h(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===62?(e.exit("chunkString"),e.exit(s),h(_)):_===null||_===60||Ee(_)?n(_):(e.consume(_),_===92?E:p)}function E(_){return _===60||_===62||_===92?(e.consume(_),p):p(_)}function b(_){return!d&&(_===null||_===41||Be(_))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(_)):d<l&&_===40?(e.consume(_),d++,b):_===41?(e.consume(_),d--,b):_===null||_===32||_===40||za(_)?n(_):(e.consume(_),_===92?T:b)}function T(_){return _===40||_===41||_===92?(e.consume(_),b):b(_)}}function xm(e,t,n,r,i,a){const o=this;let s=0,u;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):Ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||Ee(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),u||(u=!ve(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function Cm(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,u):n(h)}function u(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),l(h))}function l(h){return h===o?(e.exit(a),u(o)):h===null?n(h):Ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Oe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||Ee(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?c:d)}function c(h){return h===o||h===92?(e.consume(h),d):d(h)}}function Si(e,t){let n;return r;function r(i){return Ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ve(i)?Oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const kS={name:"definition",tokenize:OS},IS={partial:!0,tokenize:RS};function OS(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return xm.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Be(p)?Si(e,l)(p):l(p)}function l(p){return Am(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(IS,c,c)(p)}function c(p){return ve(p)?Oe(e,h,"whitespace")(p):h(p)}function h(p){return p===null||Ee(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function RS(e,t,n){return r;function r(s){return Be(s)?Si(e,i)(s):n(s)}function i(s){return Cm(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ve(s)?Oe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ee(s)?t(s):n(s)}}const MS={name:"hardBreakEscape",tokenize:LS};function LS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const PS={name:"headingAtx",resolve:FS,tokenize:BS};function FS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function BS(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||Be(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Ee(d)?(e.exit("atxHeading"),t(d)):ve(d)?Oe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),l(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),s(d))}function l(d){return d===null||d===35||Be(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),l)}}const US=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ym=["pre","script","style","textarea"],HS={concrete:!0,name:"htmlFlow",resolveTo:jS,tokenize:YS},zS={partial:!0,tokenize:WS},$S={partial:!0,tokenize:GS};function jS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YS(e,t,n){const r=this;let i,a,o,s,u;return l;function l(y){return d(y)}function d(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),c}function c(y){return y===33?(e.consume(y),h):y===47?(e.consume(y),a=!0,b):y===63?(e.consume(y),i=3,r.interrupt?t:A):_t(y)?(e.consume(y),o=String.fromCharCode(y),T):n(y)}function h(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,E):_t(y)?(e.consume(y),i=4,r.interrupt?t:A):n(y)}function p(y){return y===45?(e.consume(y),r.interrupt?t:A):n(y)}function E(y){const se="CDATA[";return y===se.charCodeAt(s++)?(e.consume(y),s===se.length?r.interrupt?t:Y:E):n(y)}function b(y){return _t(y)?(e.consume(y),o=String.fromCharCode(y),T):n(y)}function T(y){if(y===null||y===47||y===62||Be(y)){const se=y===47,te=o.toLowerCase();return!se&&!a&&ym.includes(te)?(i=1,r.interrupt?t(y):Y(y)):US.includes(o.toLowerCase())?(i=6,se?(e.consume(y),_):r.interrupt?t(y):Y(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):a?C(y):N(y))}return y===45||pt(y)?(e.consume(y),o+=String.fromCharCode(y),T):n(y)}function _(y){return y===62?(e.consume(y),r.interrupt?t:Y):n(y)}function C(y){return ve(y)?(e.consume(y),C):k(y)}function N(y){return y===47?(e.consume(y),k):y===58||y===95||_t(y)?(e.consume(y),I):ve(y)?(e.consume(y),N):k(y)}function I(y){return y===45||y===46||y===58||y===95||pt(y)?(e.consume(y),I):O(y)}function O(y){return y===61?(e.consume(y),w):ve(y)?(e.consume(y),O):N(y)}function w(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),u=y,M):ve(y)?(e.consume(y),w):H(y)}function M(y){return y===u?(e.consume(y),u=null,z):y===null||Ee(y)?n(y):(e.consume(y),M)}function H(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||Be(y)?O(y):(e.consume(y),H)}function z(y){return y===47||y===62||ve(y)?N(y):n(y)}function k(y){return y===62?(e.consume(y),$):n(y)}function $(y){return y===null||Ee(y)?Y(y):ve(y)?(e.consume(y),$):n(y)}function Y(y){return y===45&&i===2?(e.consume(y),ae):y===60&&i===1?(e.consume(y),pe):y===62&&i===4?(e.consume(y),ee):y===63&&i===3?(e.consume(y),A):y===93&&i===5?(e.consume(y),Q):Ee(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(zS,L,G)(y)):y===null||Ee(y)?(e.exit("htmlFlowData"),G(y)):(e.consume(y),Y)}function G(y){return e.check($S,B,L)(y)}function B(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),K}function K(y){return y===null||Ee(y)?G(y):(e.enter("htmlFlowData"),Y(y))}function ae(y){return y===45?(e.consume(y),A):Y(y)}function pe(y){return y===47?(e.consume(y),o="",q):Y(y)}function q(y){if(y===62){const se=o.toLowerCase();return ym.includes(se)?(e.consume(y),ee):Y(y)}return _t(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),q):Y(y)}function Q(y){return y===93?(e.consume(y),A):Y(y)}function A(y){return y===62?(e.consume(y),ee):y===45&&i===2?(e.consume(y),A):Y(y)}function ee(y){return y===null||Ee(y)?(e.exit("htmlFlowData"),L(y)):(e.consume(y),ee)}function L(y){return e.exit("htmlFlow"),t(y)}}function GS(e,t,n){const r=this;return i;function i(o){return Ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function WS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ci,t,n)}}const KS={name:"htmlText",tokenize:qS};function qS(e,t,n){const r=this;let i,a,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),u}function u(A){return A===33?(e.consume(A),l):A===47?(e.consume(A),O):A===63?(e.consume(A),N):_t(A)?(e.consume(A),H):n(A)}function l(A){return A===45?(e.consume(A),d):A===91?(e.consume(A),a=0,E):_t(A)?(e.consume(A),C):n(A)}function d(A){return A===45?(e.consume(A),p):n(A)}function c(A){return A===null?n(A):A===45?(e.consume(A),h):Ee(A)?(o=c,pe(A)):(e.consume(A),c)}function h(A){return A===45?(e.consume(A),p):c(A)}function p(A){return A===62?ae(A):A===45?h(A):c(A)}function E(A){const ee="CDATA[";return A===ee.charCodeAt(a++)?(e.consume(A),a===ee.length?b:E):n(A)}function b(A){return A===null?n(A):A===93?(e.consume(A),T):Ee(A)?(o=b,pe(A)):(e.consume(A),b)}function T(A){return A===93?(e.consume(A),_):b(A)}function _(A){return A===62?ae(A):A===93?(e.consume(A),_):b(A)}function C(A){return A===null||A===62?ae(A):Ee(A)?(o=C,pe(A)):(e.consume(A),C)}function N(A){return A===null?n(A):A===63?(e.consume(A),I):Ee(A)?(o=N,pe(A)):(e.consume(A),N)}function I(A){return A===62?ae(A):N(A)}function O(A){return _t(A)?(e.consume(A),w):n(A)}function w(A){return A===45||pt(A)?(e.consume(A),w):M(A)}function M(A){return Ee(A)?(o=M,pe(A)):ve(A)?(e.consume(A),M):ae(A)}function H(A){return A===45||pt(A)?(e.consume(A),H):A===47||A===62||Be(A)?z(A):n(A)}function z(A){return A===47?(e.consume(A),ae):A===58||A===95||_t(A)?(e.consume(A),k):Ee(A)?(o=z,pe(A)):ve(A)?(e.consume(A),z):ae(A)}function k(A){return A===45||A===46||A===58||A===95||pt(A)?(e.consume(A),k):$(A)}function $(A){return A===61?(e.consume(A),Y):Ee(A)?(o=$,pe(A)):ve(A)?(e.consume(A),$):z(A)}function Y(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,G):Ee(A)?(o=Y,pe(A)):ve(A)?(e.consume(A),Y):(e.consume(A),B)}function G(A){return A===i?(e.consume(A),i=void 0,K):A===null?n(A):Ee(A)?(o=G,pe(A)):(e.consume(A),G)}function B(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||Be(A)?z(A):(e.consume(A),B)}function K(A){return A===47||A===62||Be(A)?z(A):n(A)}function ae(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function pe(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),q}function q(A){return ve(A)?Oe(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Q(A)}function Q(A){return e.enter("htmlTextData"),o(A)}}const cu={name:"labelEnd",resolveAll:ZS,resolveTo:JS,tokenize:eN},VS={tokenize:tN},XS={tokenize:nN},QS={tokenize:rN};function ZS(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&kt(e,0,e.length,n),e}function JS(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",u,t],["enter",l,t]],s=Ft(s,e.slice(a+1,a+r+3)),s=Ft(s,[["enter",d,t]]),s=Ft(s,ja(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ft(s,[["exit",d,t],e[o-2],e[o-1],["exit",l,t]]),s=Ft(s,e.slice(o+1)),s=Ft(s,[["exit",u,t]]),kt(e,a,e.length,s),e}function eN(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(h){return a?a._inactive?c(h):(o=r.parser.defined.includes(Yt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):n(h)}function u(h){return h===40?e.attempt(VS,d,o?d:c)(h):h===91?e.attempt(XS,d,o?l:c)(h):o?d(h):c(h)}function l(h){return e.attempt(QS,d,c)(h)}function d(h){return t(h)}function c(h){return a._balanced=!0,n(h)}}function tN(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Be(c)?Si(e,a)(c):a(c)}function a(c){return c===41?d(c):Am(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return Be(c)?Si(e,u)(c):d(c)}function s(c){return n(c)}function u(c){return c===34||c===39||c===40?Cm(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function l(c){return Be(c)?Si(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function nN(e,t,n){const r=this;return i;function i(s){return xm.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(Yt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function rN(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const iN={name:"labelStartImage",resolveAll:cu.resolveAll,tokenize:aN};function aN(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const oN={name:"labelStartLink",resolveAll:cu.resolveAll,tokenize:sN};function sN(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const du={name:"lineEnding",tokenize:uN};function uN(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Oe(e,t,"linePrefix")}}const Ya={name:"thematicBreak",tokenize:lN};function lN(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||Ee(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),ve(l)?Oe(e,s,"whitespace")(l):s(l))}}const yt={continuation:{tokenize:hN},exit:mN,name:"list",tokenize:fN},cN={partial:!0,tokenize:gN},dN={partial:!0,tokenize:pN};function fN(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const E=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:su(p)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ya,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return su(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ci,r.interrupt?n:d,e.attempt(cN,h,c))}function d(p){return r.containerState.initialBlankLine=!0,a++,h(p)}function c(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function hN(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ci,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Oe(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ve(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(dN,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Oe(e,e.attempt(yt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function pN(e,t,n){const r=this;return Oe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function mN(e){e.exit(this.containerState.type)}function gN(e,t,n){const r=this;return Oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ve(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Sm={name:"setextUnderline",resolveTo:EN,tokenize:bN};function EN(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function bN(e,t,n){const r=this;let i;return a;function a(l){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ve(l)?Oe(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||Ee(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const _N={tokenize:TN};function TN(e){const t=this,n=e.attempt(Ci,r,e.attempt(this.parser.constructs.flowInitial,i,Oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(SS,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const AN={resolveAll:Dm()},xN=Nm("string"),CN=Nm("text");function Nm(e){return{resolveAll:Dm(e==="text"?yN:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return l(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return l(d)?(n.exit("data"),a(d)):(n.consume(d),u)}function l(d){if(d===null)return!0;const c=i[d];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Dm(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function yN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,u;for(;a--;){const l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)u=!0,s++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const l={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const SN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:kS},disable:{null:[]},document:{42:yt,43:yt,45:yt,48:yt,49:yt,50:yt,51:yt,52:yt,53:yt,54:yt,55:yt,56:yt,57:yt,62:mm},flow:{35:PS,42:Ya,45:[Sm,Ya],60:HS,61:Sm,95:Ya,96:_m,126:_m},flowInitial:{[-2]:lu,[-1]:lu,32:lu},insideSpan:{null:[uu,AN]},string:{38:Em,92:gm},text:{[-5]:du,[-4]:du,[-3]:du,33:iN,38:Em,42:uu,60:[oS,KS],91:oN,92:[MS,gm],93:cu,95:uu,96:_S}},Symbol.toStringTag,{value:"Module"}));function NN(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const u={attempt:M(O),check:M(w),consume:C,enter:N,exit:I,interrupt:M(w,{interrupt:!0})},l={code:null,containerState:{},defineSkip:b,events:[],now:E,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let d=t.tokenize.call(l,u);return t.resolveAll&&a.push(t),l;function c($){return o=Ft(o,$),T(),o[o.length-1]!==null?[]:(H(t,0),l.events=ja(a,l.events,l),l.events)}function h($,Y){return wN(p($),Y)}function p($){return DN(o,$)}function E(){const{_bufferIndex:$,_index:Y,line:G,column:B,offset:K}=r;return{_bufferIndex:$,_index:Y,line:G,column:B,offset:K}}function b($){i[$.line]=$.column,k()}function T(){let $;for(;r._index<o.length;){const Y=o[r._index];if(typeof Y=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<Y.length;)_(Y.charCodeAt(r._bufferIndex));else _(Y)}}function _($){d=d($)}function C($){Ee($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,k()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=$}function N($,Y){const G=Y||{};return G.type=$,G.start=E(),l.events.push(["enter",G,l]),s.push(G),G}function I($){const Y=s.pop();return Y.end=E(),l.events.push(["exit",Y,l]),Y}function O($,Y){H($,Y.from)}function w($,Y){Y.restore()}function M($,Y){return G;function G(B,K,ae){let pe,q,Q,A;return Array.isArray(B)?L(B):"tokenize"in B?L([B]):ee(B);function ee(ue){return de;function de(be){const Re=be!==null&&ue[be],Ge=be!==null&&ue.null,Ht=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Ge)?Ge:Ge?[Ge]:[]];return L(Ht)(be)}}function L(ue){return pe=ue,q=0,ue.length===0?ae:y(ue[q])}function y(ue){return de;function de(be){return A=z(),Q=ue,ue.partial||(l.currentConstruct=ue),ue.name&&l.parser.constructs.disable.null.includes(ue.name)?te():ue.tokenize.call(Y?Object.assign(Object.create(l),Y):l,u,se,te)(be)}}function se(ue){return $(Q,A),K}function te(ue){return A.restore(),++q<pe.length?y(pe[q]):ae}}}function H($,Y){$.resolveAll&&!a.includes($)&&a.push($),$.resolve&&kt(l.events,Y,l.events.length-Y,$.resolve(l.events.slice(Y),l)),$.resolveTo&&(l.events=$.resolveTo(l.events,l))}function z(){const $=E(),Y=l.previous,G=l.currentConstruct,B=l.events.length,K=Array.from(s);return{from:B,restore:ae};function ae(){r=$,l.previous=Y,l.currentConstruct=G,l.events.length=B,s=K,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function DN(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function wN(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
133
183
  `;break}case-3:{o=`\r
134
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function mN(e){const r={constructs:im([dN,...(e||{}).extensions||[]]),content:i(Uy),defined:[],document:i(zy),flow:i(aN),lazy:{},string:i(uN),text:i(lN)};return r;function i(a){return o;function o(s){return fN(r,a,s)}}}function gN(e){for(;!hm(e););return e}const Am=/[\0\t\n\r]/g;function EN(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const u=[];let l,d,c,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),c=0,t="",n&&(a.charCodeAt(0)===65279&&c++,n=void 0);c<a.length;){if(Am.lastIndex=c,l=Am.exec(a),h=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(h),!l){t=a.slice(c);break}if(p===10&&c===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<h&&(u.push(a.slice(c,h)),e+=h-c),p){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const bN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _N(e){return e.replace(bN,TN)}function TN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return am(n.slice(a?2:1),a?16:10)}return ou(n)||e}const Cm={}.hasOwnProperty;function AN(e,t,n){return typeof t!="string"&&(n=t,t=void 0),CN(n)(gN(mN(n).document().write(EN()(e,t,!0))))}function CN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Yr),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(jr),blockQuote:a(Ge),characterEscape:z,characterReference:z,codeFenced:a(Ut),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ut,o),codeText:a(rr,o),codeTextData:z,data:z,codeFlowValue:z,definition:a(un),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Wi),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(bn,o),htmlFlowData:z,htmlText:a(bn,o),htmlTextData:z,image:a(_n),label:o,link:a(Yr),listItem:a(xl),listItemValue:h,listOrdered:a(Ki,c),listUnordered:a(Ki),paragraph:a(yl),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(jr),strong:a(So),thematicBreak:a(No)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:Re,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ue,characterReference:de,codeFenced:u(T),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:I,codeIndented:u(_),codeText:u(K),codeTextData:I,data:I,definition:u(),definitionDestinationString:k,definitionLabelString:x,definitionTitleString:N,emphasis:u(),hardBreakEscape:u(Y),hardBreakTrailing:u(Y),htmlFlow:u(G),htmlFlowData:I,htmlText:u(B),htmlTextData:I,image:u(pe),label:Q,labelText:q,lineEnding:$,link:u(ie),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:se,resourceDestinationString:A,resourceTitleString:ee,resource:L,setextHeading:u(H),setextHeadingLineSequence:M,setextHeadingText:w,strong:u(),thematicBreak:u()}};xm(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let J={type:"root",children:[]};const _e={stack:[J],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:d,data:n},Ie=[];let Le=-1;for(;++Le<F.length;)if(F[Le][1].type==="listOrdered"||F[Le][1].type==="listUnordered")if(F[Le][0]==="enter")Ie.push(Le);else{const kt=Ie.pop();Le=i(F,kt,Le)}for(Le=-1;++Le<F.length;){const kt=t[F[Le][0]];Cm.call(kt,F[Le][1].type)&&kt[F[Le][1].type].call(Object.assign({sliceSerialize:F[Le][2].sliceSerialize},_e),F[Le][1])}if(_e.tokenStack.length>0){const kt=_e.tokenStack[_e.tokenStack.length-1];(kt[1]||ym).call(_e,void 0,kt[0])}for(J.position={start:vn(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:vn(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)J=t.transforms[Le](J)||J;return J}function i(F,J,_e){let Ie=J-1,Le=-1,kt=!1,An,Gt,Pn,ir;for(;++Ie<=_e;){const At=F[Ie];switch(At[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{At[0]==="enter"?Le++:Le--,ir=void 0;break}case"lineEndingBlank":{At[0]==="enter"&&(An&&!ir&&!Le&&!Pn&&(Pn=Ie),ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ir=void 0}if(!Le&&At[0]==="enter"&&At[1].type==="listItemPrefix"||Le===-1&&At[0]==="exit"&&(At[1].type==="listUnordered"||At[1].type==="listOrdered")){if(An){let Fn=Ie;for(Gt=void 0;Fn--;){const Ot=F[Fn];if(Ot[1].type==="lineEnding"||Ot[1].type==="lineEndingBlank"){if(Ot[0]==="exit")continue;Gt&&(F[Gt][1].type="lineEndingBlank",kt=!0),Ot[1].type="lineEnding",Gt=Fn}else if(!(Ot[1].type==="linePrefix"||Ot[1].type==="blockQuotePrefix"||Ot[1].type==="blockQuotePrefixWhitespace"||Ot[1].type==="blockQuoteMarker"||Ot[1].type==="listItemIndent"))break}Pn&&(!Gt||Pn<Gt)&&(An._spread=!0),An.end=Object.assign({},Gt?F[Gt][1].start:At[1].end),F.splice(Gt||Ie,0,["exit",An,At[2]]),Ie++,_e++}if(At[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},At[1].start),end:void 0};An=Fn,F.splice(Ie,0,["enter",Fn,At[2]]),Ie++,_e++,Pn=void 0,ir=!0}}}return F[J][1]._spread=kt,_e}function a(F,J){return _e;function _e(Ie){s.call(this,F(Ie),Ie),J&&J.call(this,Ie)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(F,J,_e){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([J,_e||void 0]),F.position={start:vn(J.start),end:void 0}}function u(F){return J;function J(_e){F&&F.call(this,_e),l.call(this,_e)}}function l(F,J){const _e=this.stack.pop(),Ie=this.tokenStack.pop();if(Ie)Ie[0].type!==F.type&&(J?J.call(this,F,Ie[0]):(Ie[1]||ym).call(this,F,Ie[0]));else throw new Error("Cannot close `"+F.type+"` ("+bi({start:F.start,end:F.end})+"): it’s not open");_e.position.end=vn(F.end)}function d(){return au(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(F){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),J=this.stack[this.stack.length-1];J.lang=F}function g(){const F=this.resume(),J=this.stack[this.stack.length-1];J.meta=F}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/(\r?\n|\r)$/g,"")}function x(F){const J=this.resume(),_e=this.stack[this.stack.length-1];_e.label=J,_e.identifier=jt(this.sliceSerialize(F)).toLowerCase()}function N(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function k(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function O(F){const J=this.stack[this.stack.length-1];if(!J.depth){const _e=this.sliceSerialize(F).length;J.depth=_e}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(F){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function z(F){const _e=this.stack[this.stack.length-1].children;let Ie=_e[_e.length-1];(!Ie||Ie.type!=="text")&&(Ie=Tn(),Ie.position={start:vn(F.start),end:void 0},_e.push(Ie)),this.stack.push(Ie)}function I(F){const J=this.stack.pop();J.value+=this.sliceSerialize(F),J.position.end=vn(F.end)}function $(F){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _e=J.children[J.children.length-1];_e.position.end=vn(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(z.call(this,F),I.call(this,F))}function Y(){this.data.atHardBreak=!0}function G(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function B(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function K(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function ie(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function pe(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function q(F){const J=this.sliceSerialize(F),_e=this.stack[this.stack.length-2];_e.label=_N(J),_e.identifier=jt(J).toLowerCase()}function Q(){const F=this.stack[this.stack.length-1],J=this.resume(),_e=this.stack[this.stack.length-1];if(this.data.inReference=!0,_e.type==="link"){const Ie=F.children;_e.children=Ie}else _e.alt=J}function A(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function ee(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function L(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(F){const J=this.resume(),_e=this.stack[this.stack.length-1];_e.label=J,_e.identifier=jt(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function te(F){this.data.characterReferenceType=F.type}function ue(F){const J=this.sliceSerialize(F),_e=this.data.characterReferenceType;let Ie;_e?(Ie=am(J,_e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ie=ou(J);const Le=this.stack[this.stack.length-1];Le.value+=Ie}function de(F){const J=this.stack.pop();J.position.end=vn(F.end)}function be(F){I.call(this,F);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(F)}function Re(F){I.call(this,F);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(F)}function Ge(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function rr(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wi(){return{type:"emphasis",children:[]}}function jr(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function bn(){return{type:"html",value:""}}function _n(){return{type:"image",title:null,url:"",alt:null}}function Yr(){return{type:"link",title:null,url:"",children:[]}}function Ki(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function xl(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function yl(){return{type:"paragraph",children:[]}}function So(){return{type:"strong",children:[]}}function Tn(){return{type:"text",value:""}}function No(){return{type:"thematicBreak"}}}function vn(e){return{line:e.line,column:e.column,offset:e.offset}}function xm(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?xm(e,r):xN(e,r)}}function xN(e,t){let n;for(n in t)if(Cm.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ym(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bi({start:t.start,end:t.end})+") is still open")}function yN(e){const t=this;t.parser=n;function n(r){return AN(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function SN(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function NN(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
135
- `}]}function DN(e,t){const n=t.value?t.value+`
136
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function wN(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vN(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IN(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Sr(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function kN(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ON(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sm(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function RN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sm(e,t);const i={src:Sr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function MN(e,t){const n={src:Sr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function LN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function PN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sm(e,t);const i={href:Sr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function FN(e,t){const n={href:Sr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BN(e,t,n){const r=e.all(t),i=n?UN(n):Nm(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
184
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function vN(e){const r={constructs:dm([SN,...(e||{}).extensions||[]]),content:i(Jy),defined:[],document:i(tS),flow:i(_N),lazy:{},string:i(xN),text:i(CN)};return r;function i(a){return o;function o(s){return NN(r,a,s)}}}function kN(e){for(;!Tm(e););return e}const wm=/[\0\t\n\r]/g;function IN(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const u=[];let l,d,c,h,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),c=0,t="",n&&(a.charCodeAt(0)===65279&&c++,n=void 0);c<a.length;){if(wm.lastIndex=c,l=wm.exec(a),h=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(h),!l){t=a.slice(c);break}if(p===10&&c===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<h&&(u.push(a.slice(c,h)),e+=h-c),p){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return s&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ON=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RN(e){return e.replace(ON,MN)}function MN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return fm(n.slice(a?2:1),a?16:10)}return ou(n)||e}const vm={}.hasOwnProperty;function LN(e,t,n){return typeof t!="string"&&(n=t,t=void 0),PN(n)(kN(vN(n).document().write(IN()(e,t,!0))))}function PN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Gr),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(Yr),blockQuote:a(Ge),characterEscape:z,characterReference:z,codeFenced:a(Ht),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ht,o),codeText:a(rr,o),codeTextData:z,data:z,codeFlowValue:z,definition:a(ln),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Vi),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(bn,o),htmlFlowData:z,htmlText:a(bn,o),htmlTextData:z,image:a(_n),label:o,link:a(Gr),listItem:a(Cl),listItemValue:h,listOrdered:a(Xi,c),listUnordered:a(Xi),paragraph:a(yl),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Yr),strong:a(No),thematicBreak:a(Do)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:Re,autolinkProtocol:be,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ue,characterReference:de,codeFenced:u(T),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:E,codeFlowValue:k,codeIndented:u(_),codeText:u(K),codeTextData:k,data:k,definition:u(),definitionDestinationString:I,definitionLabelString:C,definitionTitleString:N,emphasis:u(),hardBreakEscape:u(Y),hardBreakTrailing:u(Y),htmlFlow:u(G),htmlFlowData:k,htmlText:u(B),htmlTextData:k,image:u(pe),label:Q,labelText:q,lineEnding:$,link:u(ae),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:se,resourceDestinationString:A,resourceTitleString:ee,resource:L,setextHeading:u(H),setextHeadingLineSequence:M,setextHeadingText:w,strong:u(),thematicBreak:u()}};km(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let J={type:"root",children:[]};const Te={stack:[J],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:d,data:n},ke=[];let Le=-1;for(;++Le<F.length;)if(F[Le][1].type==="listOrdered"||F[Le][1].type==="listUnordered")if(F[Le][0]==="enter")ke.push(Le);else{const Ot=ke.pop();Le=i(F,Ot,Le)}for(Le=-1;++Le<F.length;){const Ot=t[F[Le][0]];vm.call(Ot,F[Le][1].type)&&Ot[F[Le][1].type].call(Object.assign({sliceSerialize:F[Le][2].sliceSerialize},Te),F[Le][1])}if(Te.tokenStack.length>0){const Ot=Te.tokenStack[Te.tokenStack.length-1];(Ot[1]||Im).call(Te,void 0,Ot[0])}for(J.position={start:vn(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:vn(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},Le=-1;++Le<t.transforms.length;)J=t.transforms[Le](J)||J;return J}function i(F,J,Te){let ke=J-1,Le=-1,Ot=!1,An,Wt,Pn,ir;for(;++ke<=Te;){const xt=F[ke];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?Le++:Le--,ir=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(An&&!ir&&!Le&&!Pn&&(Pn=ke),ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ir=void 0}if(!Le&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||Le===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(An){let Fn=ke;for(Wt=void 0;Fn--;){const Rt=F[Fn];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;Wt&&(F[Wt][1].type="lineEndingBlank",Ot=!0),Rt[1].type="lineEnding",Wt=Fn}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}Pn&&(!Wt||Pn<Wt)&&(An._spread=!0),An.end=Object.assign({},Wt?F[Wt][1].start:xt[1].end),F.splice(Wt||ke,0,["exit",An,xt[2]]),ke++,Te++}if(xt[1].type==="listItemPrefix"){const Fn={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};An=Fn,F.splice(ke,0,["enter",Fn,xt[2]]),ke++,Te++,Pn=void 0,ir=!0}}}return F[J][1]._spread=Ot,Te}function a(F,J){return Te;function Te(ke){s.call(this,F(ke),ke),J&&J.call(this,ke)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(F,J,Te){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([J,Te||void 0]),F.position={start:vn(J.start),end:void 0}}function u(F){return J;function J(Te){F&&F.call(this,Te),l.call(this,Te)}}function l(F,J){const Te=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==F.type&&(J?J.call(this,F,ke[0]):(ke[1]||Im).call(this,F,ke[0]));else throw new Error("Cannot close `"+F.type+"` ("+Ai({start:F.start,end:F.end})+"): it’s not open");Te.position.end=vn(F.end)}function d(){return au(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(F){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),J=this.stack[this.stack.length-1];J.lang=F}function E(){const F=this.resume(),J=this.stack[this.stack.length-1];J.meta=F}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/(\r?\n|\r)$/g,"")}function C(F){const J=this.resume(),Te=this.stack[this.stack.length-1];Te.label=J,Te.identifier=Yt(this.sliceSerialize(F)).toLowerCase()}function N(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function I(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function O(F){const J=this.stack[this.stack.length-1];if(!J.depth){const Te=this.sliceSerialize(F).length;J.depth=Te}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function M(F){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function z(F){const Te=this.stack[this.stack.length-1].children;let ke=Te[Te.length-1];(!ke||ke.type!=="text")&&(ke=Tn(),ke.position={start:vn(F.start),end:void 0},Te.push(ke)),this.stack.push(ke)}function k(F){const J=this.stack.pop();J.value+=this.sliceSerialize(F),J.position.end=vn(F.end)}function $(F){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=J.children[J.children.length-1];Te.position.end=vn(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(z.call(this,F),k.call(this,F))}function Y(){this.data.atHardBreak=!0}function G(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function B(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function K(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function ae(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function pe(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function q(F){const J=this.sliceSerialize(F),Te=this.stack[this.stack.length-2];Te.label=RN(J),Te.identifier=Yt(J).toLowerCase()}function Q(){const F=this.stack[this.stack.length-1],J=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const ke=F.children;Te.children=ke}else Te.alt=J}function A(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function ee(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function L(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(F){const J=this.resume(),Te=this.stack[this.stack.length-1];Te.label=J,Te.identifier=Yt(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function te(F){this.data.characterReferenceType=F.type}function ue(F){const J=this.sliceSerialize(F),Te=this.data.characterReferenceType;let ke;Te?(ke=fm(J,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=ou(J);const Le=this.stack[this.stack.length-1];Le.value+=ke}function de(F){const J=this.stack.pop();J.position.end=vn(F.end)}function be(F){k.call(this,F);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(F)}function Re(F){k.call(this,F);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(F)}function Ge(){return{type:"blockquote",children:[]}}function Ht(){return{type:"code",lang:null,meta:null,value:""}}function rr(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Vi(){return{type:"emphasis",children:[]}}function Yr(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function bn(){return{type:"html",value:""}}function _n(){return{type:"image",title:null,url:"",alt:null}}function Gr(){return{type:"link",title:null,url:"",children:[]}}function Xi(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Cl(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function yl(){return{type:"paragraph",children:[]}}function No(){return{type:"strong",children:[]}}function Tn(){return{type:"text",value:""}}function Do(){return{type:"thematicBreak"}}}function vn(e){return{line:e.line,column:e.column,offset:e.offset}}function km(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?km(e,r):FN(e,r)}}function FN(e,t){let n;for(n in t)if(vm.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Im(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ai({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ai({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ai({start:t.start,end:t.end})+") is still open")}function BN(e){const t=this;t.parser=n;function n(r){return LN(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function UN(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function HN(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
185
+ `}]}function zN(e,t){const n=t.value?t.value+`
186
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function $N(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jN(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YN(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Nr(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function GN(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WN(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Om(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function KN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Om(e,t);const i={src:Nr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function qN(e,t){const n={src:Nr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function VN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function XN(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Om(e,t);const i={href:Nr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function QN(e,t){const n={href:Nr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZN(e,t,n){const r=e.all(t),i=n?JN(n):Rm(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
137
187
  `}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
138
- `});const l={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function UN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Nm(n[r])}return t}function Nm(e){const t=e.spread;return t??e.children.length>1}function HN(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function zN(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $N(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function jN(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YN(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=tn(t.children[1]),u=Ua(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function GN(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const l=[];for(;++u<s;){const c=t.children[u],h={},p=o?o[u]:void 0;p&&(h.align=p);let g={type:"element",tagName:a,properties:h,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),l.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function WN(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Dm=9,wm=32;function KN(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(vm(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(vm(t.slice(i),i>0,!1)),a.join("")}function vm(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Dm||a===wm;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Dm||a===wm;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function qN(e,t){const n={type:"text",value:KN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function VN(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const XN={blockquote:SN,break:NN,code:DN,delete:wN,emphasis:vN,footnoteReference:IN,heading:kN,html:ON,imageReference:RN,image:MN,inlineCode:LN,linkReference:PN,link:FN,listItem:BN,list:HN,paragraph:zN,root:$N,strong:jN,table:YN,tableCell:WN,tableRow:GN,text:qN,thematicBreak:VN,toml:Ya,yaml:Ya,definition:Ya,footnoteDefinition:Ya};function Ya(){}const Im=-1,Ga=0,xi=1,Wa=2,fu=3,hu=4,pu=5,mu=6,km=7,Om=8,Rm=typeof self=="object"?self:globalThis,QN=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Ga:case Im:return n(o,i);case xi:{const s=n([],i);for(const u of o)s.push(r(u));return s}case Wa:{const s=n({},i);for(const[u,l]of o)s[r(u)]=r(l);return s}case fu:return n(new Date(o),i);case hu:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case pu:{const s=n(new Map,i);for(const[u,l]of o)s.set(r(u),r(l));return s}case mu:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case km:{const{name:s,message:u}=o;return n(new Rm[s](u),i)}case Om:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Rm[a](o),i)};return r},Mm=e=>QN(new Map,e)(0),Dr="",{toString:ZN}={},{keys:JN}=Object,yi=e=>{const t=typeof e;if(t!=="object"||!e)return[Ga,t];const n=ZN.call(e).slice(8,-1);switch(n){case"Array":return[xi,Dr];case"Object":return[Wa,Dr];case"Date":return[fu,Dr];case"RegExp":return[hu,Dr];case"Map":return[pu,Dr];case"Set":return[mu,Dr];case"DataView":return[xi,n]}return n.includes("Array")?[xi,n]:n.includes("Error")?[km,n]:[Wa,n]},Ka=([e,t])=>e===Ga&&(t==="function"||t==="symbol"),eD=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},a=o=>{if(n.has(o))return n.get(o);let[s,u]=yi(o);switch(s){case Ga:{let d=o;switch(u){case"bigint":s=Om,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([Im],o)}return i([s,d],o)}case xi:{if(u){let h=o;return u==="DataView"?h=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(o)),i([u,[...h]],o)}const d=[],c=i([s,d],o);for(const h of o)d.push(a(h));return c}case Wa:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],c=i([s,d],o);for(const h of JN(o))(e||!Ka(yi(o[h])))&&d.push([a(h),a(o[h])]);return c}case fu:return i([s,o.toISOString()],o);case hu:{const{source:d,flags:c}=o;return i([s,{source:d,flags:c}],o)}case pu:{const d=[],c=i([s,d],o);for(const[h,p]of o)(e||!(Ka(yi(h))||Ka(yi(p))))&&d.push([a(h),a(p)]);return c}case mu:{const d=[],c=i([s,d],o);for(const h of o)(e||!Ka(yi(h)))&&d.push(a(h));return c}}const{message:l}=o;return i([s,{name:u,message:l}],o)};return a},Lm=(e,{json:t,lossy:n}={})=>{const r=[];return eD(!(t||n),!!t,new Map,r)(e),r},Vn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mm(Lm(e,t)):structuredClone(e):(e,t)=>Mm(Lm(e,t));function tD(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function rD(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tD,r=e.options.footnoteBackLabel||nD,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const d=e.all(l),c=String(l.identifier).toUpperCase(),h=Sr(c.toLowerCase());let p=0;const g=[],b=e.footnoteCounts.get(c);for(;b!==void 0&&++p<=b;){g.length>0&&g.push({type:"text",value:" "});let x=typeof n=="string"?n:n(u,p);typeof x=="string"&&(x={type:"text",value:x}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const x=T.children[T.children.length-1];x&&x.type==="text"?x.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else d.push(...g);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(l,_),s.push(_)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
188
+ `});const l={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function JN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Rm(n[r])}return t}function Rm(e){const t=e.spread;return t??e.children.length>1}function eD(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function tD(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nD(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function rD(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iD(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=nn(t.children[1]),u=Ha(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function aD(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const l=[];for(;++u<s;){const c=t.children[u],h={},p=o?o[u]:void 0;p&&(h.align=p);let E={type:"element",tagName:a,properties:h,children:[]};c&&(E.children=e.all(c),e.patch(c,E),E=e.applyData(c,E)),l.push(E)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function oD(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Mm=9,Lm=32;function sD(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(Pm(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Pm(t.slice(i),i>0,!1)),a.join("")}function Pm(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Mm||a===Lm;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Mm||a===Lm;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function uD(e,t){const n={type:"text",value:sD(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function lD(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const cD={blockquote:UN,break:HN,code:zN,delete:$N,emphasis:jN,footnoteReference:YN,heading:GN,html:WN,imageReference:KN,image:qN,inlineCode:VN,linkReference:XN,link:QN,listItem:ZN,list:eD,paragraph:tD,root:nD,strong:rD,table:iD,tableCell:oD,tableRow:aD,text:uD,thematicBreak:lD,toml:Ga,yaml:Ga,definition:Ga,footnoteDefinition:Ga};function Ga(){}const Fm=-1,Wa=0,Ni=1,Ka=2,fu=3,hu=4,pu=5,mu=6,Bm=7,Um=8,Hm=typeof self=="object"?self:globalThis,dD=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Wa:case Fm:return n(o,i);case Ni:{const s=n([],i);for(const u of o)s.push(r(u));return s}case Ka:{const s=n({},i);for(const[u,l]of o)s[r(u)]=r(l);return s}case fu:return n(new Date(o),i);case hu:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case pu:{const s=n(new Map,i);for(const[u,l]of o)s.set(r(u),r(l));return s}case mu:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case Bm:{const{name:s,message:u}=o;return n(new Hm[s](u),i)}case Um:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Hm[a](o),i)};return r},zm=e=>dD(new Map,e)(0),wr="",{toString:fD}={},{keys:hD}=Object,Di=e=>{const t=typeof e;if(t!=="object"||!e)return[Wa,t];const n=fD.call(e).slice(8,-1);switch(n){case"Array":return[Ni,wr];case"Object":return[Ka,wr];case"Date":return[fu,wr];case"RegExp":return[hu,wr];case"Map":return[pu,wr];case"Set":return[mu,wr];case"DataView":return[Ni,n]}return n.includes("Array")?[Ni,n]:n.includes("Error")?[Bm,n]:[Ka,n]},qa=([e,t])=>e===Wa&&(t==="function"||t==="symbol"),pD=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},a=o=>{if(n.has(o))return n.get(o);let[s,u]=Di(o);switch(s){case Wa:{let d=o;switch(u){case"bigint":s=Um,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([Fm],o)}return i([s,d],o)}case Ni:{if(u){let h=o;return u==="DataView"?h=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(o)),i([u,[...h]],o)}const d=[],c=i([s,d],o);for(const h of o)d.push(a(h));return c}case Ka:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],c=i([s,d],o);for(const h of hD(o))(e||!qa(Di(o[h])))&&d.push([a(h),a(o[h])]);return c}case fu:return i([s,o.toISOString()],o);case hu:{const{source:d,flags:c}=o;return i([s,{source:d,flags:c}],o)}case pu:{const d=[],c=i([s,d],o);for(const[h,p]of o)(e||!(qa(Di(h))||qa(Di(p))))&&d.push([a(h),a(p)]);return c}case mu:{const d=[],c=i([s,d],o);for(const h of o)(e||!qa(Di(h)))&&d.push(a(h));return c}}const{message:l}=o;return i([s,{name:u,message:l}],o)};return a},$m=(e,{json:t,lossy:n}={})=>{const r=[];return pD(!(t||n),!!t,new Map,r)(e),r},Vn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zm($m(e,t)):structuredClone(e):(e,t)=>zm($m(e,t));function mD(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ED(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mD,r=e.options.footnoteBackLabel||gD,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[u]);if(!l)continue;const d=e.all(l),c=String(l.identifier).toUpperCase(),h=Nr(c.toLowerCase());let p=0;const E=[],b=e.footnoteCounts.get(c);for(;b!==void 0&&++p<=b;){E.length>0&&E.push({type:"text",value:" "});let C=typeof n=="string"?n:n(u,p);typeof C=="string"&&(C={type:"text",value:C}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const C=T.children[T.children.length-1];C&&C.type==="text"?C.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...E)}else d.push(...E);const _={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(l,_),s.push(_)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
139
189
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
140
- `}]}}const Si=function(e){if(e==null)return sD;if(typeof e=="function")return qa(e);if(typeof e=="object")return Array.isArray(e)?iD(e):aD(e);if(typeof e=="string")return oD(e);throw new Error("Expected function, string, or object as test")};function iD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Si(e[n]);return qa(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function aD(e){const t=e;return qa(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function oD(e){return qa(t);function t(n){return n&&n.type===e}}function qa(e){return t;function t(n,r,i){return!!(uD(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function sD(){return!0}function uD(e){return e!==null&&typeof e=="object"&&"type"in e}function HP(e){return e}const Pm=[],lD=!0,gu=!1,Va="skip";function Fm(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Si(i),o=r?-1:1;s(e,void 0,[])();function s(u,l,d){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Pm,g,b,T;if((!t||a(u,l,d[d.length-1]||void 0))&&(p=cD(n(u,d)),p[0]===gu))return p;if("children"in u&&u.children){const _=u;if(_.children&&p[0]!==Va)for(b=(r?_.children.length:-1)+o,T=d.concat(_);b>-1&&b<_.children.length;){const x=_.children[b];if(g=s(x,b,T)(),g[0]===gu)return g;b=typeof g[1]=="number"?g[1]:b+o}}return p}}}function cD(e){return Array.isArray(e)?e:typeof e=="number"?[lD,e]:e==null?Pm:[e]}function Xn(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Fm(e,a,s,i);function s(u,l){const d=l[l.length-1],c=d?d.children.indexOf(u):void 0;return o(u,c,d)}}const Eu={}.hasOwnProperty,dD={};function fD(e,t){const n=t||dD,r=new Map,i=new Map,a=new Map,o={...XN,...n.handlers},s={all:l,applyData:pD,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:u,options:n,patch:hD,wrap:gD};return Xn(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,h=String(d.identifier).toUpperCase();c.has(h)||c.set(h,d)}}),s;function u(d,c){const h=d.type,p=s.handlers[h];if(Eu.call(s.handlers,h)&&p)return p(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in d){const{children:b,...T}=d,_=Vn(T);return _.children=s.all(d),_}return Vn(d)}return(s.options.unknownHandler||mD)(s,d,c)}function l(d){const c=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const g=s.one(h[p],d);if(g){if(p&&h[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Bm(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=Bm(b.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function hD(e,t){e.position&&(t.position=dy(e))}function pD(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Vn(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function mD(e,t){const n=t.data||{},r="value"in t&&!(Eu.call(n,"hProperties")||Eu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gD(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
190
+ `}]}}const wi=function(e){if(e==null)return AD;if(typeof e=="function")return Va(e);if(typeof e=="object")return Array.isArray(e)?bD(e):_D(e);if(typeof e=="string")return TD(e);throw new Error("Expected function, string, or object as test")};function bD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wi(e[n]);return Va(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function _D(e){const t=e;return Va(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function TD(e){return Va(t);function t(n){return n&&n.type===e}}function Va(e){return t;function t(n,r,i){return!!(xD(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function AD(){return!0}function xD(e){return e!==null&&typeof e=="object"&&"type"in e}function cF(e){return e}const jm=[],CD=!0,gu=!1,Xa="skip";function Ym(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=wi(i),o=r?-1:1;s(e,void 0,[])();function s(u,l,d){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=jm,E,b,T;if((!t||a(u,l,d[d.length-1]||void 0))&&(p=yD(n(u,d)),p[0]===gu))return p;if("children"in u&&u.children){const _=u;if(_.children&&p[0]!==Xa)for(b=(r?_.children.length:-1)+o,T=d.concat(_);b>-1&&b<_.children.length;){const C=_.children[b];if(E=s(C,b,T)(),E[0]===gu)return E;b=typeof E[1]=="number"?E[1]:b+o}}return p}}}function yD(e){return Array.isArray(e)?e:typeof e=="number"?[CD,e]:e==null?jm:[e]}function Xn(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Ym(e,a,s,i);function s(u,l){const d=l[l.length-1],c=d?d.children.indexOf(u):void 0;return o(u,c,d)}}const Eu={}.hasOwnProperty,SD={};function ND(e,t){const n=t||SD,r=new Map,i=new Map,a=new Map,o={...cD,...n.handlers},s={all:l,applyData:wD,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:u,options:n,patch:DD,wrap:kD};return Xn(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,h=String(d.identifier).toUpperCase();c.has(h)||c.set(h,d)}}),s;function u(d,c){const h=d.type,p=s.handlers[h];if(Eu.call(s.handlers,h)&&p)return p(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in d){const{children:b,...T}=d,_=Vn(T);return _.children=s.all(d),_}return Vn(d)}return(s.options.unknownHandler||vD)(s,d,c)}function l(d){const c=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const E=s.one(h[p],d);if(E){if(p&&h[p-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Gm(E.value)),!Array.isArray(E)&&E.type==="element")){const b=E.children[0];b&&b.type==="text"&&(b.value=Gm(b.value))}Array.isArray(E)?c.push(...E):c.push(E)}}}return c}}function DD(e,t){e.position&&(t.position=Sy(e))}function wD(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Vn(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function vD(e,t){const n=t.data||{},r="value"in t&&!(Eu.call(n,"hProperties")||Eu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kD(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
141
191
  `});++r<e.length;)r&&n.push({type:"text",value:`
142
192
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
143
- `}),n}function Bm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Um(e,t){const n=fD(e,t),r=n.one(e,void 0),i=rD(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
144
- `},i),a}function ED(e,t){return e&&"run"in e?async function(n,r){const i=Um(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Um(n,{file:r,...e||t})}}function Hm(e){if(e)throw e}var bu,zm;function bD(){if(zm)return bu;zm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),c=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!c)return!1;var h;for(h in l);return typeof h>"u"||e.call(l,h)},o=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},s=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return bu=function u(){var l,d,c,h,p,g,b=arguments[0],T=1,_=arguments.length,x=!1;for(typeof b=="boolean"&&(x=b,b=arguments[1]||{},T=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});T<_;++T)if(l=arguments[T],l!=null)for(d in l)c=s(b,d),h=s(l,d),b!==h&&(x&&h&&(a(h)||(p=i(h)))?(p?(p=!1,g=c&&i(c)?c:[]):g=c&&a(c)?c:{},o(b,{name:d,newValue:u(x,g,h)})):typeof h<"u"&&o(b,{name:d,newValue:h}));return b},bu}var _D=bD();const _u=Oo(_D);function Tu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TD(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(u,...l){const d=e[++a];let c=-1;if(u){o(u);return}for(;++c<i.length;)(l[c]===null||l[c]===void 0)&&(l[c]=i[c]);i=l,d?AD(d,s)(...l):o(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function AD(e,t){let n;return r;function r(...o){const s=e.length>o.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(l){const d=l;if(s&&n)throw d;return i(d)}s||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const nn={basename:CD,dirname:xD,extname:yD,join:SD,sep:"/"};function CD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ni(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function xD(e){if(Ni(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function yD(e){Ni(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function SD(...e){let t=-1,n;for(;++t<e.length;)Ni(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ND(n)}function ND(e){Ni(e);const t=e.codePointAt(0)===47;let n=DD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function DD(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ni(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wD={cwd:vD};function vD(){return"/"}function Au(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ID(e){if(typeof e=="string")e=new URL(e);else if(!Au(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return kD(e)}function kD(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Cu=["history","path","basename","stem","extname","dirname"];class $m{constructor(t){let n;t?Au(t)?n={path:t}:typeof t=="string"||OD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Cu.length;){const a=Cu[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Cu.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?nn.basename(this.path):void 0}set basename(t){yu(t,"basename"),xu(t,"basename"),this.path=nn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?nn.dirname(this.path):void 0}set dirname(t){jm(this.basename,"dirname"),this.path=nn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?nn.extname(this.path):void 0}set extname(t){if(xu(t,"extname"),jm(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=nn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Au(t)&&(t=ID(t)),yu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?nn.basename(this.path,this.extname):void 0}set stem(t){yu(t,"stem"),xu(t,"stem"),this.path=nn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ft(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function xu(e,t){if(e&&e.includes(nn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+nn.sep+"`")}function yu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function OD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RD=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},MD={}.hasOwnProperty;class Su extends RD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=TD()}copy(){const t=new Su;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(_u(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wu("data",this.frozen),this.namespace[t]=n,this):MD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Xa(t),r=this.parser||this.Parser;return Nu("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Nu("process",this.parser||this.Parser),Du("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Xa(t),u=r.parse(s);r.run(u,s,function(d,c,h){if(d||!c||!h)return l(d);const p=c,g=r.stringify(p,h);FD(g)?h.value=g:h.result=g,l(d,h)});function l(d,c){d||!c?o(d):a?a(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Nu("processSync",this.parser||this.Parser),Du("processSync",this.compiler||this.Compiler),this.process(t,i),Gm("processSync","process",n),r;function i(a,o){n=!0,Hm(a),r=o}}run(t,n,r){Ym(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const u=Xa(n);i.run(t,u,l);function l(d,c,h){const p=c||t;d?s(d):o?o(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Gm("runSync","run",r),i;function a(o,s){Hm(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Xa(n),i=this.compiler||this.Compiler;return Du("stringify",i),Ym(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(wu("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...c]=l;u(d,c)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=_u(!0,i.settings,l.settings))}function s(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const c=l[d];a(c)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,d){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===l){h=c;break}if(h===-1)r.push([l,...d]);else if(d.length>0){let[p,...g]=d;const b=r[h][1];Tu(b)&&Tu(p)&&(p=_u(!0,b,p)),r[h]=[l,p,...g]}}}}const LD=new Su().freeze();function Nu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Du(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ym(e){if(!Tu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Xa(e){return PD(e)?e:new $m(e)}function PD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FD(e){return typeof e=="string"||BD(e)}function BD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wm=[],Km={allowDangerousHtml:!0},HD=/^(https?|ircs?|mailto|xmpp)$/i,zD=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $D(e){const t=jD(e),n=YD(e);return GD(t.runSync(t.parse(n),n),e)}function jD(e){const t=e.rehypePlugins||Wm,n=e.remarkPlugins||Wm,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Km}:Km;return LD().use(yN).use(n).use(ED,r).use(t)}function YD(e){const t=e.children||"",n=new $m;return typeof t=="string"&&(n.value=t),n}function GD(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||WD;for(const d of zD)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+UD+d.id,void 0);return Xn(e,l),gy(e,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function l(d,c,h){if(d.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let p;for(p in iu)if(Object.hasOwn(iu,p)&&Object.hasOwn(d.properties,p)){const g=d.properties[p],b=iu[p];(b===null||b.includes(d.tagName))&&(d.properties[p]=u(String(g||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(d,c,h)),p&&h&&typeof c=="number")return s&&d.children?h.children.splice(c,1,...d.children):h.children.splice(c,1),c}}}function WD(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||HD.test(e.slice(0,t))?e:""}function qm(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const In=function(e){if(e==null)return VD;if(typeof e=="string")return qD(e);if(typeof e=="object")return KD(e);if(typeof e=="function")return vu(e);throw new Error("Expected function, string, or array as `test`")};function KD(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=In(e[n]);return vu(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function qD(e){return vu(t);function t(n){return n.tagName===e}}function vu(e){return t;function t(n,r,i){return!!(XD(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function VD(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function XD(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Vm={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},QD={};function ZD(e){const t=e||QD;let n=t.properties;const r=t.headingProperties,i=t.behavior||"prepend",a=t.content,o=t.group,s=In(t.test);let u;return i==="after"||i==="before"?u=d:i==="wrap"?u=c:(u=l,n||(n={ariaHidden:"true",tabIndex:-1})),function(h){Xn(h,"element",function(p,g,b){if(qm(p)&&p.properties.id&&s(p,g,b))return Object.assign(p.properties,Qa(r,p)),u(p,g,b)})};function l(h){const p=Xm(a||Vm,h);return h.children[i==="prepend"?"unshift":"push"](ku(h,Qa(n,h),p)),[Va]}function d(h,p,g){if(typeof p!="number"||!g)return;const b=Xm(a||Vm,h),T=ku(h,Qa(n,h),b);let _=i==="before"?[T,h]:[h,T];if(o){const x=Qm(o,h);x&&!Array.isArray(x)&&x.type==="element"&&(x.children=_,_=[x])}return g.children.splice(p,1,..._),[Va,p+_.length]}function c(h){let p=h.children,g=[];return typeof a=="function"?(p=[],g=a(h)):a&&(g=Iu(a)),h.children=[ku(h,Qa(n,h),Array.isArray(g)?[...p,...g]:[...p,g])],[Va]}}function Iu(e){return Vn(e)}function ku(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function Xm(e,t){const n=Qm(e,t);return Array.isArray(n)?n:[n]}function Qm(e,t){return typeof e=="function"?e(t):Iu(e)}function Qa(e,t){return typeof e=="function"?e(t):e?Iu(e):{}}const JD=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,ew=Object.hasOwnProperty;class tw{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=nw(t,n===!0);const a=i;for(;ew.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function nw(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(JD,"").replace(/ /g,"-"))}function rw(e){return"children"in e?Zm(e):"value"in e?e.value:""}function iw(e){return e.type==="text"?e.value:"children"in e?Zm(e):""}function Zm(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=iw(e.children[t]);return n.join("")}const aw={},Jm=new tw;function ow(e){const n=(e||aw).prefix||"";return function(r){Jm.reset(),Xn(r,"element",function(i){qm(i)&&!i.properties.id&&(i.properties.id=n+Jm.slug(rw(i)))})}}function e0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function sw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function uw(e,t,n){const i=Si((n||{}).ignore||[]),a=lw(t);let o=-1;for(;++o<a.length;)Fm(e,"text",s);function s(l,d){let c=-1,h;for(;++c<d.length;){const p=d[c],g=h?h.children:void 0;if(i(p,g?g.indexOf(p):void 0,h))return;h=p}if(h)return u(l,d)}function u(l,d){const c=d[d.length-1],h=a[o][0],p=a[o][1];let g=0;const T=c.children.indexOf(l);let _=!1,x=[];h.lastIndex=0;let N=h.exec(l.value);for(;N;){const k=N.index,O={index:N.index,input:N.input,stack:[...d,l]};let w=p(...N,O);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=k+1:(g!==k&&x.push({type:"text",value:l.value.slice(g,k)}),Array.isArray(w)?x.push(...w):w&&x.push(w),g=k+N[0].length,_=!0),!h.global)break;N=h.exec(l.value)}return _?(g<l.value.length&&x.push({type:"text",value:l.value.slice(g)}),c.children.splice(T,1,...x)):x=[l],T+x.length}}function lw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([cw(i[0]),dw(i[1])])}return t}function cw(e){return typeof e=="string"?new RegExp(sw(e),"g"):e}function dw(e){return typeof e=="function"?e:function(){return e}}const Ou="phrasing",Ru=["autolink","link","image","label"];function fw(){return{transforms:[_w],enter:{literalAutolink:pw,literalAutolinkEmail:Mu,literalAutolinkHttp:Mu,literalAutolinkWww:Mu},exit:{literalAutolink:bw,literalAutolinkEmail:Ew,literalAutolinkHttp:mw,literalAutolinkWww:gw}}}function hw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ou,notInConstruct:Ru},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ou,notInConstruct:Ru},{character:":",before:"[ps]",after:"\\/",inConstruct:Ou,notInConstruct:Ru}]}}function pw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mu(e){this.config.enter.autolinkProtocol.call(this,e)}function mw(e){this.config.exit.autolinkProtocol.call(this,e)}function gw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Ew(e){this.config.exit.autolinkEmail.call(this,e)}function bw(e){this.exit(e)}function _w(e){uw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Tw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Aw]],{ignore:["link","linkReference"]})}function Tw(e,t,n,r,i){let a="";if(!t0(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Cw(n)))return!1;const o=xw(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Aw(e,t,n,r){return!t0(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Cw(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xw(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=e0(e,"(");let a=e0(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function t0(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qn(n)||za(n))&&(!t||n!==47)}n0.peek=Ow;function yw(){this.buffer()}function Sw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Nw(){this.buffer()}function Dw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ww(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vw(e){this.exit(e)}function Iw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kw(e){this.exit(e)}function Ow(){return"["}function n0(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Rw(){return{enter:{gfmFootnoteCallString:yw,gfmFootnoteCall:Sw,gfmFootnoteDefinitionLabelString:Nw,gfmFootnoteDefinition:Dw},exit:{gfmFootnoteCallString:ww,gfmFootnoteCall:vw,gfmFootnoteDefinitionLabelString:Iw,gfmFootnoteDefinition:kw}}}function Mw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:n0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let u=s.move("[^");const l=a.enter("footnoteDefinition"),d=a.enter("label");return u+=s.move(a.safe(a.associationId(r),{before:u,after:"]"})),d(),u+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),u+=s.move((t?`
145
- `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?r0:Lw))),l(),u}}function Lw(e,t,n){return t===0?e:r0(e,t,n)}function r0(e,t,n){return(n?"":" ")+e}const Pw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];i0.peek=zw;function Fw(){return{canContainEols:["delete"],enter:{strikethrough:Uw},exit:{strikethrough:Hw}}}function Bw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pw}],handlers:{delete:i0}}}function Uw(e){this.enter({type:"delete",children:[]},e)}function Hw(e){this.exit(e)}function i0(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function zw(){return"~"}function $w(e){return e.length}function jw(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$w,a=[],o=[],s=[],u=[];let l=0,d=-1;for(;++d<e.length;){const b=[],T=[];let _=-1;for(e[d].length>l&&(l=e[d].length);++_<e[d].length;){const x=Yw(e[d][_]);if(n.alignDelimiters!==!1){const N=i(x);T[_]=N,(u[_]===void 0||N>u[_])&&(u[_]=N)}b.push(x)}o[d]=b,s[d]=T}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<l;)a[c]=a0(r[c]);else{const b=a0(r);for(;++c<l;)a[c]=b}c=-1;const h=[],p=[];for(;++c<l;){const b=a[c];let T="",_="";b===99?(T=":",_=":"):b===108?T=":":b===114&&(_=":");let x=n.alignDelimiters===!1?1:Math.max(1,u[c]-T.length-_.length);const N=T+"-".repeat(x)+_;n.alignDelimiters!==!1&&(x=T.length+x+_.length,x>u[c]&&(u[c]=x),p[c]=x),h[c]=N}o.splice(1,0,h),s.splice(1,0,p),d=-1;const g=[];for(;++d<o.length;){const b=o[d],T=s[d];c=-1;const _=[];for(;++c<l;){const x=b[c]||"";let N="",k="";if(n.alignDelimiters!==!1){const O=u[c]-(T[c]||0),w=a[c];w===114?N=" ".repeat(O):w===99?O%2?(N=" ".repeat(O/2+.5),k=" ".repeat(O/2-.5)):(N=" ".repeat(O/2),k=N):k=" ".repeat(O)}n.delimiterStart!==!1&&!c&&_.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||c)&&_.push(" "),n.alignDelimiters!==!1&&_.push(N),_.push(x),n.alignDelimiters!==!1&&_.push(k),n.padding!==!1&&_.push(" "),(n.delimiterEnd!==!1||c!==l-1)&&_.push("|")}g.push(n.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return g.join(`
146
- `)}function Yw(e){return e==null?"":String(e)}function a0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const o0={}.hasOwnProperty;function s0(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const s=r.handlers;if(i&&o0.call(i,e)){const u=String(i[e]);o=o0.call(s,u)?s[u]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Gw(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),Ww);return i(),o}function Ww(e,t,n){return">"+(n?"":" ")+e}function Kw(e,t){return u0(e,t.inConstruct,!0)&&!u0(e,t.notInConstruct,!1)}function u0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function l0(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
147
- `&&Kw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
148
- `}function qw(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Vw(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Xw(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Qw(e,t,n,r){const i=Xw(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Vw(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(a,Zw);return c(),h}const s=n.createTracker(r),u=i.repeat(Math.max(qw(a,i)+1,3)),l=n.enter("codeFenced");let d=s.move(u);if(e.lang){const c=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
193
+ `}),n}function Gm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Wm(e,t){const n=ND(e,t),r=n.one(e,void 0),i=ED(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
194
+ `},i),a}function ID(e,t){return e&&"run"in e?async function(n,r){const i=Wm(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Wm(n,{file:r,...e||t})}}function Km(e){if(e)throw e}var bu,qm;function OD(){if(qm)return bu;qm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),c=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!c)return!1;var h;for(h in l);return typeof h>"u"||e.call(l,h)},o=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},s=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return bu=function u(){var l,d,c,h,p,E,b=arguments[0],T=1,_=arguments.length,C=!1;for(typeof b=="boolean"&&(C=b,b=arguments[1]||{},T=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});T<_;++T)if(l=arguments[T],l!=null)for(d in l)c=s(b,d),h=s(l,d),b!==h&&(C&&h&&(a(h)||(p=i(h)))?(p?(p=!1,E=c&&i(c)?c:[]):E=c&&a(c)?c:{},o(b,{name:d,newValue:u(C,E,h)})):typeof h<"u"&&o(b,{name:d,newValue:h}));return b},bu}var RD=OD();const _u=Ro(RD);function Tu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function MD(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(u,...l){const d=e[++a];let c=-1;if(u){o(u);return}for(;++c<i.length;)(l[c]===null||l[c]===void 0)&&(l[c]=i[c]);i=l,d?LD(d,s)(...l):o(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function LD(e,t){let n;return r;function r(...o){const s=e.length>o.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(l){const d=l;if(s&&n)throw d;return i(d)}s||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const rn={basename:PD,dirname:FD,extname:BD,join:UD,sep:"/"};function PD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vi(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function FD(e){if(vi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function BD(e){vi(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function UD(...e){let t=-1,n;for(;++t<e.length;)vi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":HD(n)}function HD(e){vi(e);const t=e.codePointAt(0)===47;let n=zD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zD(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function vi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $D={cwd:jD};function jD(){return"/"}function Au(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function YD(e){if(typeof e=="string")e=new URL(e);else if(!Au(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return GD(e)}function GD(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const xu=["history","path","basename","stem","extname","dirname"];class Vm{constructor(t){let n;t?Au(t)?n={path:t}:typeof t=="string"||WD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":$D.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<xu.length;){const a=xu[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)xu.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?rn.basename(this.path):void 0}set basename(t){yu(t,"basename"),Cu(t,"basename"),this.path=rn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rn.dirname(this.path):void 0}set dirname(t){Xm(this.basename,"dirname"),this.path=rn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rn.extname(this.path):void 0}set extname(t){if(Cu(t,"extname"),Xm(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Au(t)&&(t=YD(t)),yu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rn.basename(this.path,this.extname):void 0}set stem(t){yu(t,"stem"),Cu(t,"stem"),this.path=rn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ht(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Cu(e,t){if(e&&e.includes(rn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rn.sep+"`")}function yu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function WD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const KD=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},qD={}.hasOwnProperty;class Su extends KD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=MD()}copy(){const t=new Su;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(_u(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wu("data",this.frozen),this.namespace[t]=n,this):qD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Qa(t),r=this.parser||this.Parser;return Nu("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Nu("process",this.parser||this.Parser),Du("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Qa(t),u=r.parse(s);r.run(u,s,function(d,c,h){if(d||!c||!h)return l(d);const p=c,E=r.stringify(p,h);QD(E)?h.value=E:h.result=E,l(d,h)});function l(d,c){d||!c?o(d):a?a(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Nu("processSync",this.parser||this.Parser),Du("processSync",this.compiler||this.Compiler),this.process(t,i),Zm("processSync","process",n),r;function i(a,o){n=!0,Km(a),r=o}}run(t,n,r){Qm(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const u=Qa(n);i.run(t,u,l);function l(d,c,h){const p=c||t;d?s(d):o?o(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Zm("runSync","run",r),i;function a(o,s){Km(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Qa(n),i=this.compiler||this.Compiler;return Du("stringify",i),Qm(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(wu("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...c]=l;u(d,c)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=_u(!0,i.settings,l.settings))}function s(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const c=l[d];a(c)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,d){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===l){h=c;break}if(h===-1)r.push([l,...d]);else if(d.length>0){let[p,...E]=d;const b=r[h][1];Tu(b)&&Tu(p)&&(p=_u(!0,b,p)),r[h]=[l,p,...E]}}}}const VD=new Su().freeze();function Nu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Du(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qm(e){if(!Tu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qa(e){return XD(e)?e:new Vm(e)}function XD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function QD(e){return typeof e=="string"||ZD(e)}function ZD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jm=[],e0={allowDangerousHtml:!0},ew=/^(https?|ircs?|mailto|xmpp)$/i,tw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nw(e){const t=rw(e),n=iw(e);return aw(t.runSync(t.parse(n),n),e)}function rw(e){const t=e.rehypePlugins||Jm,n=e.remarkPlugins||Jm,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...e0}:e0;return VD().use(BN).use(n).use(ID,r).use(t)}function iw(e){const t=e.children||"",n=new Vm;return typeof t=="string"&&(n.value=t),n}function aw(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||ow;for(const d of tw)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+JD+d.id,void 0);return Xn(e,l),ky(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function l(d,c,h){if(d.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let p;for(p in iu)if(Object.hasOwn(iu,p)&&Object.hasOwn(d.properties,p)){const E=d.properties[p],b=iu[p];(b===null||b.includes(d.tagName))&&(d.properties[p]=u(String(E||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(d,c,h)),p&&h&&typeof c=="number")return s&&d.children?h.children.splice(c,1,...d.children):h.children.splice(c,1),c}}}function ow(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ew.test(e.slice(0,t))?e:""}function t0(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const kn=function(e){if(e==null)return lw;if(typeof e=="string")return uw(e);if(typeof e=="object")return sw(e);if(typeof e=="function")return vu(e);throw new Error("Expected function, string, or array as `test`")};function sw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kn(e[n]);return vu(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function uw(e){return vu(t);function t(n){return n.tagName===e}}function vu(e){return t;function t(n,r,i){return!!(cw(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function lw(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function cw(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const n0={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},dw={};function fw(e){const t=e||dw;let n=t.properties;const r=t.headingProperties,i=t.behavior||"prepend",a=t.content,o=t.group,s=kn(t.test);let u;return i==="after"||i==="before"?u=d:i==="wrap"?u=c:(u=l,n||(n={ariaHidden:"true",tabIndex:-1})),function(h){Xn(h,"element",function(p,E,b){if(t0(p)&&p.properties.id&&s(p,E,b))return Object.assign(p.properties,Za(r,p)),u(p,E,b)})};function l(h){const p=r0(a||n0,h);return h.children[i==="prepend"?"unshift":"push"](Iu(h,Za(n,h),p)),[Xa]}function d(h,p,E){if(typeof p!="number"||!E)return;const b=r0(a||n0,h),T=Iu(h,Za(n,h),b);let _=i==="before"?[T,h]:[h,T];if(o){const C=i0(o,h);C&&!Array.isArray(C)&&C.type==="element"&&(C.children=_,_=[C])}return E.children.splice(p,1,..._),[Xa,p+_.length]}function c(h){let p=h.children,E=[];return typeof a=="function"?(p=[],E=a(h)):a&&(E=ku(a)),h.children=[Iu(h,Za(n,h),Array.isArray(E)?[...p,...E]:[...p,E])],[Xa]}}function ku(e){return Vn(e)}function Iu(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function r0(e,t){const n=i0(e,t);return Array.isArray(n)?n:[n]}function i0(e,t){return typeof e=="function"?e(t):ku(e)}function Za(e,t){return typeof e=="function"?e(t):e?ku(e):{}}const hw=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,pw=Object.hasOwnProperty;class mw{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=gw(t,n===!0);const a=i;for(;pw.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function gw(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(hw,"").replace(/ /g,"-"))}function Ew(e){return"children"in e?a0(e):"value"in e?e.value:""}function bw(e){return e.type==="text"?e.value:"children"in e?a0(e):""}function a0(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=bw(e.children[t]);return n.join("")}const _w={},o0=new mw;function Tw(e){const n=(e||_w).prefix||"";return function(r){o0.reset(),Xn(r,"element",function(i){t0(i)&&!i.properties.id&&(i.properties.id=n+o0.slug(Ew(i)))})}}function s0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Aw(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xw(e,t,n){const i=wi((n||{}).ignore||[]),a=Cw(t);let o=-1;for(;++o<a.length;)Ym(e,"text",s);function s(l,d){let c=-1,h;for(;++c<d.length;){const p=d[c],E=h?h.children:void 0;if(i(p,E?E.indexOf(p):void 0,h))return;h=p}if(h)return u(l,d)}function u(l,d){const c=d[d.length-1],h=a[o][0],p=a[o][1];let E=0;const T=c.children.indexOf(l);let _=!1,C=[];h.lastIndex=0;let N=h.exec(l.value);for(;N;){const I=N.index,O={index:N.index,input:N.input,stack:[...d,l]};let w=p(...N,O);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=I+1:(E!==I&&C.push({type:"text",value:l.value.slice(E,I)}),Array.isArray(w)?C.push(...w):w&&C.push(w),E=I+N[0].length,_=!0),!h.global)break;N=h.exec(l.value)}return _?(E<l.value.length&&C.push({type:"text",value:l.value.slice(E)}),c.children.splice(T,1,...C)):C=[l],T+C.length}}function Cw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([yw(i[0]),Sw(i[1])])}return t}function yw(e){return typeof e=="string"?new RegExp(Aw(e),"g"):e}function Sw(e){return typeof e=="function"?e:function(){return e}}const Ou="phrasing",Ru=["autolink","link","image","label"];function Nw(){return{transforms:[Rw],enter:{literalAutolink:ww,literalAutolinkEmail:Mu,literalAutolinkHttp:Mu,literalAutolinkWww:Mu},exit:{literalAutolink:Ow,literalAutolinkEmail:Iw,literalAutolinkHttp:vw,literalAutolinkWww:kw}}}function Dw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ou,notInConstruct:Ru},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ou,notInConstruct:Ru},{character:":",before:"[ps]",after:"\\/",inConstruct:Ou,notInConstruct:Ru}]}}function ww(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mu(e){this.config.enter.autolinkProtocol.call(this,e)}function vw(e){this.config.exit.autolinkProtocol.call(this,e)}function kw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Iw(e){this.config.exit.autolinkEmail.call(this,e)}function Ow(e){this.exit(e)}function Rw(e){xw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lw]],{ignore:["link","linkReference"]})}function Mw(e,t,n,r,i){let a="";if(!u0(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Pw(n)))return!1;const o=Fw(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Lw(e,t,n,r){return!u0(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Pw(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Fw(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=s0(e,"(");let a=s0(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function u0(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qn(n)||$a(n))&&(!t||n!==47)}l0.peek=Ww;function Bw(){this.buffer()}function Uw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Hw(){this.buffer()}function zw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $w(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jw(e){this.exit(e)}function Yw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Yt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Gw(e){this.exit(e)}function Ww(){return"["}function l0(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Kw(){return{enter:{gfmFootnoteCallString:Bw,gfmFootnoteCall:Uw,gfmFootnoteDefinitionLabelString:Hw,gfmFootnoteDefinition:zw},exit:{gfmFootnoteCallString:$w,gfmFootnoteCall:jw,gfmFootnoteDefinitionLabelString:Yw,gfmFootnoteDefinition:Gw}}}function qw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:l0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let u=s.move("[^");const l=a.enter("footnoteDefinition"),d=a.enter("label");return u+=s.move(a.safe(a.associationId(r),{before:u,after:"]"})),d(),u+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),u+=s.move((t?`
195
+ `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?c0:Vw))),l(),u}}function Vw(e,t,n){return t===0?e:c0(e,t,n)}function c0(e,t,n){return(n?"":" ")+e}const Xw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];d0.peek=tv;function Qw(){return{canContainEols:["delete"],enter:{strikethrough:Jw},exit:{strikethrough:ev}}}function Zw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xw}],handlers:{delete:d0}}}function Jw(e){this.enter({type:"delete",children:[]},e)}function ev(e){this.exit(e)}function d0(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function tv(){return"~"}function nv(e){return e.length}function rv(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nv,a=[],o=[],s=[],u=[];let l=0,d=-1;for(;++d<e.length;){const b=[],T=[];let _=-1;for(e[d].length>l&&(l=e[d].length);++_<e[d].length;){const C=iv(e[d][_]);if(n.alignDelimiters!==!1){const N=i(C);T[_]=N,(u[_]===void 0||N>u[_])&&(u[_]=N)}b.push(C)}o[d]=b,s[d]=T}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<l;)a[c]=f0(r[c]);else{const b=f0(r);for(;++c<l;)a[c]=b}c=-1;const h=[],p=[];for(;++c<l;){const b=a[c];let T="",_="";b===99?(T=":",_=":"):b===108?T=":":b===114&&(_=":");let C=n.alignDelimiters===!1?1:Math.max(1,u[c]-T.length-_.length);const N=T+"-".repeat(C)+_;n.alignDelimiters!==!1&&(C=T.length+C+_.length,C>u[c]&&(u[c]=C),p[c]=C),h[c]=N}o.splice(1,0,h),s.splice(1,0,p),d=-1;const E=[];for(;++d<o.length;){const b=o[d],T=s[d];c=-1;const _=[];for(;++c<l;){const C=b[c]||"";let N="",I="";if(n.alignDelimiters!==!1){const O=u[c]-(T[c]||0),w=a[c];w===114?N=" ".repeat(O):w===99?O%2?(N=" ".repeat(O/2+.5),I=" ".repeat(O/2-.5)):(N=" ".repeat(O/2),I=N):I=" ".repeat(O)}n.delimiterStart!==!1&&!c&&_.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||c)&&_.push(" "),n.alignDelimiters!==!1&&_.push(N),_.push(C),n.alignDelimiters!==!1&&_.push(I),n.padding!==!1&&_.push(" "),(n.delimiterEnd!==!1||c!==l-1)&&_.push("|")}E.push(n.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return E.join(`
196
+ `)}function iv(e){return e==null?"":String(e)}function f0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const h0={}.hasOwnProperty;function p0(e,t){const n=t||{};function r(i,...a){let o=r.invalid;const s=r.handlers;if(i&&h0.call(i,e)){const u=String(i[e]);o=h0.call(s,u)?s[u]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function av(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),ov);return i(),o}function ov(e,t,n){return">"+(n?"":" ")+e}function sv(e,t){return m0(e,t.inConstruct,!0)&&!m0(e,t.notInConstruct,!1)}function m0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function g0(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
197
+ `&&sv(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
198
+ `}function uv(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function lv(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function cv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function dv(e,t,n,r){const i=cv(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(lv(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(a,fv);return c(),h}const s=n.createTracker(r),u=i.repeat(Math.max(uv(a,i)+1,3)),l=n.enter("codeFenced");let d=s.move(u);if(e.lang){const c=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
149
199
  `,encode:["`"],...s.current()})),c()}return d+=s.move(`
150
200
  `),a&&(d+=s.move(a+`
151
- `)),d+=s.move(u),l(),d}function Zw(e,t,n){return(n?"":" ")+e}function Lu(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Jw(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(s=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":`
152
- `,...u.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),s()),o(),l}function ev(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Di(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Za(e,t,n){const r=Nr(e),i=Nr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}c0.peek=tv;function c0(e,t,n,r){const i=ev(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=u.charCodeAt(0),d=Za(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(u=Di(l)+u.slice(1));const c=u.charCodeAt(u.length-1),h=Za(r.after.charCodeAt(0),c,i);h.inside&&(u=u.slice(0,-1)+Di(c));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+u+p}function tv(e,t,n){return n.options.emphasis||"*"}function nv(e,t){let n=!1;return Xn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,gu}),!!((!e.depth||e.depth<3)&&au(e)&&(t.options.setext||n))}function rv(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(nv(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`
201
+ `)),d+=s.move(u),l(),d}function fv(e,t,n){return(n?"":" ")+e}function Lu(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hv(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(s=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":`
202
+ `,...u.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),s()),o(),l}function pv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ki(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ja(e,t,n){const r=Dr(e),i=Dr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}E0.peek=mv;function E0(e,t,n,r){const i=pv(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=u.charCodeAt(0),d=Ja(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(u=ki(l)+u.slice(1));const c=u.charCodeAt(u.length-1),h=Ja(r.after.charCodeAt(0),c,i);h.inside&&(u=u.slice(0,-1)+ki(c));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+u+p}function mv(e,t,n){return n.options.emphasis||"*"}function gv(e,t){let n=!1;return Xn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,gu}),!!((!e.depth||e.depth<3)&&au(e)&&(t.options.setext||n))}function Ev(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(gv(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:`
153
203
  `,after:`
154
204
  `});return c(),d(),h+`
155
205
  `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
156
206
  `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),u=n.enter("phrasing");a.move(o+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
157
- `,...a.current()});return/^[\t ]/.test(l)&&(l=Di(l.charCodeAt(0))+l.slice(1)),l=l?o+" "+l:o,n.options.closeAtx&&(l+=" "+o),u(),s(),l}d0.peek=iv;function d0(e){return e.value||""}function iv(){return"<"}f0.peek=av;function f0(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(s=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),s()),l+=u.move(")"),o(),l}function av(){return"!"}h0.peek=ov;function h0(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");const l=n.safe(e.alt,{before:u,after:"]",...s.current()});u+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function ov(){return"!"}p0.peek=sv;function p0(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let u;if(o.atBreak)for(;u=s.exec(r);){let l=u.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(u.index+1)}}return i+r+i}function sv(){return"`"}function m0(e,t){const n=au(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}g0.peek=uv;function g0(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,u;if(m0(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=d,c}s=n.enter("link"),u=n.enter("label");let l=o.move("[");return l+=o.move(n.containerPhrasing(e,{before:l,after:"](",...o.current()})),l+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),l+=o.move(")"),s(),l}function uv(e,t,n){return m0(e,n)?"<":"["}E0.peek=lv;function E0(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...s.current()});u+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function lv(){return"["}function Pu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function cv(e){const t=Pu(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function dv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function b0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function fv(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?dv(n):Pu(n);const s=e.ordered?o==="."?")":".":cv(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),b0(n)===o&&d){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=s),n.bulletCurrent=o;const l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function hv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pv(e,t,n,r){const i=hv(n);let a=n.bulletCurrent||Pu(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),d);return u(),l;function d(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?a:a+" ".repeat(o-a.length))+c}}function mv(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const gv=Si(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ev(e,t,n,r){return(e.children.some(function(o){return gv(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_0.peek=_v;function _0(e,t,n,r){const i=bv(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=u.charCodeAt(0),d=Za(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(u=Di(l)+u.slice(1));const c=u.charCodeAt(u.length-1),h=Za(r.after.charCodeAt(0),c,i);h.inside&&(u=u.slice(0,-1)+Di(c));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+u+p}function _v(e,t,n){return n.options.strong||"*"}function Tv(e,t,n,r){return n.safe(e.value,r)}function Av(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Cv(e,t,n){const r=(b0(n)+(n.options.ruleSpaces?" ":"")).repeat(Av(n));return n.options.ruleSpaces?r.slice(0,-1):r}const T0={blockquote:Gw,break:l0,code:Qw,definition:Jw,emphasis:c0,hardBreak:l0,heading:rv,html:d0,image:f0,imageReference:h0,inlineCode:p0,link:g0,linkReference:E0,list:fv,listItem:pv,paragraph:mv,root:Ev,strong:_0,text:Tv,thematicBreak:Cv};function xv(){return{enter:{table:yv,tableData:A0,tableHeader:A0,tableRow:Nv},exit:{codeText:Dv,table:Sv,tableData:Fu,tableHeader:Fu,tableRow:Fu}}}function yv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Sv(e){this.exit(e),this.data.inTable=void 0}function Nv(e){this.enter({type:"tableRow",children:[]},e)}function Fu(e){this.exit(e)}function A0(e){this.enter({type:"tableCell",children:[]},e)}function Dv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wv(e,t){return t==="|"?t:e}function vv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
158
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:u,tableRow:s}};function o(p,g,b,T){return l(d(p,b,T),p.align)}function s(p,g,b,T){const _=c(p,b,T),x=l([_]);return x.slice(0,x.indexOf(`
159
- `))}function u(p,g,b,T){const _=b.enter("tableCell"),x=b.enter("phrasing"),N=b.containerPhrasing(p,{...T,before:a,after:a});return x(),_(),N}function l(p,g){return jw(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,b){const T=p.children;let _=-1;const x=[],N=g.enter("table");for(;++_<T.length;)x[_]=c(T[_],g,b);return N(),x}function c(p,g,b){const T=p.children;let _=-1;const x=[],N=g.enter("tableRow");for(;++_<T.length;)x[_]=u(T[_],p,g,b);return N(),x}function h(p,g,b){let T=T0.inlineCode(p,g,b);return b.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function Iv(){return{exit:{taskListCheckValueChecked:C0,taskListCheckValueUnchecked:C0,paragraph:Ov}}}function kv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Rv}}}function C0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ov(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Rv(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let u=T0.listItem(e,t,n,{...r,...s.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(d){return d+o}}function Mv(){return[fw(),Rw(),Fw(),xv(),Iv()]}function Lv(e){return{extensions:[hw(),Mw(e),Bw(),vv(e),kv()]}}const Pv={tokenize:$v,partial:!0},x0={tokenize:jv,partial:!0},y0={tokenize:Yv,partial:!0},S0={tokenize:Gv,partial:!0},Fv={tokenize:Wv,partial:!0},N0={name:"wwwAutolink",tokenize:Hv,previous:w0},D0={name:"protocolAutolink",tokenize:zv,previous:v0},mn={name:"emailAutolink",tokenize:Uv,previous:I0},rn={};function Bv(){return{text:rn}}let Qn=48;for(;Qn<123;)rn[Qn]=mn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);rn[43]=mn,rn[45]=mn,rn[46]=mn,rn[95]=mn,rn[72]=[mn,D0],rn[104]=[mn,D0],rn[87]=[mn,N0],rn[119]=[mn,N0];function Uv(e,t,n){const r=this;let i,a;return o;function o(c){return!Bu(c)||!I0.call(r,r.previous)||Uu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return Bu(c)?(e.consume(c),s):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Fv,d,l)(c):c===45||c===95||ht(c)?(a=!0,e.consume(c),u):d(c)}function l(c){return e.consume(c),i=!0,u}function d(c){return a&&i&&bt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Hv(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!w0.call(r,r.previous)||Uu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Pv,e.attempt(x0,e.attempt(y0,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function zv(e,t,n){const r=this;let i="",a=!1;return o;function o(c){return(c===72||c===104)&&v0.call(r,r.previous)&&!Uu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(bt(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),a?l:(a=!0,u)):n(c)}function l(c){return c===null||Ha(c)||Be(c)||qn(c)||za(c)?n(c):e.attempt(x0,e.attempt(y0,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function $v(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function jv(e,t,n){let r,i,a;return o;function o(l){return l===46||l===95?e.check(S0,u,s)(l):l===null||Be(l)||qn(l)||l!==45&&za(l)?u(l):(a=!0,e.consume(l),o)}function s(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),o}function u(l){return i||r||!a?n(l):t(l)}}function Yv(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(S0,t,a)(o):o===null||Be(o)||qn(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Gv(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Be(s)||qn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Be(s)||qn(s)?t(s):r(s)}function a(s){return bt(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):bt(s)?(e.consume(s),o):n(s)}}function Wv(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ht(a)?n(a):t(a)}}function w0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Be(e)}function v0(e){return!bt(e)}function I0(e){return!(e===47||Bu(e))}function Bu(e){return e===43||e===45||e===46||e===95||ht(e)}function Uu(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Kv={tokenize:t2,partial:!0};function qv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Zv,continuation:{tokenize:Jv},exit:e2}},text:{91:{name:"gfmFootnoteCall",tokenize:Qv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vv,resolveTo:Xv}}}}function Vv(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const l=jt(r.sliceSerialize({start:o.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Xv(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Qv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(c){if(a>999||c===93&&!o||c===null||c===91||Be(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(jt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Be(c)||(o=!0),a++,e.consume(c),c===92?d:l}function d(c){return c===91||c===92||c===93?(e.consume(c),a++,l):l(c)}}function Zv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(o>999||g===93&&!s||g===null||g===91||Be(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=jt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Be(g)||(s=!0),o++,e.consume(g),g===92?c:d}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,d):d(g)}function h(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),Oe(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function Jv(e,t,n){return e.check(Ti,t,e.attempt(Kv,t,n))}function e2(e){e.exit("gfmFootnoteDefinition")}function t2(e,t,n){const r=this;return Oe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function n2(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let l=u;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[u][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[u][1].end)},c={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[u][1].start)},h=[["enter",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&vt(h,h.length,0,$a(p,o.slice(l+1,u),s)),vt(h,h.length,0,[["exit",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["exit",d,s]]),vt(o,l-1,u-l+3,h),u=l+h.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function a(o,s,u){const l=this.previous,d=this.events;let c=0;return h;function h(g){return l===126&&d[d.length-1][1].type!=="characterEscape"?u(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const b=Nr(l);if(g===126)return c>1?u(g):(o.consume(g),c++,p);if(c<2&&!n)return u(g);const T=o.exit("strikethroughSequenceTemporary"),_=Nr(g);return T._open=!_||_===2&&!!b,T._close=!b||b===2&&!!_,s(g)}}}class r2{constructor(){this.map=[]}add(t,n,r){i2(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function i2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function a2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function o2(){return{flow:{null:{name:"table",tokenize:s2,resolveAll:u2}}}}function s2(e,t,n){const r=this;let i=0,a=0,o;return s;function s(I){let $=r.events.length-1;for(;$>-1;){const B=r.events[$][1].type;if(B==="lineEnding"||B==="linePrefix")$--;else break}const Y=$>-1?r.events[$][1].type:null,G=Y==="tableHead"||Y==="tableRow"?w:u;return G===w&&r.parser.lazy[r.now().line]?n(I):G(I)}function u(I){return e.enter("tableHead"),e.enter("tableRow"),l(I)}function l(I){return I===124||(o=!0,a+=1),d(I)}function d(I){return I===null?n(I):Ee(I)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):n(I):ve(I)?Oe(e,d,"whitespace")(I):(a+=1,o&&(o=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),c(I)))}function c(I){return I===null||I===124||Be(I)?(e.exit("data"),d(I)):(e.consume(I),I===92?h:c)}function h(I){return I===92||I===124?(e.consume(I),c):c(I)}function p(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),o=!1,ve(I)?Oe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?T(I):I===124?(o=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),b):O(I)}function b(I){return ve(I)?Oe(e,T,"whitespace")(I):T(I)}function T(I){return I===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):I===45?(a+=1,_(I)):I===null||Ee(I)?k(I):O(I)}function _(I){return I===45?(e.enter("tableDelimiterFiller"),x(I)):O(I)}function x(I){return I===45?(e.consume(I),x):I===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(I))}function N(I){return ve(I)?Oe(e,k,"whitespace")(I):k(I)}function k(I){return I===124?g(I):I===null||Ee(I)?!o||i!==a?O(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):O(I)}function O(I){return n(I)}function w(I){return e.enter("tableRow"),M(I)}function M(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),M):I===null||Ee(I)?(e.exit("tableRow"),t(I)):ve(I)?Oe(e,M,"whitespace")(I):(e.enter("data"),H(I))}function H(I){return I===null||I===124||Be(I)?(e.exit("data"),M(I)):(e.consume(I),I===92?z:H)}function z(I){return I===92||I===124?(e.consume(I),H):H(I)}}function u2(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,l,d,c;const h=new r2;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,u!==0&&(k0(h,t,u,l,d),d=void 0,u=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",d,t]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],c=Ja(h,t,a,i,void 0,c),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],c=Ja(h,t,a,i,void 0,c)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,u=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(u=n,a[1]!==0?(o[0]=o[1],c=Ja(h,t,a,i,n,c)):o[1]!==0&&(c=Ja(h,t,o,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&k0(h,t,u,l,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=a2(t.events,n))}return e}function Ja(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},wr(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=wr(t.events,n[1]);if(a={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=wr(t.events,n[2]),d=wr(t.events,n[3]),c={type:s,start:Object.assign({},l),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},wr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function k0(e,t,n,r,i){const a=[],o=wr(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function wr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const l2={name:"tasklistCheck",tokenize:d2};function c2(){return{text:{91:l2}}}function d2(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Be(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return Ee(u)?t(u):ve(u)?e.check({tokenize:f2},t,n)(u):n(u)}}function f2(e,t,n){return Oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function h2(e){return im([Bv(),qv(),n2(e),o2(),c2()])}const p2={};function m2(e){const t=this,n=e||p2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(h2(n)),a.push(Mv()),o.push(Lv(n))}const O0=/[#.]/g;function g2(e,t){const n=e||"",r={};let i=0,a,o;for(;i<n.length;){O0.lastIndex=i;const s=O0.exec(n),u=n.slice(i,s?s.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function R0(e,t,n){const r=n?T2(n):void 0;function i(a,o,...s){let u;if(a==null){u={type:"root",children:[]};const l=o;s.unshift(l)}else{u=g2(a,t);const l=u.tagName.toLowerCase(),d=r?r.get(l):void 0;if(u.tagName=d||l,E2(o))s.unshift(o);else for(const[c,h]of Object.entries(o))b2(e,u.properties,c,h)}for(const l of s)Hu(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function E2(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function b2(e,t,n,r){const i=Zs(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=zp(r):i.commaSeparated?a=wp(r):i.commaOrSpaceSeparated?a=zp(wp(r).join(" ")):a=M0(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?_2(r):String(r);if(Array.isArray(a)){const o=[];for(const s of a)o.push(M0(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Hu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Hu(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Hu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function M0(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||mi(n)===mi(t)))return!0}return n}function _2(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function T2(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const A2=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],C2=R0(Ba,"div"),x2=R0(xr,"g",A2);function y2(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let o=0;for(;;){let s=n[o];if(s===void 0){const u=L0(t,n[o-1]);s=u===-1?t.length+1:u+1,n[o]=s}if(s>a)return{line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a};o++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const s=n[n.length-1],u=L0(t,s),l=u===-1?t.length+1:u+1;if(s===l)break;n.push(l)}const o=(a.line>1?n[a.line-2]:0)+a.column-1;if(o<n[a.line-1])return o}}}function L0(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
160
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},P0={}.hasOwnProperty,S2=Object.prototype;function N2(e,t){const n=t||{};return zu({file:n.file||void 0,location:!1,schema:n.space==="svg"?xr:Ba,verbose:n.verbose||!1},e)}function zu(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},eo(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:F0(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),o=y2(a),s=o.toPoint(0),u=o.toPoint(a.length);n.position={start:s,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},eo(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},eo(e,r,n),n}default:return n=D2(e,t),n}}function F0(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=zu(e,t[n]);r.push(i)}return r}function D2(e,t){const n=e.schema;e.schema=t.namespaceURI===Zn.svg?xr:Ba;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],u=(s.prefix?s.prefix+":":"")+s.name;P0.call(S2,u)||(i[u]=s.value)}const o=(e.schema.space==="svg"?x2:C2)(t.tagName,i,F0(e,t.childNodes));if(eo(e,t,o),o.tagName==="template"){const s=t,u=s.sourceCodeLocation,l=u&&u.startTag&&vr(u.startTag),d=u&&u.endTag&&vr(u.endTag),c=zu(e,s.content);l&&d&&e.file&&(c.position={start:l.end,end:d.start}),o.content=c}return e.schema=n,o}function eo(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=w2(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function w2(e,t,n){const r=vr(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let o;if(n.attrs)for(o in n.attrs)P0.call(n.attrs,o)&&(a[Zs(e.schema,o).property]=vr(n.attrs[o]));n.startTag;const s=vr(n.startTag),u=n.endTag?vr(n.endTag):void 0,l={opening:s};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return r}function vr(e){const t=B0({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=B0({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function B0(e){return e.line&&e.column?e:void 0}let wi=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};wi.prototype.property={},wi.prototype.normal={},wi.prototype.space=null;function U0(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new wi(n,r,t)}function $u(e){return e.toLowerCase()}class Ft{constructor(t,n){this.property=t,this.attribute=n}}Ft.prototype.space=null,Ft.prototype.boolean=!1,Ft.prototype.booleanish=!1,Ft.prototype.overloadedBoolean=!1,Ft.prototype.number=!1,Ft.prototype.commaSeparated=!1,Ft.prototype.spaceSeparated=!1,Ft.prototype.commaOrSpaceSeparated=!1,Ft.prototype.mustUseProperty=!1,Ft.prototype.defined=!1;let v2=0;const ye=Jn(),Xe=Jn(),H0=Jn(),X=Jn(),ze=Jn(),Ir=Jn(),It=Jn();function Jn(){return 2**++v2}const ju=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:Xe,commaOrSpaceSeparated:It,commaSeparated:Ir,number:X,overloadedBoolean:H0,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),Yu=Object.keys(ju);class Gu extends Ft{constructor(t,n,r,i){let a=-1;if(super(t,n),z0(this,"space",i),typeof r=="number")for(;++a<Yu.length;){const o=Yu[a];z0(this,Yu[a],(r&ju[o])===ju[o])}}}Gu.prototype.defined=!0;function z0(e,t,n){n&&(e[t]=n)}const I2={}.hasOwnProperty;function kr(e){const t={},n={};let r;for(r in e.properties)if(I2.call(e.properties,r)){const i=e.properties[r],a=new Gu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[$u(r)]=r,n[$u(a.attribute)]=r}return new wi(t,n,e.space)}const $0=kr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j0=kr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Y0(e,t){return t in e?e[t]:t}function G0(e,t){return Y0(e,t.toLowerCase())}const W0=kr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:G0,properties:{xmlns:null,xmlnsXLink:null}}),K0=kr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Xe,ariaAutoComplete:null,ariaBusy:Xe,ariaChecked:Xe,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:Xe,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:Xe,ariaFlowTo:ze,ariaGrabbed:Xe,ariaHasPopup:null,ariaHidden:Xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:X,ariaLive:null,ariaModal:Xe,ariaMultiLine:Xe,ariaMultiSelectable:Xe,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Xe,ariaReadOnly:Xe,ariaRelevant:null,ariaRequired:Xe,ariaRoleDescription:ze,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Xe,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null}}),k2=kr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:G0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ir,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:ze,autoFocus:ye,autoPlay:ye,blocking:ze,capture:null,charSet:null,checked:ye,cite:null,className:ze,cols:X,colSpan:null,content:null,contentEditable:Xe,controls:ye,controlsList:ze,coords:X|Ir,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:H0,draggable:Xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:ze,height:X,hidden:ye,high:X,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:ze,itemRef:ze,itemScope:ye,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:X,pattern:null,ping:ze,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:ze,required:ye,reversed:ye,rows:X,rowSpan:X,sandbox:ze,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Xe,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Xe,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:X,security:null,unselectable:null}}),O2=kr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Y0,properties:{about:It,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ir,g2:Ir,glyphName:Ir,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),R2=/^data[-\w.:]+$/i,q0=/-[a-z]/g,M2=/[A-Z]/g;function L2(e,t){const n=$u(t);let r=t,i=Ft;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&R2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(q0,F2);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!q0.test(a)){let o=a.replace(M2,P2);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Gu}return new i(r,t)}function P2(e){return"-"+e.toLowerCase()}function F2(e){return e.charAt(1).toUpperCase()}const B2=U0([j0,$0,W0,K0,k2],"html"),V0=U0([j0,$0,W0,K0,O2],"svg"),U2={},H2={}.hasOwnProperty,X0=s0("type",{handlers:{root:$2,element:K2,text:G2,comment:W2,doctype:Y2}});function z2(e,t){const r=(t||U2).space;return X0(e,r==="svg"?V0:B2)}function $2(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Wu(e.children,n,t),Or(e,n),n}function j2(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Wu(e.children,n,t),Or(e,n),n}function Y2(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Or(e,t),t}function G2(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Or(e,t),t}function W2(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Or(e,t),t}function K2(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=V0);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&H2.call(e.properties,a)){const u=q2(r,a,e.properties[a]);u&&i.push(u)}}const o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Zn[o],childNodes:[],parentNode:null};return s.childNodes=Wu(e.children,s,r),Or(e,s),e.tagName==="template"&&e.content&&(s.content=j2(e.content,r)),s}function q2(e,t,n){const r=L2(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?vp(n):$p(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Zn[r.space]}return i}function Wu(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=X0(e[r],n);a.parentNode=t,i.push(a)}return i}function Or(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const V2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],X2=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ye="�";var C;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));const yt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Q0(e){return e>=55296&&e<=57343}function Q2(e){return e>=56320&&e<=57343}function Z2(e,t){return(e-55296)*1024+9216+t}function Z0(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function J0(e){return e>=64976&&e<=65007||X2.has(e)}var P;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(P||(P={}));const J2=65536;class eI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=J2,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,o=i+n,s=a+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Q2(n))return this.pos++,this._addGap(),Z2(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(P.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Q0(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Z0(t)?this._err(P.controlCharacterInInputStream):J0(t)&&this._err(P.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var we;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(we||(we={}));function eg(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const tI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),nI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nI.get(e))!==null&&t!==void 0?t:e}var it;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(it||(it={}));const iI=32;var kn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kn||(kn={}));function Ku(e){return e>=it.ZERO&&e<=it.NINE}function aI(e){return e>=it.UPPER_A&&e<=it.UPPER_F||e>=it.LOWER_A&&e<=it.LOWER_F}function oI(e){return e>=it.UPPER_A&&e<=it.UPPER_Z||e>=it.LOWER_A&&e<=it.LOWER_Z||Ku(e)}function sI(e){return e===it.EQUALS||oI(e)}var at;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(at||(at={}));var gn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(gn||(gn={}));class uI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=at.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gn.Strict}startEntity(t){this.decodeMode=t,this.state=at.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case at.EntityStart:return t.charCodeAt(n)===it.NUM?(this.state=at.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=at.NamedEntity,this.stateNamedEntity(t,n));case at.NumericStart:return this.stateNumericStart(t,n);case at.NumericDecimal:return this.stateNumericDecimal(t,n);case at.NumericHex:return this.stateNumericHex(t,n);case at.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|iI)===it.LOWER_X?(this.state=at.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=at.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ku(i)||aI(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ku(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===it.SEMI)this.consumed+=1;else if(this.decodeMode===gn.Strict)return 0;return this.emitCodePoint(rI(this.result),this.consumed),this.errors&&(t!==it.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&kn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=lI(r,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===gn.Attribute&&(a===0||sI(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&kn.VALUE_LENGTH)>>14,a!==0){if(o===it.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==gn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&kn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~kn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case at.NamedEntity:return this.result!==0&&(this.decodeMode!==gn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case at.NumericDecimal:return this.emitNumericEntity(0,2);case at.NumericHex:return this.emitNumericEntity(0,3);case at.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case at.EntityStart:return 0}}}function lI(e,t,n,r){const i=(t&kn.BRANCH_LENGTH)>>7,a=t&kn.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let o=n,s=o+i-1;for(;o<=s;){const u=o+s>>>1,l=e[u];if(l<r)o=u+1;else if(l>r)s=u-1;else return e[u+i]}return-1}var j;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(j||(j={}));var er;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(er||(er={}));var Bt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Bt||(Bt={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(f||(f={}));const cI=new Map([[R.A,f.A],[R.ADDRESS,f.ADDRESS],[R.ANNOTATION_XML,f.ANNOTATION_XML],[R.APPLET,f.APPLET],[R.AREA,f.AREA],[R.ARTICLE,f.ARTICLE],[R.ASIDE,f.ASIDE],[R.B,f.B],[R.BASE,f.BASE],[R.BASEFONT,f.BASEFONT],[R.BGSOUND,f.BGSOUND],[R.BIG,f.BIG],[R.BLOCKQUOTE,f.BLOCKQUOTE],[R.BODY,f.BODY],[R.BR,f.BR],[R.BUTTON,f.BUTTON],[R.CAPTION,f.CAPTION],[R.CENTER,f.CENTER],[R.CODE,f.CODE],[R.COL,f.COL],[R.COLGROUP,f.COLGROUP],[R.DD,f.DD],[R.DESC,f.DESC],[R.DETAILS,f.DETAILS],[R.DIALOG,f.DIALOG],[R.DIR,f.DIR],[R.DIV,f.DIV],[R.DL,f.DL],[R.DT,f.DT],[R.EM,f.EM],[R.EMBED,f.EMBED],[R.FIELDSET,f.FIELDSET],[R.FIGCAPTION,f.FIGCAPTION],[R.FIGURE,f.FIGURE],[R.FONT,f.FONT],[R.FOOTER,f.FOOTER],[R.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[R.FORM,f.FORM],[R.FRAME,f.FRAME],[R.FRAMESET,f.FRAMESET],[R.H1,f.H1],[R.H2,f.H2],[R.H3,f.H3],[R.H4,f.H4],[R.H5,f.H5],[R.H6,f.H6],[R.HEAD,f.HEAD],[R.HEADER,f.HEADER],[R.HGROUP,f.HGROUP],[R.HR,f.HR],[R.HTML,f.HTML],[R.I,f.I],[R.IMG,f.IMG],[R.IMAGE,f.IMAGE],[R.INPUT,f.INPUT],[R.IFRAME,f.IFRAME],[R.KEYGEN,f.KEYGEN],[R.LABEL,f.LABEL],[R.LI,f.LI],[R.LINK,f.LINK],[R.LISTING,f.LISTING],[R.MAIN,f.MAIN],[R.MALIGNMARK,f.MALIGNMARK],[R.MARQUEE,f.MARQUEE],[R.MATH,f.MATH],[R.MENU,f.MENU],[R.META,f.META],[R.MGLYPH,f.MGLYPH],[R.MI,f.MI],[R.MO,f.MO],[R.MN,f.MN],[R.MS,f.MS],[R.MTEXT,f.MTEXT],[R.NAV,f.NAV],[R.NOBR,f.NOBR],[R.NOFRAMES,f.NOFRAMES],[R.NOEMBED,f.NOEMBED],[R.NOSCRIPT,f.NOSCRIPT],[R.OBJECT,f.OBJECT],[R.OL,f.OL],[R.OPTGROUP,f.OPTGROUP],[R.OPTION,f.OPTION],[R.P,f.P],[R.PARAM,f.PARAM],[R.PLAINTEXT,f.PLAINTEXT],[R.PRE,f.PRE],[R.RB,f.RB],[R.RP,f.RP],[R.RT,f.RT],[R.RTC,f.RTC],[R.RUBY,f.RUBY],[R.S,f.S],[R.SCRIPT,f.SCRIPT],[R.SEARCH,f.SEARCH],[R.SECTION,f.SECTION],[R.SELECT,f.SELECT],[R.SOURCE,f.SOURCE],[R.SMALL,f.SMALL],[R.SPAN,f.SPAN],[R.STRIKE,f.STRIKE],[R.STRONG,f.STRONG],[R.STYLE,f.STYLE],[R.SUB,f.SUB],[R.SUMMARY,f.SUMMARY],[R.SUP,f.SUP],[R.TABLE,f.TABLE],[R.TBODY,f.TBODY],[R.TEMPLATE,f.TEMPLATE],[R.TEXTAREA,f.TEXTAREA],[R.TFOOT,f.TFOOT],[R.TD,f.TD],[R.TH,f.TH],[R.THEAD,f.THEAD],[R.TITLE,f.TITLE],[R.TR,f.TR],[R.TRACK,f.TRACK],[R.TT,f.TT],[R.U,f.U],[R.UL,f.UL],[R.SVG,f.SVG],[R.VAR,f.VAR],[R.WBR,f.WBR],[R.XMP,f.XMP]]);function Rr(e){var t;return(t=cI.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const W=f,dI={[j.HTML]:new Set([W.ADDRESS,W.APPLET,W.AREA,W.ARTICLE,W.ASIDE,W.BASE,W.BASEFONT,W.BGSOUND,W.BLOCKQUOTE,W.BODY,W.BR,W.BUTTON,W.CAPTION,W.CENTER,W.COL,W.COLGROUP,W.DD,W.DETAILS,W.DIR,W.DIV,W.DL,W.DT,W.EMBED,W.FIELDSET,W.FIGCAPTION,W.FIGURE,W.FOOTER,W.FORM,W.FRAME,W.FRAMESET,W.H1,W.H2,W.H3,W.H4,W.H5,W.H6,W.HEAD,W.HEADER,W.HGROUP,W.HR,W.HTML,W.IFRAME,W.IMG,W.INPUT,W.LI,W.LINK,W.LISTING,W.MAIN,W.MARQUEE,W.MENU,W.META,W.NAV,W.NOEMBED,W.NOFRAMES,W.NOSCRIPT,W.OBJECT,W.OL,W.P,W.PARAM,W.PLAINTEXT,W.PRE,W.SCRIPT,W.SECTION,W.SELECT,W.SOURCE,W.STYLE,W.SUMMARY,W.TABLE,W.TBODY,W.TD,W.TEMPLATE,W.TEXTAREA,W.TFOOT,W.TH,W.THEAD,W.TITLE,W.TR,W.TRACK,W.UL,W.WBR,W.XMP]),[j.MATHML]:new Set([W.MI,W.MO,W.MN,W.MS,W.MTEXT,W.ANNOTATION_XML]),[j.SVG]:new Set([W.TITLE,W.FOREIGN_OBJECT,W.DESC]),[j.XLINK]:new Set,[j.XML]:new Set,[j.XMLNS]:new Set},qu=new Set([W.H1,W.H2,W.H3,W.H4,W.H5,W.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var S;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(S||(S={}));const We={DATA:S.DATA,RCDATA:S.RCDATA,RAWTEXT:S.RAWTEXT,SCRIPT_DATA:S.SCRIPT_DATA,PLAINTEXT:S.PLAINTEXT,CDATA_SECTION:S.CDATA_SECTION};function fI(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function vi(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function hI(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function On(e){return hI(e)||vi(e)}function tg(e){return On(e)||fI(e)}function to(e){return e+32}function ng(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function rg(e){return ng(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function pI(e){return e===C.NULL?P.nullCharacterReference:e>1114111?P.characterReferenceOutsideUnicodeRange:Q0(e)?P.surrogateCharacterReference:J0(e)?P.noncharacterCharacterReference:Z0(e)||e===C.CARRIAGE_RETURN?P.controlCharacterReference:null}class mI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=S.DATA,this.returnState=S.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new uI(tI,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=pI(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:we.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:we.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:we.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:we.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(eg(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Rr(t.tagName),t.type===we.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(P.endTagWithAttributes),t.selfClosing&&this._err(P.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case we.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case we.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case we.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:we.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ng(t)?we.WHITESPACE_CHARACTER:t===C.NULL?we.NULL_CHARACTER:we.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(we.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=S.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gn.Attribute:gn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===S.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case S.DATA:{this._stateData(t);break}case S.RCDATA:{this._stateRcdata(t);break}case S.RAWTEXT:{this._stateRawtext(t);break}case S.SCRIPT_DATA:{this._stateScriptData(t);break}case S.PLAINTEXT:{this._statePlaintext(t);break}case S.TAG_OPEN:{this._stateTagOpen(t);break}case S.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case S.TAG_NAME:{this._stateTagName(t);break}case S.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case S.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case S.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case S.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case S.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case S.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case S.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case S.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case S.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case S.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case S.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case S.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case S.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case S.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case S.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case S.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case S.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case S.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case S.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case S.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case S.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case S.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case S.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case S.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case S.BOGUS_COMMENT:{this._stateBogusComment(t);break}case S.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case S.COMMENT_START:{this._stateCommentStart(t);break}case S.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case S.COMMENT:{this._stateComment(t);break}case S.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case S.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case S.COMMENT_END:{this._stateCommentEnd(t);break}case S.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case S.DOCTYPE:{this._stateDoctype(t);break}case S.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case S.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case S.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case S.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case S.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case S.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case S.CDATA_SECTION:{this._stateCdataSection(t);break}case S.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case S.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case S.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case S.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=S.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=S.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=S.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(On(t))this._createStartTagToken(),this.state=S.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=S.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=S.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(P.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=S.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(On(t))this._createEndTagToken(),this.state=S.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(P.missingEndTagName),this.state=S.DATA;break}case C.EOF:{this._err(P.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=S.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.tagName+=Ye;break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(vi(t)?to(t):t)}}_stateRcdataLessThanSign(t){t===C.SOLIDUS?this.state=S.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=S.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){On(t)?(this.state=S.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=S.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=S.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=S.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=S.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===C.SOLIDUS?this.state=S.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){On(t)?(this.state=S.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case C.SOLIDUS:{this.state=S.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=S.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=S.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){On(t)?(this.state=S.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===C.HYPHEN_MINUS?(this.state=S.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===C.HYPHEN_MINUS?(this.state=S.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=S.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:On(t)?(this._emitChars("<"),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){On(t)?(this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(yt.SCRIPT,!1)&&rg(this.preprocessor.peek(yt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=S.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case C.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(yt.SCRIPT,!1)&&rg(this.preprocessor.peek(yt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<yt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=S.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=S.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=S.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=S.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=S.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=S.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.name+=Ye;break}default:this.currentAttr.name+=String.fromCodePoint(vi(t)?to(t):t)}}_stateAfterAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=S.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=S.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=S.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=S.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=S.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(P.missingAttributeValue),this.state=S.DATA,this.emitCurrentTagToken();break}default:this.state=S.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case C.QUOTATION_MARK:{this.state=S.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case C.APOSTROPHE:{this.state=S.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=S.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=S.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=S.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=S.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=S.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBetweenAttributes),this.state=S.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=S.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.unexpectedSolidusInTag),this.state=S.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ye;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(yt.DASH_DASH,!0)?(this._createCommentToken(yt.DASH_DASH.length+1),this.state=S.COMMENT_START):this._consumeSequenceIfMatch(yt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(yt.DOCTYPE.length+1),this.state=S.DOCTYPE):this._consumeSequenceIfMatch(yt.CDATA_START,!0)?this.inForeignNode?this.state=S.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(yt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=S.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case C.HYPHEN_MINUS:{this.state=S.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=S.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=S.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=S.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=S.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=S.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=S.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=S.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ye;break}case C.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case C.EXCLAMATION_MARK:{n.data+="!",this.state=S.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=S.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===C.HYPHEN_MINUS?this.state=S.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=S.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===C.HYPHEN_MINUS?this.state=S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=S.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==C.GREATER_THAN_SIGN&&t!==C.EOF&&this._err(P.nestedComment),this.state=S.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=S.COMMENT_END;break}case C.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=S.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=S.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=S.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{n.data+="--!",this.state=S.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(P.incorrectlyClosedComment),this.state=S.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=S.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=S.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case C.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=S.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(vi(t))this._createDoctypeToken(String.fromCharCode(to(t))),this.state=S.DOCTYPE_NAME;else switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(P.unexpectedNullCharacter),this._createDoctypeToken(Ye),this.state=S.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=S.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.name+=Ye;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(vi(t)?to(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(yt.PUBLIC,!1)?this.state=S.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(yt.SYSTEM,!1)?this.state=S.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ye;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ye;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ye;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ye;break}case C.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case C.NULL:{this._err(P.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case C.RIGHT_SQUARE_BRACKET:{this.state=S.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(P.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===C.RIGHT_SQUARE_BRACKET?this.state=S.CDATA_SECTION_END:(this._emitChars("]"),this.state=S.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case C.GREATER_THAN_SIGN:{this.state=S.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=S.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&tg(this.preprocessor.peek(1))?S.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){tg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===C.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ig=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),ag=new Set([...ig,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),no=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),gI=new Set([...no,f.OL,f.UL]),EI=new Set([...no,f.BUTTON]),og=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),sg=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),bI=new Set([f.TR,f.TEMPLATE,f.HTML]),_I=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),TI=new Set([f.TABLE,f.TEMPLATE,f.HTML]),AI=new Set([f.TD,f.TH]);class CI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===j.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==j.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qu,j.HTML)}popUntilTableCellPopped(){this.popUntilPopped(AI,j.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(TI,j.HTML)}clearBackToTableBodyContext(){this.clearBackTo(_I,j.HTML)}clearBackToTableRowContext(){this.clearBackTo(bI,j.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case j.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case j.SVG:{if(sg.has(i))return!1;break}case j.MATHML:{if(og.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,no)}hasInListItemScope(t){return this.hasInDynamicScope(t,gI)}hasInButtonScope(t){return this.hasInDynamicScope(t,EI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case j.HTML:{if(qu.has(n))return!0;if(no.has(n))return!1;break}case j.SVG:{if(sg.has(n))return!1;break}case j.MATHML:{if(og.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===j.HTML)switch(this.tagIDs[t]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ig.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ag.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ag.has(this.currentTagId);)this.pop()}}const Vu=3;var an;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(an||(an={}));const ug={type:an.Marker};class xI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const u=this.entries[s];if(u.type===an.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===o){const d=this.treeAdapter.getAttrList(l);d.length===i&&r.push({idx:s,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Vu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Vu)return;const i=new Map(n.map(o=>[o.name,o.value]));let a=0;for(let o=0;o<r.length;o++){const s=r[o];s.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=Vu&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(ug)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:an.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:an.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ug);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===an.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===an.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===an.Element&&n.element===t)}}const Rn={createDocument(){return{nodeName:"#document",mode:Bt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Rn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Rn.isTextNode(n)){n.value+=t;return}}Rn.appendChild(e,Rn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Rn.isTextNode(r)?r.value+=t:Rn.insertBefore(e,Rn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},lg="html",yI="about:legacy-compat",SI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",cg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],NI=[...cg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],DI=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),dg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wI=[...dg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function fg(e,t){return t.some(n=>e.startsWith(n))}function vI(e){return e.name===lg&&e.publicId===null&&(e.systemId===null||e.systemId===yI)}function II(e){if(e.name!==lg)return Bt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===SI)return Bt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),DI.has(n))return Bt.QUIRKS;let r=t===null?NI:cg;if(fg(n,r))return Bt.QUIRKS;if(r=t===null?dg:wI,fg(n,r))return Bt.LIMITED_QUIRKS}return Bt.NO_QUIRKS}const hg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},kI="definitionurl",OI="definitionURL",RI=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),MI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:j.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:j.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:j.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:j.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:j.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:j.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:j.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:j.XML}],["xml:space",{prefix:"xml",name:"space",namespace:j.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:j.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:j.XMLNS}]]),LI=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),PI=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function FI(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:r})=>r===er.COLOR||r===er.SIZE||r===er.FACE)||PI.has(t)}function pg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===kI){e.attrs[t].name=OI;break}}function mg(e){for(let t=0;t<e.attrs.length;t++){const n=RI.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Xu(e){for(let t=0;t<e.attrs.length;t++){const n=MI.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function BI(e){const t=LI.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Rr(e.tagName))}function UI(e,t){return t===j.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function HI(e,t,n){if(t===j.MATHML&&e===f.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===er.ENCODING){const i=n[r].value.toLowerCase();return i===hg.TEXT_HTML||i===hg.APPLICATION_XML}}return t===j.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function zI(e,t,n,r){return(!r||r===j.HTML)&&HI(e,t,n)||(!r||r===j.MATHML)&&UI(e,t)}const $I="hidden",jI=8,YI=3;var D;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const GI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},gg=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),Eg={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Rn,onParseError:null};class bg{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Eg,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new mI(this.options,this),this.activeFormattingElements=new xI(this.treeAdapter),this.fragmentContextID=r?Rr(this.treeAdapter.getTagName(r)):f.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new CI(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Eg,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,j.HTML,[]));const i=r.treeAdapter.createElement("documentmock",j.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===f.TEMPLATE&&a.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:GI,o={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,o;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,o=this.fragmentContextID):{current:a,currentTagId:o}=this.openElements,this._setContextModes(a,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===j.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,j.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=We.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==j.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=We.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=We.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=We.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=We.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,j.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,j.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,j.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:u,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:l,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===we.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===j.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,j.HTML)}_processToken(t){switch(t.type){case we.CHARACTER:{this.onCharacter(t);break}case we.NULL_CHARACTER:{this.onNullCharacter(t);break}case we.COMMENT:{this.onComment(t);break}case we.DOCTYPE:{this.onDoctype(t);break}case we.START_TAG:{this._processStartTag(t);break}case we.END_TAG:{this.onEndTag(t);break}case we.EOF:{this.onEof(t);break}case we.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return zI(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===an.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=D.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=D.IN_TABLE;return}case f.BODY:{this.insertionMode=D.IN_BODY;return}case f.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=D.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===f.TEMPLATE)break;if(r===f.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(t){return gg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===j.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case f.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return dI[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){AO(this,t);return}switch(this.insertionMode){case D.INITIAL:{Ii(this,t);break}case D.BEFORE_HTML:{ki(this,t);break}case D.BEFORE_HEAD:{Oi(this,t);break}case D.IN_HEAD:{Ri(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Mi(this,t);break}case D.AFTER_HEAD:{Li(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{Tg(this,t);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_TABLE_TEXT:{wg(this,t);break}case D.IN_COLUMN_GROUP:{ao(this,t);break}case D.AFTER_BODY:{uo(this,t);break}case D.AFTER_AFTER_BODY:{lo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TO(this,t);return}switch(this.insertionMode){case D.INITIAL:{Ii(this,t);break}case D.BEFORE_HTML:{ki(this,t);break}case D.BEFORE_HEAD:{Oi(this,t);break}case D.IN_HEAD:{Ri(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Mi(this,t);break}case D.AFTER_HEAD:{Li(this,t);break}case D.TEXT:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_COLUMN_GROUP:{ao(this,t);break}case D.AFTER_BODY:{uo(this,t);break}case D.AFTER_AFTER_BODY:{lo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zu(this,t);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{Zu(this,t);break}case D.IN_TABLE_TEXT:{Bi(this,t);break}case D.AFTER_BODY:{ZI(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{JI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{ek(this,t);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(t,P.misplacedDoctype);break}case D.IN_TABLE_TEXT:{Bi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?CO(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Ii(this,t);break}case D.BEFORE_HTML:{tk(this,t);break}case D.BEFORE_HEAD:{rk(this,t);break}case D.IN_HEAD:{Yt(this,t);break}case D.IN_HEAD_NO_SCRIPT:{ok(this,t);break}case D.AFTER_HEAD:{uk(this,t);break}case D.IN_BODY:{pt(this,t);break}case D.IN_TABLE:{Mr(this,t);break}case D.IN_TABLE_TEXT:{Bi(this,t);break}case D.IN_CAPTION:{iO(this,t);break}case D.IN_COLUMN_GROUP:{tl(this,t);break}case D.IN_TABLE_BODY:{oo(this,t);break}case D.IN_ROW:{so(this,t);break}case D.IN_CELL:{sO(this,t);break}case D.IN_SELECT:{kg(this,t);break}case D.IN_SELECT_IN_TABLE:{lO(this,t);break}case D.IN_TEMPLATE:{dO(this,t);break}case D.AFTER_BODY:{hO(this,t);break}case D.IN_FRAMESET:{pO(this,t);break}case D.AFTER_FRAMESET:{gO(this,t);break}case D.AFTER_AFTER_BODY:{bO(this,t);break}case D.AFTER_AFTER_FRAMESET:{_O(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?xO(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Ii(this,t);break}case D.BEFORE_HTML:{nk(this,t);break}case D.BEFORE_HEAD:{ik(this,t);break}case D.IN_HEAD:{ak(this,t);break}case D.IN_HEAD_NO_SCRIPT:{sk(this,t);break}case D.AFTER_HEAD:{lk(this,t);break}case D.IN_BODY:{io(this,t);break}case D.TEXT:{qk(this,t);break}case D.IN_TABLE:{Pi(this,t);break}case D.IN_TABLE_TEXT:{Bi(this,t);break}case D.IN_CAPTION:{aO(this,t);break}case D.IN_COLUMN_GROUP:{oO(this,t);break}case D.IN_TABLE_BODY:{nl(this,t);break}case D.IN_ROW:{Ig(this,t);break}case D.IN_CELL:{uO(this,t);break}case D.IN_SELECT:{Og(this,t);break}case D.IN_SELECT_IN_TABLE:{cO(this,t);break}case D.IN_TEMPLATE:{fO(this,t);break}case D.AFTER_BODY:{Mg(this,t);break}case D.IN_FRAMESET:{mO(this,t);break}case D.AFTER_FRAMESET:{EO(this,t);break}case D.AFTER_AFTER_BODY:{lo(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{Ii(this,t);break}case D.BEFORE_HTML:{ki(this,t);break}case D.BEFORE_HEAD:{Oi(this,t);break}case D.IN_HEAD:{Ri(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Mi(this,t);break}case D.AFTER_HEAD:{Li(this,t);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{Ng(this,t);break}case D.TEXT:{Vk(this,t);break}case D.IN_TABLE_TEXT:{Bi(this,t);break}case D.IN_TEMPLATE:{Rg(this,t);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Ju(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{_g(this,t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_TABLE_TEXT:{Dg(this,t);break}}}}function WI(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Sg(e,t),n}function KI(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function qI(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=YI;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=VI(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function VI(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function XI(e,t,n){const r=e.treeAdapter.getTagName(t),i=Rr(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===f.TEMPLATE&&a===j.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function QI(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Qu(e,t){for(let n=0;n<jI;n++){const r=WI(e,t);if(!r)break;const i=KI(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=qI(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),o&&XI(e,o,a),QI(e,i,r)}}function Zu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ZI(e,t){e._appendCommentNode(t,e.openElements.items[0])}function JI(e,t){e._appendCommentNode(t,e.document)}function Ju(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t)}}}}function ek(e,t){e._setDocumentType(t);const n=t.forceQuirks?Bt.QUIRKS:II(t);vI(t)||e._err(t,P.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function Ii(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Bt.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function tk(e,t){t.tagID===f.HTML?(e._insertElement(t,j.HTML),e.insertionMode=D.BEFORE_HEAD):ki(e,t)}function nk(e,t){const n=t.tagID;(n===f.HTML||n===f.HEAD||n===f.BODY||n===f.BR)&&ki(e,t)}function ki(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function rk(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.HEAD:{e._insertElement(t,j.HTML),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD;break}default:Oi(e,t)}}function ik(e,t){const n=t.tagID;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?Oi(e,t):e._err(t,P.endTagWithoutMatchingOpenElement)}function Oi(e,t){e._insertFakeElement(R.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD,e._processToken(t)}function Yt(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,We.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,We.RAWTEXT):(e._insertElement(t,j.HTML),e.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,We.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,We.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=D.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case f.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:Ri(e,t)}}function ak(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=D.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{Ri(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function tr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function Ri(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function ok(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{Yt(e,t);break}case f.NOSCRIPT:{e._err(t,P.nestedNoscriptInHead);break}default:Mi(e,t)}}function sk(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case f.BR:{Mi(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function Mi(e,t){const n=t.type===we.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=D.IN_HEAD,e._processToken(t)}function uk(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.BODY:{e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=D.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,j.HTML),e.insertionMode=D.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,P.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),Yt(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:Li(e,t)}}function lk(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{Li(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function Li(e,t){e._insertFakeElement(R.BODY,f.BODY),e.insertionMode=D.IN_BODY,ro(e,t)}function ro(e,t){switch(t.type){case we.CHARACTER:{Tg(e,t);break}case we.WHITESPACE_CHARACTER:{_g(e,t);break}case we.COMMENT:{Zu(e,t);break}case we.START_TAG:{pt(e,t);break}case we.END_TAG:{io(e,t);break}case we.EOF:{Ng(e,t);break}}}function _g(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Tg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ck(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function dk(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function fk(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_FRAMESET)}function hk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function pk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,j.HTML)}function mk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function gk(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),n||(e.formElement=e.openElements.current))}function Ek(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===f.LI&&i===f.LI||(n===f.DD||n===f.DT)&&(i===f.DD||i===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==f.ADDRESS&&i!==f.DIV&&i!==f.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function bk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.tokenizer.state=We.PLAINTEXT}function _k(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1}function Tk(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(Qu(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ak(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ck(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(Qu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xk(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function yk(e,t){e.treeAdapter.getDocumentMode(e.document)!==Bt.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=D.IN_TABLE}function Ag(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Cg(e){const t=eg(e,er.TYPE);return t!=null&&t.toLowerCase()===$I}function Sk(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),Cg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Nk(e,t){e._appendElement(t,j.HTML),t.ackSelfClosing=!0}function Dk(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wk(e,t){t.tagName=R.IMG,t.tagID=f.IMG,Ag(e,t)}function vk(e,t){e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.tokenizer.state=We.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=D.TEXT}function Ik(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,We.RAWTEXT)}function kk(e,t){e.framesetOk=!1,e._switchToTextParsing(t,We.RAWTEXT)}function xg(e,t){e._switchToTextParsing(t,We.RAWTEXT)}function Ok(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===D.IN_TABLE||e.insertionMode===D.IN_CAPTION||e.insertionMode===D.IN_TABLE_BODY||e.insertionMode===D.IN_ROW||e.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function Rk(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function Mk(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,j.HTML)}function Lk(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,j.HTML)}function Pk(e,t){e._reconstructActiveFormattingElements(),pg(t),Xu(t),t.selfClosing?e._appendElement(t,j.MATHML):e._insertElement(t,j.MATHML),t.ackSelfClosing=!0}function Fk(e,t){e._reconstructActiveFormattingElements(),mg(t),Xu(t),t.selfClosing?e._appendElement(t,j.SVG):e._insertElement(t,j.SVG),t.ackSelfClosing=!0}function yg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function pt(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{Ak(e,t);break}case f.A:{Tk(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{pk(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{hk(e,t);break}case f.LI:case f.DD:case f.DT:{Ek(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{Ag(e,t);break}case f.HR:{Dk(e,t);break}case f.RB:case f.RTC:{Mk(e,t);break}case f.RT:case f.RP:{Lk(e,t);break}case f.PRE:case f.LISTING:{mk(e,t);break}case f.XMP:{Ik(e,t);break}case f.SVG:{Fk(e,t);break}case f.HTML:{ck(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{Yt(e,t);break}case f.BODY:{dk(e,t);break}case f.FORM:{gk(e,t);break}case f.NOBR:{Ck(e,t);break}case f.MATH:{Pk(e,t);break}case f.TABLE:{yk(e,t);break}case f.INPUT:{Sk(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{Nk(e,t);break}case f.IMAGE:{wk(e,t);break}case f.BUTTON:{_k(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{xk(e,t);break}case f.IFRAME:{kk(e,t);break}case f.SELECT:{Ok(e,t);break}case f.OPTION:case f.OPTGROUP:{Rk(e,t);break}case f.NOEMBED:case f.NOFRAMES:{xg(e,t);break}case f.FRAMESET:{fk(e,t);break}case f.TEXTAREA:{vk(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?xg(e,t):yg(e,t);break}case f.PLAINTEXT:{bk(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:yg(e,t)}}function Bk(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=D.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Uk(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=D.AFTER_BODY,Mg(e,t))}function Hk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function zk(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):n&&e.openElements.remove(n))}function $k(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(R.P,f.P),e._closePElement()}function jk(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function Yk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Gk(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Wk(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Kk(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function Sg(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function io(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{Qu(e,t);break}case f.P:{$k(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{Hk(e,t);break}case f.LI:{jk(e);break}case f.DD:case f.DT:{Yk(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{Gk(e);break}case f.BR:{Kk(e);break}case f.BODY:{Bk(e,t);break}case f.HTML:{Uk(e,t);break}case f.FORM:{zk(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{Wk(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:Sg(e,t)}}function Ng(e,t){e.tmplInsertionModeStack.length>0?Rg(e,t):Ju(e,t)}function qk(e,t){var n;t.tagID===f.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Vk(e,t){e._err(t,P.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function el(e,t){if(e.openElements.currentTagId!==void 0&&gg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D.IN_TABLE_TEXT,t.type){case we.CHARACTER:{wg(e,t);break}case we.WHITESPACE_CHARACTER:{Dg(e,t);break}}else Fi(e,t)}function Xk(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_CAPTION}function Qk(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function Zk(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,f.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,tl(e,t)}function Jk(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_TABLE_BODY}function eO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,f.TBODY),e.insertionMode=D.IN_TABLE_BODY,oo(e,t)}function tO(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nO(e,t){Cg(t)?e._appendElement(t,j.HTML):Fi(e,t),t.ackSelfClosing=!0}function rO(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,j.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Mr(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{eO(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{Yt(e,t);break}case f.COL:{Zk(e,t);break}case f.FORM:{rO(e,t);break}case f.TABLE:{tO(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{Jk(e,t);break}case f.INPUT:{nO(e,t);break}case f.CAPTION:{Xk(e,t);break}case f.COLGROUP:{Qk(e,t);break}default:Fi(e,t)}}function Pi(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{tr(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:Fi(e,t)}}function Fi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ro(e,t),e.fosterParentingEnabled=n}function Dg(e,t){e.pendingCharacterTokens.push(t)}function wg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Bi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Fi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const vg=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function iO(e,t){const n=t.tagID;vg.has(n)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,Mr(e,t)):pt(e,t)}function aO(e,t){const n=t.tagID;switch(n){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,n===f.TABLE&&Pi(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:io(e,t)}}function tl(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.COL:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{Yt(e,t);break}default:ao(e,t)}}function oO(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case f.TEMPLATE:{tr(e,t);break}case f.COL:break;default:ao(e,t)}}function ao(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE,e._processToken(t))}function oo(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,f.TR),e.insertionMode=D.IN_ROW,so(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Mr(e,t));break}default:Mr(e,t)}}function nl(e,t){const n=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Pi(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:Pi(e,t)}}function so(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,oo(e,t));break}default:Mr(e,t)}}function Ig(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,nl(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,nl(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:Pi(e,t)}}function sO(e,t){const n=t.tagID;vg.has(n)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),so(e,t)):pt(e,t)}function uO(e,t){const n=t.tagID;switch(n){case f.TD:case f.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ig(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:io(e,t)}}function kg(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{Yt(e,t);break}}}function Og(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{tr(e,t);break}}}function lO(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):kg(e,t)}function cO(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Og(e,t)}function dO(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{Yt(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=D.IN_TABLE,e.insertionMode=D.IN_TABLE,Mr(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,e.insertionMode=D.IN_COLUMN_GROUP,tl(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,e.insertionMode=D.IN_TABLE_BODY,oo(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=D.IN_ROW,e.insertionMode=D.IN_ROW,so(e,t);break}default:e.tmplInsertionModeStack[0]=D.IN_BODY,e.insertionMode=D.IN_BODY,pt(e,t)}}function fO(e,t){t.tagID===f.TEMPLATE&&tr(e,t)}function Rg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ju(e,t)}function hO(e,t){t.tagID===f.HTML?pt(e,t):uo(e,t)}function Mg(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=D.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else uo(e,t)}function uo(e,t){e.insertionMode=D.IN_BODY,ro(e,t)}function pO(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.FRAMESET:{e._insertElement(t,j.HTML);break}case f.FRAME:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{Yt(e,t);break}}}function mO(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=D.AFTER_FRAMESET))}function gO(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.NOFRAMES:{Yt(e,t);break}}}function EO(e,t){t.tagID===f.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function bO(e,t){t.tagID===f.HTML?pt(e,t):lo(e,t)}function lo(e,t){e.insertionMode=D.IN_BODY,ro(e,t)}function _O(e,t){switch(t.tagID){case f.HTML:{pt(e,t);break}case f.NOFRAMES:{Yt(e,t);break}}}function TO(e,t){t.chars=Ye,e._insertCharacters(t)}function AO(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lg(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==j.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function CO(e,t){if(FI(t))Lg(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===j.MATHML?pg(t):r===j.SVG&&(BI(t),mg(t)),Xu(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function xO(e,t){if(t.tagID===f.P||t.tagID===f.BR){Lg(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===j.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const yO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,SO=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Pg={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Fg(e,t){const n=LO(e),r=s0("type",{handlers:{root:NO,element:DO,text:wO,comment:Ug,doctype:vO,raw:kO},unknown:OO}),i={parser:n?new bg(Pg):bg.getFragmentParser(void 0,Pg),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Lr(i,tn());const a=n?i.parser.document:i.parser.getFragment(),o=N2(a,{file:i.options.file});return i.stitches&&Xn(o,"comment",function(s,u,l){const d=s;if(d.value.stitch&&l&&u!==void 0){const c=l.children;return c[u]=d.value.stitch,u}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function Bg(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function NO(e,t){Bg(e.children,t)}function DO(e,t){RO(e,t),Bg(e.children,t),MO(e,t)}function wO(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:we.CHARACTER,chars:e.value,location:Ui(e)};Lr(t,tn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function vO(e,t){const n={type:we.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ui(e)};Lr(t,tn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function IO(e,t){t.stitches=!0;const n=PO(e);if("children"in e&&"children"in n){const r=Fg({type:"root",children:e.children},t.options);n.children=r.children}Ug({type:"comment",value:{stitch:n}},t)}function Ug(e,t){const n=e.value,r={type:we.COMMENT,data:n,location:Ui(e)};Lr(t,tn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function kO(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Hg(t,tn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(yO,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function OO(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))IO(n,t);else{let r="";throw SO.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Lr(e,t){Hg(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=We.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Hg(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function RO(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===We.PLAINTEXT)return;Lr(t,tn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Zn.html;i===Zn.html&&n==="svg"&&(i=Zn.svg);const a=z2({...e,children:[]},{space:i===Zn.svg?"svg":"html"}),o={type:we.START_TAG,tagName:n,tagID:Rr(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ui(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function MO(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&V2.includes(n)||t.parser.tokenizer.state===We.PLAINTEXT)return;Lr(t,Ua(e));const r={type:we.END_TAG,tagName:n,tagID:Rr(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ui(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===We.RCDATA||t.parser.tokenizer.state===We.RAWTEXT||t.parser.tokenizer.state===We.SCRIPT_DATA)&&(t.parser.tokenizer.state=We.DATA)}function LO(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ui(e){const t=tn(e)||{line:void 0,column:void 0,offset:void 0},n=Ua(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function PO(e){return"children"in e?Vn({...e,children:[]}):Vn(e)}function FO(e){return function(t,n){return Fg(t,{...e,file:n})}}const zg=function(e,t,n){const r=Si(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},$g=/\n/g,jg=/[\t ]+/g,rl=In("br"),Yg=In(GO),BO=In("p"),Gg=In("tr"),UO=In(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",YO,WO]),Wg=In(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function HO(e,t){const n=t||{},r="children"in e?e.children:[],i=Wg(e),a=Vg(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...qg(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...Kg(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?rl(r[s+1]):i}));const u=[];let l;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?l!==void 0&&d>l&&(l=d):d&&(l!==void 0&&l>-1&&u.push(`
161
- `.repeat(l)||" "),l=-1,u.push(d))}return u.join("")}function Kg(e,t,n){return e.type==="element"?zO(e,t,n):e.type==="text"?n.whitespace==="normal"?qg(e,n):$O(e):[]}function zO(e,t,n){const r=Vg(e,n),i=e.children||[];let a=-1,o=[];if(UO(e))return o;let s,u;for(rl(e)||Gg(e)&&zg(t,e,Gg)?u=`
162
- `:BO(e)?(s=2,u=2):Wg(e)&&(s=1,u=1);++a<i.length;)o=o.concat(Kg(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?rl(i[a+1]):u}));return Yg(e)&&zg(t,e,Yg)&&o.push(" "),s&&o.unshift(s),u&&o.push(u),o}function qg(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){$g.lastIndex=a;const u=$g.exec(n),l=u&&"index"in u?u.index:n.length;r.push(jO(n.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),a=l+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function $O(e){return[String(e.value)]}function jO(e,t,n){const r=[];let i=0,a;for(;i<e.length;){jg.lastIndex=i;const o=jg.exec(e);a=o?o.index:e.length,!i&&!a&&o&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=o?a+o[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function Vg(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function YO(e){return!!(e.properties||{}).hidden}function GO(e){return e.tagName==="td"||e.tagName==="th"}function WO(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function KO(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},O={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[O,c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:w.concat([{begin:/\(/,end:/\)/,keywords:k,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,H,O,w,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function qO(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=KO(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function VO(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const u={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],T=["true","false"],_={match:/(\/[a-z._-]+)+/},x=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],N=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],k=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:T,built_in:[...x,...N,"set","shopt",...k,...O]},contains:[p,e.SHEBANG(),g,c,a,o,_,s,u,l,d,n]}}function XO(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",T={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},_=[c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:_.concat([{begin:/\(/,end:/\)/,keywords:T,contains:_.concat(["self"]),relevance:0}]),relevance:0},N={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:T,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"</",contains:[].concat(x,N,_,[c,{begin:e.IDENT_RE+"::",keywords:T},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:l,keywords:T}}}function QO(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:b,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},O={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[O,c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:w.concat([{begin:/\(/,end:/\)/,keywords:k,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,H,O,w,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ZO(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=e.inherit(d,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(h,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},T=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});h.contains=[b,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],p.contains=[T,g,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[l,b,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},x={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},N=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},_,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,x,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,x,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+N+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,x],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[_,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},k]}}const JO=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),eR=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],tR=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],nR=[...eR,...tR],rR=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),iR=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),aR=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),oR=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function sR(e){const t=e.regex,n=JO(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+iR.join("|")+")"},{begin:":(:)?("+aR.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+oR.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:rR.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+nR.join("|")+")\\b"}]}}function uR(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function lR(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function cR(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function dR(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,c=t.either(u,l,d),h=t.concat(c,"(\\s*\\.\\s*",c,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}var Pr="[0-9](_*[0-9])*",co=`\\.(${Pr})`,fo="[0-9a-fA-F](_*[0-9a-fA-F])*",Xg={className:"number",variants:[{begin:`(\\b(${Pr})((${co})|\\.)?|(${co}))[eE][+-]?(${Pr})[fFdD]?\\b`},{begin:`\\b(${Pr})((${co})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${co})[fFdD]?\\b`},{begin:`\\b(${Pr})[fFdD]\\b`},{begin:`\\b0[xX]((${fo})\\.?|(${fo})?\\.(${fo}))[pP][+-]?(${Pr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${fo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Qg(e,t,n){return n===-1?"":e.replace(t,r=>Qg(e,t,n-1))}function fR(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Qg("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Xg,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Xg,l]}}const Zg="[A-Za-z$_][0-9A-Za-z$_]*",hR=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],pR=["true","false","null","undefined","NaN","Infinity"],Jg=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],eE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],tE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],mR=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],gR=[].concat(tE,Jg,eE);function ER(e){const t=e.regex,n=(q,{after:Q})=>{const A="</"+q[0].slice(1);return q.input.indexOf(A,Q)!==-1},r=Zg,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Q)=>{const A=q[0].length+q.index,ee=q.input[A];if(ee==="<"||ee===","){Q.ignoreMatch();return}ee===">"&&(n(q,{after:A})||Q.ignoreMatch());let L;const y=q.input.substring(A);if(L=y.match(/^\s*=/)){Q.ignoreMatch();return}if((L=y.match(/^\s+extends\s+/))&&L.index===0){Q.ignoreMatch();return}}},s={$pattern:Zg,keyword:hR,literal:pR,built_in:gR,"variable.language":mR},u="[0-9](_?[0-9])*",l=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},x={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,b,T,{match:/\$\d+/},c];h.contains=N.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(N)});const k=[].concat(x,h.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},M={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Jg,...eE]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(q){return t.concat("(?!",q.join("|"),")")}const G={match:t.concat(/\b/,Y([...tE,"super","import"].map(q=>`${q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},ie="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ie)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,b,T,x,{match:/\$\d+/},c,H,{scope:"attr",match:r+t.lookahead(":"),relevance:0},pe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:ie,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},G,$,M,K,{match:/\$[(.]/}]}}function bR(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Fr="[0-9](_*[0-9])*",ho=`\\.(${Fr})`,po="[0-9a-fA-F](_*[0-9a-fA-F])*",_R={className:"number",variants:[{begin:`(\\b(${Fr})((${ho})|\\.)?|(${ho}))[eE][+-]?(${Fr})[fFdD]?\\b`},{begin:`\\b(${Fr})((${ho})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ho})[fFdD]?\\b`},{begin:`\\b(${Fr})[fFdD]\\b`},{begin:`\\b0[xX]((${po})\\.?|(${po})?\\.(${po}))[pP][+-]?(${Fr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${po})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function TR(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=_R,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),c={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=c;return h.variants[1].contains=[c],c.variants[1].contains=[h],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,s,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[c,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,u,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,u]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
163
- `},l]}}const AR=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),CR=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xR=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],yR=[...CR,...xR],SR=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),nE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),rE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),NR=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),DR=nE.concat(rE).sort().reverse();function wR(e){const t=AR(e),n=DR,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],u=function(N){return{className:"string",begin:"~?"+N+".*?"+N}},l=function(N,k,O){return{className:N,begin:k,relevance:O}},d={$pattern:/[a-z-]+/,keyword:r,attribute:SR.join(" ")},c={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u("'"),u('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,c,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const h=s.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+NR.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},T={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:h}},_={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+yR.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",a,0),l("selector-id","#"+a),l("selector-class","\\."+a,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+nE.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+rE.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:h},{begin:"!important"},t.FUNCTION_DISPATCH]},x={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[_]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,T,x,g,_,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function vR(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function IR(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}function kR(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},c=e.inherit(l,{contains:[]}),h=e.inherit(d,{contains:[]});l.contains.push(h),d.contains.push(c);let p=[n,u];return[l,d,c,h].forEach(_=>{_.contains=_.contains.concat(p)}),p=p.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,a,l,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function OR(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function RR(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,u],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,T,_="\\1")=>{const x=_==="\\1"?_:t.concat(_,T);return t.concat(t.concat("(?:",b,")"),T,/(?:\\.|[^\\\/])*?/,x,/(?:\\.|[^\\\/])*?/,_,r)},p=(b,T,_)=>t.concat(t.concat("(?:",b,")"),T,/(?:\\.|[^\\\/])*?/,_,r),g=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...c,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=g,o.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function MR(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(B,K)=>{K.data._beginMatch=B[1]||B[2]},"on:end":(B,K)=>{K.data._beginMatch!==B[1]&&K.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
164
- ]`,g={scope:"string",variants:[d,l,c,h]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},T=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],x=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],k={keyword:_,literal:(B=>{const K=[];return B.forEach(ie=>{K.push(ie),ie.toLowerCase()===ie?K.push(ie.toUpperCase()):K.push(ie.toLowerCase())}),K})(T),built_in:x},O=B=>B.map(K=>K.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",O(x).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},M=t.concat(r,"\\b(?!\\()"),H={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},z={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:k,contains:[z,o,H,e.C_BLOCK_COMMENT_MODE,g,b,w]},$={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",O(_).join("\\b|"),"|",O(x).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push($);const Y=[z,H,e.C_BLOCK_COMMENT_MODE,g,b,w],G={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:T,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:T,keyword:["new","array"]},contains:["self",...Y]},...Y,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:k,contains:[G,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,$,H,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:k,contains:["self",G,o,H,e.C_BLOCK_COMMENT_MODE,g,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,b]}}function LR(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function PR(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function FR(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,g=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${g})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${h})[jJ](?=${g})`}]},T={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",u,b,c,e.HASH_COMMENT_MODE]}]};return l.contains=[c,b,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[u,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},c,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,_,c]}]}}function BR(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function UR(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function HR(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},c={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},h="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},w=[c,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[c,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,l),relevance:0}].concat(u,l);d.contains=w,b.contains=w;const I=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:w}}];return l.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(I).concat(l).concat(w)}}function zR(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:u,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},a]}}const $R=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),jR=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],YR=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],GR=[...jR,...YR],WR=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),KR=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),qR=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),VR=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function XR(e){const t=$R(e),n=qR,r=KR,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+GR.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+VR.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:WR.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function QR(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function ZR(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],c=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,g=[...l,...u].filter(O=>!d.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function x(O){return t.concat(/\b/,t.either(...O.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}const N={scope:"keyword",match:x(h),relevance:0};function k(O,{exceptions:w,when:M}={}){const H=M;return w=w||[],O.map(z=>z.match(/\|\d+$/)||w.includes(z)?z:H(z)?`${z}|0`:z)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(g,{when:O=>O.length<3}),literal:a,type:s,built_in:c},contains:[{scope:"type",match:x(o)},N,_,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,T]}}function iE(e){return e?typeof e=="string"?e:e.source:null}function Hi(e){return Fe("(?=",e,")")}function Fe(...e){return e.map(n=>iE(n)).join("")}function JR(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function _t(...e){return"("+(JR(e).capture?"":"?:")+e.map(r=>iE(r)).join("|")+")"}const il=e=>Fe(/\b/,e,/\w$/.test(e)?/\b/:/\B/),eM=["Protocol","Type"].map(il),aE=["init","self"].map(il),tM=["Any","Self"],al=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],oE=["false","nil","true"],nM=["assignment","associativity","higherThan","left","lowerThan","none","right"],rM=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],sE=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],uE=_t(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),lE=_t(uE,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ol=Fe(uE,lE,"*"),cE=_t(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),mo=_t(cE,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),on=Fe(cE,mo,"*"),go=Fe(/[A-Z]/,mo,"*"),iM=["attached","autoclosure",Fe(/convention\(/,_t("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Fe(/objc\(/,on,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],aM=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function oM(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,_t(...eM,...aE)],className:{2:"keyword"}},a={match:Fe(/\./,_t(...al)),relevance:0},o=al.filter(Me=>typeof Me=="string").concat(["_|0"]),s=al.filter(Me=>typeof Me!="string").concat(tM).map(il),u={variants:[{className:"keyword",match:_t(...s,...aE)}]},l={$pattern:_t(/\b\w+/,/#\w+/),keyword:o.concat(rM),literal:oE},d=[i,a,u],c={match:Fe(/\./,_t(...sE)),relevance:0},h={className:"built_in",match:Fe(/\b/,_t(...sE),/(?=\()/)},p=[c,h],g={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:ol},{match:`\\.(\\.|${lE})+`}]},T=[g,b],_="([0-9]_*)+",x="([0-9a-fA-F]_*)+",N={className:"number",relevance:0,variants:[{match:`\\b(${_})(\\.(${_}))?([eE][+-]?(${_}))?\\b`},{match:`\\b0x(${x})(\\.(${x}))?([pP][+-]?(${_}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(Me="")=>({className:"subst",variants:[{match:Fe(/\\/,Me,/[0\\tnr"']/)},{match:Fe(/\\/,Me,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Me="")=>({className:"subst",match:Fe(/\\/,Me,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(Me="")=>({className:"subst",label:"interpol",begin:Fe(/\\/,Me,/\(/),end:/\)/}),M=(Me="")=>({begin:Fe(Me,/"""/),end:Fe(/"""/,Me),contains:[k(Me),O(Me),w(Me)]}),H=(Me="")=>({begin:Fe(Me,/"/),end:Fe(/"/,Me),contains:[k(Me),w(Me)]}),z={className:"string",variants:[M(),M("#"),M("##"),M("###"),H(),H("#"),H("##"),H("###")]},I=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],$={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:I},Y=Me=>{const bn=Fe(Me,/\//),_n=Fe(/\//,Me);return{begin:bn,end:_n,contains:[...I,{scope:"comment",begin:`#(?!.*${_n})`,end:/$/}]}},G={scope:"regexp",variants:[Y("###"),Y("##"),Y("#"),$]},B={match:Fe(/`/,on,/`/)},K={className:"variable",match:/\$\d+/},ie={className:"variable",match:`\\$${mo}+`},pe=[B,K,ie],q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:aM,contains:[...T,N,z]}]}},Q={scope:"keyword",match:Fe(/@/,_t(...iM),Hi(_t(/\(/,/\s+/)))},A={scope:"meta",match:Fe(/@/,on)},ee=[q,Q,A],L={match:Hi(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Fe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,mo,"+")},{className:"type",match:go,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Fe(/\s+&\s+/,Hi(go)),relevance:0}]},y={begin:/</,end:/>/,keywords:l,contains:[...r,...d,...ee,g,L]};L.contains.push(y);const se={match:Fe(on,/\s*:/),keywords:"_|0",relevance:0},te={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",se,...r,G,...d,...p,...T,N,z,...pe,...ee,L]},ue={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,L]},de={begin:_t(Hi(Fe(on,/\s*:/)),Hi(Fe(on,/\s+/,on,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:on}]},be={begin:/\(/,end:/\)/,keywords:l,contains:[de,...r,...d,...T,N,z,...ee,L,te],endsParent:!0,illegal:/["']/},Re={match:[/(func|macro)/,/\s+/,_t(B.match,on,ol)],className:{1:"keyword",3:"title.function"},contains:[ue,be,t],illegal:[/\[/,/%/]},Ge={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ue,be,t],illegal:/\[|%/},Ut={match:[/operator/,/\s+/,ol],className:{1:"keyword",3:"title"}},rr={begin:[/precedencegroup/,/\s+/,go],className:{1:"keyword",3:"title"},contains:[L],keywords:[...nM,...oE],end:/}/},un={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Wi={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},jr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,on,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[ue,...d,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:go},...d],relevance:0}]};for(const Me of z.variants){const bn=Me.contains.find(Yr=>Yr.label==="interpol");bn.keywords=l;const _n=[...d,...p,...T,N,z,...pe];bn.contains=[..._n,{begin:/\(/,end:/\)/,contains:["self",..._n]}]}return{name:"Swift",keywords:l,contains:[...r,Re,Ge,un,Wi,jr,Ut,rr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},G,...d,...p,...T,N,z,...pe,...ee,L,te]}}const Eo="[A-Za-z$_][0-9A-Za-z$_]*",dE=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],fE=["true","false","null","undefined","NaN","Infinity"],hE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],EE=[].concat(mE,hE,pE);function sM(e){const t=e.regex,n=(q,{after:Q})=>{const A="</"+q[0].slice(1);return q.input.indexOf(A,Q)!==-1},r=Eo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Q)=>{const A=q[0].length+q.index,ee=q.input[A];if(ee==="<"||ee===","){Q.ignoreMatch();return}ee===">"&&(n(q,{after:A})||Q.ignoreMatch());let L;const y=q.input.substring(A);if(L=y.match(/^\s*=/)){Q.ignoreMatch();return}if((L=y.match(/^\s+extends\s+/))&&L.index===0){Q.ignoreMatch();return}}},s={$pattern:Eo,keyword:dE,literal:fE,built_in:EE,"variable.language":gE},u="[0-9](_?[0-9])*",l=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},x={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,b,T,{match:/\$\d+/},c];h.contains=N.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(N)});const k=[].concat(x,h.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},M={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...hE,...pE]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(q){return t.concat("(?!",q.join("|"),")")}const G={match:t.concat(/\b/,Y([...mE,"super","import"].map(q=>`${q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},ie="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ie)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,b,T,x,{match:/\$\d+/},c,H,{scope:"attr",match:r+t.lookahead(":"),relevance:0},pe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:ie,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},G,$,M,K,{match:/\$[(.]/}]}}function uM(e){const t=e.regex,n=sM(e),r=Eo,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Eo,keyword:dE.concat(u),literal:fE,built_in:EE.concat(i),"variable.language":gE},d={className:"meta",begin:"@"+r},c=(b,T,_)=>{const x=b.contains.findIndex(N=>N.label===T);if(x===-1)throw new Error("can not find mode to replace");b.contains.splice(x,1,_)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(d);const h=n.contains.find(b=>b.scope==="attr"),p=Object.assign({},h,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,h,p]),n.contains=n.contains.concat([d,a,o,p]),c(n,"shebang",e.SHEBANG()),c(n,"use_strict",s);const g=n.contains.find(b=>b.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function lM(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},c=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,u,l,d,c,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}function cM(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,u,l,s]}}function dM(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,u,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,u,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function fM(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),h={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},T=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,b,a,o],_=[...T];return _.pop(),_.push(s),p.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}const hM={arduino:qO,bash:VO,c:XO,cpp:QO,csharp:ZO,css:sR,diff:uR,go:lR,graphql:cR,ini:dR,java:fR,javascript:ER,json:bR,kotlin:TR,less:wR,lua:vR,makefile:IR,markdown:kR,objectivec:OR,perl:RR,php:MR,"php-template":LR,plaintext:PR,python:FR,"python-repl":BR,r:UR,ruby:HR,rust:zR,scss:XR,shell:QR,sql:ZR,swift:oM,typescript:uM,vbnet:lM,wasm:cM,xml:dM,yaml:fM};var sl,bE;function pM(){if(bE)return sl;bE=1;function e(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach(U=>{const ne=v[U],Ae=typeof ne;(Ae==="object"||Ae==="function")&&!Object.isFrozen(ne)&&e(ne)}),v}class t{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(v,...U){const ne=Object.create(null);for(const Ae in v)ne[Ae]=v[Ae];return U.forEach(function(Ae){for(const Ke in Ae)ne[Ke]=Ae[Ke]}),ne}const i="</span>",a=v=>!!v.scope,o=(v,{prefix:U})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const ne=v.split(".");return[`${U}${ne.shift()}`,...ne.map((Ae,Ke)=>`${Ae}${"_".repeat(Ke+1)}`)].join(" ")}return`${U}${v}`};class s{constructor(U,ne){this.buffer="",this.classPrefix=ne.classPrefix,U.walk(this)}addText(U){this.buffer+=n(U)}openNode(U){if(!a(U))return;const ne=o(U.scope,{prefix:this.classPrefix});this.span(ne)}closeNode(U){a(U)&&(this.buffer+=i)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const u=(v={})=>{const U={children:[]};return Object.assign(U,v),U};class l{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const ne=u({scope:U});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,ne){return typeof ne=="string"?U.addText(ne):ne.children&&(U.openNode(ne),ne.children.forEach(Ae=>this._walk(U,Ae)),U.closeNode(ne)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(ne=>typeof ne=="string")?U.children=[U.children.join("")]:U.children.forEach(ne=>{l._collapse(ne)}))}}class d extends l{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,ne){const Ae=U.root;ne&&(Ae.scope=`language:${ne}`),this.add(Ae)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(v){return v?typeof v=="string"?v:v.source:null}function h(v){return b("(?=",v,")")}function p(v){return b("(?:",v,")*")}function g(v){return b("(?:",v,")?")}function b(...v){return v.map(ne=>c(ne)).join("")}function T(v){const U=v[v.length-1];return typeof U=="object"&&U.constructor===Object?(v.splice(v.length-1,1),U):{}}function _(...v){return"("+(T(v).capture?"":"?:")+v.map(Ae=>c(Ae)).join("|")+")"}function x(v){return new RegExp(v.toString()+"|").exec("").length-1}function N(v,U){const ne=v&&v.exec(U);return ne&&ne.index===0}const k=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function O(v,{joinWith:U}){let ne=0;return v.map(Ae=>{ne+=1;const Ke=ne;let qe=c(Ae),le="";for(;qe.length>0;){const oe=k.exec(qe);if(!oe){le+=qe;break}le+=qe.substring(0,oe.index),qe=qe.substring(oe.index+oe[0].length),oe[0][0]==="\\"&&oe[1]?le+="\\"+String(Number(oe[1])+Ke):(le+=oe[0],oe[0]==="("&&ne++)}return le}).map(Ae=>`(${Ae})`).join(U)}const w=/\b\B/,M="[a-zA-Z]\\w*",H="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",I="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",Y="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(v={})=>{const U=/^#![ ]*\//;return v.binary&&(v.begin=b(U,/.*\b/,v.binary,/\b.*/)),r({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(ne,Ae)=>{ne.index!==0&&Ae.ignoreMatch()}},v)},B={begin:"\\\\[\\s\\S]",relevance:0},K={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},ie={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},pe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},q=function(v,U,ne={}){const Ae=r({scope:"comment",begin:v,end:U,contains:[]},ne);Ae.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ke=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ae.contains.push({begin:b(/[ ]+/,"(",Ke,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ae},Q=q("//","$"),A=q("/\\*","\\*/"),ee=q("#","$"),L={scope:"number",begin:z,relevance:0},y={scope:"number",begin:I,relevance:0},se={scope:"number",begin:$,relevance:0},te={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]},ue={scope:"title",begin:M,relevance:0},de={scope:"title",begin:H,relevance:0},be={begin:"\\.\\s*"+H,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:K,BACKSLASH_ESCAPE:B,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:$,COMMENT:q,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:Q,C_NUMBER_MODE:y,C_NUMBER_RE:I,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":(U,ne)=>{ne.data._beginMatch=U[1]},"on:end":(U,ne)=>{ne.data._beginMatch!==U[1]&&ne.ignoreMatch()}})},HASH_COMMENT_MODE:ee,IDENT_RE:M,MATCH_NOTHING_RE:w,METHOD_GUARD:be,NUMBER_MODE:L,NUMBER_RE:z,PHRASAL_WORDS_MODE:pe,QUOTE_STRING_MODE:ie,REGEXP_MODE:te,RE_STARTERS_RE:Y,SHEBANG:G,TITLE_MODE:ue,UNDERSCORE_IDENT_RE:H,UNDERSCORE_TITLE_MODE:de});function Ut(v,U){v.input[v.index-1]==="."&&U.ignoreMatch()}function rr(v,U){v.className!==void 0&&(v.scope=v.className,delete v.className)}function un(v,U){U&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=Ut,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function Wi(v,U){Array.isArray(v.illegal)&&(v.illegal=_(...v.illegal))}function jr(v,U){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function Me(v,U){v.relevance===void 0&&(v.relevance=1)}const bn=(v,U)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},v);Object.keys(v).forEach(Ae=>{delete v[Ae]}),v.keywords=ne.keywords,v.begin=b(ne.beforeMatch,h(ne.begin)),v.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},v.relevance=0,delete ne.beforeMatch},_n=["of","and","for","in","not","or","if","then","parent","list","value"],Yr="keyword";function Ki(v,U,ne=Yr){const Ae=Object.create(null);return typeof v=="string"?Ke(ne,v.split(" ")):Array.isArray(v)?Ke(ne,v):Object.keys(v).forEach(function(qe){Object.assign(Ae,Ki(v[qe],U,qe))}),Ae;function Ke(qe,le){U&&(le=le.map(oe=>oe.toLowerCase())),le.forEach(function(oe){const Te=oe.split("|");Ae[Te[0]]=[qe,xl(Te[0],Te[1])]})}}function xl(v,U){return U?Number(U):yl(v)?0:1}function yl(v){return _n.includes(v.toLowerCase())}const So={},Tn=v=>{console.error(v)},No=(v,...U)=>{console.log(`WARN: ${v}`,...U)},F=(v,U)=>{So[`${v}/${U}`]||(console.log(`Deprecated as of ${v}. ${U}`),So[`${v}/${U}`]=!0)},J=new Error;function _e(v,U,{key:ne}){let Ae=0;const Ke=v[ne],qe={},le={};for(let oe=1;oe<=U.length;oe++)le[oe+Ae]=Ke[oe],qe[oe+Ae]=!0,Ae+=x(U[oe-1]);v[ne]=le,v[ne]._emit=qe,v[ne]._multi=!0}function Ie(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw Tn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if(typeof v.beginScope!="object"||v.beginScope===null)throw Tn("beginScope must be object"),J;_e(v,v.begin,{key:"beginScope"}),v.begin=O(v.begin,{joinWith:""})}}function Le(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw Tn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if(typeof v.endScope!="object"||v.endScope===null)throw Tn("endScope must be object"),J;_e(v,v.end,{key:"endScope"}),v.end=O(v.end,{joinWith:""})}}function kt(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function An(v){kt(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),Ie(v),Le(v)}function Gt(v){function U(le,oe){return new RegExp(c(le),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(oe?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(oe,Te){Te.position=this.position++,this.matchIndexes[this.matchAt]=Te,this.regexes.push([Te,oe]),this.matchAt+=x(oe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const oe=this.regexes.map(Te=>Te[1]);this.matcherRe=U(O(oe,{joinWith:"|"}),!0),this.lastIndex=0}exec(oe){this.matcherRe.lastIndex=this.lastIndex;const Te=this.matcherRe.exec(oe);if(!Te)return null;const ot=Te.findIndex((qi,Sl)=>Sl>0&&qi!==void 0),Ze=this.matchIndexes[ot];return Te.splice(0,ot),Object.assign(Te,Ze)}}class Ae{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(oe){if(this.multiRegexes[oe])return this.multiRegexes[oe];const Te=new ne;return this.rules.slice(oe).forEach(([ot,Ze])=>Te.addRule(ot,Ze)),Te.compile(),this.multiRegexes[oe]=Te,Te}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(oe,Te){this.rules.push([oe,Te]),Te.type==="begin"&&this.count++}exec(oe){const Te=this.getMatcher(this.regexIndex);Te.lastIndex=this.lastIndex;let ot=Te.exec(oe);if(this.resumingScanAtSamePosition()&&!(ot&&ot.index===this.lastIndex)){const Ze=this.getMatcher(0);Ze.lastIndex=this.lastIndex+1,ot=Ze.exec(oe)}return ot&&(this.regexIndex+=ot.position+1,this.regexIndex===this.count&&this.considerAll()),ot}}function Ke(le){const oe=new Ae;return le.contains.forEach(Te=>oe.addRule(Te.begin,{rule:Te,type:"begin"})),le.terminatorEnd&&oe.addRule(le.terminatorEnd,{type:"end"}),le.illegal&&oe.addRule(le.illegal,{type:"illegal"}),oe}function qe(le,oe){const Te=le;if(le.isCompiled)return Te;[rr,jr,An,bn].forEach(Ze=>Ze(le,oe)),v.compilerExtensions.forEach(Ze=>Ze(le,oe)),le.__beforeBegin=null,[un,Wi,Me].forEach(Ze=>Ze(le,oe)),le.isCompiled=!0;let ot=null;return typeof le.keywords=="object"&&le.keywords.$pattern&&(le.keywords=Object.assign({},le.keywords),ot=le.keywords.$pattern,delete le.keywords.$pattern),ot=ot||/\w+/,le.keywords&&(le.keywords=Ki(le.keywords,v.case_insensitive)),Te.keywordPatternRe=U(ot,!0),oe&&(le.begin||(le.begin=/\B|\b/),Te.beginRe=U(Te.begin),!le.end&&!le.endsWithParent&&(le.end=/\B|\b/),le.end&&(Te.endRe=U(Te.end)),Te.terminatorEnd=c(Te.end)||"",le.endsWithParent&&oe.terminatorEnd&&(Te.terminatorEnd+=(le.end?"|":"")+oe.terminatorEnd)),le.illegal&&(Te.illegalRe=U(le.illegal)),le.contains||(le.contains=[]),le.contains=[].concat(...le.contains.map(function(Ze){return ir(Ze==="self"?le:Ze)})),le.contains.forEach(function(Ze){qe(Ze,Te)}),le.starts&&qe(le.starts,oe),Te.matcher=Ke(Te),Te}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=r(v.classNameAliases||{}),qe(v)}function Pn(v){return v?v.endsWithParent||Pn(v.starts):!1}function ir(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function(U){return r(v,{variants:null},U)})),v.cachedVariants?v.cachedVariants:Pn(v)?r(v,{starts:v.starts?r(v.starts):null}):Object.isFrozen(v)?r(v):v}var At="11.11.1";class Fn extends Error{constructor(U,ne){super(U),this.name="HTMLInjectionError",this.html=ne}}const Ot=n,xb=r,yb=Symbol("nomatch"),q3=7,Sb=function(v){const U=Object.create(null),ne=Object.create(null),Ae=[];let Ke=!0;const qe="Could not find the language '{}', did you forget to load/include a language module?",le={disableAutodetect:!0,name:"Plain text",contains:[]};let oe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Te(Z){return oe.noHighlightRe.test(Z)}function ot(Z){let ge=Z.className+" ";ge+=Z.parentNode?Z.parentNode.className:"";const ke=oe.languageDetectRe.exec(ge);if(ke){const $e=Bn(ke[1]);return $e||(No(qe.replace("{}",ke[1])),No("Falling back to no-highlight mode for this block.",Z)),$e?ke[1]:"no-highlight"}return ge.split(/\s+/).find($e=>Te($e)||Bn($e))}function Ze(Z,ge,ke){let $e="",tt="";typeof ge=="object"?($e=Z,ke=ge.ignoreIllegals,tt=ge.language):(F("10.7.0","highlight(lang, code, ...args) has been deprecated."),F("10.7.0",`Please use highlight(code, options) instead.
165
- https://github.com/highlightjs/highlight.js/issues/2277`),tt=Z,$e=ge),ke===void 0&&(ke=!0);const Wt={code:$e,language:tt};wo("before:highlight",Wt);const Un=Wt.result?Wt.result:qi(Wt.language,Wt.code,ke);return Un.code=Wt.code,wo("after:highlight",Un),Un}function qi(Z,ge,ke,$e){const tt=Object.create(null);function Wt(re,fe){return re.keywords[fe]}function Un(){if(!Ce.keywords){ut.addText(je);return}let re=0;Ce.keywordPatternRe.lastIndex=0;let fe=Ce.keywordPatternRe.exec(je),De="";for(;fe;){De+=je.substring(re,fe.index);const Pe=cn.case_insensitive?fe[0].toLowerCase():fe[0],gt=Wt(Ce,Pe);if(gt){const[Cn,dP]=gt;if(ut.addText(De),De="",tt[Pe]=(tt[Pe]||0)+1,tt[Pe]<=q3&&(ko+=dP),Cn.startsWith("_"))De+=fe[0];else{const fP=cn.classNameAliases[Cn]||Cn;ln(fe[0],fP)}}else De+=fe[0];re=Ce.keywordPatternRe.lastIndex,fe=Ce.keywordPatternRe.exec(je)}De+=je.substring(re),ut.addText(De)}function vo(){if(je==="")return;let re=null;if(typeof Ce.subLanguage=="string"){if(!U[Ce.subLanguage]){ut.addText(je);return}re=qi(Ce.subLanguage,je,!0,Rb[Ce.subLanguage]),Rb[Ce.subLanguage]=re._top}else re=Nl(je,Ce.subLanguage.length?Ce.subLanguage:null);Ce.relevance>0&&(ko+=re.relevance),ut.__addSublanguage(re._emitter,re.language)}function Rt(){Ce.subLanguage!=null?vo():Un(),je=""}function ln(re,fe){re!==""&&(ut.startScope(fe),ut.addText(re),ut.endScope())}function vb(re,fe){let De=1;const Pe=fe.length-1;for(;De<=Pe;){if(!re._emit[De]){De++;continue}const gt=cn.classNameAliases[re[De]]||re[De],Cn=fe[De];gt?ln(Cn,gt):(je=Cn,Un(),je=""),De++}}function Ib(re,fe){return re.scope&&typeof re.scope=="string"&&ut.openNode(cn.classNameAliases[re.scope]||re.scope),re.beginScope&&(re.beginScope._wrap?(ln(je,cn.classNameAliases[re.beginScope._wrap]||re.beginScope._wrap),je=""):re.beginScope._multi&&(vb(re.beginScope,fe),je="")),Ce=Object.create(re,{parent:{value:Ce}}),Ce}function kb(re,fe,De){let Pe=N(re.endRe,De);if(Pe){if(re["on:end"]){const gt=new t(re);re["on:end"](fe,gt),gt.isMatchIgnored&&(Pe=!1)}if(Pe){for(;re.endsParent&&re.parent;)re=re.parent;return re}}if(re.endsWithParent)return kb(re.parent,fe,De)}function oP(re){return Ce.matcher.regexIndex===0?(je+=re[0],1):(Il=!0,0)}function sP(re){const fe=re[0],De=re.rule,Pe=new t(De),gt=[De.__beforeBegin,De["on:begin"]];for(const Cn of gt)if(Cn&&(Cn(re,Pe),Pe.isMatchIgnored))return oP(fe);return De.skip?je+=fe:(De.excludeBegin&&(je+=fe),Rt(),!De.returnBegin&&!De.excludeBegin&&(je=fe)),Ib(De,re),De.returnBegin?0:fe.length}function uP(re){const fe=re[0],De=ge.substring(re.index),Pe=kb(Ce,re,De);if(!Pe)return yb;const gt=Ce;Ce.endScope&&Ce.endScope._wrap?(Rt(),ln(fe,Ce.endScope._wrap)):Ce.endScope&&Ce.endScope._multi?(Rt(),vb(Ce.endScope,re)):gt.skip?je+=fe:(gt.returnEnd||gt.excludeEnd||(je+=fe),Rt(),gt.excludeEnd&&(je=fe));do Ce.scope&&ut.closeNode(),!Ce.skip&&!Ce.subLanguage&&(ko+=Ce.relevance),Ce=Ce.parent;while(Ce!==Pe.parent);return Pe.starts&&Ib(Pe.starts,re),gt.returnEnd?0:fe.length}function lP(){const re=[];for(let fe=Ce;fe!==cn;fe=fe.parent)fe.scope&&re.unshift(fe.scope);re.forEach(fe=>ut.openNode(fe))}let Io={};function Ob(re,fe){const De=fe&&fe[0];if(je+=re,De==null)return Rt(),0;if(Io.type==="begin"&&fe.type==="end"&&Io.index===fe.index&&De===""){if(je+=ge.slice(fe.index,fe.index+1),!Ke){const Pe=new Error(`0 width match regex (${Z})`);throw Pe.languageName=Z,Pe.badRule=Io.rule,Pe}return 1}if(Io=fe,fe.type==="begin")return sP(fe);if(fe.type==="illegal"&&!ke){const Pe=new Error('Illegal lexeme "'+De+'" for mode "'+(Ce.scope||"<unnamed>")+'"');throw Pe.mode=Ce,Pe}else if(fe.type==="end"){const Pe=uP(fe);if(Pe!==yb)return Pe}if(fe.type==="illegal"&&De==="")return je+=`
166
- `,1;if(vl>1e5&&vl>fe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return je+=De,De.length}const cn=Bn(Z);if(!cn)throw Tn(qe.replace("{}",Z)),new Error('Unknown language: "'+Z+'"');const cP=Gt(cn);let wl="",Ce=$e||cP;const Rb={},ut=new oe.__emitter(oe);lP();let je="",ko=0,ar=0,vl=0,Il=!1;try{if(cn.__emitTokens)cn.__emitTokens(ge,ut);else{for(Ce.matcher.considerAll();;){vl++,Il?Il=!1:Ce.matcher.considerAll(),Ce.matcher.lastIndex=ar;const re=Ce.matcher.exec(ge);if(!re)break;const fe=ge.substring(ar,re.index),De=Ob(fe,re);ar=re.index+De}Ob(ge.substring(ar))}return ut.finalize(),wl=ut.toHTML(),{language:Z,value:wl,relevance:ko,illegal:!1,_emitter:ut,_top:Ce}}catch(re){if(re.message&&re.message.includes("Illegal"))return{language:Z,value:Ot(ge),illegal:!0,relevance:0,_illegalBy:{message:re.message,index:ar,context:ge.slice(ar-100,ar+100),mode:re.mode,resultSoFar:wl},_emitter:ut};if(Ke)return{language:Z,value:Ot(ge),illegal:!1,relevance:0,errorRaised:re,_emitter:ut,_top:Ce};throw re}}function Sl(Z){const ge={value:Ot(Z),illegal:!1,relevance:0,_top:le,_emitter:new oe.__emitter(oe)};return ge._emitter.addText(Z),ge}function Nl(Z,ge){ge=ge||oe.languages||Object.keys(U);const ke=Sl(Z),$e=ge.filter(Bn).filter(wb).map(Rt=>qi(Rt,Z,!1));$e.unshift(ke);const tt=$e.sort((Rt,ln)=>{if(Rt.relevance!==ln.relevance)return ln.relevance-Rt.relevance;if(Rt.language&&ln.language){if(Bn(Rt.language).supersetOf===ln.language)return 1;if(Bn(ln.language).supersetOf===Rt.language)return-1}return 0}),[Wt,Un]=tt,vo=Wt;return vo.secondBest=Un,vo}function V3(Z,ge,ke){const $e=ge&&ne[ge]||ke;Z.classList.add("hljs"),Z.classList.add(`language-${$e}`)}function Dl(Z){let ge=null;const ke=ot(Z);if(Te(ke))return;if(wo("before:highlightElement",{el:Z,language:ke}),Z.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Z);return}if(Z.children.length>0&&(oe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Z)),oe.throwUnescapedHTML))throw new Fn("One of your code blocks includes unescaped HTML.",Z.innerHTML);ge=Z;const $e=ge.textContent,tt=ke?Ze($e,{language:ke,ignoreIllegals:!0}):Nl($e);Z.innerHTML=tt.value,Z.dataset.highlighted="yes",V3(Z,ke,tt.language),Z.result={language:tt.language,re:tt.relevance,relevance:tt.relevance},tt.secondBest&&(Z.secondBest={language:tt.secondBest.language,relevance:tt.secondBest.relevance}),wo("after:highlightElement",{el:Z,result:tt,text:$e})}function X3(Z){oe=xb(oe,Z)}const Q3=()=>{Do(),F("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Z3(){Do(),F("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Nb=!1;function Do(){function Z(){Do()}if(document.readyState==="loading"){Nb||window.addEventListener("DOMContentLoaded",Z,!1),Nb=!0;return}document.querySelectorAll(oe.cssSelector).forEach(Dl)}function J3(Z,ge){let ke=null;try{ke=ge(v)}catch($e){if(Tn("Language definition for '{}' could not be registered.".replace("{}",Z)),Ke)Tn($e);else throw $e;ke=le}ke.name||(ke.name=Z),U[Z]=ke,ke.rawDefinition=ge.bind(null,v),ke.aliases&&Db(ke.aliases,{languageName:Z})}function eP(Z){delete U[Z];for(const ge of Object.keys(ne))ne[ge]===Z&&delete ne[ge]}function tP(){return Object.keys(U)}function Bn(Z){return Z=(Z||"").toLowerCase(),U[Z]||U[ne[Z]]}function Db(Z,{languageName:ge}){typeof Z=="string"&&(Z=[Z]),Z.forEach(ke=>{ne[ke.toLowerCase()]=ge})}function wb(Z){const ge=Bn(Z);return ge&&!ge.disableAutodetect}function nP(Z){Z["before:highlightBlock"]&&!Z["before:highlightElement"]&&(Z["before:highlightElement"]=ge=>{Z["before:highlightBlock"](Object.assign({block:ge.el},ge))}),Z["after:highlightBlock"]&&!Z["after:highlightElement"]&&(Z["after:highlightElement"]=ge=>{Z["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function rP(Z){nP(Z),Ae.push(Z)}function iP(Z){const ge=Ae.indexOf(Z);ge!==-1&&Ae.splice(ge,1)}function wo(Z,ge){const ke=Z;Ae.forEach(function($e){$e[ke]&&$e[ke](ge)})}function aP(Z){return F("10.7.0","highlightBlock will be removed entirely in v12.0"),F("10.7.0","Please use highlightElement now."),Dl(Z)}Object.assign(v,{highlight:Ze,highlightAuto:Nl,highlightAll:Do,highlightElement:Dl,highlightBlock:aP,configure:X3,initHighlighting:Q3,initHighlightingOnLoad:Z3,registerLanguage:J3,unregisterLanguage:eP,listLanguages:tP,getLanguage:Bn,registerAliases:Db,autoDetection:wb,inherit:xb,addPlugin:rP,removePlugin:iP}),v.debugMode=function(){Ke=!1},v.safeMode=function(){Ke=!0},v.versionString=At,v.regex={concat:b,lookahead:h,either:_,optional:g,anyNumberOfTimes:p};for(const Z in Ge)typeof Ge[Z]=="object"&&e(Ge[Z]);return Object.assign(v,Ge),v},Gr=Sb({});return Gr.newInstance=()=>Sb({}),sl=Gr,Gr.HighlightJS=Gr,Gr.default=Gr,sl}var mM=pM();const gM=Oo(mM),_E={},EM="hljs-";function bM(e){const t=gM.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(u,l,d){const c=d||_E,h=typeof c.prefix=="string"?c.prefix:EM;if(!t.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");t.configure({__emitter:_M,classPrefix:h});const p=t.highlight(l,{ignoreIllegals:!0,language:u});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const g=p._emitter.root,b=g.data;return b.language=p.language,b.relevance=p.relevance,g}function r(u,l){const c=(l||_E).subset||i();let h=-1,p=0,g;for(;++h<c.length;){const b=c[h];if(!t.getLanguage(b))continue;const T=n(b,u,l);T.data&&T.data.relevance!==void 0&&T.data.relevance>p&&(p=T.data.relevance,g=T)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(u,l){if(typeof u=="string")t.registerLanguage(u,l);else{let d;for(d in u)Object.hasOwn(u,d)&&t.registerLanguage(d,u[d])}}function o(u,l){if(typeof u=="string")t.registerAliases(typeof l=="string"?l:[...l],{languageName:u});else{let d;for(d in u)if(Object.hasOwn(u,d)){const c=u[d];t.registerAliases(typeof c=="string"?c:[...c],{languageName:d})}}}function s(u){return!!t.getLanguage(u)}}class _M{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(o,s){return s?o+"_".repeat(s):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const TM={};function AM(e){const t=e||TM,n=t.aliases,r=t.detect||!1,i=t.languages||hM,a=t.plainText,o=t.prefix,s=t.subset;let u="hljs";const l=bM(i);if(n&&l.registerAlias(n),o){const d=o.indexOf("-");u=d===-1?o:o.slice(0,d)}return function(d,c){Xn(d,"element",function(h,p,g){if(h.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const b=CM(h);if(b===!1||!b&&!r||b&&a&&a.includes(b))return;Array.isArray(h.properties.className)||(h.properties.className=[]),h.properties.className.includes(u)||h.properties.className.unshift(u);const T=HO(h,{whitespace:"pre"});let _;try{_=b?l.highlight(b,T,{prefix:o}):l.highlightAuto(T,{prefix:o,subset:s})}catch(x){const N=x;if(b&&/Unknown language/.test(N.message)){c.message("Cannot highlight as `"+b+"`, it’s not registered",{ancestors:[g,h],cause:N,place:h.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw N}!b&&_.data&&_.data.language&&h.properties.className.push("language-"+_.data.language),_.children.length>0&&(h.children=_.children)})}}function CM(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}function TE({source:e}){const n=Je.useParams().lang||"zh-cn";return E.jsx("div",{className:"prose dark:prose-invert max-w-none",children:E.jsx($D,{remarkPlugins:[m2],rehypePlugins:[ow,FO,[AM,{ignoreMissing:!0}],[ZD,{behavior:"append"}]],components:{a({href:r,children:i,...a}){if(!r)return E.jsx("a",{...a,children:i});if(r.startsWith("#"))return E.jsx("a",{href:r,...a,children:i});if(/^(https?:)?\/\//i.test(r)||r.startsWith("mailto:")||r.startsWith("tel:"))return E.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",...a,children:i});const s=r.startsWith("/")?r:`/${r}`,u=`/${n}${s}`;return E.jsx(Je.Link,{to:u,...a,children:i})}},children:e})})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function AE(e){return typeof e>"u"||e===null}function xM(e){return typeof e=="object"&&e!==null}function yM(e){return Array.isArray(e)?e:AE(e)?[]:[e]}function SM(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function NM(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function DM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var wM=AE,vM=xM,IM=yM,kM=NM,OM=DM,RM=SM,et={isNothing:wM,isObject:vM,toArray:IM,repeat:kM,isNegativeZero:OM,extend:RM};function CE(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
207
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=ki(l.charCodeAt(0))+l.slice(1)),l=l?o+" "+l:o,n.options.closeAtx&&(l+=" "+o),u(),s(),l}b0.peek=bv;function b0(e){return e.value||""}function bv(){return"<"}_0.peek=_v;function _0(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(s=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),s()),l+=u.move(")"),o(),l}function _v(){return"!"}T0.peek=Tv;function T0(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");const l=n.safe(e.alt,{before:u,after:"]",...s.current()});u+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function Tv(){return"!"}A0.peek=Av;function A0(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let u;if(o.atBreak)for(;u=s.exec(r);){let l=u.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(u.index+1)}}return i+r+i}function Av(){return"`"}function x0(e,t){const n=au(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}C0.peek=xv;function C0(e,t,n,r){const i=Lu(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,u;if(x0(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=d,c}s=n.enter("link"),u=n.enter("label");let l=o.move("[");return l+=o.move(n.containerPhrasing(e,{before:l,after:"](",...o.current()})),l+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(u=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),u()),l+=o.move(")"),s(),l}function xv(e,t,n){return x0(e,n)?"<":"["}y0.peek=Cv;function y0(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...s.current()});u+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==c?u+=s.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=s.move("]"),u}function Cv(){return"["}function Pu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yv(e){const t=Pu(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function S0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Nv(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Sv(n):Pu(n);const s=e.ordered?o==="."?")":".":yv(n);let u=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),S0(n)===o&&d){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=s),n.bulletCurrent=o;const l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Dv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function wv(e,t,n,r){const i=Dv(n);let a=n.bulletCurrent||Pu(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),d);return u(),l;function d(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?a:a+" ".repeat(o-a.length))+c}}function vv(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const kv=wi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Iv(e,t,n,r){return(e.children.some(function(o){return kv(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ov(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}N0.peek=Rv;function N0(e,t,n,r){const i=Ov(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let u=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=u.charCodeAt(0),d=Ja(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(u=ki(l)+u.slice(1));const c=u.charCodeAt(u.length-1),h=Ja(r.after.charCodeAt(0),c,i);h.inside&&(u=u.slice(0,-1)+ki(c));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},s+u+p}function Rv(e,t,n){return n.options.strong||"*"}function Mv(e,t,n,r){return n.safe(e.value,r)}function Lv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Pv(e,t,n){const r=(S0(n)+(n.options.ruleSpaces?" ":"")).repeat(Lv(n));return n.options.ruleSpaces?r.slice(0,-1):r}const D0={blockquote:av,break:g0,code:dv,definition:hv,emphasis:E0,hardBreak:g0,heading:Ev,html:b0,image:_0,imageReference:T0,inlineCode:A0,link:C0,linkReference:y0,list:Nv,listItem:wv,paragraph:vv,root:Iv,strong:N0,text:Mv,thematicBreak:Pv};function Fv(){return{enter:{table:Bv,tableData:w0,tableHeader:w0,tableRow:Hv},exit:{codeText:zv,table:Uv,tableData:Fu,tableHeader:Fu,tableRow:Fu}}}function Bv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Uv(e){this.exit(e),this.data.inTable=void 0}function Hv(e){this.enter({type:"tableRow",children:[]},e)}function Fu(e){this.exit(e)}function w0(e){this.enter({type:"tableCell",children:[]},e)}function zv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$v));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $v(e,t){return t==="|"?t:e}function jv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
208
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:u,tableRow:s}};function o(p,E,b,T){return l(d(p,b,T),p.align)}function s(p,E,b,T){const _=c(p,b,T),C=l([_]);return C.slice(0,C.indexOf(`
209
+ `))}function u(p,E,b,T){const _=b.enter("tableCell"),C=b.enter("phrasing"),N=b.containerPhrasing(p,{...T,before:a,after:a});return C(),_(),N}function l(p,E){return rv(p,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function d(p,E,b){const T=p.children;let _=-1;const C=[],N=E.enter("table");for(;++_<T.length;)C[_]=c(T[_],E,b);return N(),C}function c(p,E,b){const T=p.children;let _=-1;const C=[],N=E.enter("tableRow");for(;++_<T.length;)C[_]=u(T[_],p,E,b);return N(),C}function h(p,E,b){let T=D0.inlineCode(p,E,b);return b.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function Yv(){return{exit:{taskListCheckValueChecked:v0,taskListCheckValueUnchecked:v0,paragraph:Wv}}}function Gv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Kv}}}function v0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Wv(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Kv(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let u=D0.listItem(e,t,n,{...r,...s.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),u;function l(d){return d+o}}function qv(){return[Nw(),Kw(),Qw(),Fv(),Yv()]}function Vv(e){return{extensions:[Dw(),qw(e),Zw(),jv(e),Gv()]}}const Xv={tokenize:n2,partial:!0},k0={tokenize:r2,partial:!0},I0={tokenize:i2,partial:!0},O0={tokenize:a2,partial:!0},Qv={tokenize:o2,partial:!0},R0={name:"wwwAutolink",tokenize:e2,previous:L0},M0={name:"protocolAutolink",tokenize:t2,previous:P0},mn={name:"emailAutolink",tokenize:Jv,previous:F0},an={};function Zv(){return{text:an}}let Qn=48;for(;Qn<123;)an[Qn]=mn,Qn++,Qn===58?Qn=65:Qn===91&&(Qn=97);an[43]=mn,an[45]=mn,an[46]=mn,an[95]=mn,an[72]=[mn,M0],an[104]=[mn,M0],an[87]=[mn,R0],an[119]=[mn,R0];function Jv(e,t,n){const r=this;let i,a;return o;function o(c){return!Bu(c)||!F0.call(r,r.previous)||Uu(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return Bu(c)?(e.consume(c),s):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Qv,d,l)(c):c===45||c===95||pt(c)?(a=!0,e.consume(c),u):d(c)}function l(c){return e.consume(c),i=!0,u}function d(c){return a&&i&&_t(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function e2(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!L0.call(r,r.previous)||Uu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xv,e.attempt(k0,e.attempt(I0,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function t2(e,t,n){const r=this;let i="",a=!1;return o;function o(c){return(c===72||c===104)&&P0.call(r,r.previous)&&!Uu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(_t(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),a?l:(a=!0,u)):n(c)}function l(c){return c===null||za(c)||Be(c)||qn(c)||$a(c)?n(c):e.attempt(k0,e.attempt(I0,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function n2(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function r2(e,t,n){let r,i,a;return o;function o(l){return l===46||l===95?e.check(O0,u,s)(l):l===null||Be(l)||qn(l)||l!==45&&$a(l)?u(l):(a=!0,e.consume(l),o)}function s(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),o}function u(l){return i||r||!a?n(l):t(l)}}function i2(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(O0,t,a)(o):o===null||Be(o)||qn(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function a2(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||Be(s)||qn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Be(s)||qn(s)?t(s):r(s)}function a(s){return _t(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):_t(s)?(e.consume(s),o):n(s)}}function o2(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return pt(a)?n(a):t(a)}}function L0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Be(e)}function P0(e){return!_t(e)}function F0(e){return!(e===47||Bu(e))}function Bu(e){return e===43||e===45||e===46||e===95||pt(e)}function Uu(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const s2={tokenize:m2,partial:!0};function u2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:f2,continuation:{tokenize:h2},exit:p2}},text:{91:{name:"gfmFootnoteCall",tokenize:d2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:l2,resolveTo:c2}}}}function l2(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const l=Yt(r.sliceSerialize({start:o.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function c2(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function d2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(c){if(a>999||c===93&&!o||c===null||c===91||Be(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Yt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Be(c)||(o=!0),a++,e.consume(c),c===92?d:l}function d(c){return c===91||c===92||c===93?(e.consume(c),a++,l):l(c)}}function f2(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(E)}function d(E){if(o>999||E===93&&!s||E===null||E===91||Be(E))return n(E);if(E===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Yt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Be(E)||(s=!0),o++,e.consume(E),E===92?c:d}function c(E){return E===91||E===92||E===93?(e.consume(E),o++,d):d(E)}function h(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),Oe(e,p,"gfmFootnoteDefinitionWhitespace")):n(E)}function p(E){return t(E)}}function h2(e,t,n){return e.check(Ci,t,e.attempt(s2,t,n))}function p2(e){e.exit("gfmFootnoteDefinition")}function m2(e,t,n){const r=this;return Oe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function g2(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let l=u;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[u][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[u][1].end)},c={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[u][1].start)},h=[["enter",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&kt(h,h.length,0,ja(p,o.slice(l+1,u),s)),kt(h,h.length,0,[["exit",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["exit",d,s]]),kt(o,l-1,u-l+3,h),u=l+h.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function a(o,s,u){const l=this.previous,d=this.events;let c=0;return h;function h(E){return l===126&&d[d.length-1][1].type!=="characterEscape"?u(E):(o.enter("strikethroughSequenceTemporary"),p(E))}function p(E){const b=Dr(l);if(E===126)return c>1?u(E):(o.consume(E),c++,p);if(c<2&&!n)return u(E);const T=o.exit("strikethroughSequenceTemporary"),_=Dr(E);return T._open=!_||_===2&&!!b,T._close=!b||b===2&&!!_,s(E)}}}class E2{constructor(){this.map=[]}add(t,n,r){b2(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function b2(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function _2(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function T2(){return{flow:{null:{name:"table",tokenize:A2,resolveAll:x2}}}}function A2(e,t,n){const r=this;let i=0,a=0,o;return s;function s(k){let $=r.events.length-1;for(;$>-1;){const B=r.events[$][1].type;if(B==="lineEnding"||B==="linePrefix")$--;else break}const Y=$>-1?r.events[$][1].type:null,G=Y==="tableHead"||Y==="tableRow"?w:u;return G===w&&r.parser.lazy[r.now().line]?n(k):G(k)}function u(k){return e.enter("tableHead"),e.enter("tableRow"),l(k)}function l(k){return k===124||(o=!0,a+=1),d(k)}function d(k){return k===null?n(k):Ee(k)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):ve(k)?Oe(e,d,"whitespace")(k):(a+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||Be(k)?(e.exit("data"),d(k)):(e.consume(k),k===92?h:c)}function h(k){return k===92||k===124?(e.consume(k),c):c(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),o=!1,ve(k)?Oe(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):E(k))}function E(k){return k===45||k===58?T(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),b):O(k)}function b(k){return ve(k)?Oe(e,T,"whitespace")(k):T(k)}function T(k){return k===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),_):k===45?(a+=1,_(k)):k===null||Ee(k)?I(k):O(k)}function _(k){return k===45?(e.enter("tableDelimiterFiller"),C(k)):O(k)}function C(k){return k===45?(e.consume(k),C):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(k))}function N(k){return ve(k)?Oe(e,I,"whitespace")(k):I(k)}function I(k){return k===124?E(k):k===null||Ee(k)?!o||i!==a?O(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):O(k)}function O(k){return n(k)}function w(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||Ee(k)?(e.exit("tableRow"),t(k)):ve(k)?Oe(e,M,"whitespace")(k):(e.enter("data"),H(k))}function H(k){return k===null||k===124||Be(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?z:H)}function z(k){return k===92||k===124?(e.consume(k),H):H(k)}}function x2(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,l,d,c;const h=new E2;for(;++n<e.length;){const p=e[n],E=p[1];p[0]==="enter"?E.type==="tableHead"?(s=!1,u!==0&&(B0(h,t,u,l,d),d=void 0,u=0),l={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(n,0,[["enter",l,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},h.add(n,0,[["enter",d,t]])),i=E.type==="tableDelimiterRow"?2:d?3:1):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],c=eo(h,t,a,i,void 0,c),a=[0,0,0,0]),o[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],c=eo(h,t,a,i,void 0,c)),a=o,o=[a[1],n,0,0])):E.type==="tableHead"?(s=!0,u=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(u=n,a[1]!==0?(o[0]=o[1],c=eo(h,t,a,i,n,c)):o[1]!==0&&(c=eo(h,t,o,i,n,c)),i=0):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(o[3]=n)}for(u!==0&&B0(h,t,u,l,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=_2(t.events,n))}return e}function eo(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},vr(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=vr(t.events,n[1]);if(a={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=vr(t.events,n[2]),d=vr(t.events,n[3]),c={type:s,start:Object.assign({},l),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,b=n[3]-n[2]-1;e.add(E,b,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(a.end=Object.assign({},vr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function B0(e,t,n,r,i){const a=[],o=vr(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function vr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const C2={name:"tasklistCheck",tokenize:S2};function y2(){return{text:{91:C2}}}function S2(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Be(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return Ee(u)?t(u):ve(u)?e.check({tokenize:N2},t,n)(u):n(u)}}function N2(e,t,n){return Oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function D2(e){return dm([Zv(),u2(),g2(e),T2(),y2()])}const w2={};function v2(e){const t=this,n=e||w2,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(D2(n)),a.push(qv()),o.push(Vv(n))}const U0=/[#.]/g;function k2(e,t){const n=e||"",r={};let i=0,a,o;for(;i<n.length;){U0.lastIndex=i;const s=U0.exec(n),u=n.slice(i,s?s.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function H0(e,t,n){const r=n?M2(n):void 0;function i(a,o,...s){let u;if(a==null){u={type:"root",children:[]};const l=o;s.unshift(l)}else{u=k2(a,t);const l=u.tagName.toLowerCase(),d=r?r.get(l):void 0;if(u.tagName=d||l,I2(o))s.unshift(o);else for(const[c,h]of Object.entries(o))O2(e,u.properties,c,h)}for(const l of s)Hu(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function I2(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function O2(e,t,n,r){const i=Zs(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=qp(r):i.commaSeparated?a=Lp(r):i.commaOrSpaceSeparated?a=qp(Lp(r).join(" ")):a=z0(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?R2(r):String(r);if(Array.isArray(a)){const o=[];for(const s of a)o.push(z0(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Hu(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Hu(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Hu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function z0(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||bi(n)===bi(t)))return!0}return n}function R2(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function M2(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const L2=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],P2=H0(Ua,"div"),F2=H0(yr,"g",L2);function B2(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let o=0;for(;;){let s=n[o];if(s===void 0){const u=$0(t,n[o-1]);s=u===-1?t.length+1:u+1,n[o]=s}if(s>a)return{line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a};o++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const s=n[n.length-1],u=$0(t,s),l=u===-1?t.length+1:u+1;if(s===l)break;n.push(l)}const o=(a.line>1?n[a.line-2]:0)+a.column-1;if(o<n[a.line-1])return o}}}function $0(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
210
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},j0={}.hasOwnProperty,U2=Object.prototype;function H2(e,t){const n=t||{};return zu({file:n.file||void 0,location:!1,schema:n.space==="svg"?yr:Ua,verbose:n.verbose||!1},e)}function zu(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},to(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Y0(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),o=B2(a),s=o.toPoint(0),u=o.toPoint(a.length);n.position={start:s,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},to(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},to(e,r,n),n}default:return n=z2(e,t),n}}function Y0(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=zu(e,t[n]);r.push(i)}return r}function z2(e,t){const n=e.schema;e.schema=t.namespaceURI===Zn.svg?yr:Ua;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],u=(s.prefix?s.prefix+":":"")+s.name;j0.call(U2,u)||(i[u]=s.value)}const o=(e.schema.space==="svg"?F2:P2)(t.tagName,i,Y0(e,t.childNodes));if(to(e,t,o),o.tagName==="template"){const s=t,u=s.sourceCodeLocation,l=u&&u.startTag&&kr(u.startTag),d=u&&u.endTag&&kr(u.endTag),c=zu(e,s.content);l&&d&&e.file&&(c.position={start:l.end,end:d.start}),o.content=c}return e.schema=n,o}function to(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=$2(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function $2(e,t,n){const r=kr(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let o;if(n.attrs)for(o in n.attrs)j0.call(n.attrs,o)&&(a[Zs(e.schema,o).property]=kr(n.attrs[o]));n.startTag;const s=kr(n.startTag),u=n.endTag?kr(n.endTag):void 0,l={opening:s};u&&(l.closing=u),l.properties=a,t.data={position:l}}}return r}function kr(e){const t=G0({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=G0({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function G0(e){return e.line&&e.column?e:void 0}let Ii=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Ii.prototype.property={},Ii.prototype.normal={},Ii.prototype.space=null;function W0(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Ii(n,r,t)}function $u(e){return e.toLowerCase()}class Bt{constructor(t,n){this.property=t,this.attribute=n}}Bt.prototype.space=null,Bt.prototype.boolean=!1,Bt.prototype.booleanish=!1,Bt.prototype.overloadedBoolean=!1,Bt.prototype.number=!1,Bt.prototype.commaSeparated=!1,Bt.prototype.spaceSeparated=!1,Bt.prototype.commaOrSpaceSeparated=!1,Bt.prototype.mustUseProperty=!1,Bt.prototype.defined=!1;let j2=0;const ye=Jn(),Qe=Jn(),K0=Jn(),X=Jn(),ze=Jn(),Ir=Jn(),It=Jn();function Jn(){return 2**++j2}const ju=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:Qe,commaOrSpaceSeparated:It,commaSeparated:Ir,number:X,overloadedBoolean:K0,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),Yu=Object.keys(ju);class Gu extends Bt{constructor(t,n,r,i){let a=-1;if(super(t,n),q0(this,"space",i),typeof r=="number")for(;++a<Yu.length;){const o=Yu[a];q0(this,Yu[a],(r&ju[o])===ju[o])}}}Gu.prototype.defined=!0;function q0(e,t,n){n&&(e[t]=n)}const Y2={}.hasOwnProperty;function Or(e){const t={},n={};let r;for(r in e.properties)if(Y2.call(e.properties,r)){const i=e.properties[r],a=new Gu(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[$u(r)]=r,n[$u(a.attribute)]=r}return new Ii(t,n,e.space)}const V0=Or({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),X0=Or({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Q0(e,t){return t in e?e[t]:t}function Z0(e,t){return Q0(e,t.toLowerCase())}const J0=Or({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Z0,properties:{xmlns:null,xmlnsXLink:null}}),eg=Or({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:ze,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:X,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:ze,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Qe,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null}}),G2=Or({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Z0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ir,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:ze,autoFocus:ye,autoPlay:ye,blocking:ze,capture:null,charSet:null,checked:ye,cite:null,className:ze,cols:X,colSpan:null,content:null,contentEditable:Qe,controls:ye,controlsList:ze,coords:X|Ir,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:K0,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:ze,height:X,hidden:ye,high:X,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:ze,itemRef:ze,itemScope:ye,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:X,pattern:null,ping:ze,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:ze,required:ye,reversed:ye,rows:X,rowSpan:X,sandbox:ze,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Qe,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:X,security:null,unselectable:null}}),W2=Or({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Q0,properties:{about:It,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ir,g2:Ir,glyphName:Ir,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),K2=/^data[-\w.:]+$/i,tg=/-[a-z]/g,q2=/[A-Z]/g;function V2(e,t){const n=$u(t);let r=t,i=Bt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&K2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(tg,Q2);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!tg.test(a)){let o=a.replace(q2,X2);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Gu}return new i(r,t)}function X2(e){return"-"+e.toLowerCase()}function Q2(e){return e.charAt(1).toUpperCase()}const Z2=W0([X0,V0,J0,eg,G2],"html"),ng=W0([X0,V0,J0,eg,W2],"svg"),J2={},ek={}.hasOwnProperty,rg=p0("type",{handlers:{root:nk,element:sk,text:ak,comment:ok,doctype:ik}});function tk(e,t){const r=(t||J2).space;return rg(e,r==="svg"?ng:Z2)}function nk(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Wu(e.children,n,t),Rr(e,n),n}function rk(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Wu(e.children,n,t),Rr(e,n),n}function ik(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rr(e,t),t}function ak(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Rr(e,t),t}function ok(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Rr(e,t),t}function sk(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=ng);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&ek.call(e.properties,a)){const u=uk(r,a,e.properties[a]);u&&i.push(u)}}const o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Zn[o],childNodes:[],parentNode:null};return s.childNodes=Wu(e.children,s,r),Rr(e,s),e.tagName==="template"&&e.content&&(s.content=rk(e.content,r)),s}function uk(e,t,n){const r=V2(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Pp(n):Vp(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Zn[r.space]}return i}function Wu(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=rg(e[r],n);a.parentNode=t,i.push(a)}return i}function Rr(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const lk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ck=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ye="�";var x;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(x||(x={}));const St={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ig(e){return e>=55296&&e<=57343}function dk(e){return e>=56320&&e<=57343}function fk(e,t){return(e-55296)*1024+9216+t}function ag(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function og(e){return e>=64976&&e<=65007||ck.has(e)}var P;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(P||(P={}));const hk=65536;class pk{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=hk,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,o=i+n,s=a+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(dk(n))return this.pos++,this._addGap(),fk(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(P.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;const r=this.html.charCodeAt(n);return r===x.CARRIAGE_RETURN?x.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let t=this.html.charCodeAt(this.pos);return t===x.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED):t===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ig(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===x.LINE_FEED||t===x.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ag(t)?this._err(P.controlCharacterInInputStream):og(t)&&this._err(P.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var we;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(we||(we={}));function sg(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const mk=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),gk=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ek(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gk.get(e))!==null&&t!==void 0?t:e}var at;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(at||(at={}));const bk=32;var In;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(In||(In={}));function Ku(e){return e>=at.ZERO&&e<=at.NINE}function _k(e){return e>=at.UPPER_A&&e<=at.UPPER_F||e>=at.LOWER_A&&e<=at.LOWER_F}function Tk(e){return e>=at.UPPER_A&&e<=at.UPPER_Z||e>=at.LOWER_A&&e<=at.LOWER_Z||Ku(e)}function Ak(e){return e===at.EQUALS||Tk(e)}var ot;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ot||(ot={}));var gn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(gn||(gn={}));class xk{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ot.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gn.Strict}startEntity(t){this.decodeMode=t,this.state=ot.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ot.EntityStart:return t.charCodeAt(n)===at.NUM?(this.state=ot.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ot.NamedEntity,this.stateNamedEntity(t,n));case ot.NumericStart:return this.stateNumericStart(t,n);case ot.NumericDecimal:return this.stateNumericDecimal(t,n);case ot.NumericHex:return this.stateNumericHex(t,n);case ot.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bk)===at.LOWER_X?(this.state=ot.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ot.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ku(i)||_k(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ku(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===at.SEMI)this.consumed+=1;else if(this.decodeMode===gn.Strict)return 0;return this.emitCodePoint(Ek(this.result),this.consumed),this.errors&&(t!==at.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&In.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Ck(r,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===gn.Attribute&&(a===0||Ak(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&In.VALUE_LENGTH)>>14,a!==0){if(o===at.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==gn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&In.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~In.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ot.NamedEntity:return this.result!==0&&(this.decodeMode!==gn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ot.NumericDecimal:return this.emitNumericEntity(0,2);case ot.NumericHex:return this.emitNumericEntity(0,3);case ot.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ot.EntityStart:return 0}}}function Ck(e,t,n,r){const i=(t&In.BRANCH_LENGTH)>>7,a=t&In.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let o=n,s=o+i-1;for(;o<=s;){const u=o+s>>>1,l=e[u];if(l<r)o=u+1;else if(l>r)s=u-1;else return e[u+i]}return-1}var j;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(j||(j={}));var er;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(er||(er={}));var Ut;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ut||(Ut={}));var R;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(R||(R={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(f||(f={}));const yk=new Map([[R.A,f.A],[R.ADDRESS,f.ADDRESS],[R.ANNOTATION_XML,f.ANNOTATION_XML],[R.APPLET,f.APPLET],[R.AREA,f.AREA],[R.ARTICLE,f.ARTICLE],[R.ASIDE,f.ASIDE],[R.B,f.B],[R.BASE,f.BASE],[R.BASEFONT,f.BASEFONT],[R.BGSOUND,f.BGSOUND],[R.BIG,f.BIG],[R.BLOCKQUOTE,f.BLOCKQUOTE],[R.BODY,f.BODY],[R.BR,f.BR],[R.BUTTON,f.BUTTON],[R.CAPTION,f.CAPTION],[R.CENTER,f.CENTER],[R.CODE,f.CODE],[R.COL,f.COL],[R.COLGROUP,f.COLGROUP],[R.DD,f.DD],[R.DESC,f.DESC],[R.DETAILS,f.DETAILS],[R.DIALOG,f.DIALOG],[R.DIR,f.DIR],[R.DIV,f.DIV],[R.DL,f.DL],[R.DT,f.DT],[R.EM,f.EM],[R.EMBED,f.EMBED],[R.FIELDSET,f.FIELDSET],[R.FIGCAPTION,f.FIGCAPTION],[R.FIGURE,f.FIGURE],[R.FONT,f.FONT],[R.FOOTER,f.FOOTER],[R.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[R.FORM,f.FORM],[R.FRAME,f.FRAME],[R.FRAMESET,f.FRAMESET],[R.H1,f.H1],[R.H2,f.H2],[R.H3,f.H3],[R.H4,f.H4],[R.H5,f.H5],[R.H6,f.H6],[R.HEAD,f.HEAD],[R.HEADER,f.HEADER],[R.HGROUP,f.HGROUP],[R.HR,f.HR],[R.HTML,f.HTML],[R.I,f.I],[R.IMG,f.IMG],[R.IMAGE,f.IMAGE],[R.INPUT,f.INPUT],[R.IFRAME,f.IFRAME],[R.KEYGEN,f.KEYGEN],[R.LABEL,f.LABEL],[R.LI,f.LI],[R.LINK,f.LINK],[R.LISTING,f.LISTING],[R.MAIN,f.MAIN],[R.MALIGNMARK,f.MALIGNMARK],[R.MARQUEE,f.MARQUEE],[R.MATH,f.MATH],[R.MENU,f.MENU],[R.META,f.META],[R.MGLYPH,f.MGLYPH],[R.MI,f.MI],[R.MO,f.MO],[R.MN,f.MN],[R.MS,f.MS],[R.MTEXT,f.MTEXT],[R.NAV,f.NAV],[R.NOBR,f.NOBR],[R.NOFRAMES,f.NOFRAMES],[R.NOEMBED,f.NOEMBED],[R.NOSCRIPT,f.NOSCRIPT],[R.OBJECT,f.OBJECT],[R.OL,f.OL],[R.OPTGROUP,f.OPTGROUP],[R.OPTION,f.OPTION],[R.P,f.P],[R.PARAM,f.PARAM],[R.PLAINTEXT,f.PLAINTEXT],[R.PRE,f.PRE],[R.RB,f.RB],[R.RP,f.RP],[R.RT,f.RT],[R.RTC,f.RTC],[R.RUBY,f.RUBY],[R.S,f.S],[R.SCRIPT,f.SCRIPT],[R.SEARCH,f.SEARCH],[R.SECTION,f.SECTION],[R.SELECT,f.SELECT],[R.SOURCE,f.SOURCE],[R.SMALL,f.SMALL],[R.SPAN,f.SPAN],[R.STRIKE,f.STRIKE],[R.STRONG,f.STRONG],[R.STYLE,f.STYLE],[R.SUB,f.SUB],[R.SUMMARY,f.SUMMARY],[R.SUP,f.SUP],[R.TABLE,f.TABLE],[R.TBODY,f.TBODY],[R.TEMPLATE,f.TEMPLATE],[R.TEXTAREA,f.TEXTAREA],[R.TFOOT,f.TFOOT],[R.TD,f.TD],[R.TH,f.TH],[R.THEAD,f.THEAD],[R.TITLE,f.TITLE],[R.TR,f.TR],[R.TRACK,f.TRACK],[R.TT,f.TT],[R.U,f.U],[R.UL,f.UL],[R.SVG,f.SVG],[R.VAR,f.VAR],[R.WBR,f.WBR],[R.XMP,f.XMP]]);function Mr(e){var t;return(t=yk.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const W=f,Sk={[j.HTML]:new Set([W.ADDRESS,W.APPLET,W.AREA,W.ARTICLE,W.ASIDE,W.BASE,W.BASEFONT,W.BGSOUND,W.BLOCKQUOTE,W.BODY,W.BR,W.BUTTON,W.CAPTION,W.CENTER,W.COL,W.COLGROUP,W.DD,W.DETAILS,W.DIR,W.DIV,W.DL,W.DT,W.EMBED,W.FIELDSET,W.FIGCAPTION,W.FIGURE,W.FOOTER,W.FORM,W.FRAME,W.FRAMESET,W.H1,W.H2,W.H3,W.H4,W.H5,W.H6,W.HEAD,W.HEADER,W.HGROUP,W.HR,W.HTML,W.IFRAME,W.IMG,W.INPUT,W.LI,W.LINK,W.LISTING,W.MAIN,W.MARQUEE,W.MENU,W.META,W.NAV,W.NOEMBED,W.NOFRAMES,W.NOSCRIPT,W.OBJECT,W.OL,W.P,W.PARAM,W.PLAINTEXT,W.PRE,W.SCRIPT,W.SECTION,W.SELECT,W.SOURCE,W.STYLE,W.SUMMARY,W.TABLE,W.TBODY,W.TD,W.TEMPLATE,W.TEXTAREA,W.TFOOT,W.TH,W.THEAD,W.TITLE,W.TR,W.TRACK,W.UL,W.WBR,W.XMP]),[j.MATHML]:new Set([W.MI,W.MO,W.MN,W.MS,W.MTEXT,W.ANNOTATION_XML]),[j.SVG]:new Set([W.TITLE,W.FOREIGN_OBJECT,W.DESC]),[j.XLINK]:new Set,[j.XML]:new Set,[j.XMLNS]:new Set},qu=new Set([W.H1,W.H2,W.H3,W.H4,W.H5,W.H6]);R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT;var S;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(S||(S={}));const Ke={DATA:S.DATA,RCDATA:S.RCDATA,RAWTEXT:S.RAWTEXT,SCRIPT_DATA:S.SCRIPT_DATA,PLAINTEXT:S.PLAINTEXT,CDATA_SECTION:S.CDATA_SECTION};function Nk(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function Oi(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function Dk(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}function On(e){return Dk(e)||Oi(e)}function ug(e){return On(e)||Nk(e)}function no(e){return e+32}function lg(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function cg(e){return lg(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}function wk(e){return e===x.NULL?P.nullCharacterReference:e>1114111?P.characterReferenceOutsideUnicodeRange:ig(e)?P.surrogateCharacterReference:og(e)?P.noncharacterCharacterReference:ag(e)||e===x.CARRIAGE_RETURN?P.controlCharacterReference:null}class vk{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=S.DATA,this.returnState=S.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new pk(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new xk(mk,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=wk(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:we.START_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:we.END_TAG,tagName:"",tagID:f.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:we.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:we.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(sg(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Mr(t.tagName),t.type===we.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(P.endTagWithAttributes),t.selfClosing&&this._err(P.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case we.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case we.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case we.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:we.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=lg(t)?we.WHITESPACE_CHARACTER:t===x.NULL?we.NULL_CHARACTER:we.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(we.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=S.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gn.Attribute:gn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===S.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===S.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case S.DATA:{this._stateData(t);break}case S.RCDATA:{this._stateRcdata(t);break}case S.RAWTEXT:{this._stateRawtext(t);break}case S.SCRIPT_DATA:{this._stateScriptData(t);break}case S.PLAINTEXT:{this._statePlaintext(t);break}case S.TAG_OPEN:{this._stateTagOpen(t);break}case S.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case S.TAG_NAME:{this._stateTagName(t);break}case S.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case S.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case S.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case S.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case S.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case S.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case S.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case S.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case S.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case S.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case S.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case S.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case S.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case S.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case S.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case S.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case S.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case S.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case S.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case S.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case S.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case S.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case S.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case S.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case S.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case S.BOGUS_COMMENT:{this._stateBogusComment(t);break}case S.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case S.COMMENT_START:{this._stateCommentStart(t);break}case S.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case S.COMMENT:{this._stateComment(t);break}case S.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case S.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case S.COMMENT_END:{this._stateCommentEnd(t);break}case S.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case S.DOCTYPE:{this._stateDoctype(t);break}case S.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case S.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case S.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case S.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case S.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case S.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case S.CDATA_SECTION:{this._stateCdataSection(t);break}case S.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case S.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case S.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case S.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=S.TAG_OPEN;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitCodePoint(t);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case x.AMPERSAND:{this._startCharacterReference();break}case x.LESS_THAN_SIGN:{this.state=S.RCDATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case x.LESS_THAN_SIGN:{this.state=S.RAWTEXT_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(On(t))this._createStartTagToken(),this.state=S.TAG_NAME,this._stateTagName(t);else switch(t){case x.EXCLAMATION_MARK:{this.state=S.MARKUP_DECLARATION_OPEN;break}case x.SOLIDUS:{this.state=S.END_TAG_OPEN;break}case x.QUESTION_MARK:{this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t);break}case x.EOF:{this._err(P.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=S.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(On(t))this._createEndTagToken(),this.state=S.TAG_NAME,this._stateTagName(t);else switch(t){case x.GREATER_THAN_SIGN:{this._err(P.missingEndTagName),this.state=S.DATA;break}case x.EOF:{this._err(P.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this.state=S.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.tagName+=Ye;break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Oi(t)?no(t):t)}}_stateRcdataLessThanSign(t){t===x.SOLIDUS?this.state=S.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=S.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){On(t)?(this.state=S.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=S.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=S.BEFORE_ATTRIBUTE_NAME,!1;case x.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=S.SELF_CLOSING_START_TAG,!1;case x.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=S.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===x.SOLIDUS?this.state=S.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){On(t)?(this.state=S.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case x.SOLIDUS:{this.state=S.SCRIPT_DATA_END_TAG_OPEN;break}case x.EXCLAMATION_MARK:{this.state=S.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=S.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){On(t)?(this.state=S.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===x.HYPHEN_MINUS?(this.state=S.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===x.HYPHEN_MINUS?(this.state=S.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=S.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.GREATER_THAN_SIGN:{this.state=S.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===x.SOLIDUS?this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:On(t)?(this._emitChars("<"),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){On(t)?(this.state=S.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&cg(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=S.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(P.unexpectedNullCharacter),this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.GREATER_THAN_SIGN:{this.state=S.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case x.EOF:{this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===x.SOLIDUS?(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(St.SCRIPT,!1)&&cg(this.preprocessor.peek(St.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<St.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=S.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=S.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this.state=S.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=S.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=S.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this._leaveAttrName(),this.state=S.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._leaveAttrName(),this.state=S.BEFORE_ATTRIBUTE_VALUE;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:{this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.name+=Ye;break}default:this.currentAttr.name+=String.fromCodePoint(Oi(t)?no(t):t)}}_stateAfterAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:{this.state=S.SELF_CLOSING_START_TAG;break}case x.EQUALS_SIGN:{this.state=S.BEFORE_ATTRIBUTE_VALUE;break}case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=S.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{this.state=S.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this.state=S.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(P.missingAttributeValue),this.state=S.DATA,this.emitCurrentTagToken();break}default:this.state=S.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case x.QUOTATION_MARK:{this.state=S.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case x.APOSTROPHE:{this.state=S.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=S.BEFORE_ATTRIBUTE_NAME;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=S.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:case x.EQUALS_SIGN:case x.GRAVE_ACCENT:{this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=S.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this._leaveAttrValue(),this.state=S.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=S.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBetweenAttributes),this.state=S.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case x.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=S.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(P.eofInTag),this._emitEOFToken();break}default:this._err(P.unexpectedSolidusInTag),this.state=S.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentComment(n);break}case x.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ye;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(St.DASH_DASH,!0)?(this._createCommentToken(St.DASH_DASH.length+1),this.state=S.COMMENT_START):this._consumeSequenceIfMatch(St.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(St.DOCTYPE.length+1),this.state=S.DOCTYPE):this._consumeSequenceIfMatch(St.CDATA_START,!0)?this.inForeignNode?this.state=S.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(St.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=S.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=S.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case x.HYPHEN_MINUS:{this.state=S.COMMENT_START_DASH;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=S.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=S.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=S.COMMENT_END;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=S.DATA,this.emitCurrentComment(n);break}case x.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=S.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=S.COMMENT_END_DASH;break}case x.LESS_THAN_SIGN:{n.data+="<",this.state=S.COMMENT_LESS_THAN_SIGN;break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.data+=Ye;break}case x.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case x.EXCLAMATION_MARK:{n.data+="!",this.state=S.COMMENT_LESS_THAN_SIGN_BANG;break}case x.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=S.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===x.HYPHEN_MINUS?this.state=S.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=S.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===x.HYPHEN_MINUS?this.state=S.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=S.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==x.GREATER_THAN_SIGN&&t!==x.EOF&&this._err(P.nestedComment),this.state=S.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=S.COMMENT_END;break}case x.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=S.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentComment(n);break}case x.EXCLAMATION_MARK:{this.state=S.COMMENT_END_BANG;break}case x.HYPHEN_MINUS:{n.data+="-";break}case x.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=S.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case x.HYPHEN_MINUS:{n.data+="--!",this.state=S.COMMENT_END_DASH;break}case x.GREATER_THAN_SIGN:{this._err(P.incorrectlyClosedComment),this.state=S.DATA,this.emitCurrentComment(n);break}case x.EOF:{this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=S.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=S.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case x.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=S.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Oi(t))this._createDoctypeToken(String.fromCharCode(no(t))),this.state=S.DOCTYPE_NAME;else switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.NULL:{this._err(P.unexpectedNullCharacter),this._createDoctypeToken(Ye),this.state=S.DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=S.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.AFTER_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.name+=Ye;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Oi(t)?no(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(St.PUBLIC,!1)?this.state=S.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(St.SYSTEM,!1)?this.state=S.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{n.publicId="",this.state=S.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ye;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=S.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.publicId+=Ye;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case x.GREATER_THAN_SIGN:{this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.QUOTATION_MARK:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.QUOTATION_MARK:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=S.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{n.systemId="",this.state=S.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.DATA,this.emitCurrentDoctype(n);break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ye;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=S.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(P.unexpectedNullCharacter),n.systemId+=Ye;break}case x.GREATER_THAN_SIGN:{this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.EOF:{this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=S.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=S.DATA;break}case x.NULL:{this._err(P.unexpectedNullCharacter);break}case x.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case x.RIGHT_SQUARE_BRACKET:{this.state=S.CDATA_SECTION_BRACKET;break}case x.EOF:{this._err(P.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===x.RIGHT_SQUARE_BRACKET?this.state=S.CDATA_SECTION_END:(this._emitChars("]"),this.state=S.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case x.GREATER_THAN_SIGN:{this.state=S.DATA;break}case x.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=S.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(x.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ug(this.preprocessor.peek(1))?S.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){ug(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===x.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const dg=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),fg=new Set([...dg,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),ro=new Set([f.APPLET,f.CAPTION,f.HTML,f.MARQUEE,f.OBJECT,f.TABLE,f.TD,f.TEMPLATE,f.TH]),kk=new Set([...ro,f.OL,f.UL]),Ik=new Set([...ro,f.BUTTON]),hg=new Set([f.ANNOTATION_XML,f.MI,f.MN,f.MO,f.MS,f.MTEXT]),pg=new Set([f.DESC,f.FOREIGN_OBJECT,f.TITLE]),Ok=new Set([f.TR,f.TEMPLATE,f.HTML]),Rk=new Set([f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML]),Mk=new Set([f.TABLE,f.TEMPLATE,f.HTML]),Lk=new Set([f.TD,f.TH]);class Pk{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===j.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==j.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qu,j.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Lk,j.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Mk,j.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Rk,j.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ok,j.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case j.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case j.SVG:{if(pg.has(i))return!1;break}case j.MATHML:{if(hg.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ro)}hasInListItemScope(t){return this.hasInDynamicScope(t,kk)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ik)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case j.HTML:{if(qu.has(n))return!0;if(ro.has(n))return!1;break}case j.SVG:{if(pg.has(n))return!1;break}case j.MATHML:{if(hg.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===j.HTML)switch(this.tagIDs[t]){case f.TBODY:case f.THEAD:case f.TFOOT:return!0;case f.TABLE:case f.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===j.HTML)switch(this.tagIDs[n]){case t:return!0;case f.OPTION:case f.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&dg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&fg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&fg.has(this.currentTagId);)this.pop()}}const Vu=3;var on;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(on||(on={}));const mg={type:on.Marker};class Fk{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const u=this.entries[s];if(u.type===on.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===a&&this.treeAdapter.getNamespaceURI(l)===o){const d=this.treeAdapter.getAttrList(l);d.length===i&&r.push({idx:s,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Vu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Vu)return;const i=new Map(n.map(o=>[o.name,o.value]));let a=0;for(let o=0;o<r.length;o++){const s=r[o];s.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=Vu&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(mg)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:on.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:on.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(mg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===on.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===on.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===on.Element&&n.element===t)}}const Rn={createDocument(){return{nodeName:"#document",mode:Ut.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Rn.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Rn.isTextNode(n)){n.value+=t;return}}Rn.appendChild(e,Rn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Rn.isTextNode(r)?r.value+=t:Rn.insertBefore(e,Rn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},gg="html",Bk="about:legacy-compat",Uk="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Eg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hk=[...Eg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zk=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),bg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$k=[...bg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _g(e,t){return t.some(n=>e.startsWith(n))}function jk(e){return e.name===gg&&e.publicId===null&&(e.systemId===null||e.systemId===Bk)}function Yk(e){if(e.name!==gg)return Ut.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Uk)return Ut.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),zk.has(n))return Ut.QUIRKS;let r=t===null?Hk:Eg;if(_g(n,r))return Ut.QUIRKS;if(r=t===null?bg:$k,_g(n,r))return Ut.LIMITED_QUIRKS}return Ut.NO_QUIRKS}const Tg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Gk="definitionurl",Wk="definitionURL",Kk=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),qk=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:j.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:j.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:j.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:j.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:j.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:j.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:j.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:j.XML}],["xml:space",{prefix:"xml",name:"space",namespace:j.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:j.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:j.XMLNS}]]),Vk=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Xk=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function Qk(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:r})=>r===er.COLOR||r===er.SIZE||r===er.FACE)||Xk.has(t)}function Ag(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Gk){e.attrs[t].name=Wk;break}}function xg(e){for(let t=0;t<e.attrs.length;t++){const n=Kk.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Xu(e){for(let t=0;t<e.attrs.length;t++){const n=qk.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Zk(e){const t=Vk.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Mr(e.tagName))}function Jk(e,t){return t===j.MATHML&&(e===f.MI||e===f.MO||e===f.MN||e===f.MS||e===f.MTEXT)}function eI(e,t,n){if(t===j.MATHML&&e===f.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===er.ENCODING){const i=n[r].value.toLowerCase();return i===Tg.TEXT_HTML||i===Tg.APPLICATION_XML}}return t===j.SVG&&(e===f.FOREIGN_OBJECT||e===f.DESC||e===f.TITLE)}function tI(e,t,n,r){return(!r||r===j.HTML)&&eI(e,t,n)||(!r||r===j.MATHML)&&Jk(e,t)}const nI="hidden",rI=8,iI=3;var D;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const aI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Cg=new Set([f.TABLE,f.TBODY,f.TFOOT,f.THEAD,f.TR]),yg={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Rn,onParseError:null};class Sg{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...yg,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new vk(this.options,this),this.activeFormattingElements=new Fk(this.treeAdapter),this.fragmentContextID=r?Mr(this.treeAdapter.getTagName(r)):f.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Pk(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...yg,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,j.HTML,[]));const i=r.treeAdapter.createElement("documentmock",j.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===f.TEMPLATE&&a.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:aI,o={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,o;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,o=this.fragmentContextID):{current:a,currentTagId:o}=this.openElements,this._setContextModes(a,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===j.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,j.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=Ke.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==j.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=Ke.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=Ke.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=Ke.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=Ke.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,j.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,j.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,j.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:u,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:l,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===we.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===j.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,j.HTML)}_processToken(t){switch(t.type){case we.CHARACTER:{this.onCharacter(t);break}case we.NULL_CHARACTER:{this.onNullCharacter(t);break}case we.COMMENT:{this.onComment(t);break}case we.DOCTYPE:{this.onDoctype(t);break}case we.START_TAG:{this._processStartTag(t);break}case we.END_TAG:{this.onEndTag(t);break}case we.EOF:{this.onEof(t);break}case we.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return tI(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===on.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=D.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=D.IN_TABLE;return}case f.BODY:{this.insertionMode=D.IN_BODY;return}case f.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=D.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===f.TEMPLATE)break;if(r===f.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(t){return Cg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===j.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case f.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Sk[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){LO(this,t);return}switch(this.insertionMode){case D.INITIAL:{Ri(this,t);break}case D.BEFORE_HTML:{Mi(this,t);break}case D.BEFORE_HEAD:{Li(this,t);break}case D.IN_HEAD:{Pi(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Fi(this,t);break}case D.AFTER_HEAD:{Bi(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{Dg(this,t);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_TABLE_TEXT:{Lg(this,t);break}case D.IN_COLUMN_GROUP:{oo(this,t);break}case D.AFTER_BODY:{lo(this,t);break}case D.AFTER_AFTER_BODY:{co(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){MO(this,t);return}switch(this.insertionMode){case D.INITIAL:{Ri(this,t);break}case D.BEFORE_HTML:{Mi(this,t);break}case D.BEFORE_HEAD:{Li(this,t);break}case D.IN_HEAD:{Pi(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Fi(this,t);break}case D.AFTER_HEAD:{Bi(this,t);break}case D.TEXT:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_COLUMN_GROUP:{oo(this,t);break}case D.AFTER_BODY:{lo(this,t);break}case D.AFTER_AFTER_BODY:{co(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zu(this,t);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{Zu(this,t);break}case D.IN_TABLE_TEXT:{zi(this,t);break}case D.AFTER_BODY:{fI(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{hI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{pI(this,t);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(t,P.misplacedDoctype);break}case D.IN_TABLE_TEXT:{zi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?PO(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Ri(this,t);break}case D.BEFORE_HTML:{mI(this,t);break}case D.BEFORE_HEAD:{EI(this,t);break}case D.IN_HEAD:{Gt(this,t);break}case D.IN_HEAD_NO_SCRIPT:{TI(this,t);break}case D.AFTER_HEAD:{xI(this,t);break}case D.IN_BODY:{mt(this,t);break}case D.IN_TABLE:{Lr(this,t);break}case D.IN_TABLE_TEXT:{zi(this,t);break}case D.IN_CAPTION:{bO(this,t);break}case D.IN_COLUMN_GROUP:{tl(this,t);break}case D.IN_TABLE_BODY:{so(this,t);break}case D.IN_ROW:{uo(this,t);break}case D.IN_CELL:{AO(this,t);break}case D.IN_SELECT:{Bg(this,t);break}case D.IN_SELECT_IN_TABLE:{CO(this,t);break}case D.IN_TEMPLATE:{SO(this,t);break}case D.AFTER_BODY:{DO(this,t);break}case D.IN_FRAMESET:{wO(this,t);break}case D.AFTER_FRAMESET:{kO(this,t);break}case D.AFTER_AFTER_BODY:{OO(this,t);break}case D.AFTER_AFTER_FRAMESET:{RO(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?FO(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Ri(this,t);break}case D.BEFORE_HTML:{gI(this,t);break}case D.BEFORE_HEAD:{bI(this,t);break}case D.IN_HEAD:{_I(this,t);break}case D.IN_HEAD_NO_SCRIPT:{AI(this,t);break}case D.AFTER_HEAD:{CI(this,t);break}case D.IN_BODY:{ao(this,t);break}case D.TEXT:{uO(this,t);break}case D.IN_TABLE:{Ui(this,t);break}case D.IN_TABLE_TEXT:{zi(this,t);break}case D.IN_CAPTION:{_O(this,t);break}case D.IN_COLUMN_GROUP:{TO(this,t);break}case D.IN_TABLE_BODY:{nl(this,t);break}case D.IN_ROW:{Fg(this,t);break}case D.IN_CELL:{xO(this,t);break}case D.IN_SELECT:{Ug(this,t);break}case D.IN_SELECT_IN_TABLE:{yO(this,t);break}case D.IN_TEMPLATE:{NO(this,t);break}case D.AFTER_BODY:{zg(this,t);break}case D.IN_FRAMESET:{vO(this,t);break}case D.AFTER_FRAMESET:{IO(this,t);break}case D.AFTER_AFTER_BODY:{co(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{Ri(this,t);break}case D.BEFORE_HTML:{Mi(this,t);break}case D.BEFORE_HEAD:{Li(this,t);break}case D.IN_HEAD:{Pi(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Fi(this,t);break}case D.AFTER_HEAD:{Bi(this,t);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{Rg(this,t);break}case D.TEXT:{lO(this,t);break}case D.IN_TABLE_TEXT:{zi(this,t);break}case D.IN_TEMPLATE:{Hg(this,t);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Ju(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===x.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Ng(this,t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{el(this,t);break}case D.IN_TABLE_TEXT:{Mg(this,t);break}}}}function oI(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Og(e,t),n}function sI(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function uI(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=iI;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=lI(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function lI(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function cI(e,t,n){const r=e.treeAdapter.getTagName(t),i=Mr(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===f.TEMPLATE&&a===j.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function dI(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Qu(e,t){for(let n=0;n<rI;n++){const r=oI(e,t);if(!r)break;const i=sI(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=uI(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),o&&cI(e,o,a),dI(e,i,r)}}function Zu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fI(e,t){e._appendCommentNode(t,e.openElements.items[0])}function hI(e,t){e._appendCommentNode(t,e.document)}function Ju(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t)}}}}function pI(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ut.QUIRKS:Yk(t);jk(t)||e._err(t,P.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function Ri(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ut.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function mI(e,t){t.tagID===f.HTML?(e._insertElement(t,j.HTML),e.insertionMode=D.BEFORE_HEAD):Mi(e,t)}function gI(e,t){const n=t.tagID;(n===f.HTML||n===f.HEAD||n===f.BODY||n===f.BR)&&Mi(e,t)}function Mi(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function EI(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.HEAD:{e._insertElement(t,j.HTML),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD;break}default:Li(e,t)}}function bI(e,t){const n=t.tagID;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?Li(e,t):e._err(t,P.endTagWithoutMatchingOpenElement)}function Li(e,t){e._insertFakeElement(R.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD,e._processToken(t)}function Gt(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,Ke.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ke.RAWTEXT):(e._insertElement(t,j.HTML),e.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,Ke.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,Ke.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=D.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case f.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:Pi(e,t)}}function _I(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=D.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{Pi(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function tr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function Pi(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function TI(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{Gt(e,t);break}case f.NOSCRIPT:{e._err(t,P.nestedNoscriptInHead);break}default:Fi(e,t)}}function AI(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case f.BR:{Fi(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function Fi(e,t){const n=t.type===we.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=D.IN_HEAD,e._processToken(t)}function xI(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.BODY:{e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=D.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,j.HTML),e.insertionMode=D.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,P.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),Gt(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,P.misplacedStartTagForHeadElement);break}default:Bi(e,t)}}function CI(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{Bi(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:e._err(t,P.endTagWithoutMatchingOpenElement)}}function Bi(e,t){e._insertFakeElement(R.BODY,f.BODY),e.insertionMode=D.IN_BODY,io(e,t)}function io(e,t){switch(t.type){case we.CHARACTER:{Dg(e,t);break}case we.WHITESPACE_CHARACTER:{Ng(e,t);break}case we.COMMENT:{Zu(e,t);break}case we.START_TAG:{mt(e,t);break}case we.END_TAG:{ao(e,t);break}case we.EOF:{Rg(e,t);break}}}function Ng(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Dg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function SI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function NI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_FRAMESET)}function DI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function wI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,j.HTML)}function vI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function kI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),n||(e.formElement=e.openElements.current))}function II(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===f.LI&&i===f.LI||(n===f.DD||n===f.DT)&&(i===f.DD||i===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==f.ADDRESS&&i!==f.DIV&&i!==f.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML)}function OI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.tokenizer.state=Ke.PLAINTEXT}function RI(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1}function MI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(Qu(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function LI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function PI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(Qu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,j.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function BI(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ut.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=D.IN_TABLE}function wg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function vg(e){const t=sg(e,er.TYPE);return t!=null&&t.toLowerCase()===nI}function UI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,j.HTML),vg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function HI(e,t){e._appendElement(t,j.HTML),t.ackSelfClosing=!0}function zI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,j.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $I(e,t){t.tagName=R.IMG,t.tagID=f.IMG,wg(e,t)}function jI(e,t){e._insertElement(t,j.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ke.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=D.TEXT}function YI(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ke.RAWTEXT)}function GI(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ke.RAWTEXT)}function kg(e,t){e._switchToTextParsing(t,Ke.RAWTEXT)}function WI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===D.IN_TABLE||e.insertionMode===D.IN_CAPTION||e.insertionMode===D.IN_TABLE_BODY||e.insertionMode===D.IN_ROW||e.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function KI(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function qI(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,j.HTML)}function VI(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,j.HTML)}function XI(e,t){e._reconstructActiveFormattingElements(),Ag(t),Xu(t),t.selfClosing?e._appendElement(t,j.MATHML):e._insertElement(t,j.MATHML),t.ackSelfClosing=!0}function QI(e,t){e._reconstructActiveFormattingElements(),xg(t),Xu(t),t.selfClosing?e._appendElement(t,j.SVG):e._insertElement(t,j.SVG),t.ackSelfClosing=!0}function Ig(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,j.HTML)}function mt(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{LI(e,t);break}case f.A:{MI(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{wI(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{DI(e,t);break}case f.LI:case f.DD:case f.DT:{II(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{wg(e,t);break}case f.HR:{zI(e,t);break}case f.RB:case f.RTC:{qI(e,t);break}case f.RT:case f.RP:{VI(e,t);break}case f.PRE:case f.LISTING:{vI(e,t);break}case f.XMP:{YI(e,t);break}case f.SVG:{QI(e,t);break}case f.HTML:{yI(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{Gt(e,t);break}case f.BODY:{SI(e,t);break}case f.FORM:{kI(e,t);break}case f.NOBR:{PI(e,t);break}case f.MATH:{XI(e,t);break}case f.TABLE:{BI(e,t);break}case f.INPUT:{UI(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{HI(e,t);break}case f.IMAGE:{$I(e,t);break}case f.BUTTON:{RI(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{FI(e,t);break}case f.IFRAME:{GI(e,t);break}case f.SELECT:{WI(e,t);break}case f.OPTION:case f.OPTGROUP:{KI(e,t);break}case f.NOEMBED:case f.NOFRAMES:{kg(e,t);break}case f.FRAMESET:{NI(e,t);break}case f.TEXTAREA:{jI(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?kg(e,t):Ig(e,t);break}case f.PLAINTEXT:{OI(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:Ig(e,t)}}function ZI(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=D.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function JI(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=D.AFTER_BODY,zg(e,t))}function eO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tO(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):n&&e.openElements.remove(n))}function nO(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(R.P,f.P),e._closePElement()}function rO(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function iO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function aO(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function oO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function sO(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function Og(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function ao(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{Qu(e,t);break}case f.P:{nO(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SEARCH:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{eO(e,t);break}case f.LI:{rO(e);break}case f.DD:case f.DT:{iO(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{aO(e);break}case f.BR:{sO(e);break}case f.BODY:{ZI(e,t);break}case f.HTML:{JI(e,t);break}case f.FORM:{tO(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{oO(e,t);break}case f.TEMPLATE:{tr(e,t);break}default:Og(e,t)}}function Rg(e,t){e.tmplInsertionModeStack.length>0?Hg(e,t):Ju(e,t)}function uO(e,t){var n;t.tagID===f.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function lO(e,t){e._err(t,P.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function el(e,t){if(e.openElements.currentTagId!==void 0&&Cg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D.IN_TABLE_TEXT,t.type){case we.CHARACTER:{Lg(e,t);break}case we.WHITESPACE_CHARACTER:{Mg(e,t);break}}else Hi(e,t)}function cO(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_CAPTION}function dO(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function fO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,f.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,tl(e,t)}function hO(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_TABLE_BODY}function pO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,f.TBODY),e.insertionMode=D.IN_TABLE_BODY,so(e,t)}function mO(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function gO(e,t){vg(t)?e._appendElement(t,j.HTML):Hi(e,t),t.ackSelfClosing=!0}function EO(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,j.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Lr(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{pO(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{Gt(e,t);break}case f.COL:{fO(e,t);break}case f.FORM:{EO(e,t);break}case f.TABLE:{mO(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{hO(e,t);break}case f.INPUT:{gO(e,t);break}case f.CAPTION:{cO(e,t);break}case f.COLGROUP:{dO(e,t);break}default:Hi(e,t)}}function Ui(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{tr(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:Hi(e,t)}}function Hi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,io(e,t),e.fosterParentingEnabled=n}function Mg(e,t){e.pendingCharacterTokens.push(t)}function Lg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function zi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Hi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Pg=new Set([f.CAPTION,f.COL,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]);function bO(e,t){const n=t.tagID;Pg.has(n)?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,Lr(e,t)):mt(e,t)}function _O(e,t){const n=t.tagID;switch(n){case f.CAPTION:case f.TABLE:{e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,n===f.TABLE&&Ui(e,t));break}case f.BODY:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:ao(e,t)}}function tl(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.COL:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.TEMPLATE:{Gt(e,t);break}default:oo(e,t)}}function TO(e,t){switch(t.tagID){case f.COLGROUP:{e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case f.TEMPLATE:{tr(e,t);break}case f.COL:break;default:oo(e,t)}}function oo(e,t){e.openElements.currentTagId===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE,e._processToken(t))}function so(e,t){switch(t.tagID){case f.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_ROW;break}case f.TH:case f.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,f.TR),e.insertionMode=D.IN_ROW,uo(e,t);break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Lr(e,t));break}default:Lr(e,t)}}function nl(e,t){const n=t.tagID;switch(t.tagID){case f.TBODY:case f.TFOOT:case f.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case f.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,Ui(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:case f.TR:break;default:Ui(e,t)}}function uo(e,t){switch(t.tagID){case f.TH:case f.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,j.HTML),e.insertionMode=D.IN_CELL,e.activeFormattingElements.insertMarker();break}case f.CAPTION:case f.COL:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,so(e,t));break}default:Lr(e,t)}}function Fg(e,t){switch(t.tagID){case f.TR:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY);break}case f.TABLE:{e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,nl(e,t));break}case f.TBODY:case f.TFOOT:case f.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,nl(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TD:case f.TH:break;default:Ui(e,t)}}function AO(e,t){const n=t.tagID;Pg.has(n)?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),uo(e,t)):mt(e,t)}function xO(e,t){const n=t.tagID;switch(n){case f.TD:case f.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_ROW);break}case f.TABLE:case f.TBODY:case f.TFOOT:case f.THEAD:case f.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Fg(e,t));break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:break;default:ao(e,t)}}function Bg(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.OPTGROUP:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,j.HTML);break}case f.HR:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop(),e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.INPUT:case f.KEYGEN:case f.TEXTAREA:case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),t.tagID!==f.SELECT&&e._processStartTag(t));break}case f.SCRIPT:case f.TEMPLATE:{Gt(e,t);break}}}function Ug(e,t){switch(t.tagID){case f.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{tr(e,t);break}}}function CO(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Bg(e,t)}function yO(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ug(e,t)}function SO(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{Gt(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=D.IN_TABLE,e.insertionMode=D.IN_TABLE,Lr(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,e.insertionMode=D.IN_COLUMN_GROUP,tl(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,e.insertionMode=D.IN_TABLE_BODY,so(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=D.IN_ROW,e.insertionMode=D.IN_ROW,uo(e,t);break}default:e.tmplInsertionModeStack[0]=D.IN_BODY,e.insertionMode=D.IN_BODY,mt(e,t)}}function NO(e,t){t.tagID===f.TEMPLATE&&tr(e,t)}function Hg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ju(e,t)}function DO(e,t){t.tagID===f.HTML?mt(e,t):lo(e,t)}function zg(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=D.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else lo(e,t)}function lo(e,t){e.insertionMode=D.IN_BODY,io(e,t)}function wO(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.FRAMESET:{e._insertElement(t,j.HTML);break}case f.FRAME:{e._appendElement(t,j.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{Gt(e,t);break}}}function vO(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=D.AFTER_FRAMESET))}function kO(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.NOFRAMES:{Gt(e,t);break}}}function IO(e,t){t.tagID===f.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function OO(e,t){t.tagID===f.HTML?mt(e,t):co(e,t)}function co(e,t){e.insertionMode=D.IN_BODY,io(e,t)}function RO(e,t){switch(t.tagID){case f.HTML:{mt(e,t);break}case f.NOFRAMES:{Gt(e,t);break}}}function MO(e,t){t.chars=Ye,e._insertCharacters(t)}function LO(e,t){e._insertCharacters(t),e.framesetOk=!1}function $g(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==j.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function PO(e,t){if(Qk(t))$g(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===j.MATHML?Ag(t):r===j.SVG&&(Zk(t),xg(t)),Xu(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function FO(e,t){if(t.tagID===f.P||t.tagID===f.BR){$g(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===j.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR;const BO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,UO=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),jg={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Yg(e,t){const n=VO(e),r=p0("type",{handlers:{root:HO,element:zO,text:$O,comment:Wg,doctype:jO,raw:GO},unknown:WO}),i={parser:n?new Sg(jg):Sg.getFragmentParser(void 0,jg),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Pr(i,nn());const a=n?i.parser.document:i.parser.getFragment(),o=H2(a,{file:i.options.file});return i.stitches&&Xn(o,"comment",function(s,u,l){const d=s;if(d.value.stitch&&l&&u!==void 0){const c=l.children;return c[u]=d.value.stitch,u}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function Gg(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function HO(e,t){Gg(e.children,t)}function zO(e,t){KO(e,t),Gg(e.children,t),qO(e,t)}function $O(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:we.CHARACTER,chars:e.value,location:$i(e)};Pr(t,nn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function jO(e,t){const n={type:we.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:$i(e)};Pr(t,nn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YO(e,t){t.stitches=!0;const n=XO(e);if("children"in e&&"children"in n){const r=Yg({type:"root",children:e.children},t.options);n.children=r.children}Wg({type:"comment",value:{stitch:n}},t)}function Wg(e,t){const n=e.value,r={type:we.COMMENT,data:n,location:$i(e)};Pr(t,nn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GO(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Kg(t,nn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(BO,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function WO(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))YO(n,t);else{let r="";throw UO.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Pr(e,t){Kg(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ke.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Kg(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function KO(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ke.PLAINTEXT)return;Pr(t,nn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Zn.html;i===Zn.html&&n==="svg"&&(i=Zn.svg);const a=tk({...e,children:[]},{space:i===Zn.svg?"svg":"html"}),o={type:we.START_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:$i(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function qO(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lk.includes(n)||t.parser.tokenizer.state===Ke.PLAINTEXT)return;Pr(t,Ha(e));const r={type:we.END_TAG,tagName:n,tagID:Mr(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:$i(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ke.RCDATA||t.parser.tokenizer.state===Ke.RAWTEXT||t.parser.tokenizer.state===Ke.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ke.DATA)}function VO(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function $i(e){const t=nn(e)||{line:void 0,column:void 0,offset:void 0},n=Ha(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function XO(e){return"children"in e?Vn({...e,children:[]}):Vn(e)}function QO(e){return function(t,n){return Yg(t,{...e,file:n})}}const qg=function(e,t,n){const r=wi(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Vg=/\n/g,Xg=/[\t ]+/g,rl=kn("br"),Qg=kn(aR),ZO=kn("p"),Zg=kn("tr"),JO=kn(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",iR,oR]),Jg=kn(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function eR(e,t){const n=t||{},r="children"in e?e.children:[],i=Jg(e),a=nE(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...tE(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...eE(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?rl(r[s+1]):i}));const u=[];let l;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?l!==void 0&&d>l&&(l=d):d&&(l!==void 0&&l>-1&&u.push(`
211
+ `.repeat(l)||" "),l=-1,u.push(d))}return u.join("")}function eE(e,t,n){return e.type==="element"?tR(e,t,n):e.type==="text"?n.whitespace==="normal"?tE(e,n):nR(e):[]}function tR(e,t,n){const r=nE(e,n),i=e.children||[];let a=-1,o=[];if(JO(e))return o;let s,u;for(rl(e)||Zg(e)&&qg(t,e,Zg)?u=`
212
+ `:ZO(e)?(s=2,u=2):Jg(e)&&(s=1,u=1);++a<i.length;)o=o.concat(eE(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?rl(i[a+1]):u}));return Qg(e)&&qg(t,e,Qg)&&o.push(" "),s&&o.unshift(s),u&&o.push(u),o}function tE(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Vg.lastIndex=a;const u=Vg.exec(n),l=u&&"index"in u?u.index:n.length;r.push(rR(n.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),a=l+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function nR(e){return[String(e.value)]}function rR(e,t,n){const r=[];let i=0,a;for(;i<e.length;){Xg.lastIndex=i;const o=Xg.exec(e);a=o?o.index:e.length,!i&&!a&&o&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=o?a+o[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function nE(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function iR(e){return!!(e.properties||{}).hidden}function aR(e){return e.tagName==="td"||e.tagName==="th"}function oR(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function sR(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:b,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},O={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[O,c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:w.concat([{begin:/\(/,end:/\)/,keywords:I,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,H,O,w,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:I,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function uR(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=sR(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function lR(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const u={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),E={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],T=["true","false"],_={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],N=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:T,built_in:[...C,...N,"set","shopt",...I,...O]},contains:[p,e.SHEBANG(),E,c,a,o,_,s,u,l,d,n]}}function cR(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",T={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},_=[c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:_.concat([{begin:/\(/,end:/\)/,keywords:T,contains:_.concat(["self"]),relevance:0}]),relevance:0},N={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:T,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:T,disableAutodetect:!0,illegal:"</",contains:[].concat(C,N,_,[c,{begin:e.IDENT_RE+"::",keywords:T},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:l,keywords:T}}}function dR(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],T=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],I={type:b,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:T},O={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[O,c,s,n,e.C_BLOCK_COMMENT_MODE,d,l],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:w.concat([{begin:/\(/,end:/\)/,keywords:I,contains:w.concat(["self"]),relevance:0}]),relevance:0},H={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,H,O,w,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:I,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function fR(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=e.inherit(d,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(h,{illegal:/\n/}),E={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},T=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});h.contains=[b,E,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],p.contains=[T,E,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[l,b,E,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},N=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},_,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+N+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[_,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}const hR=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),pR=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],mR=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],gR=[...pR,...mR],ER=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),bR=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),_R=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),TR=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function AR(e){const t=e.regex,n=hR(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+bR.join("|")+")"},{begin:":(:)?("+_R.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+TR.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:ER.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+gR.join("|")+")\\b"}]}}function xR(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function CR(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function yR(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function SR(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,c=t.either(u,l,d),h=t.concat(c,"(\\s*\\.\\s*",c,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}var Fr="[0-9](_*[0-9])*",fo=`\\.(${Fr})`,ho="[0-9a-fA-F](_*[0-9a-fA-F])*",rE={className:"number",variants:[{begin:`(\\b(${Fr})((${fo})|\\.)?|(${fo}))[eE][+-]?(${Fr})[fFdD]?\\b`},{begin:`\\b(${Fr})((${fo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${fo})[fFdD]?\\b`},{begin:`\\b(${Fr})[fFdD]\\b`},{begin:`\\b0[xX]((${ho})\\.?|(${ho})?\\.(${ho}))[pP][+-]?(${Fr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ho})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function iE(e,t,n){return n===-1?"":e.replace(t,r=>iE(e,t,n-1))}function NR(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+iE("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,rE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},rE,l]}}const aE="[A-Za-z$_][0-9A-Za-z$_]*",DR=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],wR=["true","false","null","undefined","NaN","Infinity"],oE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],sE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],uE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vR=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],kR=[].concat(uE,oE,sE);function IR(e){const t=e.regex,n=(q,{after:Q})=>{const A="</"+q[0].slice(1);return q.input.indexOf(A,Q)!==-1},r=aE,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Q)=>{const A=q[0].length+q.index,ee=q.input[A];if(ee==="<"||ee===","){Q.ignoreMatch();return}ee===">"&&(n(q,{after:A})||Q.ignoreMatch());let L;const y=q.input.substring(A);if(L=y.match(/^\s*=/)){Q.ignoreMatch();return}if((L=y.match(/^\s+extends\s+/))&&L.index===0){Q.ignoreMatch();return}}},s={$pattern:aE,keyword:DR,literal:wR,built_in:kR,"variable.language":vR},u="[0-9](_?[0-9])*",l=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,E,b,T,{match:/\$\d+/},c];h.contains=N.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(N)});const I=[].concat(C,h.contains),O=I.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(I)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},M={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...oE,...sE]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},k={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(q){return t.concat("(?!",q.join("|"),")")}const G={match:t.concat(/\b/,Y([...uE,"super","import"].map(q=>`${q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},ae="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ae)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,E,b,T,C,{match:/\$\d+/},c,H,{scope:"attr",match:r+t.lookahead(":"),relevance:0},pe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:ae,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},G,$,M,K,{match:/\$[(.]/}]}}function OR(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Br="[0-9](_*[0-9])*",po=`\\.(${Br})`,mo="[0-9a-fA-F](_*[0-9a-fA-F])*",RR={className:"number",variants:[{begin:`(\\b(${Br})((${po})|\\.)?|(${po}))[eE][+-]?(${Br})[fFdD]?\\b`},{begin:`\\b(${Br})((${po})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${po})[fFdD]?\\b`},{begin:`\\b(${Br})[fFdD]\\b`},{begin:`\\b0[xX]((${mo})\\.?|(${mo})?\\.(${mo}))[pP][+-]?(${Br})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${mo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function MR(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=RR,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),c={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=c;return h.variants[1].contains=[c],c.variants[1].contains=[h],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,s,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[c,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,u,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,u]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
213
+ `},l]}}const LR=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),PR=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],FR=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],BR=[...PR,...FR],UR=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),lE=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),cE=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),HR=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),zR=lE.concat(cE).sort().reverse();function $R(e){const t=LR(e),n=zR,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],u=function(N){return{className:"string",begin:"~?"+N+".*?"+N}},l=function(N,I,O){return{className:N,begin:I,relevance:O}},d={$pattern:/[a-z-]+/,keyword:r,attribute:UR.join(" ")},c={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u("'"),u('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,c,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const h=s.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},E={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+HR.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},T={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:h}},_={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+BR.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",a,0),l("selector-id","#"+a),l("selector-class","\\."+a,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+lE.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+cE.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:h},{begin:"!important"},t.FUNCTION_DISPATCH]},C={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[_]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,T,C,E,_,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function jR(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function YR(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}function GR(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},c=e.inherit(l,{contains:[]}),h=e.inherit(d,{contains:[]});l.contains.push(h),d.contains.push(c);let p=[n,u];return[l,d,c,h].forEach(_=>{_.contains=_.contains.concat(p)}),p=p.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,a,l,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,u,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function WR(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function KR(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,u],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,T,_="\\1")=>{const C=_==="\\1"?_:t.concat(_,T);return t.concat(t.concat("(?:",b,")"),T,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,_,r)},p=(b,T,_)=>t.concat(t.concat("(?:",b,")"),T,/(?:\\.|[^\\\/])*?/,_,r),E=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...c,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=E,o.contains=E,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:E}}function qR(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(B,K)=>{K.data._beginMatch=B[1]||B[2]},"on:end":(B,K)=>{K.data._beginMatch!==B[1]&&K.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
214
+ ]`,E={scope:"string",variants:[d,l,c,h]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},T=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],I={keyword:_,literal:(B=>{const K=[];return B.forEach(ae=>{K.push(ae),ae.toLowerCase()===ae?K.push(ae.toUpperCase()):K.push(ae.toLowerCase())}),K})(T),built_in:C},O=B=>B.map(K=>K.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",O(C).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},M=t.concat(r,"\\b(?!\\()"),H={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},z={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:I,contains:[z,o,H,e.C_BLOCK_COMMENT_MODE,E,b,w]},$={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",O(_).join("\\b|"),"|",O(C).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push($);const Y=[z,H,e.C_BLOCK_COMMENT_MODE,E,b,w],G={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:T,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:T,keyword:["new","array"]},contains:["self",...Y]},...Y,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:I,contains:[G,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,$,H,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:I,contains:["self",G,o,H,e.C_BLOCK_COMMENT_MODE,E,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},E,b]}}function VR(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function XR(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function QR(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,E=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${E})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${E})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${E})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${E})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${E})`},{begin:`\\b(${h})[jJ](?=${E})`}]},T={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",u,b,c,e.HASH_COMMENT_MODE]}]};return l.contains=[c,b,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[u,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},c,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,_,c]}]}}function ZR(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function JR(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function eM(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},c={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},h="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",E={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},w=[c,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[c,{begin:n}],relevance:0},E,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,l),relevance:0}].concat(u,l);d.contains=w,b.contains=w;const k=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:w}}];return l.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(k).concat(l).concat(w)}}function tM(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:u,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},a]}}const nM=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),rM=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],iM=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],aM=[...rM,...iM],oM=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),sM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),uM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),lM=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function cM(e){const t=nM(e),n=uM,r=sM,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+aM.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+lM.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:oM.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function dM(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function fM(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],c=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,E=[...l,...u].filter(O=>!d.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function C(O){return t.concat(/\b/,t.either(...O.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}const N={scope:"keyword",match:C(h),relevance:0};function I(O,{exceptions:w,when:M}={}){const H=M;return w=w||[],O.map(z=>z.match(/\|\d+$/)||w.includes(z)?z:H(z)?`${z}|0`:z)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:I(E,{when:O=>O.length<3}),literal:a,type:s,built_in:c},contains:[{scope:"type",match:C(o)},N,_,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,T]}}function dE(e){return e?typeof e=="string"?e:e.source:null}function ji(e){return Fe("(?=",e,")")}function Fe(...e){return e.map(n=>dE(n)).join("")}function hM(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Tt(...e){return"("+(hM(e).capture?"":"?:")+e.map(r=>dE(r)).join("|")+")"}const il=e=>Fe(/\b/,e,/\w$/.test(e)?/\b/:/\B/),pM=["Protocol","Type"].map(il),fE=["init","self"].map(il),mM=["Any","Self"],al=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],hE=["false","nil","true"],gM=["assignment","associativity","higherThan","left","lowerThan","none","right"],EM=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],pE=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],mE=Tt(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),gE=Tt(mE,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ol=Fe(mE,gE,"*"),EE=Tt(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),go=Tt(EE,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),sn=Fe(EE,go,"*"),Eo=Fe(/[A-Z]/,go,"*"),bM=["attached","autoclosure",Fe(/convention\(/,Tt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Fe(/objc\(/,sn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],_M=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function TM(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Tt(...pM,...fE)],className:{2:"keyword"}},a={match:Fe(/\./,Tt(...al)),relevance:0},o=al.filter(Me=>typeof Me=="string").concat(["_|0"]),s=al.filter(Me=>typeof Me!="string").concat(mM).map(il),u={variants:[{className:"keyword",match:Tt(...s,...fE)}]},l={$pattern:Tt(/\b\w+/,/#\w+/),keyword:o.concat(EM),literal:hE},d=[i,a,u],c={match:Fe(/\./,Tt(...pE)),relevance:0},h={className:"built_in",match:Fe(/\b/,Tt(...pE),/(?=\()/)},p=[c,h],E={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:ol},{match:`\\.(\\.|${gE})+`}]},T=[E,b],_="([0-9]_*)+",C="([0-9a-fA-F]_*)+",N={className:"number",relevance:0,variants:[{match:`\\b(${_})(\\.(${_}))?([eE][+-]?(${_}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${_}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},I=(Me="")=>({className:"subst",variants:[{match:Fe(/\\/,Me,/[0\\tnr"']/)},{match:Fe(/\\/,Me,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Me="")=>({className:"subst",match:Fe(/\\/,Me,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(Me="")=>({className:"subst",label:"interpol",begin:Fe(/\\/,Me,/\(/),end:/\)/}),M=(Me="")=>({begin:Fe(Me,/"""/),end:Fe(/"""/,Me),contains:[I(Me),O(Me),w(Me)]}),H=(Me="")=>({begin:Fe(Me,/"/),end:Fe(/"/,Me),contains:[I(Me),w(Me)]}),z={className:"string",variants:[M(),M("#"),M("##"),M("###"),H(),H("#"),H("##"),H("###")]},k=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],$={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:k},Y=Me=>{const bn=Fe(Me,/\//),_n=Fe(/\//,Me);return{begin:bn,end:_n,contains:[...k,{scope:"comment",begin:`#(?!.*${_n})`,end:/$/}]}},G={scope:"regexp",variants:[Y("###"),Y("##"),Y("#"),$]},B={match:Fe(/`/,sn,/`/)},K={className:"variable",match:/\$\d+/},ae={className:"variable",match:`\\$${go}+`},pe=[B,K,ae],q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:_M,contains:[...T,N,z]}]}},Q={scope:"keyword",match:Fe(/@/,Tt(...bM),ji(Tt(/\(/,/\s+/)))},A={scope:"meta",match:Fe(/@/,sn)},ee=[q,Q,A],L={match:ji(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Fe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,go,"+")},{className:"type",match:Eo,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Fe(/\s+&\s+/,ji(Eo)),relevance:0}]},y={begin:/</,end:/>/,keywords:l,contains:[...r,...d,...ee,E,L]};L.contains.push(y);const se={match:Fe(sn,/\s*:/),keywords:"_|0",relevance:0},te={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",se,...r,G,...d,...p,...T,N,z,...pe,...ee,L]},ue={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,L]},de={begin:Tt(ji(Fe(sn,/\s*:/)),ji(Fe(sn,/\s+/,sn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:sn}]},be={begin:/\(/,end:/\)/,keywords:l,contains:[de,...r,...d,...T,N,z,...ee,L,te],endsParent:!0,illegal:/["']/},Re={match:[/(func|macro)/,/\s+/,Tt(B.match,sn,ol)],className:{1:"keyword",3:"title.function"},contains:[ue,be,t],illegal:[/\[/,/%/]},Ge={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ue,be,t],illegal:/\[|%/},Ht={match:[/operator/,/\s+/,ol],className:{1:"keyword",3:"title"}},rr={begin:[/precedencegroup/,/\s+/,Eo],className:{1:"keyword",3:"title"},contains:[L],keywords:[...gM,...hE],end:/}/},ln={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Vi={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Yr={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,sn,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[ue,...d,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:Eo},...d],relevance:0}]};for(const Me of z.variants){const bn=Me.contains.find(Gr=>Gr.label==="interpol");bn.keywords=l;const _n=[...d,...p,...T,N,z,...pe];bn.contains=[..._n,{begin:/\(/,end:/\)/,contains:["self",..._n]}]}return{name:"Swift",keywords:l,contains:[...r,Re,Ge,ln,Vi,Yr,Ht,rr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},G,...d,...p,...T,N,z,...pe,...ee,L,te]}}const bo="[A-Za-z$_][0-9A-Za-z$_]*",bE=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],_E=["true","false","null","undefined","NaN","Infinity"],TE=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],AE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],CE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yE=[].concat(xE,TE,AE);function AM(e){const t=e.regex,n=(q,{after:Q})=>{const A="</"+q[0].slice(1);return q.input.indexOf(A,Q)!==-1},r=bo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Q)=>{const A=q[0].length+q.index,ee=q.input[A];if(ee==="<"||ee===","){Q.ignoreMatch();return}ee===">"&&(n(q,{after:A})||Q.ignoreMatch());let L;const y=q.input.substring(A);if(L=y.match(/^\s*=/)){Q.ignoreMatch();return}if((L=y.match(/^\s+extends\s+/))&&L.index===0){Q.ignoreMatch();return}}},s={$pattern:bo,keyword:bE,literal:_E,built_in:yE,"variable.language":CE},u="[0-9](_?[0-9])*",l=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,E,b,T,{match:/\$\d+/},c];h.contains=N.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(N)});const I=[].concat(C,h.contains),O=I.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(I)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O},M={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TE,...AE]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},k={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(q){return t.concat("(?!",q.join("|"),")")}const G={match:t.concat(/\b/,Y([...xE,"super","import"].map(q=>`${q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},ae="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ae)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,E,b,T,C,{match:/\$\d+/},c,H,{scope:"attr",match:r+t.lookahead(":"),relevance:0},pe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:ae,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},G,$,M,K,{match:/\$[(.]/}]}}function xM(e){const t=e.regex,n=AM(e),r=bo,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:bo,keyword:bE.concat(u),literal:_E,built_in:yE.concat(i),"variable.language":CE},d={className:"meta",begin:"@"+r},c=(b,T,_)=>{const C=b.contains.findIndex(N=>N.label===T);if(C===-1)throw new Error("can not find mode to replace");b.contains.splice(C,1,_)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(d);const h=n.contains.find(b=>b.scope==="attr"),p=Object.assign({},h,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,h,p]),n.contains=n.contains.concat([d,a,o,p]),c(n,"shebang",e.SHEBANG()),c(n,"use_strict",s);const E=n.contains.find(b=>b.label==="func.def");return E.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function CM(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},c=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,u,l,d,c,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}function yM(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,u,l,s]}}function SM(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,u,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,u,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function NM(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),h={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},E={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},T=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},E,b,a,o],_=[...T];return _.pop(),_.push(s),p.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}const DM={arduino:uR,bash:lR,c:cR,cpp:dR,csharp:fR,css:AR,diff:xR,go:CR,graphql:yR,ini:SR,java:NR,javascript:IR,json:OR,kotlin:MR,less:$R,lua:jR,makefile:YR,markdown:GR,objectivec:WR,perl:KR,php:qR,"php-template":VR,plaintext:XR,python:QR,"python-repl":ZR,r:JR,ruby:eM,rust:tM,scss:cM,shell:dM,sql:fM,swift:TM,typescript:xM,vbnet:CM,wasm:yM,xml:SM,yaml:NM};var sl,SE;function wM(){if(SE)return sl;SE=1;function e(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach(U=>{const ne=v[U],xe=typeof ne;(xe==="object"||xe==="function")&&!Object.isFrozen(ne)&&e(ne)}),v}class t{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(v,...U){const ne=Object.create(null);for(const xe in v)ne[xe]=v[xe];return U.forEach(function(xe){for(const qe in xe)ne[qe]=xe[qe]}),ne}const i="</span>",a=v=>!!v.scope,o=(v,{prefix:U})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const ne=v.split(".");return[`${U}${ne.shift()}`,...ne.map((xe,qe)=>`${xe}${"_".repeat(qe+1)}`)].join(" ")}return`${U}${v}`};class s{constructor(U,ne){this.buffer="",this.classPrefix=ne.classPrefix,U.walk(this)}addText(U){this.buffer+=n(U)}openNode(U){if(!a(U))return;const ne=o(U.scope,{prefix:this.classPrefix});this.span(ne)}closeNode(U){a(U)&&(this.buffer+=i)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const u=(v={})=>{const U={children:[]};return Object.assign(U,v),U};class l{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const ne=u({scope:U});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,ne){return typeof ne=="string"?U.addText(ne):ne.children&&(U.openNode(ne),ne.children.forEach(xe=>this._walk(U,xe)),U.closeNode(ne)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(ne=>typeof ne=="string")?U.children=[U.children.join("")]:U.children.forEach(ne=>{l._collapse(ne)}))}}class d extends l{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,ne){const xe=U.root;ne&&(xe.scope=`language:${ne}`),this.add(xe)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(v){return v?typeof v=="string"?v:v.source:null}function h(v){return b("(?=",v,")")}function p(v){return b("(?:",v,")*")}function E(v){return b("(?:",v,")?")}function b(...v){return v.map(ne=>c(ne)).join("")}function T(v){const U=v[v.length-1];return typeof U=="object"&&U.constructor===Object?(v.splice(v.length-1,1),U):{}}function _(...v){return"("+(T(v).capture?"":"?:")+v.map(xe=>c(xe)).join("|")+")"}function C(v){return new RegExp(v.toString()+"|").exec("").length-1}function N(v,U){const ne=v&&v.exec(U);return ne&&ne.index===0}const I=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function O(v,{joinWith:U}){let ne=0;return v.map(xe=>{ne+=1;const qe=ne;let Ve=c(xe),le="";for(;Ve.length>0;){const oe=I.exec(Ve);if(!oe){le+=Ve;break}le+=Ve.substring(0,oe.index),Ve=Ve.substring(oe.index+oe[0].length),oe[0][0]==="\\"&&oe[1]?le+="\\"+String(Number(oe[1])+qe):(le+=oe[0],oe[0]==="("&&ne++)}return le}).map(xe=>`(${xe})`).join(U)}const w=/\b\B/,M="[a-zA-Z]\\w*",H="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",Y="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(v={})=>{const U=/^#![ ]*\//;return v.binary&&(v.begin=b(U,/.*\b/,v.binary,/\b.*/)),r({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(ne,xe)=>{ne.index!==0&&xe.ignoreMatch()}},v)},B={begin:"\\\\[\\s\\S]",relevance:0},K={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[B]},ae={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[B]},pe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},q=function(v,U,ne={}){const xe=r({scope:"comment",begin:v,end:U,contains:[]},ne);xe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const qe=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return xe.contains.push({begin:b(/[ ]+/,"(",qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),xe},Q=q("//","$"),A=q("/\\*","\\*/"),ee=q("#","$"),L={scope:"number",begin:z,relevance:0},y={scope:"number",begin:k,relevance:0},se={scope:"number",begin:$,relevance:0},te={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[B,{begin:/\[/,end:/\]/,relevance:0,contains:[B]}]},ue={scope:"title",begin:M,relevance:0},de={scope:"title",begin:H,relevance:0},be={begin:"\\.\\s*"+H,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:K,BACKSLASH_ESCAPE:B,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:$,COMMENT:q,C_BLOCK_COMMENT_MODE:A,C_LINE_COMMENT_MODE:Q,C_NUMBER_MODE:y,C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":(U,ne)=>{ne.data._beginMatch=U[1]},"on:end":(U,ne)=>{ne.data._beginMatch!==U[1]&&ne.ignoreMatch()}})},HASH_COMMENT_MODE:ee,IDENT_RE:M,MATCH_NOTHING_RE:w,METHOD_GUARD:be,NUMBER_MODE:L,NUMBER_RE:z,PHRASAL_WORDS_MODE:pe,QUOTE_STRING_MODE:ae,REGEXP_MODE:te,RE_STARTERS_RE:Y,SHEBANG:G,TITLE_MODE:ue,UNDERSCORE_IDENT_RE:H,UNDERSCORE_TITLE_MODE:de});function Ht(v,U){v.input[v.index-1]==="."&&U.ignoreMatch()}function rr(v,U){v.className!==void 0&&(v.scope=v.className,delete v.className)}function ln(v,U){U&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=Ht,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function Vi(v,U){Array.isArray(v.illegal)&&(v.illegal=_(...v.illegal))}function Yr(v,U){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function Me(v,U){v.relevance===void 0&&(v.relevance=1)}const bn=(v,U)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},v);Object.keys(v).forEach(xe=>{delete v[xe]}),v.keywords=ne.keywords,v.begin=b(ne.beforeMatch,h(ne.begin)),v.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},v.relevance=0,delete ne.beforeMatch},_n=["of","and","for","in","not","or","if","then","parent","list","value"],Gr="keyword";function Xi(v,U,ne=Gr){const xe=Object.create(null);return typeof v=="string"?qe(ne,v.split(" ")):Array.isArray(v)?qe(ne,v):Object.keys(v).forEach(function(Ve){Object.assign(xe,Xi(v[Ve],U,Ve))}),xe;function qe(Ve,le){U&&(le=le.map(oe=>oe.toLowerCase())),le.forEach(function(oe){const Ae=oe.split("|");xe[Ae[0]]=[Ve,Cl(Ae[0],Ae[1])]})}}function Cl(v,U){return U?Number(U):yl(v)?0:1}function yl(v){return _n.includes(v.toLowerCase())}const No={},Tn=v=>{console.error(v)},Do=(v,...U)=>{console.log(`WARN: ${v}`,...U)},F=(v,U)=>{No[`${v}/${U}`]||(console.log(`Deprecated as of ${v}. ${U}`),No[`${v}/${U}`]=!0)},J=new Error;function Te(v,U,{key:ne}){let xe=0;const qe=v[ne],Ve={},le={};for(let oe=1;oe<=U.length;oe++)le[oe+xe]=qe[oe],Ve[oe+xe]=!0,xe+=C(U[oe-1]);v[ne]=le,v[ne]._emit=Ve,v[ne]._multi=!0}function ke(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw Tn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),J;if(typeof v.beginScope!="object"||v.beginScope===null)throw Tn("beginScope must be object"),J;Te(v,v.begin,{key:"beginScope"}),v.begin=O(v.begin,{joinWith:""})}}function Le(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw Tn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),J;if(typeof v.endScope!="object"||v.endScope===null)throw Tn("endScope must be object"),J;Te(v,v.end,{key:"endScope"}),v.end=O(v.end,{joinWith:""})}}function Ot(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function An(v){Ot(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),ke(v),Le(v)}function Wt(v){function U(le,oe){return new RegExp(c(le),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(oe?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(oe,Ae){Ae.position=this.position++,this.matchIndexes[this.matchAt]=Ae,this.regexes.push([Ae,oe]),this.matchAt+=C(oe)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const oe=this.regexes.map(Ae=>Ae[1]);this.matcherRe=U(O(oe,{joinWith:"|"}),!0),this.lastIndex=0}exec(oe){this.matcherRe.lastIndex=this.lastIndex;const Ae=this.matcherRe.exec(oe);if(!Ae)return null;const st=Ae.findIndex((Qi,Sl)=>Sl>0&&Qi!==void 0),Je=this.matchIndexes[st];return Ae.splice(0,st),Object.assign(Ae,Je)}}class xe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(oe){if(this.multiRegexes[oe])return this.multiRegexes[oe];const Ae=new ne;return this.rules.slice(oe).forEach(([st,Je])=>Ae.addRule(st,Je)),Ae.compile(),this.multiRegexes[oe]=Ae,Ae}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(oe,Ae){this.rules.push([oe,Ae]),Ae.type==="begin"&&this.count++}exec(oe){const Ae=this.getMatcher(this.regexIndex);Ae.lastIndex=this.lastIndex;let st=Ae.exec(oe);if(this.resumingScanAtSamePosition()&&!(st&&st.index===this.lastIndex)){const Je=this.getMatcher(0);Je.lastIndex=this.lastIndex+1,st=Je.exec(oe)}return st&&(this.regexIndex+=st.position+1,this.regexIndex===this.count&&this.considerAll()),st}}function qe(le){const oe=new xe;return le.contains.forEach(Ae=>oe.addRule(Ae.begin,{rule:Ae,type:"begin"})),le.terminatorEnd&&oe.addRule(le.terminatorEnd,{type:"end"}),le.illegal&&oe.addRule(le.illegal,{type:"illegal"}),oe}function Ve(le,oe){const Ae=le;if(le.isCompiled)return Ae;[rr,Yr,An,bn].forEach(Je=>Je(le,oe)),v.compilerExtensions.forEach(Je=>Je(le,oe)),le.__beforeBegin=null,[ln,Vi,Me].forEach(Je=>Je(le,oe)),le.isCompiled=!0;let st=null;return typeof le.keywords=="object"&&le.keywords.$pattern&&(le.keywords=Object.assign({},le.keywords),st=le.keywords.$pattern,delete le.keywords.$pattern),st=st||/\w+/,le.keywords&&(le.keywords=Xi(le.keywords,v.case_insensitive)),Ae.keywordPatternRe=U(st,!0),oe&&(le.begin||(le.begin=/\B|\b/),Ae.beginRe=U(Ae.begin),!le.end&&!le.endsWithParent&&(le.end=/\B|\b/),le.end&&(Ae.endRe=U(Ae.end)),Ae.terminatorEnd=c(Ae.end)||"",le.endsWithParent&&oe.terminatorEnd&&(Ae.terminatorEnd+=(le.end?"|":"")+oe.terminatorEnd)),le.illegal&&(Ae.illegalRe=U(le.illegal)),le.contains||(le.contains=[]),le.contains=[].concat(...le.contains.map(function(Je){return ir(Je==="self"?le:Je)})),le.contains.forEach(function(Je){Ve(Je,Ae)}),le.starts&&Ve(le.starts,oe),Ae.matcher=qe(Ae),Ae}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=r(v.classNameAliases||{}),Ve(v)}function Pn(v){return v?v.endsWithParent||Pn(v.starts):!1}function ir(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function(U){return r(v,{variants:null},U)})),v.cachedVariants?v.cachedVariants:Pn(v)?r(v,{starts:v.starts?r(v.starts):null}):Object.isFrozen(v)?r(v):v}var xt="11.11.1";class Fn extends Error{constructor(U,ne){super(U),this.name="HTMLInjectionError",this.html=ne}}const Rt=n,kb=r,Ib=Symbol("nomatch"),uP=7,Ob=function(v){const U=Object.create(null),ne=Object.create(null),xe=[];let qe=!0;const Ve="Could not find the language '{}', did you forget to load/include a language module?",le={disableAutodetect:!0,name:"Plain text",contains:[]};let oe={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Ae(Z){return oe.noHighlightRe.test(Z)}function st(Z){let ge=Z.className+" ";ge+=Z.parentNode?Z.parentNode.className:"";const Ie=oe.languageDetectRe.exec(ge);if(Ie){const $e=Bn(Ie[1]);return $e||(Do(Ve.replace("{}",Ie[1])),Do("Falling back to no-highlight mode for this block.",Z)),$e?Ie[1]:"no-highlight"}return ge.split(/\s+/).find($e=>Ae($e)||Bn($e))}function Je(Z,ge,Ie){let $e="",nt="";typeof ge=="object"?($e=Z,Ie=ge.ignoreIllegals,nt=ge.language):(F("10.7.0","highlight(lang, code, ...args) has been deprecated."),F("10.7.0",`Please use highlight(code, options) instead.
215
+ https://github.com/highlightjs/highlight.js/issues/2277`),nt=Z,$e=ge),Ie===void 0&&(Ie=!0);const Kt={code:$e,language:nt};vo("before:highlight",Kt);const Un=Kt.result?Kt.result:Qi(Kt.language,Kt.code,Ie);return Un.code=Kt.code,vo("after:highlight",Un),Un}function Qi(Z,ge,Ie,$e){const nt=Object.create(null);function Kt(ie,fe){return ie.keywords[fe]}function Un(){if(!Ce.keywords){lt.addText(je);return}let ie=0;Ce.keywordPatternRe.lastIndex=0;let fe=Ce.keywordPatternRe.exec(je),De="";for(;fe;){De+=je.substring(ie,fe.index);const Pe=dn.case_insensitive?fe[0].toLowerCase():fe[0],Et=Kt(Ce,Pe);if(Et){const[xn,SP]=Et;if(lt.addText(De),De="",nt[Pe]=(nt[Pe]||0)+1,nt[Pe]<=uP&&(Oo+=SP),xn.startsWith("_"))De+=fe[0];else{const NP=dn.classNameAliases[xn]||xn;cn(fe[0],NP)}}else De+=fe[0];ie=Ce.keywordPatternRe.lastIndex,fe=Ce.keywordPatternRe.exec(je)}De+=je.substring(ie),lt.addText(De)}function ko(){if(je==="")return;let ie=null;if(typeof Ce.subLanguage=="string"){if(!U[Ce.subLanguage]){lt.addText(je);return}ie=Qi(Ce.subLanguage,je,!0,Hb[Ce.subLanguage]),Hb[Ce.subLanguage]=ie._top}else ie=Nl(je,Ce.subLanguage.length?Ce.subLanguage:null);Ce.relevance>0&&(Oo+=ie.relevance),lt.__addSublanguage(ie._emitter,ie.language)}function Mt(){Ce.subLanguage!=null?ko():Un(),je=""}function cn(ie,fe){ie!==""&&(lt.startScope(fe),lt.addText(ie),lt.endScope())}function Pb(ie,fe){let De=1;const Pe=fe.length-1;for(;De<=Pe;){if(!ie._emit[De]){De++;continue}const Et=dn.classNameAliases[ie[De]]||ie[De],xn=fe[De];Et?cn(xn,Et):(je=xn,Un(),je=""),De++}}function Fb(ie,fe){return ie.scope&&typeof ie.scope=="string"&&lt.openNode(dn.classNameAliases[ie.scope]||ie.scope),ie.beginScope&&(ie.beginScope._wrap?(cn(je,dn.classNameAliases[ie.beginScope._wrap]||ie.beginScope._wrap),je=""):ie.beginScope._multi&&(Pb(ie.beginScope,fe),je="")),Ce=Object.create(ie,{parent:{value:Ce}}),Ce}function Bb(ie,fe,De){let Pe=N(ie.endRe,De);if(Pe){if(ie["on:end"]){const Et=new t(ie);ie["on:end"](fe,Et),Et.isMatchIgnored&&(Pe=!1)}if(Pe){for(;ie.endsParent&&ie.parent;)ie=ie.parent;return ie}}if(ie.endsWithParent)return Bb(ie.parent,fe,De)}function TP(ie){return Ce.matcher.regexIndex===0?(je+=ie[0],1):(kl=!0,0)}function AP(ie){const fe=ie[0],De=ie.rule,Pe=new t(De),Et=[De.__beforeBegin,De["on:begin"]];for(const xn of Et)if(xn&&(xn(ie,Pe),Pe.isMatchIgnored))return TP(fe);return De.skip?je+=fe:(De.excludeBegin&&(je+=fe),Mt(),!De.returnBegin&&!De.excludeBegin&&(je=fe)),Fb(De,ie),De.returnBegin?0:fe.length}function xP(ie){const fe=ie[0],De=ge.substring(ie.index),Pe=Bb(Ce,ie,De);if(!Pe)return Ib;const Et=Ce;Ce.endScope&&Ce.endScope._wrap?(Mt(),cn(fe,Ce.endScope._wrap)):Ce.endScope&&Ce.endScope._multi?(Mt(),Pb(Ce.endScope,ie)):Et.skip?je+=fe:(Et.returnEnd||Et.excludeEnd||(je+=fe),Mt(),Et.excludeEnd&&(je=fe));do Ce.scope&&lt.closeNode(),!Ce.skip&&!Ce.subLanguage&&(Oo+=Ce.relevance),Ce=Ce.parent;while(Ce!==Pe.parent);return Pe.starts&&Fb(Pe.starts,ie),Et.returnEnd?0:fe.length}function CP(){const ie=[];for(let fe=Ce;fe!==dn;fe=fe.parent)fe.scope&&ie.unshift(fe.scope);ie.forEach(fe=>lt.openNode(fe))}let Io={};function Ub(ie,fe){const De=fe&&fe[0];if(je+=ie,De==null)return Mt(),0;if(Io.type==="begin"&&fe.type==="end"&&Io.index===fe.index&&De===""){if(je+=ge.slice(fe.index,fe.index+1),!qe){const Pe=new Error(`0 width match regex (${Z})`);throw Pe.languageName=Z,Pe.badRule=Io.rule,Pe}return 1}if(Io=fe,fe.type==="begin")return AP(fe);if(fe.type==="illegal"&&!Ie){const Pe=new Error('Illegal lexeme "'+De+'" for mode "'+(Ce.scope||"<unnamed>")+'"');throw Pe.mode=Ce,Pe}else if(fe.type==="end"){const Pe=xP(fe);if(Pe!==Ib)return Pe}if(fe.type==="illegal"&&De==="")return je+=`
216
+ `,1;if(vl>1e5&&vl>fe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return je+=De,De.length}const dn=Bn(Z);if(!dn)throw Tn(Ve.replace("{}",Z)),new Error('Unknown language: "'+Z+'"');const yP=Wt(dn);let wl="",Ce=$e||yP;const Hb={},lt=new oe.__emitter(oe);CP();let je="",Oo=0,ar=0,vl=0,kl=!1;try{if(dn.__emitTokens)dn.__emitTokens(ge,lt);else{for(Ce.matcher.considerAll();;){vl++,kl?kl=!1:Ce.matcher.considerAll(),Ce.matcher.lastIndex=ar;const ie=Ce.matcher.exec(ge);if(!ie)break;const fe=ge.substring(ar,ie.index),De=Ub(fe,ie);ar=ie.index+De}Ub(ge.substring(ar))}return lt.finalize(),wl=lt.toHTML(),{language:Z,value:wl,relevance:Oo,illegal:!1,_emitter:lt,_top:Ce}}catch(ie){if(ie.message&&ie.message.includes("Illegal"))return{language:Z,value:Rt(ge),illegal:!0,relevance:0,_illegalBy:{message:ie.message,index:ar,context:ge.slice(ar-100,ar+100),mode:ie.mode,resultSoFar:wl},_emitter:lt};if(qe)return{language:Z,value:Rt(ge),illegal:!1,relevance:0,errorRaised:ie,_emitter:lt,_top:Ce};throw ie}}function Sl(Z){const ge={value:Rt(Z),illegal:!1,relevance:0,_top:le,_emitter:new oe.__emitter(oe)};return ge._emitter.addText(Z),ge}function Nl(Z,ge){ge=ge||oe.languages||Object.keys(U);const Ie=Sl(Z),$e=ge.filter(Bn).filter(Lb).map(Mt=>Qi(Mt,Z,!1));$e.unshift(Ie);const nt=$e.sort((Mt,cn)=>{if(Mt.relevance!==cn.relevance)return cn.relevance-Mt.relevance;if(Mt.language&&cn.language){if(Bn(Mt.language).supersetOf===cn.language)return 1;if(Bn(cn.language).supersetOf===Mt.language)return-1}return 0}),[Kt,Un]=nt,ko=Kt;return ko.secondBest=Un,ko}function lP(Z,ge,Ie){const $e=ge&&ne[ge]||Ie;Z.classList.add("hljs"),Z.classList.add(`language-${$e}`)}function Dl(Z){let ge=null;const Ie=st(Z);if(Ae(Ie))return;if(vo("before:highlightElement",{el:Z,language:Ie}),Z.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Z);return}if(Z.children.length>0&&(oe.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Z)),oe.throwUnescapedHTML))throw new Fn("One of your code blocks includes unescaped HTML.",Z.innerHTML);ge=Z;const $e=ge.textContent,nt=Ie?Je($e,{language:Ie,ignoreIllegals:!0}):Nl($e);Z.innerHTML=nt.value,Z.dataset.highlighted="yes",lP(Z,Ie,nt.language),Z.result={language:nt.language,re:nt.relevance,relevance:nt.relevance},nt.secondBest&&(Z.secondBest={language:nt.secondBest.language,relevance:nt.secondBest.relevance}),vo("after:highlightElement",{el:Z,result:nt,text:$e})}function cP(Z){oe=kb(oe,Z)}const dP=()=>{wo(),F("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function fP(){wo(),F("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Rb=!1;function wo(){function Z(){wo()}if(document.readyState==="loading"){Rb||window.addEventListener("DOMContentLoaded",Z,!1),Rb=!0;return}document.querySelectorAll(oe.cssSelector).forEach(Dl)}function hP(Z,ge){let Ie=null;try{Ie=ge(v)}catch($e){if(Tn("Language definition for '{}' could not be registered.".replace("{}",Z)),qe)Tn($e);else throw $e;Ie=le}Ie.name||(Ie.name=Z),U[Z]=Ie,Ie.rawDefinition=ge.bind(null,v),Ie.aliases&&Mb(Ie.aliases,{languageName:Z})}function pP(Z){delete U[Z];for(const ge of Object.keys(ne))ne[ge]===Z&&delete ne[ge]}function mP(){return Object.keys(U)}function Bn(Z){return Z=(Z||"").toLowerCase(),U[Z]||U[ne[Z]]}function Mb(Z,{languageName:ge}){typeof Z=="string"&&(Z=[Z]),Z.forEach(Ie=>{ne[Ie.toLowerCase()]=ge})}function Lb(Z){const ge=Bn(Z);return ge&&!ge.disableAutodetect}function gP(Z){Z["before:highlightBlock"]&&!Z["before:highlightElement"]&&(Z["before:highlightElement"]=ge=>{Z["before:highlightBlock"](Object.assign({block:ge.el},ge))}),Z["after:highlightBlock"]&&!Z["after:highlightElement"]&&(Z["after:highlightElement"]=ge=>{Z["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function EP(Z){gP(Z),xe.push(Z)}function bP(Z){const ge=xe.indexOf(Z);ge!==-1&&xe.splice(ge,1)}function vo(Z,ge){const Ie=Z;xe.forEach(function($e){$e[Ie]&&$e[Ie](ge)})}function _P(Z){return F("10.7.0","highlightBlock will be removed entirely in v12.0"),F("10.7.0","Please use highlightElement now."),Dl(Z)}Object.assign(v,{highlight:Je,highlightAuto:Nl,highlightAll:wo,highlightElement:Dl,highlightBlock:_P,configure:cP,initHighlighting:dP,initHighlightingOnLoad:fP,registerLanguage:hP,unregisterLanguage:pP,listLanguages:mP,getLanguage:Bn,registerAliases:Mb,autoDetection:Lb,inherit:kb,addPlugin:EP,removePlugin:bP}),v.debugMode=function(){qe=!1},v.safeMode=function(){qe=!0},v.versionString=xt,v.regex={concat:b,lookahead:h,either:_,optional:E,anyNumberOfTimes:p};for(const Z in Ge)typeof Ge[Z]=="object"&&e(Ge[Z]);return Object.assign(v,Ge),v},Wr=Ob({});return Wr.newInstance=()=>Ob({}),sl=Wr,Wr.HighlightJS=Wr,Wr.default=Wr,sl}var vM=wM();const kM=Ro(vM),NE={},IM="hljs-";function OM(e){const t=kM.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(u,l,d){const c=d||NE,h=typeof c.prefix=="string"?c.prefix:IM;if(!t.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");t.configure({__emitter:RM,classPrefix:h});const p=t.highlight(l,{ignoreIllegals:!0,language:u});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const E=p._emitter.root,b=E.data;return b.language=p.language,b.relevance=p.relevance,E}function r(u,l){const c=(l||NE).subset||i();let h=-1,p=0,E;for(;++h<c.length;){const b=c[h];if(!t.getLanguage(b))continue;const T=n(b,u,l);T.data&&T.data.relevance!==void 0&&T.data.relevance>p&&(p=T.data.relevance,E=T)}return E||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(u,l){if(typeof u=="string")t.registerLanguage(u,l);else{let d;for(d in u)Object.hasOwn(u,d)&&t.registerLanguage(d,u[d])}}function o(u,l){if(typeof u=="string")t.registerAliases(typeof l=="string"?l:[...l],{languageName:u});else{let d;for(d in u)if(Object.hasOwn(u,d)){const c=u[d];t.registerAliases(typeof c=="string"?c:[...c],{languageName:d})}}}function s(u){return!!t.getLanguage(u)}}class RM{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(o,s){return s?o+"_".repeat(s):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const MM={};function LM(e){const t=e||MM,n=t.aliases,r=t.detect||!1,i=t.languages||DM,a=t.plainText,o=t.prefix,s=t.subset;let u="hljs";const l=OM(i);if(n&&l.registerAlias(n),o){const d=o.indexOf("-");u=d===-1?o:o.slice(0,d)}return function(d,c){Xn(d,"element",function(h,p,E){if(h.tagName!=="code"||!E||E.type!=="element"||E.tagName!=="pre")return;const b=PM(h);if(b===!1||!b&&!r||b&&a&&a.includes(b))return;Array.isArray(h.properties.className)||(h.properties.className=[]),h.properties.className.includes(u)||h.properties.className.unshift(u);const T=eR(h,{whitespace:"pre"});let _;try{_=b?l.highlight(b,T,{prefix:o}):l.highlightAuto(T,{prefix:o,subset:s})}catch(C){const N=C;if(b&&/Unknown language/.test(N.message)){c.message("Cannot highlight as `"+b+"`, it’s not registered",{ancestors:[E,h],cause:N,place:h.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw N}!b&&_.data&&_.data.language&&h.properties.className.push("language-"+_.data.language),_.children.length>0&&(h.children=_.children)})}}function PM(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}function DE({source:e}){const n=We.useParams().lang||"zh-cn";return m.jsx("div",{className:"prose dark:prose-invert max-w-none",children:m.jsx(nw,{remarkPlugins:[v2],rehypePlugins:[Tw,QO,[LM,{ignoreMissing:!0}],[fw,{behavior:"append"}]],components:{a({href:r,children:i,...a}){if(!r)return m.jsx("a",{...a,children:i});if(r.startsWith("#"))return m.jsx("a",{href:r,...a,children:i});if(/^(https?:)?\/\//i.test(r)||r.startsWith("mailto:")||r.startsWith("tel:"))return m.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",...a,children:i});const s=r.startsWith("/")?r:`/${r}`,u=`/${n}${s}`;return m.jsx(We.Link,{to:u,...a,children:i})}},children:e})})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function wE(e){return typeof e>"u"||e===null}function FM(e){return typeof e=="object"&&e!==null}function BM(e){return Array.isArray(e)?e:wE(e)?[]:[e]}function UM(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function HM(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function zM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var $M=wE,jM=FM,YM=BM,GM=HM,WM=zM,KM=UM,tt={isNothing:$M,isObject:jM,toArray:YM,repeat:GM,isNegativeZero:WM,extend:KM};function vE(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
167
217
 
168
- `+e.mark.snippet),r+" "+n):r}function zi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=CE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}zi.prototype=Object.create(Error.prototype),zi.prototype.constructor=zi,zi.prototype.toString=function(t){return this.name+": "+CE(this,t)};var Tt=zi;function ul(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(a=" ... ",t=r-s+a.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function ll(e,t){return et.repeat(" ",t-e.length)+e}function MM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,d=Math.min(e.line+t.linesAfter,i.length).toString().length,c=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=ul(e.buffer,r[o-u],i[o-u],e.position-(r[o]-r[o-u]),c),s=et.repeat(" ",t.indent)+ll((e.line-u+1).toString(),d)+" | "+l.str+`
169
- `+s;for(l=ul(e.buffer,r[o],i[o],e.position,c),s+=et.repeat(" ",t.indent)+ll((e.line+1).toString(),d)+" | "+l.str+`
170
- `,s+=et.repeat("-",t.indent+d+3+l.pos)+`^
171
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)l=ul(e.buffer,r[o+u],i[o+u],e.position-(r[o]-r[o+u]),c),s+=et.repeat(" ",t.indent)+ll((e.line+u+1).toString(),d)+" | "+l.str+`
172
- `;return s.replace(/\n$/,"")}var LM=MM,PM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],FM=["scalar","sequence","mapping"];function BM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function UM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(PM.indexOf(n)===-1)throw new Tt('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=BM(t.styleAliases||null),FM.indexOf(this.kind)===-1)throw new Tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var st=UM;function xE(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,o){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=o)}),n[i]=r}),n}function HM(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function cl(e){return this.extend(e)}cl.prototype.extend=function(t){var n=[],r=[];if(t instanceof st)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof st))throw new Tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Tt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Tt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof st))throw new Tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(cl.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=xE(i,"implicit"),i.compiledExplicit=xE(i,"explicit"),i.compiledTypeMap=HM(i.compiledImplicit,i.compiledExplicit),i};var yE=cl,SE=new st("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),NE=new st("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),DE=new st("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),wE=new yE({explicit:[SE,NE,DE]});function zM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function $M(){return null}function jM(e){return e===null}var vE=new st("tag:yaml.org,2002:null",{kind:"scalar",resolve:zM,construct:$M,predicate:jM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function YM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function GM(e){return e==="true"||e==="True"||e==="TRUE"}function WM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var IE=new st("tag:yaml.org,2002:bool",{kind:"scalar",resolve:YM,construct:GM,predicate:WM,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function KM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function qM(e){return 48<=e&&e<=55}function VM(e){return 48<=e&&e<=57}function XM(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!KM(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!qM(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!VM(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function QM(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function ZM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!et.isNegativeZero(e)}var kE=new st("tag:yaml.org,2002:int",{kind:"scalar",resolve:XM,construct:QM,predicate:ZM,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),JM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eL(e){return!(e===null||!JM.test(e)||e[e.length-1]==="_")}function tL(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var nL=/^[-+]?[0-9]+e/;function rL(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(et.isNegativeZero(e))return"-0.0";return n=e.toString(10),nL.test(n)?n.replace("e",".e"):n}function iL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||et.isNegativeZero(e))}var OE=new st("tag:yaml.org,2002:float",{kind:"scalar",resolve:eL,construct:tL,predicate:iL,represent:rL,defaultStyle:"lowercase"}),RE=wE.extend({implicit:[vE,IE,kE,OE]}),ME=RE,LE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),PE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function aL(e){return e===null?!1:LE.exec(e)!==null||PE.exec(e)!==null}function oL(e){var t,n,r,i,a,o,s,u=0,l=null,d,c,h;if(t=LE.exec(e),t===null&&(t=PE.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],c=+(t[11]||0),l=(d*60+c)*6e4,t[9]==="-"&&(l=-l)),h=new Date(Date.UTC(n,r,i,a,o,s,u)),l&&h.setTime(h.getTime()-l),h}function sL(e){return e.toISOString()}var FE=new st("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:aL,construct:oL,instanceOf:Date,represent:sL});function uL(e){return e==="<<"||e===null}var BE=new st("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uL}),dl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
173
- \r`;function lL(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=dl;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function cL(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=dl,o=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function dL(e){var t="",n=0,r,i,a=e.length,o=dl;for(r=0;r<a;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function fL(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var UE=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:lL,construct:cL,predicate:fL,represent:dL}),hL=Object.prototype.hasOwnProperty,pL=Object.prototype.toString;function mL(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,pL.call(i)!=="[object Object]")return!1;for(a in i)if(hL.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function gL(e){return e!==null?e:[]}var HE=new st("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mL,construct:gL}),EL=Object.prototype.toString;function bL(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],EL.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function _L(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var zE=new st("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bL,construct:_L}),TL=Object.prototype.hasOwnProperty;function AL(e){if(e===null)return!0;var t,n=e;for(t in n)if(TL.call(n,t)&&n[t]!==null)return!1;return!0}function CL(e){return e!==null?e:{}}var $E=new st("tag:yaml.org,2002:set",{kind:"mapping",resolve:AL,construct:CL}),fl=ME.extend({implicit:[FE,BE],explicit:[UE,HE,zE,$E]}),Mn=Object.prototype.hasOwnProperty,bo=1,jE=2,YE=3,_o=4,hl=1,xL=2,GE=3,yL=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,SL=/[\x85\u2028\u2029]/,NL=/[,\[\]\{\}]/,WE=/^(?:!|!!|![a-z\-]+!)$/i,KE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qE(e){return Object.prototype.toString.call(e)}function sn(e){return e===10||e===13}function nr(e){return e===9||e===32}function St(e){return e===9||e===32||e===10||e===13}function Br(e){return e===44||e===91||e===93||e===123||e===125}function DL(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function wL(e){return e===120?2:e===117?4:e===85?8:0}function vL(e){return 48<=e&&e<=57?e-48:-1}function VE(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
174
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function IL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var XE=new Array(256),QE=new Array(256),Ur=0;Ur<256;Ur++)XE[Ur]=VE(Ur)?1:0,QE[Ur]=VE(Ur);function kL(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fl,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ZE(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=LM(n),new Tt(t,n)}function he(e,t){throw ZE(e,t)}function To(e,t){e.onWarning&&e.onWarning.call(null,ZE(e,t))}var JE={YAML:function(t,n,r){var i,a,o;t.version!==null&&he(t,"duplication of %YAML directive"),r.length!==1&&he(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&he(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),a!==1&&he(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&To(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&he(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],WE.test(i)||he(t,"ill-formed tag handle (first argument) of the TAG directive"),Mn.call(t.tagMap,i)&&he(t,'there is a previously declared suffix for "'+i+'" tag handle'),KE.test(a)||he(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{he(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function Ln(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||he(e,"expected valid JSON character");else yL.test(s)&&he(e,"the stream contains non-printable characters");e.result+=s}}function eb(e,t,n,r){var i,a,o,s;for(et.isObject(n)||he(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],Mn.call(t,a)||(t[a]=n[a],r[a]=!0)}function Hr(e,t,n,r,i,a,o,s,u){var l,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,d=i.length;l<d;l+=1)Array.isArray(i[l])&&he(e,"nested arrays are not supported inside keys"),typeof i=="object"&&qE(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&qE(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(l=0,d=a.length;l<d;l+=1)eb(e,t,a[l],n);else eb(e,t,a,n);else!e.json&&!Mn.call(n,i)&&Mn.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=u||e.position,he(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function pl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):he(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;nr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(sn(i))for(pl(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&To(e,"deficient indentation"),r}function Ao(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||St(n)))}function ml(e,t){t===1?e.result+=" ":t>1&&(e.result+=et.repeat(`
175
- `,t-1))}function OL(e,t,n){var r,i,a,o,s,u,l,d,c=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),St(p)||Br(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),St(i)||n&&Br(i)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),St(i)||n&&Br(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),St(r))break}else{if(e.position===e.lineStart&&Ao(e)||n&&Br(p))break;if(sn(p))if(u=e.line,l=e.lineStart,d=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=d;break}}s&&(Ln(e,a,o,!1),ml(e,e.line-u),a=o=e.position,s=!1),nr(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ln(e,a,o,!1),e.result?!0:(e.kind=c,e.result=h,!1)}function RL(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ln(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else sn(n)?(Ln(e,r,i,!0),ml(e,Qe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ao(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function ML(e,t){var n,r,i,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ln(e,n,e.position,!0),e.position++,!0;if(s===92){if(Ln(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),sn(s))Qe(e,!1,t);else if(s<256&&XE[s])e.result+=QE[s],e.position++;else if((o=wL(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=DL(s))>=0?a=(a<<4)+o:he(e,"expected hexadecimal character");e.result+=IL(a),e.position++}else he(e,"unknown escape sequence");n=r=e.position}else sn(s)?(Ln(e,n,r,!0),ml(e,Qe(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Ao(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function LL(e,t){var n=!0,r,i,a,o=e.tag,s,u=e.anchor,l,d,c,h,p,g=Object.create(null),b,T,_,x;if(x=e.input.charCodeAt(e.position),x===91)d=93,p=!1,s=[];else if(x===123)d=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),x=e.input.charCodeAt(++e.position);x!==0;){if(Qe(e,!0,t),x=e.input.charCodeAt(e.position),x===d)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?x===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),T=b=_=null,c=h=!1,x===63&&(l=e.input.charCodeAt(e.position+1),St(l)&&(c=h=!0,e.position++,Qe(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,zr(e,t,bo,!1,!0),T=e.tag,b=e.result,Qe(e,!0,t),x=e.input.charCodeAt(e.position),(h||e.line===r)&&x===58&&(c=!0,x=e.input.charCodeAt(++e.position),Qe(e,!0,t),zr(e,t,bo,!1,!0),_=e.result),p?Hr(e,s,g,T,b,_,r,i,a):c?s.push(Hr(e,null,g,T,b,_,r,i,a)):s.push(b),Qe(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}he(e,"unexpected end of the stream within a flow collection")}function PL(e,t){var n,r,i=hl,a=!1,o=!1,s=t,u=0,l=!1,d,c;if(c=e.input.charCodeAt(e.position),c===124)r=!1;else if(c===62)r=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)hl===i?i=c===43?GE:xL:he(e,"repeat of a chomping mode identifier");else if((d=vL(c))>=0)d===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?he(e,"repeat of an indentation width identifier"):(s=t+d-1,o=!0);else break;if(nr(c)){do c=e.input.charCodeAt(++e.position);while(nr(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!sn(c)&&c!==0)}for(;c!==0;){for(pl(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),sn(c)){u++;continue}if(e.lineIndent<s){i===GE?e.result+=et.repeat(`
218
+ `+e.mark.snippet),r+" "+n):r}function Yi(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=vE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Yi.prototype=Object.create(Error.prototype),Yi.prototype.constructor=Yi,Yi.prototype.toString=function(t){return this.name+": "+vE(this,t)};var At=Yi;function ul(e,t,n,r,i){var a="",o="",s=Math.floor(i/2)-1;return r-t>s&&(a=" ... ",t=r-s+a.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function ll(e,t){return tt.repeat(" ",t-e.length)+e}function qM(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s="",u,l,d=Math.min(e.line+t.linesAfter,i.length).toString().length,c=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)l=ul(e.buffer,r[o-u],i[o-u],e.position-(r[o]-r[o-u]),c),s=tt.repeat(" ",t.indent)+ll((e.line-u+1).toString(),d)+" | "+l.str+`
219
+ `+s;for(l=ul(e.buffer,r[o],i[o],e.position,c),s+=tt.repeat(" ",t.indent)+ll((e.line+1).toString(),d)+" | "+l.str+`
220
+ `,s+=tt.repeat("-",t.indent+d+3+l.pos)+`^
221
+ `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)l=ul(e.buffer,r[o+u],i[o+u],e.position-(r[o]-r[o+u]),c),s+=tt.repeat(" ",t.indent)+ll((e.line+u+1).toString(),d)+" | "+l.str+`
222
+ `;return s.replace(/\n$/,"")}var VM=qM,XM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],QM=["scalar","sequence","mapping"];function ZM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function JM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(XM.indexOf(n)===-1)throw new At('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=ZM(t.styleAliases||null),QM.indexOf(this.kind)===-1)throw new At('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ut=JM;function kE(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(a,o){a.tag===r.tag&&a.kind===r.kind&&a.multi===r.multi&&(i=o)}),n[i]=r}),n}function eL(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function cl(e){return this.extend(e)}cl.prototype.extend=function(t){var n=[],r=[];if(t instanceof ut)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new At("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(a){if(!(a instanceof ut))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new At("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new At("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof ut))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(cl.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=kE(i,"implicit"),i.compiledExplicit=kE(i,"explicit"),i.compiledTypeMap=eL(i.compiledImplicit,i.compiledExplicit),i};var IE=cl,OE=new ut("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),RE=new ut("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ME=new ut("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),LE=new IE({explicit:[OE,RE,ME]});function tL(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function nL(){return null}function rL(e){return e===null}var PE=new ut("tag:yaml.org,2002:null",{kind:"scalar",resolve:tL,construct:nL,predicate:rL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function iL(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function aL(e){return e==="true"||e==="True"||e==="TRUE"}function oL(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var FE=new ut("tag:yaml.org,2002:bool",{kind:"scalar",resolve:iL,construct:aL,predicate:oL,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function sL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function uL(e){return 48<=e&&e<=55}function lL(e){return 48<=e&&e<=57}function cL(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!sL(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!uL(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!lL(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function dL(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function fL(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!tt.isNegativeZero(e)}var BE=new ut("tag:yaml.org,2002:int",{kind:"scalar",resolve:cL,construct:dL,predicate:fL,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pL(e){return!(e===null||!hL.test(e)||e[e.length-1]==="_")}function mL(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var gL=/^[-+]?[0-9]+e/;function EL(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(tt.isNegativeZero(e))return"-0.0";return n=e.toString(10),gL.test(n)?n.replace("e",".e"):n}function bL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tt.isNegativeZero(e))}var UE=new ut("tag:yaml.org,2002:float",{kind:"scalar",resolve:pL,construct:mL,predicate:bL,represent:EL,defaultStyle:"lowercase"}),HE=LE.extend({implicit:[PE,FE,BE,UE]}),zE=HE,$E=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function _L(e){return e===null?!1:$E.exec(e)!==null||jE.exec(e)!==null}function TL(e){var t,n,r,i,a,o,s,u=0,l=null,d,c,h;if(t=$E.exec(e),t===null&&(t=jE.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],c=+(t[11]||0),l=(d*60+c)*6e4,t[9]==="-"&&(l=-l)),h=new Date(Date.UTC(n,r,i,a,o,s,u)),l&&h.setTime(h.getTime()-l),h}function AL(e){return e.toISOString()}var YE=new ut("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:_L,construct:TL,instanceOf:Date,represent:AL});function xL(e){return e==="<<"||e===null}var GE=new ut("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xL}),dl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
223
+ \r`;function CL(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=dl;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function yL(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=dl,o=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function SL(e){var t="",n=0,r,i,a=e.length,o=dl;for(r=0;r<a;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function NL(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var WE=new ut("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CL,construct:yL,predicate:NL,represent:SL}),DL=Object.prototype.hasOwnProperty,wL=Object.prototype.toString;function vL(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,wL.call(i)!=="[object Object]")return!1;for(a in i)if(DL.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function kL(e){return e!==null?e:[]}var KE=new ut("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vL,construct:kL}),IL=Object.prototype.toString;function OL(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],IL.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function RL(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var qE=new ut("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:OL,construct:RL}),ML=Object.prototype.hasOwnProperty;function LL(e){if(e===null)return!0;var t,n=e;for(t in n)if(ML.call(n,t)&&n[t]!==null)return!1;return!0}function PL(e){return e!==null?e:{}}var VE=new ut("tag:yaml.org,2002:set",{kind:"mapping",resolve:LL,construct:PL}),fl=zE.extend({implicit:[YE,GE],explicit:[WE,KE,qE,VE]}),Mn=Object.prototype.hasOwnProperty,_o=1,XE=2,QE=3,To=4,hl=1,FL=2,ZE=3,BL=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,UL=/[\x85\u2028\u2029]/,HL=/[,\[\]\{\}]/,JE=/^(?:!|!!|![a-z\-]+!)$/i,eb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tb(e){return Object.prototype.toString.call(e)}function un(e){return e===10||e===13}function nr(e){return e===9||e===32}function Nt(e){return e===9||e===32||e===10||e===13}function Ur(e){return e===44||e===91||e===93||e===123||e===125}function zL(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function $L(e){return e===120?2:e===117?4:e===85?8:0}function jL(e){return 48<=e&&e<=57?e-48:-1}function nb(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
224
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function YL(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var rb=new Array(256),ib=new Array(256),Hr=0;Hr<256;Hr++)rb[Hr]=nb(Hr)?1:0,ib[Hr]=nb(Hr);function GL(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fl,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ab(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=VM(n),new At(t,n)}function he(e,t){throw ab(e,t)}function Ao(e,t){e.onWarning&&e.onWarning.call(null,ab(e,t))}var ob={YAML:function(t,n,r){var i,a,o;t.version!==null&&he(t,"duplication of %YAML directive"),r.length!==1&&he(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&he(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),a!==1&&he(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ao(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,a;r.length!==2&&he(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],JE.test(i)||he(t,"ill-formed tag handle (first argument) of the TAG directive"),Mn.call(t.tagMap,i)&&he(t,'there is a previously declared suffix for "'+i+'" tag handle'),eb.test(a)||he(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{he(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function Ln(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||he(e,"expected valid JSON character");else BL.test(s)&&he(e,"the stream contains non-printable characters");e.result+=s}}function sb(e,t,n,r){var i,a,o,s;for(tt.isObject(n)||he(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],Mn.call(t,a)||(t[a]=n[a],r[a]=!0)}function zr(e,t,n,r,i,a,o,s,u){var l,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,d=i.length;l<d;l+=1)Array.isArray(i[l])&&he(e,"nested arrays are not supported inside keys"),typeof i=="object"&&tb(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&tb(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(l=0,d=a.length;l<d;l+=1)sb(e,t,a[l],n);else sb(e,t,a,n);else!e.json&&!Mn.call(n,i)&&Mn.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=u||e.position,he(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[i]=a,delete n[i];return t}function pl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):he(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ze(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;nr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(un(i))for(pl(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Ao(e,"deficient indentation"),r}function xo(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Nt(n)))}function ml(e,t){t===1?e.result+=" ":t>1&&(e.result+=tt.repeat(`
225
+ `,t-1))}function WL(e,t,n){var r,i,a,o,s,u,l,d,c=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Nt(p)||Ur(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&Ur(i)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&Ur(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),Nt(r))break}else{if(e.position===e.lineStart&&xo(e)||n&&Ur(p))break;if(un(p))if(u=e.line,l=e.lineStart,d=e.lineIndent,Ze(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=l,e.lineIndent=d;break}}s&&(Ln(e,a,o,!1),ml(e,e.line-u),a=o=e.position,s=!1),nr(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Ln(e,a,o,!1),e.result?!0:(e.kind=c,e.result=h,!1)}function KL(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ln(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else un(n)?(Ln(e,r,i,!0),ml(e,Ze(e,!1,t)),r=i=e.position):e.position===e.lineStart&&xo(e)?he(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);he(e,"unexpected end of the stream within a single quoted scalar")}function qL(e,t){var n,r,i,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Ln(e,n,e.position,!0),e.position++,!0;if(s===92){if(Ln(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),un(s))Ze(e,!1,t);else if(s<256&&rb[s])e.result+=ib[s],e.position++;else if((o=$L(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=zL(s))>=0?a=(a<<4)+o:he(e,"expected hexadecimal character");e.result+=YL(a),e.position++}else he(e,"unknown escape sequence");n=r=e.position}else un(s)?(Ln(e,n,r,!0),ml(e,Ze(e,!1,t)),n=r=e.position):e.position===e.lineStart&&xo(e)?he(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}he(e,"unexpected end of the stream within a double quoted scalar")}function VL(e,t){var n=!0,r,i,a,o=e.tag,s,u=e.anchor,l,d,c,h,p,E=Object.create(null),b,T,_,C;if(C=e.input.charCodeAt(e.position),C===91)d=93,p=!1,s=[];else if(C===123)d=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),C=e.input.charCodeAt(++e.position);C!==0;){if(Ze(e,!0,t),C=e.input.charCodeAt(e.position),C===d)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=s,!0;n?C===44&&he(e,"expected the node content, but found ','"):he(e,"missed comma between flow collection entries"),T=b=_=null,c=h=!1,C===63&&(l=e.input.charCodeAt(e.position+1),Nt(l)&&(c=h=!0,e.position++,Ze(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,$r(e,t,_o,!1,!0),T=e.tag,b=e.result,Ze(e,!0,t),C=e.input.charCodeAt(e.position),(h||e.line===r)&&C===58&&(c=!0,C=e.input.charCodeAt(++e.position),Ze(e,!0,t),$r(e,t,_o,!1,!0),_=e.result),p?zr(e,s,E,T,b,_,r,i,a):c?s.push(zr(e,null,E,T,b,_,r,i,a)):s.push(b),Ze(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(n=!0,C=e.input.charCodeAt(++e.position)):n=!1}he(e,"unexpected end of the stream within a flow collection")}function XL(e,t){var n,r,i=hl,a=!1,o=!1,s=t,u=0,l=!1,d,c;if(c=e.input.charCodeAt(e.position),c===124)r=!1;else if(c===62)r=!0;else return!1;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)hl===i?i=c===43?ZE:FL:he(e,"repeat of a chomping mode identifier");else if((d=jL(c))>=0)d===0?he(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?he(e,"repeat of an indentation width identifier"):(s=t+d-1,o=!0);else break;if(nr(c)){do c=e.input.charCodeAt(++e.position);while(nr(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!un(c)&&c!==0)}for(;c!==0;){for(pl(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),un(c)){u++;continue}if(e.lineIndent<s){i===ZE?e.result+=tt.repeat(`
176
226
  `,a?1+u:u):i===hl&&a&&(e.result+=`
177
- `);break}for(r?nr(c)?(l=!0,e.result+=et.repeat(`
178
- `,a?1+u:u)):l?(l=!1,e.result+=et.repeat(`
179
- `,u+1)):u===0?a&&(e.result+=" "):e.result+=et.repeat(`
180
- `,u):e.result+=et.repeat(`
181
- `,a?1+u:u),a=!0,o=!0,u=0,n=e.position;!sn(c)&&c!==0;)c=e.input.charCodeAt(++e.position);Ln(e,n,e.position,!1)}return!0}function tb(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!St(o))));){if(s=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t){a.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,zr(e,t,YE,!1,!0),a.push(e.result),Qe(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function FL(e,t,n){var r,i,a,o,s,u,l=e.tag,d=e.anchor,c={},h=Object.create(null),p=null,g=null,b=null,T=!1,_=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(e.position);x!==0;){if(!T&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(x===63||x===58)&&St(r))x===63?(T&&(Hr(e,c,h,p,g,null,o,s,u),p=g=b=null),_=!0,T=!0,i=!0):T?(T=!1,i=!0):he(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=r;else{if(o=e.line,s=e.lineStart,u=e.position,!zr(e,n,jE,!1,!0))break;if(e.line===a){for(x=e.input.charCodeAt(e.position);nr(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),St(x)||he(e,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(Hr(e,c,h,p,g,null,o,s,u),p=g=b=null),_=!0,T=!1,i=!1,p=e.tag,g=e.result;else if(_)he(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=d,!0}else if(_)he(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=d,!0}if((e.line===a||e.lineIndent>t)&&(T&&(o=e.line,s=e.lineStart,u=e.position),zr(e,t,_o,!0,i)&&(T?g=e.result:b=e.result),T||(Hr(e,c,h,p,g,b,o,s,u),p=g=b=null),Qe(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&x!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return T&&Hr(e,c,h,p,g,null,o,s,u),_&&(e.tag=l,e.anchor=d,e.kind="mapping",e.result=c),_}function BL(e){var t,n=!1,r=!1,i,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&he(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):he(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!St(o);)o===33&&(r?he(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),WE.test(i)||he(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),NL.test(a)&&he(e,"tag suffix cannot contain flow indicator characters")}a&&!KE.test(a)&&he(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{he(e,"tag name is malformed: "+a)}return n?e.tag=a:Mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:he(e,'undeclared tag handle "'+i+'"'),!0}function UL(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&he(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!St(n)&&!Br(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function HL(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!St(r)&&!Br(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Mn.call(e.anchorMap,n)||he(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Qe(e,!0,-1),!0}function zr(e,t,n,r,i){var a,o,s,u=1,l=!1,d=!1,c,h,p,g,b,T;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=_o===n||YE===n,r&&Qe(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;BL(e)||UL(e);)Qe(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):s=!1;if(s&&(s=l||i),(u===1||_o===n)&&(bo===n||jE===n?b=t:b=t+1,T=e.position-e.lineStart,u===1?s&&(tb(e,T)||FL(e,T,b))||LL(e,b)?d=!0:(o&&PL(e,b)||RL(e,b)||ML(e,b)?d=!0:HL(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&he(e,"alias node should not have any properties")):OL(e,b,bo===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=s&&tb(e,T))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&he(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,h=e.implicitTypes.length;c<h;c+=1)if(g=e.implicitTypes[c],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Mn.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,p=e.typeMap.multi[e.kind||"fallback"],c=0,h=p.length;c<h;c+=1)if(e.tag.slice(0,p[c].tag.length)===p[c].tag){g=p[c];break}g||he(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function zL(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Qe(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!St(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&he(e,"directive name must not be less than one character in length");o!==0;){for(;nr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!sn(o));break}if(sn(o))break;for(n=e.position;o!==0&&!St(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&pl(e),Mn.call(JE,r)?JE[r](e,r,i):To(e,'unknown document directive "'+r+'"')}if(Qe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Qe(e,!0,-1)):a&&he(e,"directives end mark is expected"),zr(e,e.lineIndent-1,_o,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&SL.test(e.input.slice(t,e.position))&&To(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ao(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qe(e,!0,-1));return}if(e.position<e.length-1)he(e,"end of the stream or a document separator is expected");else return}function nb(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
182
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new kL(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,he(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)zL(n);return n.documents}function $L(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=nb(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function jL(e,t){var n=nb(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Tt("expected a single document in the stream, but found more")}}var YL=$L,GL=jL,rb={loadAll:YL,load:GL},ib=Object.prototype.toString,ab=Object.prototype.hasOwnProperty,gl=65279,WL=9,$i=10,KL=13,qL=32,VL=33,XL=34,El=35,QL=37,ZL=38,JL=39,e3=42,ob=44,t3=45,Co=58,n3=61,r3=62,i3=63,a3=64,sb=91,ub=93,o3=96,lb=123,s3=124,cb=125,mt={};mt[0]="\\0",mt[7]="\\a",mt[8]="\\b",mt[9]="\\t",mt[10]="\\n",mt[11]="\\v",mt[12]="\\f",mt[13]="\\r",mt[27]="\\e",mt[34]='\\"',mt[92]="\\\\",mt[133]="\\N",mt[160]="\\_",mt[8232]="\\L",mt[8233]="\\P";var u3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],l3=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c3(e,t){var n,r,i,a,o,s,u;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&ab.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[o]=s;return n}function d3(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Tt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+et.repeat("0",r-t.length)+t}var f3=1,ji=2;function h3(e){this.schema=e.schema||fl,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=et.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=c3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ji:f3,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function db(e,t){for(var n=et.repeat(" ",t),r=0,i=-1,a="",o,s=e.length;r<s;)i=e.indexOf(`
227
+ `);break}for(r?nr(c)?(l=!0,e.result+=tt.repeat(`
228
+ `,a?1+u:u)):l?(l=!1,e.result+=tt.repeat(`
229
+ `,u+1)):u===0?a&&(e.result+=" "):e.result+=tt.repeat(`
230
+ `,u):e.result+=tt.repeat(`
231
+ `,a?1+u:u),a=!0,o=!0,u=0,n=e.position;!un(c)&&c!==0;)c=e.input.charCodeAt(++e.position);Ln(e,n,e.position,!1)}return!0}function ub(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!Nt(o))));){if(s=!0,e.position++,Ze(e,!0,-1)&&e.lineIndent<=t){a.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,$r(e,t,QE,!1,!0),a.push(e.result),Ze(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)he(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0):!1}function QL(e,t,n){var r,i,a,o,s,u,l=e.tag,d=e.anchor,c={},h=Object.create(null),p=null,E=null,b=null,T=!1,_=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(e.position);C!==0;){if(!T&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,he(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,(C===63||C===58)&&Nt(r))C===63?(T&&(zr(e,c,h,p,E,null,o,s,u),p=E=b=null),_=!0,T=!0,i=!0):T?(T=!1,i=!0):he(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=r;else{if(o=e.line,s=e.lineStart,u=e.position,!$r(e,n,XE,!1,!0))break;if(e.line===a){for(C=e.input.charCodeAt(e.position);nr(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),Nt(C)||he(e,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(zr(e,c,h,p,E,null,o,s,u),p=E=b=null),_=!0,T=!1,i=!1,p=e.tag,E=e.result;else if(_)he(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=d,!0}else if(_)he(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=d,!0}if((e.line===a||e.lineIndent>t)&&(T&&(o=e.line,s=e.lineStart,u=e.position),$r(e,t,To,!0,i)&&(T?E=e.result:b=e.result),T||(zr(e,c,h,p,E,b,o,s,u),p=E=b=null),Ze(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&C!==0)he(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return T&&zr(e,c,h,p,E,null,o,s,u),_&&(e.tag=l,e.anchor=d,e.kind="mapping",e.result=c),_}function ZL(e){var t,n=!1,r=!1,i,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&he(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):he(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Nt(o);)o===33&&(r?he(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),JE.test(i)||he(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),HL.test(a)&&he(e,"tag suffix cannot contain flow indicator characters")}a&&!eb.test(a)&&he(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{he(e,"tag name is malformed: "+a)}return n?e.tag=a:Mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i==="!"?e.tag="!"+a:i==="!!"?e.tag="tag:yaml.org,2002:"+a:he(e,'undeclared tag handle "'+i+'"'),!0}function JL(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&he(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Nt(n)&&!Ur(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e3(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nt(r)&&!Ur(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&he(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Mn.call(e.anchorMap,n)||he(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ze(e,!0,-1),!0}function $r(e,t,n,r,i){var a,o,s,u=1,l=!1,d=!1,c,h,p,E,b,T;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=To===n||QE===n,r&&Ze(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;ZL(e)||JL(e);)Ze(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):s=!1;if(s&&(s=l||i),(u===1||To===n)&&(_o===n||XE===n?b=t:b=t+1,T=e.position-e.lineStart,u===1?s&&(ub(e,T)||QL(e,T,b))||VL(e,b)?d=!0:(o&&XL(e,b)||KL(e,b)||qL(e,b)?d=!0:e3(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&he(e,"alias node should not have any properties")):WL(e,b,_o===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=s&&ub(e,T))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&he(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,h=e.implicitTypes.length;c<h;c+=1)if(E=e.implicitTypes[c],E.resolve(e.result)){e.result=E.construct(e.result),e.tag=E.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Mn.call(e.typeMap[e.kind||"fallback"],e.tag))E=e.typeMap[e.kind||"fallback"][e.tag];else for(E=null,p=e.typeMap.multi[e.kind||"fallback"],c=0,h=p.length;c<h;c+=1)if(e.tag.slice(0,p[c].tag.length)===p[c].tag){E=p[c];break}E||he(e,"unknown tag !<"+e.tag+">"),e.result!==null&&E.kind!==e.kind&&he(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+E.kind+'", not "'+e.kind+'"'),E.resolve(e.result,e.tag)?(e.result=E.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):he(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function t3(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ze(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Nt(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&he(e,"directive name must not be less than one character in length");o!==0;){for(;nr(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!un(o));break}if(un(o))break;for(n=e.position;o!==0&&!Nt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&pl(e),Mn.call(ob,r)?ob[r](e,r,i):Ao(e,'unknown document directive "'+r+'"')}if(Ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ze(e,!0,-1)):a&&he(e,"directives end mark is expected"),$r(e,e.lineIndent-1,To,!1,!0),Ze(e,!0,-1),e.checkLineBreaks&&UL.test(e.input.slice(t,e.position))&&Ao(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ze(e,!0,-1));return}if(e.position<e.length-1)he(e,"end of the stream or a document separator is expected");else return}function lb(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
232
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new GL(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,he(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)t3(n);return n.documents}function n3(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=lb(e,n);if(typeof t!="function")return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function r3(e,t){var n=lb(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new At("expected a single document in the stream, but found more")}}var i3=n3,a3=r3,cb={loadAll:i3,load:a3},db=Object.prototype.toString,fb=Object.prototype.hasOwnProperty,gl=65279,o3=9,Gi=10,s3=13,u3=32,l3=33,c3=34,El=35,d3=37,f3=38,h3=39,p3=42,hb=44,m3=45,Co=58,g3=61,E3=62,b3=63,_3=64,pb=91,mb=93,T3=96,gb=123,A3=124,Eb=125,gt={};gt[0]="\\0",gt[7]="\\a",gt[8]="\\b",gt[9]="\\t",gt[10]="\\n",gt[11]="\\v",gt[12]="\\f",gt[13]="\\r",gt[27]="\\e",gt[34]='\\"',gt[92]="\\\\",gt[133]="\\N",gt[160]="\\_",gt[8232]="\\L",gt[8233]="\\P";var x3=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],C3=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function y3(e,t){var n,r,i,a,o,s,u;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&fb.call(u.styleAliases,s)&&(s=u.styleAliases[s]),n[o]=s;return n}function S3(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new At("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+tt.repeat("0",r-t.length)+t}var N3=1,Wi=2;function D3(e){this.schema=e.schema||fl,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=y3(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Wi:N3,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bb(e,t){for(var n=tt.repeat(" ",t),r=0,i=-1,a="",o,s=e.length;r<s;)i=e.indexOf(`
183
233
  `,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
184
234
  `&&(a+=n),a+=o;return a}function bl(e,t){return`
185
- `+et.repeat(" ",e.indent*t)}function p3(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function xo(e){return e===qL||e===WL}function Yi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gl||65536<=e&&e<=1114111}function fb(e){return Yi(e)&&e!==gl&&e!==KL&&e!==$i}function hb(e,t,n){var r=fb(e),i=r&&!xo(e);return(n?r:r&&e!==ob&&e!==sb&&e!==ub&&e!==lb&&e!==cb)&&e!==El&&!(t===Co&&!i)||fb(t)&&!xo(t)&&e===El||t===Co&&i}function m3(e){return Yi(e)&&e!==gl&&!xo(e)&&e!==t3&&e!==i3&&e!==Co&&e!==ob&&e!==sb&&e!==ub&&e!==lb&&e!==cb&&e!==El&&e!==ZL&&e!==e3&&e!==VL&&e!==s3&&e!==n3&&e!==r3&&e!==JL&&e!==XL&&e!==QL&&e!==a3&&e!==o3}function g3(e){return!xo(e)&&e!==Co}function Gi(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function pb(e){var t=/^\n* /;return t.test(e)}var mb=1,_l=2,gb=3,Eb=4,$r=5;function E3(e,t,n,r,i,a,o,s){var u,l=0,d=null,c=!1,h=!1,p=r!==-1,g=-1,b=m3(Gi(e,0))&&g3(Gi(e,e.length-1));if(t||o)for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=Gi(e,u),!Yi(l))return $r;b=b&&hb(l,d,s),d=l}else{for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=Gi(e,u),l===$i)c=!0,p&&(h=h||u-g-1>r&&e[g+1]!==" ",g=u);else if(!Yi(l))return $r;b=b&&hb(l,d,s),d=l}h=h||p&&u-g-1>r&&e[g+1]!==" "}return!c&&!h?b&&!o&&!i(e)?mb:a===ji?$r:_l:n>9&&pb(e)?$r:o?a===ji?$r:_l:h?Eb:gb}function b3(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===ji?'""':"''";if(!e.noCompatMode&&(u3.indexOf(t)!==-1||l3.test(t)))return e.quotingType===ji?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return p3(e,l)}switch(E3(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,i)){case mb:return t;case _l:return"'"+t.replace(/'/g,"''")+"'";case gb:return"|"+bb(t,e.indent)+_b(db(t,a));case Eb:return">"+bb(t,e.indent)+_b(db(_3(t,o),a));case $r:return'"'+T3(t)+'"';default:throw new Tt("impossible error: invalid scalar style")}}()}function bb(e,t){var n=pb(e)?String(t):"",r=e[e.length-1]===`
235
+ `+tt.repeat(" ",e.indent*t)}function w3(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function yo(e){return e===u3||e===o3}function Ki(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gl||65536<=e&&e<=1114111}function _b(e){return Ki(e)&&e!==gl&&e!==s3&&e!==Gi}function Tb(e,t,n){var r=_b(e),i=r&&!yo(e);return(n?r:r&&e!==hb&&e!==pb&&e!==mb&&e!==gb&&e!==Eb)&&e!==El&&!(t===Co&&!i)||_b(t)&&!yo(t)&&e===El||t===Co&&i}function v3(e){return Ki(e)&&e!==gl&&!yo(e)&&e!==m3&&e!==b3&&e!==Co&&e!==hb&&e!==pb&&e!==mb&&e!==gb&&e!==Eb&&e!==El&&e!==f3&&e!==p3&&e!==l3&&e!==A3&&e!==g3&&e!==E3&&e!==h3&&e!==c3&&e!==d3&&e!==_3&&e!==T3}function k3(e){return!yo(e)&&e!==Co}function qi(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Ab(e){var t=/^\n* /;return t.test(e)}var xb=1,_l=2,Cb=3,yb=4,jr=5;function I3(e,t,n,r,i,a,o,s){var u,l=0,d=null,c=!1,h=!1,p=r!==-1,E=-1,b=v3(qi(e,0))&&k3(qi(e,e.length-1));if(t||o)for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=qi(e,u),!Ki(l))return jr;b=b&&Tb(l,d,s),d=l}else{for(u=0;u<e.length;l>=65536?u+=2:u++){if(l=qi(e,u),l===Gi)c=!0,p&&(h=h||u-E-1>r&&e[E+1]!==" ",E=u);else if(!Ki(l))return jr;b=b&&Tb(l,d,s),d=l}h=h||p&&u-E-1>r&&e[E+1]!==" "}return!c&&!h?b&&!o&&!i(e)?xb:a===Wi?jr:_l:n>9&&Ab(e)?jr:o?a===Wi?jr:_l:h?yb:Cb}function O3(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===Wi?'""':"''";if(!e.noCompatMode&&(x3.indexOf(t)!==-1||C3.test(t)))return e.quotingType===Wi?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function u(l){return w3(e,l)}switch(I3(t,s,e.indent,o,u,e.quotingType,e.forceQuotes&&!r,i)){case xb:return t;case _l:return"'"+t.replace(/'/g,"''")+"'";case Cb:return"|"+Sb(t,e.indent)+Nb(bb(t,a));case yb:return">"+Sb(t,e.indent)+Nb(bb(R3(t,o),a));case jr:return'"'+M3(t)+'"';default:throw new At("impossible error: invalid scalar style")}}()}function Sb(e,t){var n=Ab(e)?String(t):"",r=e[e.length-1]===`
186
236
  `,i=r&&(e[e.length-2]===`
187
237
  `||e===`
188
238
  `),a=i?"+":r?"":"-";return n+a+`
189
- `}function _b(e){return e[e.length-1]===`
190
- `?e.slice(0,-1):e}function _3(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(`
191
- `);return l=l!==-1?l:e.length,n.lastIndex=l,Tb(e.slice(0,l),t)}(),i=e[0]===`
239
+ `}function Nb(e){return e[e.length-1]===`
240
+ `?e.slice(0,-1):e}function R3(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var l=e.indexOf(`
241
+ `);return l=l!==-1?l:e.length,n.lastIndex=l,Db(e.slice(0,l),t)}(),i=e[0]===`
192
242
  `||e[0]===" ",a,o;o=n.exec(e);){var s=o[1],u=o[2];a=u[0]===" ",r+=s+(!i&&!a&&u!==""?`
193
- `:"")+Tb(u,t),i=a}return r}function Tb(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,u+=`
243
+ `:"")+Db(u,t),i=a}return r}function Db(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,u="";r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,u+=`
194
244
  `+e.slice(i,a),i=a+1),o=s;return u+=`
195
245
  `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
196
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function T3(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Gi(e,i),r=mt[n],!r&&Yi(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||d3(n);return t}function A3(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(En(e,t,s,!1,!1)||typeof s>"u"&&En(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function Ab(e,t,n,r){var i="",a=e.tag,o,s,u;for(o=0,s=n.length;o<s;o+=1)u=n[o],e.replacer&&(u=e.replacer.call(n,String(o),u)),(En(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&En(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=bl(e,t)),e.dump&&$i===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function C3(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,u,l,d;for(o=0,s=a.length;o<s;o+=1)d="",r!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=a[o],l=n[u],e.replacer&&(l=e.replacer.call(n,u,l)),En(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),En(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function x3(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,u,l,d,c,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Tt("sortKeys must be a boolean or a function");for(s=0,u=o.length;s<u;s+=1)h="",(!r||i!=="")&&(h+=bl(e,t)),l=o[s],d=n[l],e.replacer&&(d=e.replacer.call(n,l,d)),En(e,t+1,l,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&$i===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,c&&(h+=bl(e,t)),En(e,t+1,d,!0,c)&&(e.dump&&$i===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=a,e.dump=i||"{}"}function Cb(e,t,n){var r,i,a,o,s,u;for(i=n?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,ib.call(s.represent)==="[object Function]")r=s.represent(t,u);else if(ab.call(s.represent,u))r=s.represent[u](t,u);else throw new Tt("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function En(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Cb(e,n,!1)||Cb(e,n,!0);var s=ib.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var d=s==="[object Object]"||s==="[object Array]",c,h;if(d&&(c=e.duplicates.indexOf(n),h=c!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(d&&h&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(x3(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(C3(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Ab(e,t-1,e.dump,i):Ab(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(A3(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&b3(e,e.dump,t,a,u);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Tt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function y3(e,t){var n=[],r=[],i,a;for(Tl(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function Tl(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Tl(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Tl(e[r[i]],t,n)}function S3(e,t){t=t||{};var n=new h3(t);n.noRefs||y3(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),En(n,0,r,!0,!0)?n.dump+`
197
- `:""}var N3=S3,D3={dump:N3};function Al(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var w3=st,v3=yE,I3=wE,k3=RE,O3=ME,R3=fl,M3=rb.load,L3=rb.loadAll,P3=D3.dump,F3=Tt,B3={binary:UE,float:OE,map:DE,null:vE,pairs:zE,set:$E,timestamp:FE,bool:IE,int:kE,merge:BE,omap:HE,seq:NE,str:SE},U3=Al("safeLoad","load"),H3=Al("safeLoadAll","loadAll"),z3=Al("safeDump","dump"),$3={Type:w3,Schema:v3,FAILSAFE_SCHEMA:I3,JSON_SCHEMA:k3,CORE_SCHEMA:O3,DEFAULT_SCHEMA:R3,load:M3,loadAll:L3,dump:P3,YAMLException:F3,types:B3,safeLoad:U3,safeLoadAll:H3,safeDump:z3};async function yo(e="zh-cn"){if(!e||e.startsWith("_next")||e.includes("."))return null;const t="zh-cn",r=`/config/site${e===t?"":`.${e}`}.yaml`;try{const i=await fetch(r);if(!i.ok)throw new Error(`Failed to fetch ${r}`);const a=await i.text();return $3.load(a)}catch(i){return console.error(`Error loading config for lang "${e}":`,i),e!==t?await yo(t):null}}function j3({children:e}){const t=Je.useNavigate(),n=Je.useLocation(),{theme:r,setTheme:i}=qr(),a=me.useCallback(async()=>{try{await navigator.clipboard.writeText(window.location.href)}catch{}},[]),o=me.useCallback(async()=>{try{await navigator.clipboard.writeText(document.title||"")}catch{}},[]),s=me.useCallback(async()=>{try{const x=document.title||"Docs",N=window.location.href;await navigator.clipboard.writeText(`[${x}](${N})`)}catch{}},[]),u=me.useCallback(()=>{window.open(window.location.href,"_blank")},[]),l=me.useCallback(()=>{window.location.reload()},[]),d=me.useCallback(()=>t("/"),[t]),c=n.pathname.startsWith("/en")?"en":"zh-cn",h=me.useCallback(x=>{const N=n.pathname.split("/").filter(Boolean);N.length>0&&(N[0]==="en"||N[0]==="zh-cn")?N[0]=x:N.unshift(x),t("/"+N.join("/"))},[n.pathname,t]),p=me.useCallback(()=>window.scrollTo({top:0,behavior:"smooth"}),[]),g=me.useCallback(()=>window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"}),[]),b=me.useCallback(()=>window.print(),[]),T=me.useCallback(x=>t(`/${c}/${x}`),[t,c]),_=me.useCallback(()=>{try{localStorage.removeItem("vite-ui-theme")}catch{}},[]);return E.jsxs(yp,{children:[E.jsx(Sp,{asChild:!0,children:E.jsx("div",{className:"min-h-screen",children:e})}),E.jsxs(Ks,{children:[E.jsx(fi,{children:"页面"}),E.jsxs(Gs,{children:[E.jsx(rt,{onClick:a,children:"复制当前链接"}),E.jsx(rt,{onClick:o,children:"复制页面标题"}),E.jsx(rt,{onClick:s,children:"复制 Markdown 链接"}),E.jsx(rt,{onClick:u,children:"在新标签页打开"}),E.jsx(rt,{onClick:l,children:"刷新"}),E.jsx(rt,{onClick:b,children:"打印页面"}),E.jsx(hi,{}),E.jsx(rt,{onClick:p,children:"回到顶部"}),E.jsx(rt,{onClick:g,children:"滚动到底部"})]}),E.jsx(hi,{}),E.jsx(fi,{children:"站点"}),E.jsxs(Gs,{children:[E.jsx(rt,{onClick:d,children:"返回首页"}),E.jsxs(Fa,{children:[E.jsx(ci,{children:"快速跳转"}),E.jsxs(di,{children:[E.jsx(rt,{onClick:()=>T("index"),children:"文档首页"}),E.jsx(rt,{onClick:()=>T("guide"),children:"指南"}),E.jsx(rt,{onClick:()=>T("guide/introduction"),children:"简介"}),E.jsx(rt,{onClick:()=>T("guide/installation"),children:"安装"}),E.jsx(rt,{onClick:()=>T("guide/quick-start"),children:"快速开始"}),E.jsx(rt,{onClick:()=>T("guide/configuration"),children:"配置"})]})]}),E.jsxs(Fa,{children:[E.jsx(ci,{children:"语言"}),E.jsx(di,{children:E.jsxs(Ws,{value:c,children:[E.jsx(Wn,{value:"en",onClick:()=>h("en"),children:"English"}),E.jsx(Wn,{value:"zh-cn",onClick:()=>h("zh-cn"),children:"简体中文"})]})})]})]}),E.jsx(hi,{}),E.jsx(fi,{children:"外观"}),E.jsxs(Gs,{children:[E.jsxs(Fa,{children:[E.jsx(ci,{children:"主题"}),E.jsx(di,{children:E.jsxs(Ws,{value:r,children:[E.jsx(Wn,{value:"light",onClick:()=>i("light"),children:"浅色"}),E.jsx(Wn,{value:"dark",onClick:()=>i("dark"),children:"深色"}),E.jsx(Wn,{value:"system",onClick:()=>i("system"),children:"跟随系统"})]})})]}),E.jsx(rt,{onClick:_,children:"重置主题偏好"})]})]})]})}function Y3(){const[e,t]=me.useState(!1),n=Je.useLocation(),r=Je.useNavigate(),a=Je.useParams().lang||(n.pathname.startsWith("/en")?"en":"zh-cn"),{setTheme:o}=qr(),[s,u]=me.useState(null);me.useEffect(()=>{const c=h=>{h.key.toLowerCase()==="k"&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),t(p=>!p))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),me.useEffect(()=>{let c=!1;return(async()=>{const h=await yo(a);c||u(h)})(),()=>{c=!0}},[a]);const l=me.useMemo(()=>{const c=[];if(!s)return c;const h=s.sidebar;return(h?.collections?.guide?.sections??h?.sections??[]).forEach(b=>{b.path&&c.push({title:b.title,to:`/${a}${b.path}`}),(b.children||[]).forEach(T=>{c.push({title:T.title,to:`/${a}${T.path}`})})}),c},[s,a]),d=c=>{t(!1),r(c)};return E.jsx(qh,{open:e,onOpenChange:t,children:E.jsxs($s,{children:[E.jsx(Ax,{placeholder:a==="en"?"Type a command or search...":"输入命令或搜索..."}),E.jsxs(Cx,{children:[E.jsx(xx,{children:a==="en"?"No results found.":"未找到结果"}),E.jsx(js,{heading:a==="en"?"Navigation":"导航",children:l.map(c=>E.jsxs(Tr,{onSelect:()=>d(c.to),children:[c.title,E.jsx(yx,{children:"↵"})]},c.to))}),E.jsx(Vh,{}),E.jsxs(js,{heading:a==="en"?"Theme":"主题",children:[E.jsx(Tr,{onSelect:()=>o("light"),children:a==="en"?"Light":"浅色"}),E.jsx(Tr,{onSelect:()=>o("dark"),children:a==="en"?"Dark":"深色"}),E.jsx(Tr,{onSelect:()=>o("system"),children:a==="en"?"System":"跟随系统"})]}),E.jsx(Vh,{}),E.jsxs(js,{heading:a==="en"?"Actions":"操作",children:[E.jsx(Tr,{onSelect:()=>{t(!1),window.location.reload()},children:a==="en"?"Reload Page":"刷新页面"}),E.jsx(Tr,{onSelect:()=>{t(!1),navigator.clipboard.writeText(window.location.href)},children:a==="en"?"Copy URL":"复制链接"})]})]})]})})}function G3(e){const t=e.split(`
246
+ `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function M3(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=qi(e,i),r=gt[n],!r&&Ki(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||S3(n);return t}function L3(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(En(e,t,s,!1,!1)||typeof s>"u"&&En(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function wb(e,t,n,r){var i="",a=e.tag,o,s,u;for(o=0,s=n.length;o<s;o+=1)u=n[o],e.replacer&&(u=e.replacer.call(n,String(o),u)),(En(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&En(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=bl(e,t)),e.dump&&Gi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function P3(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,u,l,d;for(o=0,s=a.length;o<s;o+=1)d="",r!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=a[o],l=n[u],e.replacer&&(l=e.replacer.call(n,u,l)),En(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),En(e,t,l,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function F3(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,u,l,d,c,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new At("sortKeys must be a boolean or a function");for(s=0,u=o.length;s<u;s+=1)h="",(!r||i!=="")&&(h+=bl(e,t)),l=o[s],d=n[l],e.replacer&&(d=e.replacer.call(n,l,d)),En(e,t+1,l,!0,!0,!0)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&Gi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,c&&(h+=bl(e,t)),En(e,t+1,d,!0,c)&&(e.dump&&Gi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=a,e.dump=i||"{}"}function vb(e,t,n){var r,i,a,o,s,u;for(i=n?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(u=e.styleMap[s.tag]||s.defaultStyle,db.call(s.represent)==="[object Function]")r=s.represent(t,u);else if(fb.call(s.represent,u))r=s.represent[u](t,u);else throw new At("!<"+s.tag+'> tag resolver accepts not "'+u+'" style');e.dump=r}return!0}return!1}function En(e,t,n,r,i,a,o){e.tag=null,e.dump=n,vb(e,n,!1)||vb(e,n,!0);var s=db.call(e.dump),u=r,l;r&&(r=e.flowLevel<0||e.flowLevel>t);var d=s==="[object Object]"||s==="[object Array]",c,h;if(d&&(c=e.duplicates.indexOf(n),h=c!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(d&&h&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(F3(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(P3(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?wb(e,t-1,e.dump,i):wb(e,t,e.dump,i),h&&(e.dump="&ref_"+c+e.dump)):(L3(e,t,e.dump),h&&(e.dump="&ref_"+c+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&O3(e,e.dump,t,a,u);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new At("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function B3(e,t){var n=[],r=[],i,a;for(Tl(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function Tl(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Tl(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Tl(e[r[i]],t,n)}function U3(e,t){t=t||{};var n=new D3(t);n.noRefs||B3(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),En(n,0,r,!0,!0)?n.dump+`
247
+ `:""}var H3=U3,z3={dump:H3};function Al(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var $3=ut,j3=IE,Y3=LE,G3=HE,W3=zE,K3=fl,q3=cb.load,V3=cb.loadAll,X3=z3.dump,Q3=At,Z3={binary:WE,float:UE,map:ME,null:PE,pairs:qE,set:VE,timestamp:YE,bool:FE,int:BE,merge:GE,omap:KE,seq:RE,str:OE},J3=Al("safeLoad","load"),eP=Al("safeLoadAll","loadAll"),tP=Al("safeDump","dump"),nP={Type:$3,Schema:j3,FAILSAFE_SCHEMA:Y3,JSON_SCHEMA:G3,CORE_SCHEMA:W3,DEFAULT_SCHEMA:K3,load:q3,loadAll:V3,dump:X3,YAMLException:Q3,types:Z3,safeLoad:J3,safeLoadAll:eP,safeDump:tP};async function So(e="zh-cn"){if(!e||e.startsWith("_next")||e.includes("."))return null;const t="zh-cn",r=`/config/site${e===t?"":`.${e}`}.yaml`;try{const i=await fetch(r);if(!i.ok)throw new Error(`Failed to fetch ${r}`);const a=await i.text();return nP.load(a)}catch(i){return console.error(`Error loading config for lang "${e}":`,i),e!==t?await So(t):null}}function rP({children:e}){const t=We.useNavigate(),n=We.useLocation(),{theme:r,setTheme:i}=Vr(),a=me.useCallback(async()=>{try{await navigator.clipboard.writeText(window.location.href)}catch{}},[]),o=me.useCallback(async()=>{try{await navigator.clipboard.writeText(document.title||"")}catch{}},[]),s=me.useCallback(async()=>{try{const C=document.title||"Docs",N=window.location.href;await navigator.clipboard.writeText(`[${C}](${N})`)}catch{}},[]),u=me.useCallback(()=>{window.open(window.location.href,"_blank")},[]),l=me.useCallback(()=>{window.location.reload()},[]),d=me.useCallback(()=>t("/"),[t]),c=n.pathname.startsWith("/en")?"en":"zh-cn",h=me.useCallback(C=>{const N=n.pathname.split("/").filter(Boolean);N.length>0&&(N[0]==="en"||N[0]==="zh-cn")?N[0]=C:N.unshift(C),t("/"+N.join("/"))},[n.pathname,t]),p=me.useCallback(()=>window.scrollTo({top:0,behavior:"smooth"}),[]),E=me.useCallback(()=>window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"}),[]),b=me.useCallback(()=>window.print(),[]),T=me.useCallback(C=>t(`/${c}/${C}`),[t,c]),_=me.useCallback(()=>{try{localStorage.removeItem("vite-ui-theme")}catch{}},[]);return m.jsxs(Ip,{children:[m.jsx(Op,{asChild:!0,children:m.jsx("div",{className:"min-h-screen",children:e})}),m.jsxs(Ks,{children:[m.jsx(mi,{children:"页面"}),m.jsxs(Gs,{children:[m.jsx(it,{onClick:a,children:"复制当前链接"}),m.jsx(it,{onClick:o,children:"复制页面标题"}),m.jsx(it,{onClick:s,children:"复制 Markdown 链接"}),m.jsx(it,{onClick:u,children:"在新标签页打开"}),m.jsx(it,{onClick:l,children:"刷新"}),m.jsx(it,{onClick:b,children:"打印页面"}),m.jsx(gi,{}),m.jsx(it,{onClick:p,children:"回到顶部"}),m.jsx(it,{onClick:E,children:"滚动到底部"})]}),m.jsx(gi,{}),m.jsx(mi,{children:"站点"}),m.jsxs(Gs,{children:[m.jsx(it,{onClick:d,children:"返回首页"}),m.jsxs(Ba,{children:[m.jsx(hi,{children:"快速跳转"}),m.jsxs(pi,{children:[m.jsx(it,{onClick:()=>T("index"),children:"文档首页"}),m.jsx(it,{onClick:()=>T("guide"),children:"指南"}),m.jsx(it,{onClick:()=>T("guide/introduction"),children:"简介"}),m.jsx(it,{onClick:()=>T("guide/installation"),children:"安装"}),m.jsx(it,{onClick:()=>T("guide/quick-start"),children:"快速开始"}),m.jsx(it,{onClick:()=>T("guide/configuration"),children:"配置"})]})]}),m.jsxs(Ba,{children:[m.jsx(hi,{children:"语言"}),m.jsx(pi,{children:m.jsxs(Ws,{value:c,children:[m.jsx(Wn,{value:"en",onClick:()=>h("en"),children:"English"}),m.jsx(Wn,{value:"zh-cn",onClick:()=>h("zh-cn"),children:"简体中文"})]})})]})]}),m.jsx(gi,{}),m.jsx(mi,{children:"外观"}),m.jsxs(Gs,{children:[m.jsxs(Ba,{children:[m.jsx(hi,{children:"主题"}),m.jsx(pi,{children:m.jsxs(Ws,{value:r,children:[m.jsx(Wn,{value:"light",onClick:()=>i("light"),children:"浅色"}),m.jsx(Wn,{value:"dark",onClick:()=>i("dark"),children:"深色"}),m.jsx(Wn,{value:"system",onClick:()=>i("system"),children:"跟随系统"})]})})]}),m.jsx(it,{onClick:_,children:"重置主题偏好"})]})]})]})}function iP(){const[e,t]=me.useState(!1),n=We.useLocation(),r=We.useNavigate(),a=We.useParams().lang||(n.pathname.startsWith("/en")?"en":"zh-cn"),{setTheme:o}=Vr(),[s,u]=me.useState(null);me.useEffect(()=>{const c=h=>{h.key.toLowerCase()==="k"&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),t(p=>!p))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),me.useEffect(()=>{let c=!1;return(async()=>{const h=await So(a);c||u(h)})(),()=>{c=!0}},[a]);const l=me.useMemo(()=>{const c=[];if(!s)return c;const h=s.sidebar;return(h?.collections?.guide?.sections??h?.sections??[]).forEach(b=>{b.path&&c.push({title:b.title,to:`/${a}${b.path}`}),(b.children||[]).forEach(T=>{c.push({title:T.title,to:`/${a}${T.path}`})})}),c},[s,a]),d=c=>{t(!1),r(c)};return m.jsx(tp,{open:e,onOpenChange:t,children:m.jsxs($s,{children:[m.jsx(LC,{placeholder:a==="en"?"Type a command or search...":"输入命令或搜索..."}),m.jsxs(PC,{children:[m.jsx(FC,{children:a==="en"?"No results found.":"未找到结果"}),m.jsx(js,{heading:a==="en"?"Navigation":"导航",children:l.map(c=>m.jsxs(Ar,{onSelect:()=>d(c.to),children:[c.title,m.jsx(BC,{children:"↵"})]},c.to))}),m.jsx(np,{}),m.jsxs(js,{heading:a==="en"?"Theme":"主题",children:[m.jsx(Ar,{onSelect:()=>o("light"),children:a==="en"?"Light":"浅色"}),m.jsx(Ar,{onSelect:()=>o("dark"),children:a==="en"?"Dark":"深色"}),m.jsx(Ar,{onSelect:()=>o("system"),children:a==="en"?"System":"跟随系统"})]}),m.jsx(np,{}),m.jsxs(js,{heading:a==="en"?"Actions":"操作",children:[m.jsx(Ar,{onSelect:()=>{t(!1),window.location.reload()},children:a==="en"?"Reload Page":"刷新页面"}),m.jsx(Ar,{onSelect:()=>{t(!1),navigator.clipboard.writeText(window.location.href)},children:a==="en"?"Copy URL":"复制链接"})]})]})]})})}function aP(e){const t=e.split(`
198
248
  `);let n={},r=0;if(t[0]?.startsWith("---")){let i=1;for(;i<t.length&&!t[i]?.startsWith("---");){const a=t[i],o=a.indexOf(":");if(o>0){const s=a.substring(0,o).trim(),u=a.substring(o+1).trim();u==="true"||u==="false"?n[s]=u==="true":isNaN(Number(u))?n[s]=u:n[s]=Number(u)}i++}i<t.length&&t[i]?.startsWith("---")&&(r=i+1)}return{data:n,content:t.slice(r).join(`
199
- `)}}function Cl(){const e=Je.useParams(),t=e.lang,n=e["*"],r=me.useMemo(()=>t||"zh-cn",[t]),[i,a]=me.useState(null),[o,s]=me.useState(""),[u,l]=me.useState(null),[d,c]=me.useState(!0),[h,p]=me.useState(!0);return me.useEffect(()=>{let g=!1;return c(!0),(async()=>{try{const b=await yo(r);g||a(b)}catch(b){console.error(b),g||a(null)}finally{g||c(!1)}})(),()=>{g=!0}},[r]),me.useEffect(()=>{let g=!1;p(!0);const T=`/docs/${r}/${n||"index"}.md`;return(async()=>{try{console.log("Fetching document:",T);const _=await fetch(T),x=_.headers.get("content-type");if(!_.ok||!x||!x.includes("text/markdown")&&!x.includes("text/plain"))throw new Error(`File not found or invalid content type for: ${T}`);const N=await _.text();if(g)return;console.log("Parsing markdown with custom parser...");const{data:k,content:O}=G3(N);l(k),s(O)}catch(_){if(console.error("Error loading document:",_),g)return;const x=`# 404 - Not Found
249
+ `)}}function xl(){const e=We.useParams(),t=e.lang,n=e["*"],r=me.useMemo(()=>t||"zh-cn",[t]),[i,a]=me.useState(null),[o,s]=me.useState(""),[u,l]=me.useState(null),[d,c]=me.useState(!0),[h,p]=me.useState(!0);return me.useEffect(()=>{let E=!1;return c(!0),(async()=>{try{const b=await So(r);E||a(b)}catch(b){console.error(b),E||a(null)}finally{E||c(!1)}})(),()=>{E=!0}},[r]),me.useEffect(()=>{let E=!1;p(!0);const T=`/docs/${r}/${n||"index"}.md`;return(async()=>{try{console.log("Fetching document:",T);const _=await fetch(T),C=_.headers.get("content-type");if(!_.ok||!C||!C.includes("text/markdown")&&!C.includes("text/plain"))throw new Error(`File not found or invalid content type for: ${T}`);const N=await _.text();if(E)return;console.log("Parsing markdown with custom parser...");const{data:I,content:O}=aP(N);l(I),s(O)}catch(_){if(console.error("Error loading document:",_),E)return;const C=`# 404 - Not Found
200
250
 
201
- The page you're looking for at \``+T+"` could not be found.";s(x),l({title:"Not Found"})}finally{g||p(!1)}})(),()=>{g=!0}},[r,n]),d&&!i?E.jsx("div",{children:"Loading..."}):E.jsx(ch,{lang:r,config:i,frontmatter:u,children:h&&!o?E.jsx("div",{children:"Loading..."}):E.jsx(TE,{source:o})})}function W3(){return E.jsx(jl,{defaultTheme:"system",storageKey:"vite-ui-theme",children:E.jsxs(j3,{children:[E.jsx(Y3,{}),E.jsx(Je.Outlet,{})]})})}function K3(){const e=me.useMemo(()=>Je.createBrowserRouter([{path:"/",element:E.jsx(W3,{}),children:[{index:!0,element:E.jsx(Cl,{})},{path:":lang",element:E.jsx(Cl,{})},{path:":lang/*",element:E.jsx(Cl,{})}]}]),[]);return E.jsx(Je.RouterProvider,{router:e})}ae.Collapsible=Wf,ae.CollapsibleContent=Kf,ae.CollapsibleTrigger=ws,ae.Command=$s,ae.CommandDialog=qh,ae.ContextMenu=yp,ae.ContextMenuCheckboxItem=Np,ae.ContextMenuContent=Ks,ae.ContextMenuItem=rt,ae.ContextMenuLabel=fi,ae.ContextMenuRadioGroup=Ws,ae.ContextMenuRadioItem=Wn,ae.ContextMenuSeparator=hi,ae.ContextMenuShortcut=Dp,ae.ContextMenuSub=Fa,ae.ContextMenuSubContent=di,ae.ContextMenuSubTrigger=ci,ae.ContextMenuTrigger=Sp,ae.Dialog=jh,ae.DialogClose=bx,ae.DialogContent=Yh,ae.DialogDescription=Kh,ae.DialogFooter=Tx,ae.DialogHeader=Gh,ae.DialogTitle=Wh,ae.DialogTrigger=gx,ae.DocsApp=K3,ae.DocsLayout=ch,ae.DropdownMenu=_s,ae.DropdownMenuCheckboxItem=yf,ae.DropdownMenuContent=Ca,ae.DropdownMenuGroup=zA,ae.DropdownMenuItem=mr,ae.DropdownMenuLabel=Nf,ae.DropdownMenuPortal=$A,ae.DropdownMenuRadioGroup=YA,ae.DropdownMenuRadioItem=Sf,ae.DropdownMenuSeparator=Df,ae.DropdownMenuShortcut=wf,ae.DropdownMenuSub=jA,ae.DropdownMenuSubContent=xf,ae.DropdownMenuSubTrigger=Cf,ae.DropdownMenuTrigger=Ts,ae.HeaderNav=zf,ae.LanguageSwitcher=vf,ae.MdxContent=TE,ae.ModeToggle=If,ae.ScrollArea=Os,ae.SidebarNav=qf,ae.TableOfContents=Vf,ae.ThemeProvider=jl,ae.Tooltip=Na,ae.TooltipContent=si,ae.TooltipProvider=Sa,ae.TooltipTrigger=Da,ae.buttonVariants=Ro,ae.cn=xe,ae.getConfig=yo,ae.useTheme=qr,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
251
+ The page you're looking for at \``+T+"` could not be found.";s(C),l({title:"Not Found"})}finally{E||p(!1)}})(),()=>{E=!0}},[r,n]),d&&!i?m.jsx("div",{children:"Loading..."}):m.jsx(gh,{lang:r,config:i,frontmatter:u,children:h&&!o?m.jsx("div",{children:"Loading..."}):m.jsx(DE,{source:o})})}function oP(){return m.jsx(Wl,{defaultTheme:"system",storageKey:"vite-ui-theme",children:m.jsxs(rP,{children:[m.jsx(iP,{}),m.jsx(We.Outlet,{})]})})}function sP(){const e=me.useMemo(()=>We.createBrowserRouter([{path:"/",element:m.jsx(oP,{}),children:[{index:!0,element:m.jsx(xl,{})},{path:":lang",element:m.jsx(xl,{})},{path:":lang/*",element:m.jsx(xl,{})}]}]),[]);return m.jsx(We.RouterProvider,{router:e})}re.Badge=ph,re.Collapsible=Vf,re.CollapsibleContent=Xf,re.CollapsibleTrigger=ws,re.Command=$s,re.CommandDialog=tp,re.ContextMenu=Ip,re.ContextMenuCheckboxItem=Rp,re.ContextMenuContent=Ks,re.ContextMenuItem=it,re.ContextMenuLabel=mi,re.ContextMenuRadioGroup=Ws,re.ContextMenuRadioItem=Wn,re.ContextMenuSeparator=gi,re.ContextMenuShortcut=Mp,re.ContextMenuSub=Ba,re.ContextMenuSubContent=pi,re.ContextMenuSubTrigger=hi,re.ContextMenuTrigger=Op,re.Dialog=Xh,re.DialogClose=OC,re.DialogContent=Qh,re.DialogDescription=ep,re.DialogFooter=MC,re.DialogHeader=Zh,re.DialogTitle=Jh,re.DialogTrigger=kC,re.DocsApp=sP,re.DocsLayout=gh,re.DropdownMenu=_s,re.DropdownMenuCheckboxItem=Df,re.DropdownMenuContent=Na,re.DropdownMenuGroup=tx,re.DropdownMenuItem=mr,re.DropdownMenuLabel=vf,re.DropdownMenuPortal=nx,re.DropdownMenuRadioGroup=ix,re.DropdownMenuRadioItem=wf,re.DropdownMenuSeparator=kf,re.DropdownMenuShortcut=If,re.DropdownMenuSub=rx,re.DropdownMenuSubContent=Nf,re.DropdownMenuSubTrigger=Sf,re.DropdownMenuTrigger=Ts,re.Footer=mh,re.HeaderNav=Yf,re.Label=Eh,re.LanguageSwitcher=Of,re.MdxContent=DE,re.ModeToggle=Rf,re.ScrollArea=Os,re.Separator=hh,re.SidebarNav=Qf,re.TableOfContents=Zf,re.ThemeProvider=Wl,re.Tooltip=li,re.TooltipContent=Er,re.TooltipProvider=ui,re.TooltipTrigger=ci,re.buttonVariants=ea,re.cn=_e,re.getConfig=So,re.useTheme=Vr,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});
202
252
  //# sourceMappingURL=react-docs-ui.umd.js.map