diff --git a/asset-manifest.json b/asset-manifest.json index 1e8b4f07b..6649db25d 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,30 +1,30 @@ { "files": { "main.css": "/static/css/main.6ef0c5a4.css", - "main.js": "/static/js/main.10e0e69f.js", + "main.js": "/static/js/main.16630395.js", "static/css/313.b92d3464.chunk.css": "/static/css/313.b92d3464.chunk.css", - "static/js/313.a77bf974.chunk.js": "/static/js/313.a77bf974.chunk.js", - "static/js/914.6d1bf002.chunk.js": "/static/js/914.6d1bf002.chunk.js", - "static/js/288.9e072245.chunk.js": "/static/js/288.9e072245.chunk.js", - "static/js/995.fef50f1f.chunk.js": "/static/js/995.fef50f1f.chunk.js", - "static/js/328.9446e17a.chunk.js": "/static/js/328.9446e17a.chunk.js", - "static/js/563.a6213746.chunk.js": "/static/js/563.a6213746.chunk.js", - "static/js/993.487d199d.chunk.js": "/static/js/993.487d199d.chunk.js", - "static/js/241.ca1ebe4f.chunk.js": "/static/js/241.ca1ebe4f.chunk.js", - "static/js/331.ec3d64b4.chunk.js": "/static/js/331.ec3d64b4.chunk.js", + "static/js/313.10f17ca7.chunk.js": "/static/js/313.10f17ca7.chunk.js", + "static/js/914.ae19d238.chunk.js": "/static/js/914.ae19d238.chunk.js", + "static/js/288.b1130039.chunk.js": "/static/js/288.b1130039.chunk.js", + "static/js/995.c81a2394.chunk.js": "/static/js/995.c81a2394.chunk.js", + "static/js/328.862b6975.chunk.js": "/static/js/328.862b6975.chunk.js", + "static/js/563.06116de6.chunk.js": "/static/js/563.06116de6.chunk.js", + "static/js/993.7caf02ba.chunk.js": "/static/js/993.7caf02ba.chunk.js", + "static/js/241.9d3e8205.chunk.js": "/static/js/241.9d3e8205.chunk.js", + "static/js/331.70a60209.chunk.js": "/static/js/331.70a60209.chunk.js", "static/js/791.e00c70cb.chunk.js": "/static/js/791.e00c70cb.chunk.js", - "static/js/984.6329826d.chunk.js": "/static/js/984.6329826d.chunk.js", - "static/js/999.121c720d.chunk.js": "/static/js/999.121c720d.chunk.js", - "static/js/674.2c00851e.chunk.js": "/static/js/674.2c00851e.chunk.js", - "static/js/734.b992ef51.chunk.js": "/static/js/734.b992ef51.chunk.js", - "static/js/494.a4c12fe4.chunk.js": "/static/js/494.a4c12fe4.chunk.js", - "static/js/369.eb99df79.chunk.js": "/static/js/369.eb99df79.chunk.js", - "static/js/696.3e866dad.chunk.js": "/static/js/696.3e866dad.chunk.js", - "static/js/131.f0d03ea1.chunk.js": "/static/js/131.f0d03ea1.chunk.js", - "static/js/875.97dde8f2.chunk.js": "/static/js/875.97dde8f2.chunk.js", - "static/js/907.0a726bf9.chunk.js": "/static/js/907.0a726bf9.chunk.js", - "static/js/522.5dd23c9f.chunk.js": "/static/js/522.5dd23c9f.chunk.js", - "static/js/73.92a88990.chunk.js": "/static/js/73.92a88990.chunk.js", + "static/js/984.35aac447.chunk.js": "/static/js/984.35aac447.chunk.js", + "static/js/999.372d8c90.chunk.js": "/static/js/999.372d8c90.chunk.js", + "static/js/674.6dce0ead.chunk.js": "/static/js/674.6dce0ead.chunk.js", + "static/js/734.4937948a.chunk.js": "/static/js/734.4937948a.chunk.js", + "static/js/494.785fbe56.chunk.js": "/static/js/494.785fbe56.chunk.js", + "static/js/369.cac19222.chunk.js": "/static/js/369.cac19222.chunk.js", + "static/js/696.868ec7b2.chunk.js": "/static/js/696.868ec7b2.chunk.js", + "static/js/131.7ba6f900.chunk.js": "/static/js/131.7ba6f900.chunk.js", + "static/js/875.b5eef5f2.chunk.js": "/static/js/875.b5eef5f2.chunk.js", + "static/js/907.b674dc66.chunk.js": "/static/js/907.b674dc66.chunk.js", + "static/js/522.eb20bfc8.chunk.js": "/static/js/522.eb20bfc8.chunk.js", + "static/js/73.1cd15522.chunk.js": "/static/js/73.1cd15522.chunk.js", "static/js/950.35664049.chunk.js": "/static/js/950.35664049.chunk.js", "static/js/185.c21b3d1a.chunk.js": "/static/js/185.c21b3d1a.chunk.js", "static/js/199.84a53354.chunk.js": "/static/js/199.84a53354.chunk.js", @@ -50,35 +50,35 @@ "refractor-vendor.js": "/static/js/refractor-vendor.c5f44634.chunk.js", "react-vendor.js": "/static/js/react-vendor.9874219f.js", "static/css/920.b716e98e.chunk.css": "/static/css/920.b716e98e.chunk.css", - "static/js/920.b8e8352a.chunk.js": "/static/js/920.b8e8352a.chunk.js", - "static/js/571.f2fe434b.chunk.js": "/static/js/571.f2fe434b.chunk.js", + "static/js/920.d62977d1.chunk.js": "/static/js/920.d62977d1.chunk.js", + "static/js/571.7d7437b7.chunk.js": "/static/js/571.7d7437b7.chunk.js", "index.html": "/index.html", "static/media/home.svg": "/static/media/home.7d51f25c64fe597ec540c3e724748f4e.svg", "main.6ef0c5a4.css.map": "/static/css/main.6ef0c5a4.css.map", - "main.10e0e69f.js.map": "/static/js/main.10e0e69f.js.map", + "main.16630395.js.map": "/static/js/main.16630395.js.map", "313.b92d3464.chunk.css.map": "/static/css/313.b92d3464.chunk.css.map", - "313.a77bf974.chunk.js.map": "/static/js/313.a77bf974.chunk.js.map", - "914.6d1bf002.chunk.js.map": "/static/js/914.6d1bf002.chunk.js.map", - "288.9e072245.chunk.js.map": "/static/js/288.9e072245.chunk.js.map", - "995.fef50f1f.chunk.js.map": "/static/js/995.fef50f1f.chunk.js.map", - "328.9446e17a.chunk.js.map": "/static/js/328.9446e17a.chunk.js.map", - "563.a6213746.chunk.js.map": "/static/js/563.a6213746.chunk.js.map", - "993.487d199d.chunk.js.map": "/static/js/993.487d199d.chunk.js.map", - "241.ca1ebe4f.chunk.js.map": "/static/js/241.ca1ebe4f.chunk.js.map", - "331.ec3d64b4.chunk.js.map": "/static/js/331.ec3d64b4.chunk.js.map", + "313.10f17ca7.chunk.js.map": "/static/js/313.10f17ca7.chunk.js.map", + "914.ae19d238.chunk.js.map": "/static/js/914.ae19d238.chunk.js.map", + "288.b1130039.chunk.js.map": "/static/js/288.b1130039.chunk.js.map", + "995.c81a2394.chunk.js.map": "/static/js/995.c81a2394.chunk.js.map", + "328.862b6975.chunk.js.map": "/static/js/328.862b6975.chunk.js.map", + "563.06116de6.chunk.js.map": "/static/js/563.06116de6.chunk.js.map", + "993.7caf02ba.chunk.js.map": "/static/js/993.7caf02ba.chunk.js.map", + "241.9d3e8205.chunk.js.map": "/static/js/241.9d3e8205.chunk.js.map", + "331.70a60209.chunk.js.map": "/static/js/331.70a60209.chunk.js.map", "791.e00c70cb.chunk.js.map": "/static/js/791.e00c70cb.chunk.js.map", - "984.6329826d.chunk.js.map": "/static/js/984.6329826d.chunk.js.map", - "999.121c720d.chunk.js.map": "/static/js/999.121c720d.chunk.js.map", - "674.2c00851e.chunk.js.map": "/static/js/674.2c00851e.chunk.js.map", - "734.b992ef51.chunk.js.map": "/static/js/734.b992ef51.chunk.js.map", - "494.a4c12fe4.chunk.js.map": "/static/js/494.a4c12fe4.chunk.js.map", - "369.eb99df79.chunk.js.map": "/static/js/369.eb99df79.chunk.js.map", - "696.3e866dad.chunk.js.map": "/static/js/696.3e866dad.chunk.js.map", - "131.f0d03ea1.chunk.js.map": "/static/js/131.f0d03ea1.chunk.js.map", - "875.97dde8f2.chunk.js.map": "/static/js/875.97dde8f2.chunk.js.map", - "907.0a726bf9.chunk.js.map": "/static/js/907.0a726bf9.chunk.js.map", - "522.5dd23c9f.chunk.js.map": "/static/js/522.5dd23c9f.chunk.js.map", - "73.92a88990.chunk.js.map": "/static/js/73.92a88990.chunk.js.map", + "984.35aac447.chunk.js.map": "/static/js/984.35aac447.chunk.js.map", + "999.372d8c90.chunk.js.map": "/static/js/999.372d8c90.chunk.js.map", + "674.6dce0ead.chunk.js.map": "/static/js/674.6dce0ead.chunk.js.map", + "734.4937948a.chunk.js.map": "/static/js/734.4937948a.chunk.js.map", + "494.785fbe56.chunk.js.map": "/static/js/494.785fbe56.chunk.js.map", + "369.cac19222.chunk.js.map": "/static/js/369.cac19222.chunk.js.map", + "696.868ec7b2.chunk.js.map": "/static/js/696.868ec7b2.chunk.js.map", + "131.7ba6f900.chunk.js.map": "/static/js/131.7ba6f900.chunk.js.map", + "875.b5eef5f2.chunk.js.map": "/static/js/875.b5eef5f2.chunk.js.map", + "907.b674dc66.chunk.js.map": "/static/js/907.b674dc66.chunk.js.map", + "522.eb20bfc8.chunk.js.map": "/static/js/522.eb20bfc8.chunk.js.map", + "73.1cd15522.chunk.js.map": "/static/js/73.1cd15522.chunk.js.map", "950.35664049.chunk.js.map": "/static/js/950.35664049.chunk.js.map", "185.c21b3d1a.chunk.js.map": "/static/js/185.c21b3d1a.chunk.js.map", "199.84a53354.chunk.js.map": "/static/js/199.84a53354.chunk.js.map", @@ -104,12 +104,12 @@ "refractor-vendor.c5f44634.chunk.js.map": "/static/js/refractor-vendor.c5f44634.chunk.js.map", "react-vendor.9874219f.js.map": "/static/js/react-vendor.9874219f.js.map", "920.b716e98e.chunk.css.map": "/static/css/920.b716e98e.chunk.css.map", - "920.b8e8352a.chunk.js.map": "/static/js/920.b8e8352a.chunk.js.map", - "571.f2fe434b.chunk.js.map": "/static/js/571.f2fe434b.chunk.js.map" + "920.d62977d1.chunk.js.map": "/static/js/920.d62977d1.chunk.js.map", + "571.7d7437b7.chunk.js.map": "/static/js/571.7d7437b7.chunk.js.map" }, "entrypoints": [ "static/js/react-vendor.9874219f.js", "static/css/main.6ef0c5a4.css", - "static/js/main.10e0e69f.js" + "static/js/main.16630395.js" ] } \ No newline at end of file diff --git a/coverage/CONTRIBUTORS.svg b/coverage/CONTRIBUTORS.svg index 5b1fb2cc9..8ef8c3801 100644 --- a/coverage/CONTRIBUTORS.svg +++ b/coverage/CONTRIBUTORS.svg @@ -20,7 +20,9 @@ + + - + \ No newline at end of file diff --git a/coverage/badges.svg b/coverage/badges.svg index e2671ad6c..116f2f5f1 100644 --- a/coverage/badges.svg +++ b/coverage/badges.svg @@ -1,14 +1,14 @@ coverage: 98.53% - + - - + + - +

All files / color-alpha/
\ No newline at end of file +Color picker component for React.
\ No newline at end of file diff --git a/static/js/131.7ba6f900.chunk.js b/static/js/131.7ba6f900.chunk.js new file mode 100644 index 000000000..1595bc16c --- /dev/null +++ b/static/js/131.7ba6f900.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[131],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),a=r(3235),o=r(9424);const n=a.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,d=a.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=a.Ay.div` + padding-bottom: 120px; +`,l=a.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=a.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,o.jsxs)(h,{className:"wmde-markdown-var",children:[(0,o.jsxs)(n,{children:[this.editorUrl&&(0,o.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,o.jsxs)(c,{children:[(0,o.jsx)("h3",{children:"Example"}),this.example]}),(0,o.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,o.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,o.jsxs)(l,{children:[(0,o.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,o.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,o.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,o.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7070:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var s=r(7804),i=r(9571),a=r(3623),o=r(7980),n=r(9424);function d(){const{hsva:t,dispatch:e}=(0,s.useContext)(o.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(i.default,{hsva:t,onChange:r=>{e({hsva:{...t,...r}})}})})}class h extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-shade-slider/README.md",this.getMdStr=()=>r.e(256).then(r.bind(r,6256)),this.example=(0,n.jsx)(d,{})}}},9571:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>c});var s=r(8102),i=r(9257),a=r(7804),o=r(2945),n=r(1636),d=r(9424),h=["prefixCls","className","onChange","direction","hsva"],l=a.forwardRef(((t,e)=>{var{prefixCls:r="w-color-saturation",className:a,onChange:l,direction:c="horizontal",hsva:p}=t,g=(0,i.A)(t,h),u=(0,o.hsvaToHslaString)((0,s.A)({},p,{a:1,v:100}));return(0,d.jsx)(n.default,(0,s.A)({ref:e},g,{className:r+" "+(a||""),hsva:{h:p.h,s:p.s,v:p.v,a:1-p.v/100},direction:c,background:"linear-gradient(to "+("horizontal"===c?"right":"bottom")+", "+u+", rgb(0, 0, 0))",onChange:(t,e)=>{l&&l({v:"horizontal"===c?100-100*e.left:100-100*e.top})}}))}));l.displayName="ShadeSlider";const c=l}}]); +//# sourceMappingURL=131.7ba6f900.chunk.js.map \ No newline at end of file diff --git a/static/js/131.7ba6f900.chunk.js.map b/static/js/131.7ba6f900.chunk.js.map new file mode 100644 index 000000000..f392375f8 --- /dev/null +++ b/static/js/131.7ba6f900.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/131.7ba6f900.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,G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EAA2BK,EAAAA,YAAiB,CAACzC,EAAO0C,KACtD,IAAI,UACAC,EAAY,qBAAoB,UAChCxB,EACAkB,SAAUO,EAAS,UACnBC,EAAY,aAAY,KACxBd,GACE/B,EACJ8C,GAAQC,EAAAA,EAAAA,GAA8B/C,EAAOwC,GAC3CQ,GAAYC,EAAAA,EAAAA,mBAAiBC,EAAAA,EAAAA,GAAS,CAAC,EAAGnB,EAAM,CAClDvC,EAAG,EACH2D,EAAG,OAEL,OAAoB9B,EAAAA,EAAAA,KAAK+B,EAAAA,SAAOF,EAAAA,EAAAA,GAAS,CACvCR,IAAKA,GACJI,EAAO,CACR3B,UAAWwB,EAAY,KAAOxB,GAAa,IAC3CY,KAAM,CACJsB,EAAGtB,EAAKsB,EACRC,EAAGvB,EAAKuB,EACRH,EAAGpB,EAAKoB,EACR3D,EAAG,EAAIuC,EAAKoB,EAAI,KAElBN,UAAWA,EACXU,WAAY,uBAAuC,eAAdV,EAA6B,QAAU,UAAY,KAAOG,EAAY,kBAC3GX,SAAUA,CAACmB,EAAGC,KACZb,GAAaA,EAAU,CACrBO,EAAiB,eAAdN,EAA6B,IAAyB,IAAnBY,EAAYC,KAAa,IAAwB,IAAlBD,EAAYE,KACjF,IAEH,IAELvB,EAAYwB,YAAc,cAC1B,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/shade-slider/index.tsx","../../packages/color-shade-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newShade } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-shade-slider/README.md';\n getMdStr = () => import('@uiw/react-color-shade-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nimport React from 'react';\nimport { hsvaToHslaString } from '@uiw/color-convert';\nimport Alpha from '@uiw/react-color-alpha';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar ShadeSlider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-saturation',\n className,\n onChange: _onChange,\n direction = 'horizontal',\n hsva\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var colorFrom = hsvaToHslaString(_extends({}, hsva, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/_jsx(Alpha, _extends({\n ref: ref\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n hsva: {\n h: hsva.h,\n s: hsva.s,\n v: hsva.v,\n a: 1 - hsva.v / 100\n },\n direction: direction,\n background: \"linear-gradient(to \" + (direction === 'horizontal' ? 'right' : 'bottom') + \", \" + colorFrom + \", rgb(0, 0, 0))\",\n onChange: (_, interaction) => {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nexport default ShadeSlider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","ShadeSlider","onChange","newShade","arguments","_excluded","React","ref","prefixCls","_onChange","direction","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","v","Alpha","h","s","background","_","interaction","left","top","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/131.f0d03ea1.chunk.js b/static/js/131.f0d03ea1.chunk.js deleted file mode 100644 index 7deb8c4b3..000000000 --- a/static/js/131.f0d03ea1.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[131],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>j});var s,i,n,a,o,d=r(114),h=r(7804),l=r(52),c=r(3235),p=r(9424);const g=c.Ay.div(s||(s=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=c.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=c.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=c.Ay.footer(a||(a=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=c.Ay.div(o||(o=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(l.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7070:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var s=r(7804),i=r(9571),n=r(3623),a=r(7980),o=r(9424);function d(){const{hsva:t,dispatch:e}=(0,s.useContext)(a.ob);return(0,o.jsx)("div",{style:{width:256},children:(0,o.jsx)(i.default,{hsva:t,onChange:r=>{e({hsva:{...t,...r}})}})})}class h extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-shade-slider/README.md",this.getMdStr=()=>r.e(256).then(r.bind(r,6256)),this.example=(0,o.jsx)(d,{})}}},9571:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>c});var s=r(8102),i=r(9257),n=r(7804),a=r(2945),o=r(1636),d=r(9424),h=["prefixCls","className","onChange","direction","hsva"],l=n.forwardRef(((t,e)=>{var{prefixCls:r="w-color-saturation",className:n,onChange:l,direction:c="horizontal",hsva:p}=t,g=(0,i.A)(t,h),u=(0,a.hsvaToHslaString)((0,s.A)({},p,{a:1,v:100}));return(0,d.jsx)(o.default,(0,s.A)({ref:e},g,{className:r+" "+(n||""),hsva:{h:p.h,s:p.s,v:p.v,a:1-p.v/100},direction:c,background:"linear-gradient(to "+("horizontal"===c?"right":"bottom")+", "+u+", rgb(0, 0, 0))",onChange:(t,e)=>{l&&l({v:"horizontal"===c?100-100*e.left:100-100*e.top})}}))}));l.displayName="ShadeSlider";const c=l}}]); -//# sourceMappingURL=131.f0d03ea1.chunk.js.map \ No newline at end of file diff --git a/static/js/131.f0d03ea1.chunk.js.map b/static/js/131.f0d03ea1.chunk.js.map deleted file mode 100644 index edefc5fd2..000000000 --- a/static/js/131.f0d03ea1.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/131.f0d03ea1.chunk.js","mappings":"6EAAA,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Y,EAAYC,KAAa,IAAwB,IAAlBD,EAAYE,KACjF,IAEH,IAELvB,EAAYwB,YAAc,cAC1B,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/shade-slider/index.tsx","../../packages/color-shade-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport ShadeSlider from '@uiw/react-color-shade-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newShade } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-shade-slider/README.md';\n getMdStr = () => import('@uiw/react-color-shade-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"onChange\", \"direction\", \"hsva\"];\nimport React from 'react';\nimport { hsvaToHslaString } from '@uiw/color-convert';\nimport Alpha from '@uiw/react-color-alpha';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar ShadeSlider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-saturation',\n className,\n onChange: _onChange,\n direction = 'horizontal',\n hsva\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var colorFrom = hsvaToHslaString(_extends({}, hsva, {\n a: 1,\n v: 100\n }));\n return /*#__PURE__*/_jsx(Alpha, _extends({\n ref: ref\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n hsva: {\n h: hsva.h,\n s: hsva.s,\n v: hsva.v,\n a: 1 - hsva.v / 100\n },\n direction: direction,\n background: \"linear-gradient(to \" + (direction === 'horizontal' ? 'right' : 'bottom') + \", \" + colorFrom + \", rgb(0, 0, 0))\",\n onChange: (_, interaction) => {\n _onChange && _onChange({\n v: direction === 'horizontal' ? 100 - interaction.left * 100 : 100 - interaction.top * 100\n });\n }\n }));\n});\nShadeSlider.displayName = 'ShadeSlider';\nexport default ShadeSlider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","ShadeSlider","onChange","newShade","arguments","_excluded","React","ref","prefixCls","_onChange","direction","other","_objectWithoutPropertiesLoose","colorFrom","hsvaToHslaString","_extends","v","Alpha","h","s","background","_","interaction","left","top","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/241.9d3e8205.chunk.js b/static/js/241.9d3e8205.chunk.js new file mode 100644 index 000000000..6444c2003 --- /dev/null +++ b/static/js/241.9d3e8205.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[241],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var o=r(7804),a=r(52),s=r(3235),i=r(9424);const n=s.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,l=s.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=s.Ay.div` + padding-bottom: 120px; +`,d=s.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,p=s.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class c extends o.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,i.jsxs)(h,{className:"wmde-markdown-var",children:[(0,i.jsxs)(n,{children:[this.editorUrl&&(0,i.jsx)(l,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,i.jsxs)(p,{children:[(0,i.jsx)("h3",{children:"Example"}),this.example]}),(0,i.jsx)(a.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,i.jsx)(l,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,i.jsxs)(d,{children:[(0,i.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,i.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,i.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1232:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var o=r(7804),a=r(2051),s=r(3623),i=r(7980),n=r(9424);function l(){const{hsva:t,dispatch:e}=(0,o.useContext)(i.ob);return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem"},children:[(0,n.jsx)(a.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.Top,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.TopLeft,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.Left,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.Right,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,n.jsx)(a.default,{placement:a.GithubPlacement.BottomLeft,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.Bottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,n.jsx)(a.default,{color:t,placement:a.GithubPlacement.BottomRight,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]})]})}class h extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-github/README.md",this.getMdStr=()=>r.e(546).then(r.bind(r,2165)),this.example=(0,n.jsx)(l,{})}}},2051:(t,e,r)=>{"use strict";r.r(e),r.d(e,{GithubPlacement:()=>u,default:()=>x});var o=r(9520),a=r(8102),s=r(9257),i=r(7804),n=r(2945),l=r(6966),h=r(9424),d={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function p(t){var{style:e,title:r,checked:o,color:s,onClick:n,rectProps:l}=t,p=(0,i.useRef)(null),c=(0,i.useCallback)((()=>{p.current.style.zIndex="2",p.current.style.outline="#fff solid 2px",p.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),g=(0,i.useCallback)((()=>{o||(p.current.style.zIndex="0",p.current.style.outline="initial",p.current.style.boxShadow="initial")}),[o]),u=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,h.jsx)("div",(0,a.A)({ref:p,title:r},l,{onClick:n,onMouseEnter:c,onMouseLeave:g,style:(0,a.A)({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},d,u,null==l?void 0:l.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],g=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],u=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),b=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-github",placement:d=u.TopRight,className:b,style:x,color:m,colors:f=g,rectProps:v={},onChange:j,rectRender:w}=t,C=(0,s.A)(t,c),B="string"===typeof m&&(0,n.validHex)(m)?(0,n.hexToHsva)(m):m,R=m?(0,n.hsvaToHex)(B):"",T=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},y=(0,a.A)({},k),L=(0,a.A)({},k);/^T/.test(d)&&(y.borderWidth="0 8px 8px",y.borderColor="transparent transparent var(--github-arrow-border-color)",L.borderWidth="0 7px 7px",L.borderColor="transparent transparent var(--github-background-color)"),d===u.TopRight&&(y.top=-8,L.top=-7),d===u.Top&&(y.top=-8,L.top=-7),d===u.TopLeft&&(y.top=-8,L.top=-7),/^B/.test(d)&&(y.borderWidth="8px 8px 0",y.borderColor="var(--github-arrow-border-color) transparent transparent",L.borderWidth="7px 7px 0",L.borderColor="var(--github-background-color) transparent transparent",d===u.BottomRight&&(y.top="100%",L.top="100%"),d===u.Bottom&&(y.top="100%",L.top="100%"),d===u.BottomLeft&&(y.top="100%",L.top="100%")),/^(B|T)/.test(d)&&(d!==u.Top&&d!==u.Bottom||(y.left="50%",y.marginLeft=-8,L.left="50%",L.marginLeft=-7),d!==u.TopRight&&d!==u.BottomRight||(y.right=10,L.right=11),d!==u.TopLeft&&d!==u.BottomLeft||(y.left=7,L.left=8)),/^L/.test(d)&&(y.borderWidth="8px 8px 8px 0",y.borderColor="transparent var(--github-arrow-border-color) transparent transparent",L.borderWidth="7px 7px 7px 0",L.borderColor="transparent var(--github-background-color) transparent transparent",y.left=-8,L.left=-7),/^R/.test(d)&&(y.borderWidth="8px 0 8px 8px",y.borderColor="transparent transparent transparent var(--github-arrow-border-color)",L.borderWidth="7px 0 7px 7px",L.borderColor="transparent transparent transparent var(--github-background-color)",y.right=-8,L.right=-7),/^(L|R)/.test(d)&&(d!==u.RightTop&&d!==u.LeftTop||(y.top=5,L.top=6),d!==u.Left&&d!==u.Right||(y.top="50%",L.top="50%",y.marginTop=-8,L.marginTop=-7),d!==u.LeftBottom&&d!==u.RightBottom||(y.top="100%",L.top="100%",y.marginTop=-21,L.marginTop=-20));return(0,h.jsx)(l.default,(0,a.A)({ref:e,className:[r,b].filter(Boolean).join(" "),colors:f,color:R,rectRender:t=>{var e=(0,a.A)({},((0,o.A)(t),t)),r=w&&w((0,a.A)({},e));return r||(0,h.jsx)(p,(0,a.A)({},e,{rectProps:v}))}},C,{onChange:t=>j&&j((0,n.color)(t)),style:T,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)("div",{style:y}),(0,h.jsx)("div",{style:L})]})}))}));b.displayName="Github";const x=b},9520:(t,e,r)=>{"use strict";function o(t){if(null==t)throw new TypeError("Cannot destructure "+t)}r.d(e,{A:()=>o})}}]); +//# sourceMappingURL=241.9d3e8205.chunk.js.map \ No newline at end of file diff --git a/static/js/241.9d3e8205.chunk.js.map b/static/js/241.9d3e8205.chunk.js.map new file mode 100644 index 000000000..7aeaccf36 --- /dev/null +++ b/static/js/241.9d3e8205.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/241.9d3e8205.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B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S,8BCtLA,SAASL,EAA0BM,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/github/index.tsx","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { Fragment, useContext } from 'react';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n \n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-github/README.md';\n getMdStr = () => import('@uiw/react-color-github/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","Fragment","display","gap","Github","color","onChange","placement","GithubPlacement","Top","TopLeft","marginTop","Left","LeftTop","LeftBottom","Right","RightTop","RightBottom","BottomLeft","Bottom","BottomRight","arguments","defalutStyle","marginRight","marginBottom","borderRadius","boxSizing","height","width","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","rectStyle","zIndex","outline","_extends","ref","onMouseEnter","onMouseLeave","_excluded","CORLER_HEX","React","prefixCls","TopRight","colors","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","styleWrapper","background","position","padding","rStyle","borderStyle","arrBrStyl","arrStyl","test","borderWidth","borderColor","top","left","marginLeft","right","Swatch","filter","Boolean","join","_objectDestructuringEmpty","handle","hsv","handleColor","addonBefore","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/241.ca1ebe4f.chunk.js b/static/js/241.ca1ebe4f.chunk.js deleted file mode 100644 index b7fab0fe8..000000000 --- a/static/js/241.ca1ebe4f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[241],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var o,a,n,s,i,l=r(114),h=r(7804),d=r(52),p=r(3235),c=r(9424);const g=p.Ay.div(o||(o=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=p.Ay.a(a||(a=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),b=p.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),x=p.Ay.footer(s||(s=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=p.Ay.div(i||(i=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,c.jsxs)(b,{className:"wmde-markdown-var",children:[(0,c.jsxs)(g,{children:[this.editorUrl&&(0,c.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,c.jsxs)(m,{children:[(0,c.jsx)("h3",{children:"Example"}),this.example]}),(0,c.jsx)(d.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,c.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,c.jsxs)(x,{children:[(0,c.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,c.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,c.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1232:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>h});var o=r(7804),a=r(2051),n=r(3623),s=r(7980),i=r(9424);function l(){const{hsva:t,dispatch:e}=(0,o.useContext)(s.ob);return(0,i.jsxs)(o.Fragment,{children:[(0,i.jsxs)("div",{style:{display:"flex",gap:"1rem"},children:[(0,i.jsx)(a.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.Top,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.TopLeft,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,i.jsx)(a.default,{placement:a.GithubPlacement.Left,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.LeftBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,i.jsx)(a.default,{placement:a.GithubPlacement.Right,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightTop,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.RightBottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:"1rem",marginTop:20},children:[(0,i.jsx)(a.default,{placement:a.GithubPlacement.BottomLeft,color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.Bottom,onChange:r=>{e({hsva:{...t,...r.hsva}})}}),(0,i.jsx)(a.default,{color:t,placement:a.GithubPlacement.BottomRight,onChange:r=>{e({hsva:{...t,...r.hsva}})}})]})]})}class h extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-github/README.md",this.getMdStr=()=>r.e(546).then(r.bind(r,2165)),this.example=(0,i.jsx)(l,{})}}},2051:(t,e,r)=>{"use strict";r.r(e),r.d(e,{GithubPlacement:()=>u,default:()=>x});var o=r(9520),a=r(8102),n=r(9257),s=r(7804),i=r(2945),l=r(6966),h=r(9424),d={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function p(t){var{style:e,title:r,checked:o,color:n,onClick:i,rectProps:l}=t,p=(0,s.useRef)(null),c=(0,s.useCallback)((()=>{p.current.style.zIndex="2",p.current.style.outline="#fff solid 2px",p.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),g=(0,s.useCallback)((()=>{o||(p.current.style.zIndex="0",p.current.style.outline="initial",p.current.style.boxShadow="initial")}),[o]),u=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,h.jsx)("div",(0,a.A)({ref:p,title:r},l,{onClick:i,onMouseEnter:c,onMouseLeave:g,style:(0,a.A)({},e,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},d,u,null==l?void 0:l.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],g=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],u=function(t){return t.Left="L",t.LeftTop="LT",t.LeftBottom="LB",t.Right="R",t.RightTop="RT",t.RightBottom="RB",t.Top="T",t.TopRight="TR",t.TopLeft="TL",t.Bottom="B",t.BottomLeft="BL",t.BottomRight="BR",t}({}),b=s.forwardRef(((t,e)=>{var{prefixCls:r="w-color-github",placement:d=u.TopRight,className:b,style:x,color:m,colors:f=g,rectProps:v={},onChange:j,rectRender:w}=t,C=(0,n.A)(t,c),B="string"===typeof m&&(0,i.validHex)(m)?(0,i.hexToHsva)(m):m,R=m?(0,i.hsvaToHex)(B):"",T=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},y=(0,a.A)({},k),A=(0,a.A)({},k);/^T/.test(d)&&(y.borderWidth="0 8px 8px",y.borderColor="transparent transparent var(--github-arrow-border-color)",A.borderWidth="0 7px 7px",A.borderColor="transparent transparent var(--github-background-color)"),d===u.TopRight&&(y.top=-8,A.top=-7),d===u.Top&&(y.top=-8,A.top=-7),d===u.TopLeft&&(y.top=-8,A.top=-7),/^B/.test(d)&&(y.borderWidth="8px 8px 0",y.borderColor="var(--github-arrow-border-color) transparent transparent",A.borderWidth="7px 7px 0",A.borderColor="var(--github-background-color) transparent transparent",d===u.BottomRight&&(y.top="100%",A.top="100%"),d===u.Bottom&&(y.top="100%",A.top="100%"),d===u.BottomLeft&&(y.top="100%",A.top="100%")),/^(B|T)/.test(d)&&(d!==u.Top&&d!==u.Bottom||(y.left="50%",y.marginLeft=-8,A.left="50%",A.marginLeft=-7),d!==u.TopRight&&d!==u.BottomRight||(y.right=10,A.right=11),d!==u.TopLeft&&d!==u.BottomLeft||(y.left=7,A.left=8)),/^L/.test(d)&&(y.borderWidth="8px 8px 8px 0",y.borderColor="transparent var(--github-arrow-border-color) transparent transparent",A.borderWidth="7px 7px 7px 0",A.borderColor="transparent var(--github-background-color) transparent transparent",y.left=-8,A.left=-7),/^R/.test(d)&&(y.borderWidth="8px 0 8px 8px",y.borderColor="transparent transparent transparent var(--github-arrow-border-color)",A.borderWidth="7px 0 7px 7px",A.borderColor="transparent transparent transparent var(--github-background-color)",y.right=-8,A.right=-7),/^(L|R)/.test(d)&&(d!==u.RightTop&&d!==u.LeftTop||(y.top=5,A.top=6),d!==u.Left&&d!==u.Right||(y.top="50%",A.top="50%",y.marginTop=-8,A.marginTop=-7),d!==u.LeftBottom&&d!==u.RightBottom||(y.top="100%",A.top="100%",y.marginTop=-21,A.marginTop=-20));return(0,h.jsx)(l.default,(0,a.A)({ref:e,className:[r,b].filter(Boolean).join(" "),colors:f,color:R,rectRender:t=>{var e=(0,a.A)({},((0,o.A)(t),t)),r=w&&w((0,a.A)({},e));return r||(0,h.jsx)(p,(0,a.A)({},e,{rectProps:v}))}},C,{onChange:t=>j&&j((0,i.color)(t)),style:T,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)("div",{style:y}),(0,h.jsx)("div",{style:A})]})}))}));b.displayName="Github";const x=b},9520:(t,e,r)=>{"use strict";function o(t){if(null==t)throw new TypeError("Cannot destructure "+t)}r.d(e,{A:()=>o})}}]); -//# sourceMappingURL=241.ca1ebe4f.chunk.js.map \ No newline at end of file diff --git a/static/js/241.ca1ebe4f.chunk.js.map b/static/js/241.ca1ebe4f.chunk.js.map deleted file mode 100644 index 1d5105eb2..000000000 --- a/static/js/241.ca1ebe4f.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/241.ca1ebe4f.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ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,GAAOe,EAAAA,EAAAA,GAAS,CAAC,EAAG/E,EAAO,CAClDqE,UAAWA,IACV,GAQFqB,EAAO,CACRjD,SAzHiB4E,GAAO5E,GAAYA,GAAS6E,EAAAA,EAAAA,OAAYD,IA0HzD1F,MAAOqE,EACP3B,UAAW,CACT1C,MAAO,CACL+B,YAAa,EACbC,aAAc,EACdC,aAAc,EACdE,OAAQ,GACRC,MAAO,KAGXwD,aAA0BrG,EAAAA,EAAAA,MAAMkB,EAAAA,SAAU,CACxChB,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCM,MAAO2E,KACQjF,EAAAA,EAAAA,KAAK,MAAO,CAC3BM,MAAO4E,SAGV,IAELhE,EAAOiF,YAAc,SACrB,S,8BCtLA,SAASL,EAA0BM,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/github/index.tsx","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { Fragment, useContext } from 'react';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n \n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-github/README.md';\n getMdStr = () => import('@uiw/react-color-github/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","Fragment","display","gap","Github","color","onChange","placement","GithubPlacement","Top","TopLeft","marginTop","Left","LeftTop","LeftBottom","Right","RightTop","RightBottom","BottomLeft","Bottom","BottomRight","arguments","defalutStyle","marginRight","marginBottom","borderRadius","boxSizing","height","width","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","rectStyle","zIndex","outline","_extends","ref","onMouseEnter","onMouseLeave","_excluded","CORLER_HEX","React","prefixCls","TopRight","colors","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","styleWrapper","background","position","padding","rStyle","borderStyle","arrBrStyl","arrStyl","test","borderWidth","borderColor","top","left","marginLeft","right","Swatch","filter","Boolean","join","_objectDestructuringEmpty","handle","hsv","handleColor","addonBefore","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/288.9e072245.chunk.js b/static/js/288.9e072245.chunk.js deleted file mode 100644 index 5c22661cd..000000000 --- a/static/js/288.9e072245.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[288],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,o,a,d=s(114),h=s(7804),c=s(52),l=s(3235),p=s(9424);const g=l.Ay.div(r||(r=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},2329:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h});var r=s(7804),i=s(4342),n=s(3623),o=s(7980),a=s(9424);function d(){const{hsva:t,dispatch:e}=(0,r.useContext)(o.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(i.default,{color:t,onChange:s=>{e({hsva:{...t,...s.hsva}})}})})}class h extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-sketch/README.md",this.getMdStr=()=>s.e(199).then(s.bind(s,8199)),this.example=(0,a.jsx)(d,{})}}}}]); -//# sourceMappingURL=288.9e072245.chunk.js.map \ No newline at end of file diff --git a/static/js/288.9e072245.chunk.js.map b/static/js/288.9e072245.chunk.js.map deleted file mode 100644 index f2b3b150c..000000000 --- a/static/js/288.9e072245.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/288.9e072245.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,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AO,UAASF,UACpEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,yDAAyDC,IAAI,qBAExEV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,4DAA4DC,IAAI,oBAE3EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,8DAA8DC,IAAI,sBAE7EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,0CAA0CC,IAAI,mBAEzDV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASzB,IACP,MAAM,KAAEqC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEd,EAAAA,EAAAA,KAAA,OAAKM,MAAO,CAAES,MAAO,KAAMhB,UACzBC,EAAAA,EAAAA,KAACgB,EAAAA,QAAM,CACLC,MAAON,EACPO,SAAWD,IACTL,EAAU,CAAED,KAAM,IAAKA,KAASM,EAAMN,OAAS,KAKzD,CAEO,MAAMlC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAyC,WAAA,KACtCtC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/sketch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-sketch/README.md';\n getMdStr = () => import('@uiw/react-color-sketch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Sketch","color","onChange","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/288.b1130039.chunk.js b/static/js/288.b1130039.chunk.js new file mode 100644 index 000000000..5d6088f02 --- /dev/null +++ b/static/js/288.b1130039.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[288],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const n=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,d=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(n,{children:[this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},2329:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h});var r=s(7804),i=s(4342),o=s(3623),a=s(7980),n=s(9424);function d(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(i.default,{color:t,onChange:s=>{e({hsva:{...t,...s.hsva}})}})})}class h extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-sketch/README.md",this.getMdStr=()=>s.e(199).then(s.bind(s,8199)),this.example=(0,n.jsx)(d,{})}}}}]); +//# sourceMappingURL=288.b1130039.chunk.js.map \ No newline at end of file diff --git a/static/js/494.a4c12fe4.chunk.js.map b/static/js/288.b1130039.chunk.js.map similarity index 54% rename from static/js/494.a4c12fe4.chunk.js.map rename to static/js/288.b1130039.chunk.js.map index 2f785c0a1..e694d6a8e 100644 --- a/static/js/494.a4c12fe4.chunk.js.map +++ b/static/js/288.b1130039.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js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GG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASzB,IACP,MAAM,KAAEqC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEd,EAAAA,EAAAA,KAAA,OAAKM,MAAO,CAAES,MAAO,KAAMhB,UACzBC,EAAAA,EAAAA,KAACgB,EAAAA,QAAG,CACFC,IAAKN,EAAKO,EACVC,SAAWC,IACTR,EAAU,CAAED,KAAM,IAAKA,KAASS,IAAW,KAKrD,CAEO,MAAM3C,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA2C,WAAA,KACtCxC,UAAY,gCAAgC,KAC5CC,SAAW,IAAM,8BAAyC,KAC1DC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/hue/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Hue from '@uiw/react-color-hue';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newHue } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-hue/README.md';\n getMdStr = () => import('@uiw/react-color-hue/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Hue","hue","h","onChange","newHue","arguments"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/288.b1130039.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+B,OAAO,SAASC,IAAI,aAAaC,KAAM,iDAAiDnB,KAAKH,YAA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AA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASxB,IACP,MAAM,KAAEmC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEb,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAM,CACLC,MAAON,EACPO,SAAWD,IACTL,EAAU,CAAED,KAAM,IAAKA,KAASM,EAAMN,OAAS,KAKzD,CAEO,MAAMjC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAwC,WAAA,KACtCrC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/sketch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Sketch from '@uiw/react-color-sketch';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-sketch/README.md';\n getMdStr = () => import('@uiw/react-color-sketch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Sketch","color","onChange","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/313.10f17ca7.chunk.js b/static/js/313.10f17ca7.chunk.js new file mode 100644 index 000000000..bda6b78d6 --- /dev/null +++ b/static/js/313.10f17ca7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[313],{2313:(e,o,r)=>{r.r(o),r.d(o,{Component:()=>m});var a=r(7804),t=r(8024),l=r(4342),s=r(9262),i=r(4590),n=r(7355),d=r(6801),c=r(2051),h=r(11),x=r(411),p=r(2945),f=r(3623),u=r(7980),g=r(9424);function v(e){return(0,g.jsx)("div",{...e,style:{fontSize:12,padding:"5px 0",color:"#6b6b6b",...e.style},children:e.children})}const b="index_warpper__Ajp1G";function y(){const{hsva:e,dispatch:o}=(0,a.useContext)(u.ob);return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(t.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:60,marginRight:60},children:[(0,g.jsx)(l.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(s.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(i.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],style:{width:252},color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{paddingLeft:20},children:[(0,g.jsx)(n.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginLeft:25},children:[(0,g.jsx)(d.default,{color:e,width:140,height:140,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(c.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]}),(0,g.jsxs)("div",{style:{marginRight:30,marginLeft:30},children:[(0,g.jsx)(h.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 12%) 0px 2px 10px, rgb(0 0 0 / 16%) 0px 2px 5px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(x.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:``})]})]})]})}class m extends f.A{constructor(){super(...arguments),this.displayName="HomePage",this.editorUrl="/packages/color/README.md",this.getMdStr=()=>r.e(950).then(r.bind(r,950)),this.example=(0,g.jsx)(y,{})}}},411:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6966),d=r(9424),c=["prefixCls","className","style","color","colors","onChange"],h=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-block",className:l,style:x,color:p,colors:f=h,onChange:u}=e,g=(0,t.A)(e,c),v="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,b=p?(0,s.hsvaToHex)(v):"",y=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&u&&u((0,s.color)((0,s.hexToHsva)(e)))},m=(0,a.A)({"--block-background-color":"rgb(255, 255, 255)","--block-box-shadow":"rgb(0 0 0 / 10%) 0 1px",width:170,borderRadius:6,background:"var(--block-background-color)",boxShadow:"var(--block-box-shadow)",position:"relative"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l].filter(Boolean).join(" "),style:m},g,{children:[(0,d.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent "+b,position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,d.jsx)("div",{title:b,style:{backgroundColor:""+b,color:(0,s.getContrastingColor)(b),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:b.toLocaleUpperCase()}),(0,d.jsx)(n.default,{colors:f,color:b,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:e=>{u&&u((0,s.color)(e))}}),(0,d.jsx)(i.default,{value:b.toLocaleUpperCase(),onChange:(e,o)=>y(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),y(o.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));x.displayName="Block";const p=x},4590:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(9520),t=r(8102),l=r(9257),s=r(7804),i=r(2945),n=r(6966),d=r(9424);function c(e){var{style:o,className:r,title:a,checked:l,color:i,onClick:n,rectProps:c}=e,h=(0,s.useRef)(null),x=(0,s.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),p=(0,s.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),f=(0,t.A)({"--circle-point-background-color":"#fff",height:l?"100%":0,width:l?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},c.style);return(0,d.jsx)("div",{ref:h,onClick:n,onMouseEnter:x,onMouseLeave:p,title:a,className:r,style:(0,t.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:i+" 0px 0px "+(l?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},o),children:(0,d.jsx)("div",(0,t.A)({},c,{style:f}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],x=s.forwardRef(((e,o)=>{var{prefixCls:r="w-color-circle",className:s,color:x,colors:p=[],rectProps:f={},pointProps:u={},onChange:g}=e,v=(0,l.A)(e,h),b="string"===typeof x&&(0,i.validHex)(x)?(0,i.hexToHsva)(x):x||{},y=x?(0,i.hsvaToHex)(b):"",m=[r,s].filter(Boolean).join(" "),C=[r+"-point",null==u?void 0:u.className].filter(Boolean).join(" ");return(0,d.jsx)(n.default,(0,t.A)({ref:o,colors:p,color:y},v,{className:m,rectRender:e=>{var o=(0,t.A)({},((0,a.A)(e),e));return(0,d.jsx)(c,(0,t.A)({},o,u,{style:(0,t.A)({},o.style,u.style),className:C,rectProps:f}))},onChange:e=>{g&&g((0,i.color)(e))}}))}));x.displayName="Circle";const p=x},8024:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1636),n=r(2084),d=r(1068),c=r(9424),h=["style","color"],x=["prefixCls","className","onChange","color","style","disableAlpha"],p=e=>{var{style:o,color:r}=e,l=(0,t.A)(e,h),s=(0,a.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+i.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},o);return(0,c.jsx)("div",(0,a.A)({},l,{style:s,children:(0,c.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-colorful",className:l,onChange:h,color:f,style:u,disableAlpha:g}=e,v=(0,t.A)(e,x),b="string"===typeof f&&(0,s.validHex)(f)?(0,s.hexToHsva)(f):f||{},y=e=>h&&h((0,s.color)(e));return(0,c.jsxs)("div",(0,a.A)({ref:o,style:(0,a.A)({width:200,position:"relative"},u)},v,{className:r+" "+(l||""),children:[(0,c.jsx)(n.default,{hsva:b,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:o,top:r,color:a}=e;return(0,c.jsx)(p,{style:{left:o,top:r,transform:"translate(-16px, -16px)"},color:(0,s.hsvaToHex)(b)})},onChange:e=>y((0,a.A)({},b,e))}),(0,c.jsx)(d.default,{hue:b.h,height:24,radius:g?"0 0 8px 8px":0,className:r,onChange:e=>y((0,a.A)({},b,e)),pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:"hsl("+(b.h||0)+"deg 100% 50%)"})}}),!g&&(0,c.jsx)(i.default,{hsva:b,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:o}=e;return(0,c.jsx)(p,{style:{left:o},color:(0,s.hsvaToRgbaString)(b)})},onChange:e=>y((0,a.A)({},b,e))})]}))}));f.displayName="Colorful";const u=f},7355:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(6966),c=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],x=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function p(e){return e.checked?(0,c.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,s.getContrastingColor)(e.color)}}):null}var f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-compact",className:f,style:u,onChange:g,color:v,colors:b=x,rectProps:y,rectRender:m}=e,C=(0,t.A)(e,h),j="string"===typeof v&&(0,s.validHex)(v)?(0,s.hexToHsva)(v):v,w=v?(0,s.hsvaToHex)(j).replace(/^#/,""):"",k=(0,l.useCallback)((e=>g&&g((0,s.color)(e))),[]),A={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},N=(0,a.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,c.jsxs)("div",(0,a.A)({ref:o,style:N,className:[r,f||""].filter(Boolean).join(" ")},C,{children:[(0,c.jsx)(d.default,{colors:b,color:v?(0,s.hsvaToHex)(j):void 0,rectRender:m,rectProps:(0,a.A)({children:(0,c.jsx)(p,{})},y,{style:(0,a.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==y?void 0:y.style)}),onChange:e=>k(e)}),(0,c.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,c.jsx)(i.default,{onChange:(e,o)=>{var r;"string"===typeof(r=o)&&(0,s.validHex)(r)&&/(3|6)/.test(String(r.length))&&k((0,s.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:w.toLocaleUpperCase(),label:(0,c.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+w}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,c.jsx)(n.default,{hsva:j,placement:"left",onChange:e=>k(e.hsva),aProps:!1,rProps:A,gProps:A,bProps:A})]})]}))}));f.displayName="Compact";const u=f},11:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-material",className:l,style:x,color:p,onChange:f}=e,u=(0,t.A)(e,c),g="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,v=p?(0,s.hsvaToHex)(g).replace(/^#/,""):"",b=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.length))&&f&&f((0,s.color)((0,s.hexToHsva)(e)))},y=(0,a.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},x);return(0,d.jsxs)("div",(0,a.A)({ref:o,className:[r,l||""].filter(Boolean).join(" "),style:y},u,{children:[(0,d.jsx)(i.default,{label:"Hex",value:v.toLocaleUpperCase(),onChange:(e,o)=>b(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),b(o.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:v?"#"+v:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(n.default,{hsva:g,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},aProps:!1,onChange:e=>{return o=e.hsva,void(f&&f((0,s.color)(o)));var o}})]}))}));x.displayName="Material";const p=x},6801:(e,o,r)=>{r.r(o),r.d(o,{default:()=>b});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1346),n=r(9424),d=e=>{var{className:o,color:r,left:t,top:l,style:s,prefixCls:i}=e,d=(0,a.A)({},s,{position:"absolute",top:l,left:t}),c=i+"-pointer "+(o||"");return(0,n.jsx)("div",{className:c,style:d,children:(0,n.jsx)("div",{className:i+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:(0,n.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})},c=2*Math.PI,h=(e,o)=>(e%o+o)%o,x=(e,o)=>Math.sqrt(e*e+o*o);function p(e){var{width:o=0}=e,r=o/2;return{width:o,radius:r,cx:r,cy:r}}function f(e){var{width:o=0}=e;return o/2}function u(e,o,r){var a=e.angle||0,t=e.direction;return r&&"clockwise"===t?o=a+o:"clockwise"===t?o=360-a+o:r&&"anticlockwise"===t?o=a+180-o:"anticlockwise"===t&&(o=a-o),h(o,360)}var g=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],v=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-wheel",radius:l=0,pointer:h,className:v,style:b,width:y=200,height:m=200,oval:C,direction:j="anticlockwise",angle:w=180,color:k,onChange:A}=e,N=(0,t.A)(e,g),R="string"===typeof k&&(0,s.validHex)(k)?(0,s.hexToHsva)(k):k||{},H=k?(0,s.hsvaToHex)(R):"",S=function(e,o){var{cx:r,cy:a}=p(e),t=f(e),l=(180+u(e,o.h,!0))*(c/360),s=o.s/100*t,i="clockwise"===e.direction?-1:1;return{x:r+s*Math.cos(l)*i,y:a+s*Math.sin(l)*i}}({width:y},R),B={top:"0",left:"0",color:H},F=(e,o)=>{var r=function(e,o,r){var{cx:a,cy:t}=p(e),l=f(e);o=a-o,r=t-r;var s=u(e,Math.atan2(-r,-o)*(360/c)),i=Math.min(x(o,r),l);return{h:Math.round(s),s:Math.round(100/l*i)}}({width:y},y-e.x,m-e.y),a={h:r.h,s:r.s,v:R.v,a:R.a};A&&A((0,s.color)(a))},T={zIndex:1,transform:"translate("+S.x+"px, "+S.y+"px) "+("x"===C||"X"===C?"scaleY(2)":"y"===C||"Y"===C?"scaleX(2)":"")},D=h&&"function"===typeof h?h((0,a.A)({prefixCls:r,style:T},B)):(0,n.jsx)(d,(0,a.A)({prefixCls:r,style:T},B));return(0,n.jsxs)(i.default,(0,a.A)({className:[r,v||""].filter(Boolean).join(" ")},N,{style:(0,a.A)({position:"relative",width:y,transform:"x"===C||"X"===C?"scaleY(0.5)":"y"===C||"Y"===C?"scaleX(0.5)":"",height:m},b),ref:o,onMove:F,onDown:F,children:[D,(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===j?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(w+90)+"deg)",inset:0}}),(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,n.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof R.v?1-R.v/100:0}})]}))}));v.displayName="Wheel";const b=v}}]); +//# sourceMappingURL=313.10f17ca7.chunk.js.map \ No newline at end of file diff --git a/static/js/313.10f17ca7.chunk.js.map b/static/js/313.10f17ca7.chunk.js.map new file mode 100644 index 000000000..abb18278d --- /dev/null +++ b/static/js/313.10f17ca7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/313.10f17ca7.chunk.js","m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,aAAc,MACdE,SAAU,WACVmG,MAAO,EACP4C,QAA2B,kBAAXtM,EAAKgM,EAAiB,EAAIhM,EAAKgM,EAAI,IAAM,QAG5D,IAEL5K,EAAMS,YAAc,QACpB,S","sources":["components/Title.tsx","webpack://website/./src/pages/home/index.module.less?e0b9","pages/home/index.tsx","../../packages/color-block/esm/index.js","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../packages/color-colorful/esm/index.js","../../packages/color-compact/esm/index.js","../../packages/color-material/esm/index.js","../../packages/color-wheel/esm/Pointer.js","../../packages/color-wheel/esm/utils.js","../../packages/color-wheel/esm/index.js"],"sourcesContent":["interface TitleProps extends React.HTMLAttributes {}\n\nexport default function Title(props: TitleProps) {\n return (\n
\n {props.children}\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"index_warpper__Ajp1G\"};","import { useContext } from 'react';\nimport { Colorful, Sketch, Block, Circle, Compact, Wheel, Github, Material, Chrome } from '@uiw/react-color';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\nimport Title from '../../components/Title';\nimport styles from './index.module.less';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Colorful color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Sketch color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Chrome color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Circle color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Compact color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Wheel color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Github color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Material color=\"...\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Block color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'HomePage';\n editorUrl = '/packages/color/README.md';\n getMdStr = () => import('@uiw/react-color/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"colors\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'];\nvar Block = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-block',\n className,\n style,\n color,\n colors = CORLER_HEX,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var stylePointer = _extends({\n '--block-background-color': 'rgb(255, 255, 255)',\n '--block-box-shadow': 'rgb(0 0 0 / 10%) 0 1px',\n width: 170,\n borderRadius: 6,\n background: 'var(--block-background-color)',\n boxShadow: 'var(--block-box-shadow)',\n position: 'relative'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n style: stylePointer\n }, other, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '0 10px 10px',\n borderColor: \"transparent transparent \" + hex,\n position: 'absolute',\n top: -10,\n left: '50%',\n marginLeft: -10\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n title: hex,\n style: {\n backgroundColor: \"\" + hex,\n color: getContrastingColor(hex),\n height: 110,\n fontSize: 18,\n borderRadius: '6px 6px 0 0',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n children: hex.toLocaleUpperCase()\n }), /*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: hex,\n style: {\n paddingLeft: 10,\n paddingTop: 10\n },\n rectProps: {\n style: {\n marginRight: 10,\n marginBottom: 10,\n borderRadius: 4,\n height: 22,\n width: 22\n }\n },\n onChange: handleChange\n }), /*#__PURE__*/_jsx(EditableInput, {\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n height: 22,\n outline: 0,\n borderRadius: 3,\n padding: '0 7px'\n },\n style: {\n padding: 10,\n paddingTop: 0,\n borderRadius: '0 0 6px 6px'\n }\n })]\n }));\n});\nBlock.displayName = 'Block';\nexport default Block;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar BOXSHADOW = 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px';\nexport var Pointer = _ref => {\n var {\n className,\n color,\n left,\n top,\n style,\n prefixCls\n } = _ref;\n var styleWarp = _extends({}, style, {\n position: 'absolute',\n top,\n left\n });\n var cls = prefixCls + \"-pointer \" + (className || '');\n return /*#__PURE__*/_jsx(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: prefixCls + \"-fill\",\n style: {\n width: 10,\n height: 10,\n transform: 'translate(-5px, -5px)',\n boxShadow: BOXSHADOW,\n borderRadius: '50%',\n backgroundColor: '#fff'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","var TAU = Math.PI * 2;\n\n/**\n * javascript's modulo operator doesn't produce positive numbers with negative input\n * https://www.geeksforgeeks.org/how-to-get-negative-result-using-modulo-operator-in-javascript/\n */\nexport var mod = (a, n) => (a % n + n) % n;\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = (x, y) => Math.sqrt(x * x + y * y);\n\n/**\n * Get the point as the center of the wheel\n */\nexport function getWheelDimensions(_ref) {\n var {\n width = 0\n } = _ref;\n var r = width / 2;\n return {\n width,\n radius: r,\n cx: r,\n cy: r\n };\n}\n\n/**\n * Returns true if point (x, y) lands inside the wheel\n */\nexport function isInputInsideWheel(props, x, y) {\n var {\n cx,\n cy,\n width\n } = getWheelDimensions(props);\n var r = width / 2;\n return dist(cx - x, cy - y) < r;\n}\n\n/**\n * Get the current handle position for a given color\n */\nexport function getWheelHandlePosition(props, hsv) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n var handleAngle = (180 + translateWheelAngle(props, hsv.h, true)) * (TAU / 360);\n var handleDist = hsv.s / 100 * handleRange;\n var direction = props.direction === 'clockwise' ? -1 : 1;\n return {\n x: cx + handleDist * Math.cos(handleAngle) * direction,\n y: cy + handleDist * Math.sin(handleAngle) * direction\n };\n}\n\n/**\n * Get Range\n */\nexport function getHandleRange(_ref2) {\n var {\n width = 0\n } = _ref2;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nexport function translateWheelAngle(props, angle, invert) {\n var wheelAngle = props.angle || 0;\n var direction = props.direction;\n // inverted and clockwisee\n if (invert && direction === 'clockwise') angle = wheelAngle + angle;\n // clockwise (input handling)\n else if (direction === 'clockwise') angle = 360 - wheelAngle + angle;\n // inverted and anticlockwise\n else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle;\n // anticlockwise (input handling)\n else if (direction === 'anticlockwise') angle = wheelAngle - angle;\n return mod(angle, 360);\n}\n\n/**\n * Get the current wheel value from user input\n * @param props - wheel props\n * @param x - global input x position\n * @param y - global input y position\n */\nexport function getWheelValueFromInput(props, x, y) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n x = cx - x;\n y = cy - y;\n // Calculate the hue by converting the angle to radians\n var hue = translateWheelAngle(props, Math.atan2(-y, -x) * (360 / TAU));\n // Find the point's distance from the center of the wheel\n // This is used to show the saturation level\n var handleDist = Math.min(dist(x, y), handleRange);\n return {\n h: Math.round(hue),\n s: Math.round(100 / handleRange * handleDist)\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hexToHsva, hsvaToHex, color as handleColor } from '@uiw/color-convert';\nimport Interactive from '@uiw/react-drag-event-interactive';\nimport { Pointer } from './Pointer';\nimport { getWheelHandlePosition, getWheelValueFromInput } from './utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar HUE_GRADIENT_CLOCKWISE = 'conic-gradient(red, yellow, lime, aqua, blue, magenta, red)';\nvar HUE_GRADIENT_ANTICLOCKWISE = 'conic-gradient(red, magenta, blue, aqua, lime, yellow, red)';\nvar Wheel = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-wheel',\n radius = 0,\n pointer,\n className,\n style,\n width = 200,\n height = 200,\n oval,\n direction = 'anticlockwise',\n angle = 180,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var positions = getWheelHandlePosition({\n width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = (interaction, event) => {\n var result = getWheelValueFromInput({\n width\n }, width - interaction.x, height - interaction.y);\n var handleHsva = {\n h: result.h,\n s: result.s,\n v: hsva.v,\n a: hsva.a\n };\n onChange && onChange(handleColor(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\" + positions.x + \"px, \" + positions.y + \"px) \" + (oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({\n prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/_jsx(Pointer, _extends({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/_jsxs(Interactive, _extends({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n style: _extends({\n position: 'relative',\n width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\" + (angle + 90) + \"deg)\",\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: 'radial-gradient(circle closest-side, #fff, transparent)',\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: '#000',\n borderRadius: '50%',\n position: 'absolute',\n inset: 0,\n opacity: typeof hsva.v === 'number' ? 1 - hsva.v / 100 : 0\n }\n })]\n }));\n});\nWheel.displayName = 'Wheel';\nexport default Wheel;"],"names":["Title","props","_jsx","style","fontSize","padding","color","children","Example","hsva","dispatch","useContext","Context","_jsxs","className","styles","Colorful","onChange","hsvaToHex","marginLeft","marginRight","Sketch","Chrome","Circle","colors","width","paddingLeft","Compact","boxShadow","Wheel","height","Github","Material","Block","Component","Markdown","constructor","arguments","displayName","editorUrl","getMdStr","example","_excluded","CORLER_HEX","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","handleHex","value","evn","test","String","replace","length","handleColor","stylePointer","_extends","borderRadius","background","position","filter","Boolean","join","borderStyle","borderWidth","borderColor","top","left","title","backgroundColor","getContrastingColor","display","alignItems","justifyContent","toLocaleUpperCase","Swatch","paddingTop","rectProps","marginBottom","hsv","EditableInput","val","onBlur","target","slice","inputStyle","outline","Point","_ref","checked","onClick","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","boxSizing","transition","onMouseEnter","onMouseLeave","transform","pointProps","_onChange","cls","clsPoint","rectRender","_objectDestructuringEmpty","hsvColor","_excluded2","Pointer","BACKGROUND_IMG","border","zIndex","disableAlpha","handleChange","Saturation","radius","minWidth","borderBottom","pointer","_ref2","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha","COLORS","handleChangeCallback","rgbProps","wrapperStyle","flexWrap","undefined","margin","labelStyle","paddingRight","marginTop","label","flexDirection","flex","RGBA","placement","result","aProps","rProps","gProps","bProps","styleRBG","borderBottomColor","borderBottomStyle","fontFamily","styleWarp","inset","TAU","Math","PI","mod","a","n","dist","x","y","sqrt","getWheelDimensions","r","cx","cy","getHandleRange","translateWheelAngle","angle","invert","wheelAngle","direction","oval","positions","handleRange","handleAngle","handleDist","s","cos","sin","getWheelHandlePosition","comProps","interaction","event","atan2","min","round","getWheelValueFromInput","handleHsva","v","pointerStyle","pointerElement","Interactive","onMove","onDown","opacity"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/313.a77bf974.chunk.js b/static/js/313.a77bf974.chunk.js deleted file mode 100644 index 0470b05ce..000000000 --- a/static/js/313.a77bf974.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[313],{2313:(e,o,r)=>{r.r(o),r.d(o,{Component:()=>m});var a=r(7804),t=r(8024),l=r(4342),s=r(9262),i=r(4590),n=r(7355),c=r(6801),d=r(2051),h=r(11),x=r(411),p=r(2945),f=r(3623),u=r(7980),g=r(9424);function v(e){return(0,g.jsx)("div",{...e,style:{fontSize:12,padding:"5px 0",color:"#6b6b6b",...e.style},children:e.children})}const b="index_warpper__Ajp1G";function y(){const{hsva:e,dispatch:o}=(0,a.useContext)(u.ob);return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(t.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]}),(0,g.jsxs)("div",{style:{marginLeft:60,marginRight:60},children:[(0,g.jsx)(l.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(s.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(i.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],style:{width:252},color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]}),(0,g.jsxs)("div",{style:{paddingLeft:20},children:[(0,g.jsx)(n.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]}),(0,g.jsxs)("div",{style:{marginLeft:25},children:[(0,g.jsx)(c.default,{color:e,width:140,height:140,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]})]}),(0,g.jsxs)("div",{className:b,children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(d.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]}),(0,g.jsxs)("div",{style:{marginRight:30,marginLeft:30},children:[(0,g.jsx)(h.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 12%) 0px 2px 10px, rgb(0 0 0 / 16%) 0px 2px 5px"},onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:''})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(x.default,{color:e,onChange:r=>{o({hsva:{...e,...r.hsva}})}}),(0,g.jsx)(v,{children:'')})]})]})]})}class m extends f.A{constructor(){super(...arguments),this.displayName="HomePage",this.editorUrl="/packages/color/README.md",this.getMdStr=()=>r.e(950).then(r.bind(r,950)),this.example=(0,g.jsx)(y,{})}}},411:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6966),c=r(9424),d=["prefixCls","className","style","color","colors","onChange"],h=["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-block",className:l,style:x,color:p,colors:f=h,onChange:u}=e,g=(0,t.A)(e,d),v="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,b=p?(0,s.hsvaToHex)(v):"",y=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.replace(/^#/,"").length))&&u&&u((0,s.color)((0,s.hexToHsva)(e)))},m=(0,a.A)({"--block-background-color":"rgb(255, 255, 255)","--block-box-shadow":"rgb(0 0 0 / 10%) 0 1px",width:170,borderRadius:6,background:"var(--block-background-color)",boxShadow:"var(--block-box-shadow)",position:"relative"},x);return(0,c.jsxs)("div",(0,a.A)({ref:o,className:[r,l].filter(Boolean).join(" "),style:m},g,{children:[(0,c.jsx)("div",{style:{width:0,height:0,borderStyle:"solid",borderWidth:"0 10px 10px",borderColor:"transparent transparent "+b,position:"absolute",top:-10,left:"50%",marginLeft:-10}}),(0,c.jsx)("div",{title:b,style:{backgroundColor:""+b,color:(0,s.getContrastingColor)(b),height:110,fontSize:18,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center"},children:b.toLocaleUpperCase()}),(0,c.jsx)(n.default,{colors:f,color:b,style:{paddingLeft:10,paddingTop:10},rectProps:{style:{marginRight:10,marginBottom:10,borderRadius:4,height:22,width:22}},onChange:e=>{u&&u((0,s.color)(e))}}),(0,c.jsx)(i.default,{value:b.toLocaleUpperCase(),onChange:(e,o)=>y(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),y(o.slice(0,6))},inputStyle:{height:22,outline:0,borderRadius:3,padding:"0 7px"},style:{padding:10,paddingTop:0,borderRadius:"0 0 6px 6px"}})]}))}));x.displayName="Block";const p=x},4590:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(9520),t=r(8102),l=r(9257),s=r(7804),i=r(2945),n=r(6966),c=r(9424);function d(e){var{style:o,className:r,title:a,checked:l,color:i,onClick:n,rectProps:d}=e,h=(0,s.useRef)(null),x=(0,s.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),p=(0,s.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),f=(0,t.A)({"--circle-point-background-color":"#fff",height:l?"100%":0,width:l?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},d.style);return(0,c.jsx)("div",{ref:h,onClick:n,onMouseEnter:x,onMouseLeave:p,title:a,className:r,style:(0,t.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:i+" 0px 0px "+(l?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},o),children:(0,c.jsx)("div",(0,t.A)({},d,{style:f}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],x=s.forwardRef(((e,o)=>{var{prefixCls:r="w-color-circle",className:s,color:x,colors:p=[],rectProps:f={},pointProps:u={},onChange:g}=e,v=(0,l.A)(e,h),b="string"===typeof x&&(0,i.validHex)(x)?(0,i.hexToHsva)(x):x||{},y=x?(0,i.hsvaToHex)(b):"",m=[r,s].filter(Boolean).join(" "),C=[r+"-point",null==u?void 0:u.className].filter(Boolean).join(" ");return(0,c.jsx)(n.default,(0,t.A)({ref:o,colors:p,color:y},v,{className:m,rectRender:e=>{var o=(0,t.A)({},((0,a.A)(e),e));return(0,c.jsx)(d,(0,t.A)({},o,u,{style:(0,t.A)({},o.style,u.style),className:C,rectProps:f}))},onChange:e=>{g&&g((0,i.color)(e))}}))}));x.displayName="Circle";const p=x},8024:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1636),n=r(2084),c=r(1068),d=r(9424),h=["style","color"],x=["prefixCls","className","onChange","color","style","disableAlpha"],p=e=>{var{style:o,color:r}=e,l=(0,t.A)(e,h),s=(0,a.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+i.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},o);return(0,d.jsx)("div",(0,a.A)({},l,{style:s,children:(0,d.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-colorful",className:l,onChange:h,color:f,style:u,disableAlpha:g}=e,v=(0,t.A)(e,x),b="string"===typeof f&&(0,s.validHex)(f)?(0,s.hexToHsva)(f):f||{},y=e=>h&&h((0,s.color)(e));return(0,d.jsxs)("div",(0,a.A)({ref:o,style:(0,a.A)({width:200,position:"relative"},u)},v,{className:r+" "+(l||""),children:[(0,d.jsx)(n.default,{hsva:b,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:o,top:r,color:a}=e;return(0,d.jsx)(p,{style:{left:o,top:r,transform:"translate(-16px, -16px)"},color:(0,s.hsvaToHex)(b)})},onChange:e=>y((0,a.A)({},b,e))}),(0,d.jsx)(c.default,{hue:b.h,height:24,radius:g?"0 0 8px 8px":0,className:r,onChange:e=>y((0,a.A)({},b,e)),pointer:e=>{var{left:o}=e;return(0,d.jsx)(p,{style:{left:o},color:"hsl("+(b.h||0)+"deg 100% 50%)"})}}),!g&&(0,d.jsx)(i.default,{hsva:b,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:o}=e;return(0,d.jsx)(p,{style:{left:o},color:(0,s.hsvaToRgbaString)(b)})},onChange:e=>y((0,a.A)({},b,e))})]}))}));f.displayName="Colorful";const u=f},7355:(e,o,r)=>{r.r(o),r.d(o,{default:()=>u});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),c=r(6966),d=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],x=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function p(e){return e.checked?(0,d.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,s.getContrastingColor)(e.color)}}):null}var f=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-compact",className:f,style:u,onChange:g,color:v,colors:b=x,rectProps:y,rectRender:m}=e,C=(0,t.A)(e,h),j="string"===typeof v&&(0,s.validHex)(v)?(0,s.hexToHsva)(v):v,w=v?(0,s.hsvaToHex)(j).replace(/^#/,""):"",k=(0,l.useCallback)((e=>g&&g((0,s.color)(e))),[]),A={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},N=(0,a.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,d.jsxs)("div",(0,a.A)({ref:o,style:N,className:[r,f||""].filter(Boolean).join(" ")},C,{children:[(0,d.jsx)(c.default,{colors:b,color:v?(0,s.hsvaToHex)(j):void 0,rectRender:m,rectProps:(0,a.A)({children:(0,d.jsx)(p,{})},y,{style:(0,a.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==y?void 0:y.style)}),onChange:e=>k(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(i.default,{onChange:(e,o)=>{var r;"string"===typeof(r=o)&&(0,s.validHex)(r)&&/(3|6)/.test(String(r.length))&&k((0,s.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:w.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+w}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(n.default,{hsva:j,placement:"left",onChange:e=>k(e.hsva),aProps:!1,rProps:A,gProps:A,bProps:A})]})]}))}));f.displayName="Compact";const u=f},11:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(5991),n=r(6436),c=r(9424),d=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},x=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-material",className:l,style:x,color:p,onChange:f}=e,u=(0,t.A)(e,d),g="string"===typeof p&&(0,s.validHex)(p)?(0,s.hexToHsva)(p):p,v=p?(0,s.hsvaToHex)(g).replace(/^#/,""):"",b=(e,o)=>{"string"===typeof e&&(0,s.validHex)(e)&&/(3|6)/.test(String(e.length))&&f&&f((0,s.color)((0,s.hexToHsva)(e)))},y=(0,a.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},x);return(0,c.jsxs)("div",(0,a.A)({ref:o,className:[r,l||""].filter(Boolean).join(" "),style:y},u,{children:[(0,c.jsx)(i.default,{label:"Hex",value:v.toLocaleUpperCase(),onChange:(e,o)=>b(o),onBlur:e=>{var o=e.target.value;e.target.value=o.slice(0,6),b(o.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:v?"#"+v:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,c.jsx)(n.default,{hsva:g,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,a.A)({},h)},aProps:!1,onChange:e=>{return o=e.hsva,void(f&&f((0,s.color)(o)));var o}})]}))}));x.displayName="Material";const p=x},6801:(e,o,r)=>{r.r(o),r.d(o,{default:()=>b});var a=r(8102),t=r(9257),l=r(7804),s=r(2945),i=r(1346),n=r(9424),c=e=>{var{className:o,color:r,left:t,top:l,style:s,prefixCls:i}=e,c=(0,a.A)({},s,{position:"absolute",top:l,left:t}),d=i+"-pointer "+(o||"");return(0,n.jsx)("div",{className:d,style:c,children:(0,n.jsx)("div",{className:i+"-fill",style:{width:10,height:10,transform:"translate(-5px, -5px)",boxShadow:"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",borderRadius:"50%",backgroundColor:"#fff"},children:(0,n.jsx)("div",{style:{inset:0,borderRadius:"50%",position:"absolute",backgroundColor:r}})})})},d=2*Math.PI,h=(e,o)=>(e%o+o)%o,x=(e,o)=>Math.sqrt(e*e+o*o);function p(e){var{width:o=0}=e,r=o/2;return{width:o,radius:r,cx:r,cy:r}}function f(e){var{width:o=0}=e;return o/2}function u(e,o,r){var a=e.angle||0,t=e.direction;return r&&"clockwise"===t?o=a+o:"clockwise"===t?o=360-a+o:r&&"anticlockwise"===t?o=a+180-o:"anticlockwise"===t&&(o=a-o),h(o,360)}var g=["prefixCls","radius","pointer","className","style","width","height","oval","direction","angle","color","onChange"],v=l.forwardRef(((e,o)=>{var{prefixCls:r="w-color-wheel",radius:l=0,pointer:h,className:v,style:b,width:y=200,height:m=200,oval:C,direction:j="anticlockwise",angle:w=180,color:k,onChange:A}=e,N=(0,t.A)(e,g),R="string"===typeof k&&(0,s.validHex)(k)?(0,s.hexToHsva)(k):k||{},H=k?(0,s.hsvaToHex)(R):"",S=function(e,o){var{cx:r,cy:a}=p(e),t=f(e),l=(180+u(e,o.h,!0))*(d/360),s=o.s/100*t,i="clockwise"===e.direction?-1:1;return{x:r+s*Math.cos(l)*i,y:a+s*Math.sin(l)*i}}({width:y},R),B={top:"0",left:"0",color:H},F=(e,o)=>{var r=function(e,o,r){var{cx:a,cy:t}=p(e),l=f(e);o=a-o,r=t-r;var s=u(e,Math.atan2(-r,-o)*(360/d)),i=Math.min(x(o,r),l);return{h:Math.round(s),s:Math.round(100/l*i)}}({width:y},y-e.x,m-e.y),a={h:r.h,s:r.s,v:R.v,a:R.a};A&&A((0,s.color)(a))},T={zIndex:1,transform:"translate("+S.x+"px, "+S.y+"px) "+("x"===C||"X"===C?"scaleY(2)":"y"===C||"Y"===C?"scaleX(2)":"")},D=h&&"function"===typeof h?h((0,a.A)({prefixCls:r,style:T},B)):(0,n.jsx)(c,(0,a.A)({prefixCls:r,style:T},B));return(0,n.jsxs)(i.default,(0,a.A)({className:[r,v||""].filter(Boolean).join(" ")},N,{style:(0,a.A)({position:"relative",width:y,transform:"x"===C||"X"===C?"scaleY(0.5)":"y"===C||"Y"===C?"scaleX(0.5)":"",height:m},b),ref:o,onMove:F,onDown:F,children:[D,(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"anticlockwise"===j?"conic-gradient(red, yellow, lime, aqua, blue, magenta, red)":"conic-gradient(red, magenta, blue, aqua, lime, yellow, red)",transform:"rotateZ("+(w+90)+"deg)",inset:0}}),(0,n.jsx)("div",{style:{position:"absolute",borderRadius:"50%",background:"radial-gradient(circle closest-side, #fff, transparent)",inset:0}}),(0,n.jsx)("div",{style:{backgroundColor:"#000",borderRadius:"50%",position:"absolute",inset:0,opacity:"number"===typeof R.v?1-R.v/100:0}})]}))}));v.displayName="Wheel";const b=v}}]); -//# sourceMappingURL=313.a77bf974.chunk.js.map \ No newline at end of file diff --git a/static/js/313.a77bf974.chunk.js.map b/static/js/313.a77bf974.chunk.js.map deleted file mode 100644 index ccd06026d..000000000 --- a/static/js/313.a77bf974.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/313.a77bf974.chunk.js","mappings":"8QAEe,SAASA,EAAMC,GAC5B,OACEC,EAAAA,EAAAA,KAAA,UAASD,EAAOE,MAAO,CAAEC,SAAU,GAAIC,QAAS,QAASC,MAAO,aAAcL,EAAME,OAAQI,SACzFN,EAAMM,UAGb,CCPA,QAA0B,uBCO1B,SAASC,IACP,MAAM,KAAEC,E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S,YAAc,QACpB,S","sources":["components/Title.tsx","webpack://website/./src/pages/home/index.module.less?e0b9","pages/home/index.tsx","../../packages/color-block/esm/index.js","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../packages/color-colorful/esm/index.js","../../packages/color-compact/esm/index.js","../../packages/color-material/esm/index.js","../../packages/color-wheel/esm/Pointer.js","../../packages/color-wheel/esm/utils.js","../../packages/color-wheel/esm/index.js"],"sourcesContent":["interface TitleProps extends React.HTMLAttributes {}\n\nexport default function Title(props: TitleProps) {\n return (\n
\n {props.children}\n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"warpper\":\"index_warpper__Ajp1G\"};","import { useContext } from 'react';\nimport { Colorful, Sketch, Block, Circle, Compact, Wheel, Github, Material, Chrome } from '@uiw/react-color';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\nimport Title from '../../components/Title';\nimport styles from './index.module.less';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Colorful color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Sketch color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Chrome color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Circle color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Compact color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Wheel color=\"...\" />`}\n
\n
\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Github color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Material color=\"...\" />`}\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {`<Block color=\"${hsvaToHex(hsva)}\" />`}\n
\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'HomePage';\n editorUrl = '/packages/color/README.md';\n getMdStr = () => import('@uiw/react-color/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"colors\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'];\nvar Block = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-block',\n className,\n style,\n color,\n colors = CORLER_HEX,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.replace(/^#/, '').length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var stylePointer = _extends({\n '--block-background-color': 'rgb(255, 255, 255)',\n '--block-box-shadow': 'rgb(0 0 0 / 10%) 0 1px',\n width: 170,\n borderRadius: 6,\n background: 'var(--block-background-color)',\n boxShadow: 'var(--block-box-shadow)',\n position: 'relative'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n style: stylePointer\n }, other, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 0,\n height: 0,\n borderStyle: 'solid',\n borderWidth: '0 10px 10px',\n borderColor: \"transparent transparent \" + hex,\n position: 'absolute',\n top: -10,\n left: '50%',\n marginLeft: -10\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n title: hex,\n style: {\n backgroundColor: \"\" + hex,\n color: getContrastingColor(hex),\n height: 110,\n fontSize: 18,\n borderRadius: '6px 6px 0 0',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n },\n children: hex.toLocaleUpperCase()\n }), /*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: hex,\n style: {\n paddingLeft: 10,\n paddingTop: 10\n },\n rectProps: {\n style: {\n marginRight: 10,\n marginBottom: 10,\n borderRadius: 4,\n height: 22,\n width: 22\n }\n },\n onChange: handleChange\n }), /*#__PURE__*/_jsx(EditableInput, {\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n height: 22,\n outline: 0,\n borderRadius: 3,\n padding: '0 7px'\n },\n style: {\n padding: 10,\n paddingTop: 0,\n borderRadius: '0 0 6px 6px'\n }\n })]\n }));\n});\nBlock.displayName = 'Block';\nexport default Block;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar BOXSHADOW = 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px';\nexport var Pointer = _ref => {\n var {\n className,\n color,\n left,\n top,\n style,\n prefixCls\n } = _ref;\n var styleWarp = _extends({}, style, {\n position: 'absolute',\n top,\n left\n });\n var cls = prefixCls + \"-pointer \" + (className || '');\n return /*#__PURE__*/_jsx(\"div\", {\n className: cls,\n style: styleWarp,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: prefixCls + \"-fill\",\n style: {\n width: 10,\n height: 10,\n transform: 'translate(-5px, -5px)',\n boxShadow: BOXSHADOW,\n borderRadius: '50%',\n backgroundColor: '#fff'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n inset: 0,\n borderRadius: '50%',\n position: 'absolute',\n backgroundColor: color\n }\n })\n })\n });\n};","var TAU = Math.PI * 2;\n\n/**\n * javascript's modulo operator doesn't produce positive numbers with negative input\n * https://www.geeksforgeeks.org/how-to-get-negative-result-using-modulo-operator-in-javascript/\n */\nexport var mod = (a, n) => (a % n + n) % n;\n\n/** distance between points (x, y) and (0, 0) */\nvar dist = (x, y) => Math.sqrt(x * x + y * y);\n\n/**\n * Get the point as the center of the wheel\n */\nexport function getWheelDimensions(_ref) {\n var {\n width = 0\n } = _ref;\n var r = width / 2;\n return {\n width,\n radius: r,\n cx: r,\n cy: r\n };\n}\n\n/**\n * Returns true if point (x, y) lands inside the wheel\n */\nexport function isInputInsideWheel(props, x, y) {\n var {\n cx,\n cy,\n width\n } = getWheelDimensions(props);\n var r = width / 2;\n return dist(cx - x, cy - y) < r;\n}\n\n/**\n * Get the current handle position for a given color\n */\nexport function getWheelHandlePosition(props, hsv) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n var handleAngle = (180 + translateWheelAngle(props, hsv.h, true)) * (TAU / 360);\n var handleDist = hsv.s / 100 * handleRange;\n var direction = props.direction === 'clockwise' ? -1 : 1;\n return {\n x: cx + handleDist * Math.cos(handleAngle) * direction,\n y: cy + handleDist * Math.sin(handleAngle) * direction\n };\n}\n\n/**\n * Get Range\n */\nexport function getHandleRange(_ref2) {\n var {\n width = 0\n } = _ref2;\n return width / 2;\n}\n\n/**\n * Translate an angle according to wheelAngle and wheelDirection\n */\nexport function translateWheelAngle(props, angle, invert) {\n var wheelAngle = props.angle || 0;\n var direction = props.direction;\n // inverted and clockwisee\n if (invert && direction === 'clockwise') angle = wheelAngle + angle;\n // clockwise (input handling)\n else if (direction === 'clockwise') angle = 360 - wheelAngle + angle;\n // inverted and anticlockwise\n else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle;\n // anticlockwise (input handling)\n else if (direction === 'anticlockwise') angle = wheelAngle - angle;\n return mod(angle, 360);\n}\n\n/**\n * Get the current wheel value from user input\n * @param props - wheel props\n * @param x - global input x position\n * @param y - global input y position\n */\nexport function getWheelValueFromInput(props, x, y) {\n var {\n cx,\n cy\n } = getWheelDimensions(props);\n var handleRange = getHandleRange(props);\n x = cx - x;\n y = cy - y;\n // Calculate the hue by converting the angle to radians\n var hue = translateWheelAngle(props, Math.atan2(-y, -x) * (360 / TAU));\n // Find the point's distance from the center of the wheel\n // This is used to show the saturation level\n var handleDist = Math.min(dist(x, y), handleRange);\n return {\n h: Math.round(hue),\n s: Math.round(100 / handleRange * handleDist)\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"radius\", \"pointer\", \"className\", \"style\", \"width\", \"height\", \"oval\", \"direction\", \"angle\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hexToHsva, hsvaToHex, color as handleColor } from '@uiw/color-convert';\nimport Interactive from '@uiw/react-drag-event-interactive';\nimport { Pointer } from './Pointer';\nimport { getWheelHandlePosition, getWheelValueFromInput } from './utils';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar HUE_GRADIENT_CLOCKWISE = 'conic-gradient(red, yellow, lime, aqua, blue, magenta, red)';\nvar HUE_GRADIENT_ANTICLOCKWISE = 'conic-gradient(red, magenta, blue, aqua, lime, yellow, red)';\nvar Wheel = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-wheel',\n radius = 0,\n pointer,\n className,\n style,\n width = 200,\n height = 200,\n oval,\n direction = 'anticlockwise',\n angle = 180,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var positions = getWheelHandlePosition({\n width\n }, hsva);\n var comProps = {\n top: '0',\n left: '0',\n color: hex\n };\n var handleChange = (interaction, event) => {\n var result = getWheelValueFromInput({\n width\n }, width - interaction.x, height - interaction.y);\n var handleHsva = {\n h: result.h,\n s: result.s,\n v: hsva.v,\n a: hsva.a\n };\n onChange && onChange(handleColor(handleHsva));\n };\n var pointerStyle = {\n zIndex: 1,\n transform: \"translate(\" + positions.x + \"px, \" + positions.y + \"px) \" + (oval === 'x' || oval === 'X' ? 'scaleY(2)' : oval === 'y' || oval === 'Y' ? 'scaleX(2)' : '')\n };\n var pointerElement = pointer && typeof pointer === 'function' ? pointer(_extends({\n prefixCls,\n style: pointerStyle\n }, comProps)) : /*#__PURE__*/_jsx(Pointer, _extends({\n prefixCls: prefixCls,\n style: pointerStyle\n }, comProps));\n return /*#__PURE__*/_jsxs(Interactive, _extends({\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n style: _extends({\n position: 'relative',\n width,\n transform: oval === 'x' || oval === 'X' ? 'scaleY(0.5)' : oval === 'y' || oval === 'Y' ? 'scaleX(0.5)' : '',\n height\n }, style),\n ref: ref,\n onMove: handleChange,\n onDown: handleChange,\n children: [pointerElement, /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: direction === 'anticlockwise' ? HUE_GRADIENT_CLOCKWISE : HUE_GRADIENT_ANTICLOCKWISE,\n transform: \"rotateZ(\" + (angle + 90) + \"deg)\",\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n borderRadius: '50%',\n background: 'radial-gradient(circle closest-side, #fff, transparent)',\n inset: 0\n }\n }), /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: '#000',\n borderRadius: '50%',\n position: 'absolute',\n inset: 0,\n opacity: typeof hsva.v === 'number' ? 1 - hsva.v / 100 : 0\n }\n })]\n }));\n});\nWheel.displayName = 'Wheel';\nexport default Wheel;"],"names":["Title","props","_jsx","style","fontSize","padding","color","children","Example","hsva","dispatch","useContext","Context","_jsxs","className","styles","Colorful","onChange","concat","hsvaToHex","marginLeft","marginRight","Sketch","Chrome","Circle","colors","width","paddingLeft","Compact","boxShadow","Wheel","height","Github","Material","Block","Component","Markdown","constructor","arguments","displayName","editorUrl","getMdStr","example","_excluded","CORLER_HEX","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","handleHex","value","evn","test","String","replace","length","handleColor","stylePointer","_extends","borderRadius","background","position","filter","Boolean","join","borderStyle","borderWidth","borderColor","top","left","title","backgroundColor","getContrastingColor","display","alignItems","justifyContent","toLocaleUpperCase","Swatch","paddingTop","rectProps","marginBottom","hsv","EditableInput","val","onBlur","target","slice","inputStyle","outline","Point","_ref","checked","onClick","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","boxSizing","transition","onMouseEnter","onMouseLeave","transform","pointProps","_onChange","cls","clsPoint","rectRender","_objectDestructuringEmpty","hsvColor","_excluded2","Pointer","BACKGROUND_IMG","border","zIndex","disableAlpha","handleChange","Saturation","radius","minWidth","borderBottom","pointer","_ref2","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha","COLORS","handleChangeCallback","rgbProps","wrapperStyle","flexWrap","undefined","margin","labelStyle","paddingRight","marginTop","label","flexDirection","flex","RGBA","placement","result","aProps","rProps","gProps","bProps","styleRBG","borderBottomColor","borderBottomStyle","fontFamily","styleWarp","inset","TAU","Math","PI","mod","a","n","dist","x","y","sqrt","getWheelDimensions","r","cx","cy","getHandleRange","translateWheelAngle","angle","invert","wheelAngle","direction","oval","positions","handleRange","handleAngle","handleDist","s","cos","sin","getWheelHandlePosition","comProps","interaction","event","atan2","min","round","getWheelValueFromInput","handleHsva","v","pointerStyle","pointerElement","Interactive","onMove","onDown","opacity"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/328.862b6975.chunk.js b/static/js/328.862b6975.chunk.js new file mode 100644 index 000000000..82e81c51d --- /dev/null +++ b/static/js/328.862b6975.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[328],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=i.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,c=i.Ay.div` + padding-bottom: 120px; +`,d=i.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,h=i.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(c,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(d,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1369:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(4590),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(o.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],color:e,onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-circle/README.md",this.getMdStr=()=>r.e(919).then(r.bind(r,2919)),this.example=(0,l.jsx)(n,{})}}},4590:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(9520),o=r(8102),i=r(9257),a=r(7804),l=r(2945),n=r(6966),c=r(9424);function d(e){var{style:t,className:r,title:s,checked:i,color:l,onClick:n,rectProps:d}=e,h=(0,a.useRef)(null),p=(0,a.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),u=(0,a.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),g=(0,o.A)({"--circle-point-background-color":"#fff",height:i?"100%":0,width:i?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},d.style);return(0,c.jsx)("div",{ref:h,onClick:n,onMouseEnter:p,onMouseLeave:u,title:s,className:r,style:(0,o.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:l+" 0px 0px "+(i?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},t),children:(0,c.jsx)("div",(0,o.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=a.forwardRef(((e,t)=>{var{prefixCls:r="w-color-circle",className:a,color:p,colors:u=[],rectProps:g={},pointProps:x={},onChange:b}=e,m=(0,i.A)(e,h),f="string"===typeof p&&(0,l.validHex)(p)?(0,l.hexToHsva)(p):p||{},j=p?(0,l.hsvaToHex)(f):"",v=[r,a].filter(Boolean).join(" "),w=[r+"-point",null==x?void 0:x.className].filter(Boolean).join(" ");return(0,c.jsx)(n.default,(0,o.A)({ref:t,colors:u,color:j},m,{className:v,rectRender:e=>{var t=(0,o.A)({},((0,s.A)(e),e));return(0,c.jsx)(d,(0,o.A)({},t,x,{style:(0,o.A)({},t.style,x.style),className:w,rectProps:g}))},onChange:e=>{b&&b((0,l.color)(e))}}))}));p.displayName="Circle";const u=p},9520:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new TypeError("Cannot destructure "+e)}r.d(t,{A:()=>s})}}]); +//# sourceMappingURL=328.862b6975.chunk.js.map \ No newline at end of file diff --git a/static/js/328.862b6975.chunk.js.map b/static/js/328.862b6975.chunk.js.map new file mode 100644 index 000000000..7939dd1b6 --- /dev/null +++ b/static/js/328.862b6975.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/328.862b6975.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,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,GACNJ,EAAO,CACRxD,UAAW8D,EACXM,WAAY7C,IACV,IAAI1C,GAAQsD,EAAAA,EAAAA,GAAS,CAAC,IAAIkC,EAAAA,EAAAA,GAA0B9C,GAAOA,IAC3D,OAAoBrB,EAAAA,EAAAA,KAAKoB,GAAOa,EAAAA,EAAAA,GAAS,CAAC,EAAGtD,EAAOyE,EAAY,CAC9D/C,OAAO4B,EAAAA,EAAAA,GAAS,CAAC,EAAGtD,EAAM0B,MAAO+C,EAAW/C,OAC5CP,UAAWkE,EACXvC,UAAWA,IACV,EAELP,SAAUkD,IACRf,GAAaA,GAAUgB,EAAAA,EAAAA,OAAYD,GAAU,IAE9C,IAELrD,EAAOuD,YAAc,SACrB,S,8BC5CA,SAASH,EAA0BI,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/circle/index.tsx","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Circle from '@uiw/react-color-circle';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-circle/README.md';\n getMdStr = () => import('@uiw/react-color-circle/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Circle","colors","color","onChange","arguments","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","_extends","height","borderRadius","backgroundColor","boxSizing","transition","ref","onMouseEnter","onMouseLeave","display","alignItems","justifyContent","padding","marginRight","marginBottom","transform","_excluded","React","prefixCls","pointProps","_onChange","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","cls","filter","Boolean","join","clsPoint","Swatch","rectRender","_objectDestructuringEmpty","hsvColor","handleColor","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/328.9446e17a.chunk.js b/static/js/328.9446e17a.chunk.js deleted file mode 100644 index fff1797bc..000000000 --- a/static/js/328.9446e17a.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[328],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var s,o,i,n,a,l=r(114),c=r(7804),d=r(52),h=r(3235),p=r(9424);const u=h.Ay.div(s||(s=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),g=h.Ay.a(o||(o=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=h.Ay.div(i||(i=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=h.Ay.footer(n||(n=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=h.Ay.div(a||(a=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends c.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(u,{children:[this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1369:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(4590),i=r(3623),n=r(7980),a=r(9424);function l(){const{hsva:e,dispatch:t}=(0,s.useContext)(n.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(o.default,{colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#607d8b"],color:e,onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-circle/README.md",this.getMdStr=()=>r.e(919).then(r.bind(r,2919)),this.example=(0,a.jsx)(l,{})}}},4590:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(9520),o=r(8102),i=r(9257),n=r(7804),a=r(2945),l=r(6966),c=r(9424);function d(e){var{style:t,className:r,title:s,checked:i,color:a,onClick:l,rectProps:d}=e,h=(0,n.useRef)(null),p=(0,n.useCallback)((()=>{h.current.style.transform="scale(1.2)"}),[]),u=(0,n.useCallback)((()=>{h.current.style.transform="scale(1)"}),[]),g=(0,o.A)({"--circle-point-background-color":"#fff",height:i?"100%":0,width:i?"100%":0,borderRadius:"50%",backgroundColor:"var(--circle-point-background-color)",boxSizing:"border-box",transition:"height 100ms ease 0s, width 100ms ease 0s"},d.style);return(0,c.jsx)("div",{ref:h,onClick:l,onMouseEnter:p,onMouseLeave:u,title:s,className:r,style:(0,o.A)({display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:3,borderRadius:"50%",marginRight:12,marginBottom:12,boxSizing:"border-box",transform:"scale(1)",boxShadow:a+" 0px 0px "+(i?5:0)+"px",transition:"transform 100ms ease 0s, box-shadow 100ms ease 0s"},t),children:(0,c.jsx)("div",(0,o.A)({},d,{style:g}))})}var h=["prefixCls","className","color","colors","rectProps","pointProps","onChange"],p=n.forwardRef(((e,t)=>{var{prefixCls:r="w-color-circle",className:n,color:p,colors:u=[],rectProps:g={},pointProps:x={},onChange:b}=e,m=(0,i.A)(e,h),f="string"===typeof p&&(0,a.validHex)(p)?(0,a.hexToHsva)(p):p||{},j=p?(0,a.hsvaToHex)(f):"",v=[r,n].filter(Boolean).join(" "),w=[r+"-point",null==x?void 0:x.className].filter(Boolean).join(" ");return(0,c.jsx)(l.default,(0,o.A)({ref:t,colors:u,color:j},m,{className:v,rectRender:e=>{var t=(0,o.A)({},((0,s.A)(e),e));return(0,c.jsx)(d,(0,o.A)({},t,x,{style:(0,o.A)({},t.style,x.style),className:w,rectProps:g}))},onChange:e=>{b&&b((0,a.color)(e))}}))}));p.displayName="Circle";const u=p},9520:(e,t,r)=>{"use strict";function s(e){if(null==e)throw new TypeError("Cannot destructure "+e)}r.d(t,{A:()=>s})}}]); -//# sourceMappingURL=328.9446e17a.chunk.js.map \ No newline at end of file diff --git a/static/js/328.9446e17a.chunk.js.map b/static/js/328.9446e17a.chunk.js.map deleted file mode 100644 index 6cfb76083..000000000 --- a/static/js/328.9446e17a.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/328.9446e17a.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oC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,IAAI,UACAY,EAAY,iBAAgB,UAC5BtD,EAAS,MACToB,EAAK,OACLD,EAAS,GAAE,UACXS,EAAY,CAAC,EAAC,WACd2B,EAAa,CAAC,EACdlC,SAAUmC,GACR3E,EACJ4E,GAAQC,EAAAA,EAAAA,GAA8B7E,EAAOuE,GAC3CvC,EAAwB,kBAAVO,IAAsBuC,EAAAA,EAAAA,UAASvC,IAASwC,EAAAA,EAAAA,WAAUxC,GAASA,GAAS,CAAC,EACnFyC,EAAMzC,GAAQ0C,EAAAA,EAAAA,WAAUjD,GAAQ,GAChCkD,EAAM,CAACT,EAAWtD,GAAWgE,OAAOC,SAASC,KAAK,KAClDC,EAAW,CAACb,EAAY,SAAwB,MAAdC,OAAqB,EAASA,EAAWvD,WAAWgE,OAAOC,SAASC,KAAK,KAC/G,OAAoBhE,EAAAA,EAAAA,KAAKkE,EAAAA,SAAQhC,EAAAA,EAAAA,GAAS,CACxCM,IAAKA,EACLvB,OAAQA,EACRC,MAAOyC,GACNJ,EAAO,CACRzD,UAAW+D,EACXM,WAAY7C,IACV,IAAI3C,GAAQuD,EAAAA,EAAAA,GAAS,CAAC,IAAIkC,EAAAA,EAAAA,GAA0B9C,GAAOA,IAC3D,OAAoBtB,EAAAA,EAAAA,KAAKqB,GAAOa,EAAAA,EAAAA,GAAS,CAAC,EAAGvD,EAAO0E,EAAY,CAC9D/C,OAAO4B,EAAAA,EAAAA,GAAS,CAAC,EAAGvD,EAAM2B,MAAO+C,EAAW/C,OAC5CR,UAAWmE,EACXvC,UAAWA,IACV,EAELP,SAAUkD,IACRf,GAAaA,GAAUgB,EAAAA,EAAAA,OAAYD,GAAU,IAE9C,IAELrD,EAAOuD,YAAc,SACrB,S,8BC5CA,SAASH,EAA0BI,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/circle/index.tsx","../../packages/color-circle/esm/Point.js","../../packages/color-circle/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Circle from '@uiw/react-color-circle';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-circle/README.md';\n getMdStr = () => import('@uiw/react-color-circle/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Point(_ref) {\n var {\n style,\n className,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['transform'] = 'scale(1.2)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['transform'] = 'scale(1)';\n }, []);\n var styleWrapper = _extends({\n '--circle-point-background-color': '#fff',\n height: checked ? '100%' : 0,\n width: checked ? '100%' : 0,\n borderRadius: '50%',\n backgroundColor: 'var(--circle-point-background-color)',\n boxSizing: 'border-box',\n transition: 'height 100ms ease 0s, width 100ms ease 0s'\n }, rectProps.style);\n return /*#__PURE__*/_jsx(\"div\", {\n ref: btn,\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n title: title,\n className: className,\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 28,\n height: 28,\n padding: 3,\n borderRadius: '50%',\n marginRight: 12,\n marginBottom: 12,\n boxSizing: 'border-box',\n transform: 'scale(1)',\n boxShadow: color + \" 0px 0px \" + (checked ? 5 : 0) + \"px\",\n transition: 'transform 100ms ease 0s, box-shadow 100ms ease 0s'\n }, style),\n children: /*#__PURE__*/_jsx(\"div\", _extends({}, rectProps, {\n style: styleWrapper\n }))\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"color\", \"colors\", \"rectProps\", \"pointProps\", \"onChange\"];\nimport React from 'react';\nimport { validHex, hsvaToHex, hexToHsva, color as handleColor } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-circle',\n className,\n color,\n colors = [],\n rectProps = {},\n pointProps = {},\n onChange: _onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var hex = color ? hsvaToHex(hsva) : '';\n var cls = [prefixCls, className].filter(Boolean).join(' ');\n var clsPoint = [prefixCls + \"-point\", pointProps == null ? void 0 : pointProps.className].filter(Boolean).join(' ');\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n colors: colors,\n color: hex\n }, other, {\n className: cls,\n rectRender: _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n return /*#__PURE__*/_jsx(Point, _extends({}, props, pointProps, {\n style: _extends({}, props.style, pointProps.style),\n className: clsPoint,\n rectProps: rectProps\n }));\n },\n onChange: hsvColor => {\n _onChange && _onChange(handleColor(hsvColor));\n }\n }));\n});\nCircle.displayName = 'Circle';\nexport default Circle;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Circle","colors","color","onChange","arguments","Point","_ref","title","checked","onClick","rectProps","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","styleWrapper","_extends","height","borderRadius","backgroundColor","boxSizing","transition","ref","onMouseEnter","onMouseLeave","display","alignItems","justifyContent","padding","marginRight","marginBottom","transform","_excluded","React","prefixCls","pointProps","_onChange","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","cls","filter","Boolean","join","clsPoint","Swatch","rectRender","_objectDestructuringEmpty","hsvColor","handleColor","displayName","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/331.70a60209.chunk.js b/static/js/331.70a60209.chunk.js new file mode 100644 index 000000000..8862bdb8b --- /dev/null +++ b/static/js/331.70a60209.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[331],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var o=r(7804),s=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=i.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,d=i.Ay.div` + padding-bottom: 120px; +`,c=i.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,h=i.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends o.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(d,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(s.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(c,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3434:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>d});var o=r(7804),s=r(11),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:t,dispatch:e}=(0,o.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(s.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}})})}class d extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-material/README.md",this.getMdStr=()=>r.e(716).then(r.bind(r,716)),this.example=(0,l.jsx)(n,{})}}},11:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var o=r(8102),s=r(9257),i=r(7804),a=r(2945),l=r(5991),n=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},p=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-material",className:i,style:p,color:g,onChange:u}=t,x=(0,s.A)(t,c),m="string"===typeof g&&(0,a.validHex)(g)?(0,a.hexToHsva)(g):g,b=g?(0,a.hsvaToHex)(m).replace(/^#/,""):"",f=(t,e)=>{"string"===typeof t&&(0,a.validHex)(t)&&/(3|6)/.test(String(t.length))&&u&&u((0,a.color)((0,a.hexToHsva)(t)))},v=(0,o.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},p);return(0,d.jsxs)("div",(0,o.A)({ref:e,className:[r,i||""].filter(Boolean).join(" "),style:v},x,{children:[(0,d.jsx)(l.default,{label:"Hex",value:b.toLocaleUpperCase(),onChange:(t,e)=>f(e),onBlur:t=>{var e=t.target.value;t.target.value=e.slice(0,6),f(e.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:b?"#"+b:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(n.default,{hsva:m,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},aProps:!1,onChange:t=>{return e=t.hsva,void(u&&u((0,a.color)(e)));var e}})]}))}));p.displayName="Material";const g=p}}]); +//# sourceMappingURL=331.70a60209.chunk.js.map \ No newline at end of file diff --git a/static/js/331.70a60209.chunk.js.map b/static/js/331.70a60209.chunk.js.map new file mode 100644 index 000000000..d2a2ca0a9 --- /dev/null +++ b/static/js/331.70a60209.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/331.70a60209.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM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,MAAO,MACPd,MAAOJ,EAAImB,oBACXrC,SAAUA,CAACuB,EAAKe,IAAQjB,EAAUiB,GAClCC,OAAQhB,IACN,IAAID,EAAQC,EAAIvC,OAAOsC,MACvBC,EAAIvC,OAAOsC,MAAQA,EAAMkB,MAAM,EAAG,GAClCnB,EAAUC,EAAMkB,MAAM,EAAG,GAAQ,EAEnCC,WAAY,CACVjC,QAAS,EACTnB,OAAQ,EACRkB,OAAQ,GACRE,SAAU,GACVC,QAAS,EACTpB,UAAW,UACXc,YAAa,YACbC,kBAAmBa,EAAM,IAAMA,EAAM,sCACrCZ,kBAAmB,QACnBoC,WAAY,eAEdtD,MAAO,CACLuD,cAAe,iBACfC,WAAY,iBAEC7D,EAAAA,EAAAA,KAAK8D,EAAAA,QAAM,CAC1BpD,KAAMA,EACNqD,UAAW,MACX1D,MAAO,CACL2D,UAAW,IAEbC,OAAQ,CACN5D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B8C,OAAQ,CACN7D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B+C,OAAQ,CACN9D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3BgD,QAAQ,EACRnD,SAAUoD,IAAUC,OAvELC,EAuEkBF,EAAO3D,UAtE1CO,GAAYA,GAAS2B,EAAAA,EAAAA,OAAY2B,KADhBA,KAwEjB,OACC,IAELxD,EAASyD,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/material/index.tsx","../../packages/color-material/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Material from '@uiw/react-color-material';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-material/README.md';\n getMdStr = () => import('@uiw/react-color-material/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Material","color","onChange","arguments","_excluded","styleRBG","borderWidth","borderBottomColor","borderBottomStyle","height","outline","fontSize","padding","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleHex","value","evn","test","String","length","handleColor","styleWrapper","_extends","fontFamily","backgroundColor","filter","Boolean","join","EditableInput","label","toLocaleUpperCase","val","onBlur","slice","inputStyle","background","flexDirection","alignItems","RGBA","placement","marginTop","rProps","gProps","bProps","aProps","result","handleChange","hsv","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/331.ec3d64b4.chunk.js b/static/js/331.ec3d64b4.chunk.js deleted file mode 100644 index 05a68718c..000000000 --- a/static/js/331.ec3d64b4.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[331],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var o,s,i,a,n,l=r(114),d=r(7804),c=r(52),h=r(3235),p=r(9424);const g=h.Ay.div(o||(o=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=h.Ay.a(s||(s=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=h.Ay.div(i||(i=(0,l.A)(["\n padding-bottom: 120px;\n"]))),m=h.Ay.footer(a||(a=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=h.Ay.div(n||(n=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends d.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3434:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>d});var o=r(7804),s=r(11),i=r(3623),a=r(7980),n=r(9424);function l(){const{hsva:t,dispatch:e}=(0,o.useContext)(a.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(s.default,{color:t,onChange:r=>{e({hsva:{...t,...r.hsva}})}})})}class d extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-material/README.md",this.getMdStr=()=>r.e(716).then(r.bind(r,716)),this.example=(0,n.jsx)(l,{})}}},11:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var o=r(8102),s=r(9257),i=r(7804),a=r(2945),n=r(5991),l=r(6436),d=r(9424),c=["prefixCls","className","style","color","onChange"],h={boxShadow:"initial",borderWidth:"0 0 1px 0",borderBottomColor:"var(--material-border-bottom-color)",borderBottomStyle:"solid",height:30,outline:0,fontSize:15,padding:0},p=i.forwardRef(((t,e)=>{var{prefixCls:r="w-color-material",className:i,style:p,color:g,onChange:u}=t,x=(0,s.A)(t,c),m="string"===typeof g&&(0,a.validHex)(g)?(0,a.hexToHsva)(g):g,b=g?(0,a.hsvaToHex)(m).replace(/^#/,""):"",f=(t,e)=>{"string"===typeof t&&(0,a.validHex)(t)&&/(3|6)/.test(String(t.length))&&u&&u((0,a.color)((0,a.hexToHsva)(t)))},v=(0,o.A)({"--material-border-bottom-color":"#eee","--material-background-color":"#fff",padding:16,width:98,fontFamily:"Roboto",backgroundColor:"var(--material-background-color)"},p);return(0,d.jsxs)("div",(0,o.A)({ref:e,className:[r,i||""].filter(Boolean).join(" "),style:v},x,{children:[(0,d.jsx)(n.default,{label:"Hex",value:b.toLocaleUpperCase(),onChange:(t,e)=>f(e),onBlur:t=>{var e=t.target.value;t.target.value=e.slice(0,6),f(e.slice(0,6))},inputStyle:{outline:0,border:0,height:30,fontSize:15,padding:0,boxShadow:"initial",borderWidth:"0 0 2px 0",borderBottomColor:b?"#"+b:"var(--material-border-bottom-color)",borderBottomStyle:"solid",background:"transparent"},style:{flexDirection:"column-reverse",alignItems:"flex-start"}}),(0,d.jsx)(l.default,{hsva:m,placement:"top",style:{marginTop:11},rProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},gProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},bProps:{style:{alignItems:"flex-start"},inputStyle:(0,o.A)({},h)},aProps:!1,onChange:t=>{return e=t.hsva,void(u&&u((0,a.color)(e)));var e}})]}))}));p.displayName="Material";const g=p}}]); -//# sourceMappingURL=331.ec3d64b4.chunk.js.map \ No newline at end of file diff --git a/static/js/331.ec3d64b4.chunk.js.map b/static/js/331.ec3d64b4.chunk.js.map deleted file mode 100644 index 402da30ad..000000000 --- a/static/js/331.ec3d64b4.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/331.ec3d64b4.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAA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AAMkB,MAAM,EAAG,GAAQ,EAEnCC,WAAY,CACVjC,QAAS,EACTnB,OAAQ,EACRkB,OAAQ,GACRE,SAAU,GACVC,QAAS,EACTpB,UAAW,UACXc,YAAa,YACbC,kBAAmBa,EAAM,IAAMA,EAAM,sCACrCZ,kBAAmB,QACnBoC,WAAY,eAEdtD,MAAO,CACLuD,cAAe,iBACfC,WAAY,iBAEC9D,EAAAA,EAAAA,KAAK+D,EAAAA,QAAM,CAC1BpD,KAAMA,EACNqD,UAAW,MACX1D,MAAO,CACL2D,UAAW,IAEbC,OAAQ,CACN5D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B8C,OAAQ,CACN7D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3B+C,OAAQ,CACN9D,MAAO,CACLwD,WAAY,cAEdH,YAAYZ,EAAAA,EAAAA,GAAS,CAAC,EAAG1B,IAE3BgD,QAAQ,EACRnD,SAAUoD,IAAUC,OAvELC,EAuEkBF,EAAO3D,UAtE1CO,GAAYA,GAAS2B,EAAAA,EAAAA,OAAY2B,KADhBA,KAwEjB,OACC,IAELxD,EAASyD,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/material/index.tsx","../../packages/color-material/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Material from '@uiw/react-color-material';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-material/README.md';\n getMdStr = () => import('@uiw/react-color-material/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"onChange\"];\nimport React from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar styleRBG = {\n boxShadow: 'initial',\n borderWidth: '0 0 1px 0',\n borderBottomColor: 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n height: 30,\n outline: 0,\n fontSize: 15,\n padding: 0\n};\nvar Material = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-material',\n className,\n style,\n color,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChange = hsv => {\n onChange && onChange(handleColor(hsv));\n };\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n onChange && onChange(handleColor(hexToHsva(value)));\n }\n };\n var styleWrapper = _extends({\n '--material-border-bottom-color': '#eee',\n '--material-background-color': '#fff',\n padding: 16,\n width: 98,\n fontFamily: 'Roboto',\n backgroundColor: 'var(--material-background-color)'\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n className: [prefixCls, className || ''].filter(Boolean).join(' '),\n style: styleWrapper\n }, other, {\n children: [/*#__PURE__*/_jsx(EditableInput, {\n label: \"Hex\",\n value: hex.toLocaleUpperCase(),\n onChange: (evn, val) => handleHex(val, evn),\n onBlur: evn => {\n var value = evn.target.value;\n evn.target.value = value.slice(0, 6);\n handleHex(value.slice(0, 6), evn);\n },\n inputStyle: {\n outline: 0,\n border: 0,\n height: 30,\n fontSize: 15,\n padding: 0,\n boxShadow: 'initial',\n borderWidth: '0 0 2px 0',\n borderBottomColor: hex ? \"#\" + hex : 'var(--material-border-bottom-color)',\n borderBottomStyle: 'solid',\n background: 'transparent'\n },\n style: {\n flexDirection: 'column-reverse',\n alignItems: 'flex-start'\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"top\",\n style: {\n marginTop: 11\n },\n rProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n gProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n bProps: {\n style: {\n alignItems: 'flex-start'\n },\n inputStyle: _extends({}, styleRBG)\n },\n aProps: false,\n onChange: result => handleChange(result.hsva)\n })]\n }));\n});\nMaterial.displayName = 'Material';\nexport default Material;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Material","color","onChange","arguments","_excluded","styleRBG","borderWidth","borderBottomColor","borderBottomStyle","height","outline","fontSize","padding","React","ref","prefixCls","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleHex","value","evn","test","String","length","handleColor","styleWrapper","_extends","fontFamily","backgroundColor","filter","Boolean","join","EditableInput","label","toLocaleUpperCase","val","onBlur","slice","inputStyle","background","flexDirection","alignItems","RGBA","placement","marginTop","rProps","gProps","bProps","aProps","result","handleChange","hsv","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/369.cac19222.chunk.js b/static/js/369.cac19222.chunk.js new file mode 100644 index 000000000..237642e79 --- /dev/null +++ b/static/js/369.cac19222.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[369],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),o=r(3235),a=r(9424);const d=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(d,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},5724:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-name/README.md",this.getMdStr=()=>r.e(74).then(r.bind(r,9074))}}}}]); +//# sourceMappingURL=369.cac19222.chunk.js.map \ No newline at end of file diff --git a/static/js/369.cac19222.chunk.js.map b/static/js/369.cac19222.chunk.js.map new file mode 100644 index 000000000..3bc394863 --- /dev/null +++ b/static/js/369.cac19222.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/369.cac19222.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,CAAAgC,SAAA,CACbf,KAAKH,YACJmB,EAAAA,EAAAA,KAAC9B,EAAS,CAAC+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AAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,iCAAiC,KAC7CC,SAAW,IAAM,4BAA0C,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/name/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-name/README.md';\n getMdStr = () => import('@uiw/react-color-name/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/369.eb99df79.chunk.js b/static/js/369.eb99df79.chunk.js deleted file mode 100644 index f34aab596..000000000 --- a/static/js/369.eb99df79.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[369],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>j});var s,i,n,o,a,d=r(114),c=r(7804),h=r(52),l=r(3235),p=r(9424);const g=l.Ay.div(s||(s=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends c.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},5724:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-name/README.md",this.getMdStr=()=>r.e(74).then(r.bind(r,9074))}}}}]); -//# sourceMappingURL=369.eb99df79.chunk.js.map \ No newline at end of file diff --git a/static/js/369.eb99df79.chunk.js.map b/static/js/369.eb99df79.chunk.js.map deleted file mode 100644 index bbcb9f216..000000000 --- a/static/js/369.eb99df79.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/369.eb99df79.chunk.js","mappings":"6EAAA,SAASA,EA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D,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAiC,WAAA,KACtC9B,UAAY,iCAAiC,KAC7CC,SAAW,IAAM,4BAA0C,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/name/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-name/README.md';\n getMdStr = () => import('@uiw/react-color-name/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/494.785fbe56.chunk.js b/static/js/494.785fbe56.chunk.js new file mode 100644 index 000000000..c49bfb33c --- /dev/null +++ b/static/js/494.785fbe56.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[494],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const h=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,d=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(d,{className:"wmde-markdown-var",children:[(0,a.jsxs)(h,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},8593:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(7804),i=s(1068),o=s(3623),a=s(7980),h=s(9424);function n(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,h.jsx)("div",{style:{width:256},children:(0,h.jsx)(i.default,{hue:t.h,onChange:s=>{e({hsva:{...t,...s}})}})})}class d extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-hue/README.md",this.getMdStr=()=>s.e(655).then(s.bind(s,2655)),this.example=(0,h.jsx)(n,{})}}}}]); +//# sourceMappingURL=494.785fbe56.chunk.js.map \ No newline at end of file diff --git a/static/js/494.785fbe56.chunk.js.map b/static/js/494.785fbe56.chunk.js.map new file mode 100644 index 000000000..8547b55d6 --- /dev/null +++ b/static/js/494.785fbe56.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/494.785fbe56.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAA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EAAAA,KAACe,EAAAA,QAAG,CACFC,IAAKN,EAAKO,EACVC,SAAWC,IACTR,EAAU,CAAED,KAAM,IAAKA,KAASS,IAAW,KAKrD,CAEO,MAAM1C,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA0C,WAAA,KACtCvC,UAAY,gCAAgC,KAC5CC,SAAW,IAAM,8BAAyC,KAC1DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/hue/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Hue from '@uiw/react-color-hue';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newHue } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-hue/README.md';\n getMdStr = () => import('@uiw/react-color-hue/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Hue","hue","h","onChange","newHue","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/494.a4c12fe4.chunk.js b/static/js/494.a4c12fe4.chunk.js deleted file mode 100644 index c2cb2c2ec..000000000 --- a/static/js/494.a4c12fe4.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[494],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,o,a,h=s(114),d=s(7804),c=s(52),l=s(3235),p=s(9424);const g=l.Ay.div(r||(r=(0,h.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,h.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,h.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,h.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,h.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends d.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},8593:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(7804),i=s(1068),n=s(3623),o=s(7980),a=s(9424);function h(){const{hsva:t,dispatch:e}=(0,r.useContext)(o.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(i.default,{hue:t.h,onChange:s=>{e({hsva:{...t,...s}})}})})}class d extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-hue/README.md",this.getMdStr=()=>s.e(655).then(s.bind(s,2655)),this.example=(0,a.jsx)(h,{})}}}}]); -//# sourceMappingURL=494.a4c12fe4.chunk.js.map \ No newline at end of file diff --git a/static/js/522.5dd23c9f.chunk.js b/static/js/522.5dd23c9f.chunk.js deleted file mode 100644 index 308ec1297..000000000 --- a/static/js/522.5dd23c9f.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[522],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>j});var s,i,n,o,a,d=r(114),c=r(7804),h=r(52),l=r(3235),p=r(9424);const g=l.Ay.div(s||(s=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends c.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9739:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/drag-event-interactive/README.md",this.getMdStr=()=>r.e(583).then(r.bind(r,9583))}}}}]); -//# sourceMappingURL=522.5dd23c9f.chunk.js.map \ No newline at end of file diff --git a/static/js/522.5dd23c9f.chunk.js.map b/static/js/522.5dd23c9f.chunk.js.map deleted file mode 100644 index 6efea9b49..000000000 --- a/static/js/522.5dd23c9f.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/522.5dd23c9f.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV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A8CF,OAAO,UAASF,UACpEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,yDAAyDC,IAAI,qBAExEV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,4DAA4DC,IAAI,oBAE3EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,8DAA8DC,IAAI,sBAE7EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,0CAA0CC,IAAI,mBAEzDV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAiC,WAAA,KACtC9B,UAAY,6CAA6C,KACzDC,SAAW,IAAM,6BAAsD,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/drag-event-interactive/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/drag-event-interactive/README.md';\n getMdStr = () => import('@uiw/react-drag-event-interactive/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/522.eb20bfc8.chunk.js b/static/js/522.eb20bfc8.chunk.js new file mode 100644 index 000000000..ff107bd67 --- /dev/null +++ b/static/js/522.eb20bfc8.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[522],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),o=r(3235),a=r(9424);const d=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(d,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9739:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/drag-event-interactive/README.md",this.getMdStr=()=>r.e(583).then(r.bind(r,9583))}}}}]); +//# sourceMappingURL=522.eb20bfc8.chunk.js.map \ No newline at end of file diff --git a/static/js/522.eb20bfc8.chunk.js.map b/static/js/522.eb20bfc8.chunk.js.map new file mode 100644 index 000000000..0f07196ae --- /dev/null +++ b/static/js/522.eb20bfc8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/522.eb20bfc8.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACA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7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,6CAA6C,KACzDC,SAAW,IAAM,6BAAsD,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/drag-event-interactive/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/drag-event-interactive/README.md';\n getMdStr = () => import('@uiw/react-drag-event-interactive/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/563.06116de6.chunk.js b/static/js/563.06116de6.chunk.js new file mode 100644 index 000000000..32ec77cb1 --- /dev/null +++ b/static/js/563.06116de6.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[563],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=i.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,c=i.Ay.div` + padding-bottom: 120px; +`,d=i.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,h=i.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(c,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(h,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(d,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7812:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(7355),i=r(3623),a=r(7980),l=r(9424);function n(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(o.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends i.A{constructor(){super(...arguments),this.editorUrl="/packages/color-compact/README.md",this.getMdStr=()=>r.e(78).then(r.bind(r,7078)),this.example=(0,l.jsx)(n,{})}}},7355:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(8102),o=r(9257),i=r(7804),a=r(2945),l=r(5991),n=r(6436),c=r(6966),d=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],p=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function g(e){return e.checked?(0,d.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,a.getContrastingColor)(e.color)}}):null}var x=i.forwardRef(((e,t)=>{var{prefixCls:r="w-color-compact",className:x,style:u,onChange:b,color:m,colors:f=p,rectProps:j,rectRender:v}=e,w=(0,o.A)(e,h),C="string"===typeof m&&(0,a.validHex)(m)?(0,a.hexToHsva)(m):m,k=m?(0,a.hsvaToHex)(C).replace(/^#/,""):"",y=(0,i.useCallback)((e=>b&&b((0,a.color)(e))),[]),F={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},A=(0,s.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,d.jsxs)("div",(0,s.A)({ref:t,style:A,className:[r,x||""].filter(Boolean).join(" ")},w,{children:[(0,d.jsx)(c.default,{colors:f,color:m?(0,a.hsvaToHex)(C):void 0,rectRender:v,rectProps:(0,s.A)({children:(0,d.jsx)(g,{})},j,{style:(0,s.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==j?void 0:j.style)}),onChange:e=>y(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(l.default,{onChange:(e,t)=>{var r;"string"===typeof(r=t)&&(0,a.validHex)(r)&&/(3|6)/.test(String(r.length))&&y((0,a.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:k.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+k}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(n.default,{hsva:C,placement:"left",onChange:e=>y(e.hsva),aProps:!1,rProps:F,gProps:F,bProps:F})]})]}))}));x.displayName="Compact";const u=x}}]); +//# sourceMappingURL=563.06116de6.chunk.js.map \ No newline at end of file diff --git a/static/js/563.06116de6.chunk.js.map b/static/js/563.06116de6.chunk.js.map new file mode 100644 index 000000000..e0ade8db5 --- /dev/null +++ b/static/js/563.06116de6.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/563.06116de6.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC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/Markdown.tsx","pages/compact/index.tsx","../../packages/color-compact/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Compact from '@uiw/react-color-compact';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-compact/README.md';\n getMdStr = () => import('@uiw/react-color-compact/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Compact","color","onChange","arguments","_excluded","COLORS","Point","checked","height","borderRadius","backgroundColor","getContrastingColor","React","ref","prefixCls","colors","rectProps","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleChangeCallback","useCallback","hsv","handleColor","rgbProps","alignItems","inputStyle","outline","wrapperStyle","_extends","background","display","flexWrap","paddingTop","paddingLeft","filter","Boolean","join","Swatch","undefined","justifyContent","hsvColor","margin","EditableInput","evn","val","handleHex","value","test","String","length","labelStyle","paddingRight","marginTop","toLocaleUpperCase","label","flexDirection","flex","minWidth","RGBA","placement","result","aProps","rProps","gProps","bProps","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/563.a6213746.chunk.js b/static/js/563.a6213746.chunk.js deleted file mode 100644 index 70e061c68..000000000 --- a/static/js/563.a6213746.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[563],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var s,o,n,i,a,l=r(114),c=r(7804),d=r(52),h=r(3235),p=r(9424);const g=h.Ay.div(s||(s=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),x=h.Ay.a(o||(o=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),u=h.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=h.Ay.footer(i||(i=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=h.Ay.div(a||(a=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends c.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,p.jsxs)(u,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7812:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>c});var s=r(7804),o=r(7355),n=r(3623),i=r(7980),a=r(9424);function l(){const{hsva:e,dispatch:t}=(0,s.useContext)(i.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(o.default,{color:e,style:{boxShadow:"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px"},onChange:r=>{t({hsva:{...e,...r.hsva}})}})})}class c extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-compact/README.md",this.getMdStr=()=>r.e(78).then(r.bind(r,7078)),this.example=(0,a.jsx)(l,{})}}},7355:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var s=r(8102),o=r(9257),n=r(7804),i=r(2945),a=r(5991),l=r(6436),c=r(6966),d=r(9424),h=["prefixCls","className","style","onChange","color","colors","rectProps","rectRender"],p=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];function g(e){return e.checked?(0,d.jsx)("div",{style:{height:5,width:5,borderRadius:"50%",backgroundColor:(0,i.getContrastingColor)(e.color)}}):null}var x=n.forwardRef(((e,t)=>{var{prefixCls:r="w-color-compact",className:x,style:u,onChange:b,color:m,colors:f=p,rectProps:j,rectRender:v}=e,w=(0,o.A)(e,h),C="string"===typeof m&&(0,i.validHex)(m)?(0,i.hexToHsva)(m):m,k=m?(0,i.hsvaToHex)(C).replace(/^#/,""):"",y=(0,n.useCallback)((e=>b&&b((0,i.color)(e))),[]),A={style:{alignItems:"baseline"},inputStyle:{boxShadow:"none",backgroundColor:"transparent",outline:0}},F=(0,s.A)({"--compact-background-color":"#f6f6f6",background:"var(--compact-background-color)",borderRadius:3,display:"flex",width:240,flexWrap:"wrap",paddingTop:5,paddingLeft:5},u);return(0,d.jsxs)("div",(0,s.A)({ref:t,style:F,className:[r,x||""].filter(Boolean).join(" ")},w,{children:[(0,d.jsx)(c.default,{colors:f,color:m?(0,i.hsvaToHex)(C):void 0,rectRender:v,rectProps:(0,s.A)({children:(0,d.jsx)(g,{})},j,{style:(0,s.A)({display:"flex",alignItems:"center",justifyContent:"center"},null==j?void 0:j.style)}),onChange:e=>y(e)}),(0,d.jsxs)("div",{style:{display:"flex",margin:"0 4px 3px 0"},children:[(0,d.jsx)(a.default,{onChange:(e,t)=>{var r;"string"===typeof(r=t)&&(0,i.validHex)(r)&&/(3|6)/.test(String(r.length))&&y((0,i.hexToHsva)(r))},labelStyle:{paddingRight:5,marginTop:-1},value:k.toLocaleUpperCase(),label:(0,d.jsx)("div",{style:{width:8,height:8,backgroundColor:"#"+k}}),inputStyle:{outline:"none",boxShadow:"initial",background:"transparent"},style:{flexDirection:"row-reverse",flex:"1 1 0%",minWidth:80}}),(0,d.jsx)(l.default,{hsva:C,placement:"left",onChange:e=>y(e.hsva),aProps:!1,rProps:A,gProps:A,bProps:A})]})]}))}));x.displayName="Compact";const u=x}}]); -//# sourceMappingURL=563.a6213746.chunk.js.map \ No newline at end of file diff --git a/static/js/563.a6213746.chunk.js.map b/static/js/563.a6213746.chunk.js.map deleted file mode 100644 index 1d72b38ae..000000000 --- a/static/js/563.a6213746.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/563.a6213746.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA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WAAY,eAEd7C,MAAO,CACLuE,cAAe,cACfC,KAAM,SACNC,SAAU,OAEG/E,EAAAA,EAAAA,KAAKgF,EAAAA,QAAM,CAC1BrE,KAAMA,EACNsE,UAAW,OACX/D,SAAUgE,GAAUzC,EAAqByC,EAAOvE,MAChDwE,QAAQ,EACRC,OAAQvC,EACRwC,OAAQxC,EACRyC,OAAQzC,UAGX,IAEL7B,EAAQuE,YAAc,UACtB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/compact/index.tsx","../../packages/color-compact/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Compact from '@uiw/react-color-compact';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-compact/README.md';\n getMdStr = () => import('@uiw/react-color-compact/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"colors\", \"rectProps\", \"rectRender\"];\nimport React, { useCallback } from 'react';\nimport { color as handleColor, hexToHsva, validHex, hsvaToHex, getContrastingColor } from '@uiw/color-convert';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport RGBA from '@uiw/react-color-editable-input-rgba';\nimport Swatch from '@uiw/react-color-swatch';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar COLORS = ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'];\nfunction Point(props) {\n if (!props.checked) return null;\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n height: 5,\n width: 5,\n borderRadius: '50%',\n backgroundColor: getContrastingColor(props.color)\n }\n });\n}\nvar Compact = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-compact',\n className,\n style,\n onChange,\n color,\n colors = COLORS,\n rectProps,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva).replace(/^#/, '') : '';\n var handleChangeCallback = useCallback(hsv => onChange && onChange(handleColor(hsv)), []);\n var handleHex = (value, evn) => {\n if (typeof value === 'string' && validHex(value) && /(3|6)/.test(String(value.length))) {\n handleChangeCallback(hexToHsva(value));\n }\n };\n var rgbProps = {\n style: {\n alignItems: 'baseline'\n },\n inputStyle: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n outline: 0\n }\n };\n var wrapperStyle = _extends({\n '--compact-background-color': '#f6f6f6',\n background: 'var(--compact-background-color)',\n borderRadius: 3,\n display: 'flex',\n width: 240,\n flexWrap: 'wrap',\n paddingTop: 5,\n paddingLeft: 5\n }, style);\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: wrapperStyle,\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: [/*#__PURE__*/_jsx(Swatch, {\n colors: colors,\n color: color ? hsvaToHex(hsva) : undefined,\n rectRender: rectRender,\n rectProps: _extends({\n children: /*#__PURE__*/_jsx(Point, {})\n }, rectProps, {\n style: _extends({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n }, rectProps == null ? void 0 : rectProps.style)\n }),\n onChange: hsvColor => handleChangeCallback(hsvColor)\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n margin: '0 4px 3px 0'\n },\n children: [/*#__PURE__*/_jsx(EditableInput, {\n onChange: (evn, val) => handleHex(val, evn),\n labelStyle: {\n paddingRight: 5,\n marginTop: -1\n },\n value: hex.toLocaleUpperCase(),\n label: /*#__PURE__*/_jsx(\"div\", {\n style: {\n width: 8,\n height: 8,\n backgroundColor: \"#\" + hex\n }\n }),\n inputStyle: {\n outline: 'none',\n boxShadow: 'initial',\n background: 'transparent'\n },\n style: {\n flexDirection: 'row-reverse',\n flex: '1 1 0%',\n minWidth: 80\n }\n }), /*#__PURE__*/_jsx(RGBA, {\n hsva: hsva,\n placement: \"left\",\n onChange: result => handleChangeCallback(result.hsva),\n aProps: false,\n rProps: rgbProps,\n gProps: rgbProps,\n bProps: rgbProps\n })]\n })]\n }));\n});\nCompact.displayName = 'Compact';\nexport default Compact;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Compact","color","onChange","arguments","_excluded","COLORS","Point","checked","height","borderRadius","backgroundColor","getContrastingColor","React","ref","prefixCls","colors","rectProps","rectRender","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","hex","hsvaToHex","replace","handleChangeCallback","useCallback","hsv","handleColor","rgbProps","alignItems","inputStyle","outline","wrapperStyle","_extends","background","display","flexWrap","paddingTop","paddingLeft","filter","Boolean","join","Swatch","undefined","justifyContent","hsvColor","margin","EditableInput","evn","val","handleHex","value","test","String","length","labelStyle","paddingRight","marginTop","toLocaleUpperCase","label","flexDirection","flex","minWidth","RGBA","placement","result","aProps","rProps","gProps","bProps","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/571.7d7437b7.chunk.js b/static/js/571.7d7437b7.chunk.js new file mode 100644 index 000000000..02fd8049b --- /dev/null +++ b/static/js/571.7d7437b7.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[571],{256:e=>{function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=256,e.exports=r},3623:(e,r,t)=>{"use strict";t.d(r,{A:()=>c});var o=t(7804),a=t(52),s=t(3235),l=t(9424);const i=s.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=s.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,p=s.Ay.div` + padding-bottom: 120px; +`,h=s.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,d=s.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class c extends o.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:r,data:t}=this.state.mdObj||{};return(0,l.jsxs)(p,{className:"wmde-markdown-var",children:[(0,l.jsxs)(i,{children:[this.editorUrl&&(0,l.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,l.jsxs)(d,{children:[(0,l.jsx)("h3",{children:"Example"}),this.example]}),(0,l.jsx)(a.A,{data:{data:t,components:r,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,l.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,l.jsxs)(h,{children:[(0,l.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,l.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,l.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,l.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,l.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9262:(e,r,t)=>{"use strict";t.r(r),t.d(r,{ChromeInputType:()=>w,default:()=>j});var o=t(8102),a=t(9257),s=t(7804),l=t(2945),i=t(2051),n=t(2084),p=t(1068),h=t(1636),d=t(5991),c=t(6436),u=t(8088),g=t(9424),b=["style"];function x(e){var{style:r}=e,t=(0,a.A)(e,b),l=(0,s.useRef)(null),i=(0,s.useCallback)((()=>{l.current.style.backgroundColor="var(--chrome-arrow-background-color)"}),[]),n=(0,s.useCallback)((()=>{l.current.style.backgroundColor="transparent"}),[]);return(0,g.jsx)("div",(0,o.A)({ref:l,style:(0,o.A)({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},r)},t,{onMouseEnter:i,onMouseLeave:n,children:(0,g.jsx)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:(0,g.jsx)("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}var m="EyeDropper"in window;function f(e){return(0,g.jsx)("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&(new window.EyeDropper).open().then((r=>{console.log(r),null==e.onPickColor||e.onPickColor(r.sRGBHex)}))},children:(0,g.jsx)("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var v=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],w=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),y=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-chrome",className:b,style:y,color:j,showEditableInput:C=!0,showEyeDropper:A=!0,showColorPreview:R=!0,showHue:k=!0,showAlpha:T=!0,inputType:B=w.RGBA,rectProps:S={},onChange:P}=e,L=(0,a.A)(e,v),E="string"===typeof j&&(0,l.validHex)(j)?(0,l.hexToHsva)(j):j||{h:0,s:0,l:0,a:0},H=e=>P&&P((0,l.color)(e)),[D,M]=(0,s.useState)(B),_={paddingTop:6},N={textAlign:"center",paddingTop:4,paddingBottom:4},z=(0,o.A)({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},y),F={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:(0,l.hsvaToRgbaString)(E),boxShadow:"var(--chrome-alpha-box-shadow)"},G={height:14,width:14},I={style:(0,o.A)({},G),fillProps:{style:G}};return(0,g.jsx)(i.default,(0,o.A)({ref:r,color:E,style:z,colors:void 0,className:[t,b].filter(Boolean).join(" "),placement:i.GithubPlacement.TopLeft},L,{addonAfter:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(n.default,{hsva:E,style:{width:"100%",height:130},onChange:e=>{H((0,o.A)({},E,e,{a:E.a}))}}),(0,g.jsxs)("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[m&&A&&(0,g.jsx)(f,{onPickColor:e=>{var r=(0,l.hexToHsva)(e);H((0,o.A)({},r))}}),R&&(0,g.jsx)(h.default,{width:28,height:28,hsva:E,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:F},pointer:()=>(0,g.jsx)(s.Fragment,{})}),(0,g.jsxs)("div",{style:{flex:1},children:[1==k&&(0,g.jsx)(p.default,{hue:E.h,style:{width:"100%",height:12},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}}),1==T&&(0,g.jsx)(h.default,{hsva:E,style:{marginTop:6,height:12},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}})]})]}),C&&(0,g.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[(0,g.jsxs)("div",{style:{flex:1},children:[D==w.RGBA&&(0,g.jsx)(c.default,{hsva:E,rProps:{labelStyle:_,inputStyle:N},gProps:{labelStyle:_,inputStyle:N},bProps:{labelStyle:_,inputStyle:N},aProps:{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)}),D===w.HEXA&&(0,g.jsx)(d.default,{label:"HEX",labelStyle:_,inputStyle:N,value:E.a>0&&E.a<1?(0,l.hsvaToHexa)(E).toLocaleUpperCase():(0,l.hsvaToHex)(E).toLocaleUpperCase(),onChange:(e,r)=>{"string"===typeof r&&H((0,l.hexToHsva)(/^#/.test(r)?r:"#"+r))}}),D===w.HSLA&&(0,g.jsx)(u.default,{hsva:E,hProps:{labelStyle:_,inputStyle:N},sProps:{labelStyle:_,inputStyle:N},lProps:{labelStyle:_,inputStyle:N},aProps:{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)})]}),(0,g.jsx)(x,{onClick:()=>{D===w.RGBA&&M(w.HSLA),D===w.HSLA&&M(w.HEXA),D===w.HEXA&&M(w.RGBA)}})]})]}),rectRender:()=>(0,g.jsx)(s.Fragment,{})}))}));y.displayName="Chrome";const j=y},8088:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>d});var o=t(8102),a=t(9257),s=t(7804),l=t(6436),i=t(2945),n=t(9424),p=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],h=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-editable-input-hsla",hsva:s,hProps:h={},sProps:d={},lProps:c={},aProps:u={},className:g,onChange:b}=e,x=(0,a.A)(e,p),m=s?(0,i.hsvaToHsla)(s):{h:0,s:0,l:0,a:0},f=(e,r,t)=>{"number"===typeof e&&("h"===r&&(e<0&&(e=0),e>360&&(e=360),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{h:e}))))),"s"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{s:e}))))),"l"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{l:e}))))),"a"===r&&(e<0&&(e=0),e>1&&(e=1),b&&b((0,i.color)((0,i.hslaToHsva)((0,o.A)({},m,{a:e}))))))};return(0,n.jsx)(l.default,(0,o.A)({ref:r,hsva:s,rProps:(0,o.A)({label:"H",value:Math.round(m.h)},h,{onChange:(e,r)=>f(r,"h")}),gProps:(0,o.A)({label:"S",value:Math.round(m.s)+"%"},d,{onChange:(e,r)=>f(r,"s")}),bProps:(0,o.A)({label:"L",value:Math.round(m.l)+"%"},c,{onChange:(e,r)=>f(r,"l")}),aProps:(0,o.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(e,r)=>f(r,"a")}),className:[t,g||""].filter(Boolean).join(" ")},x))}));h.displayName="EditableInputHSLA";const d=h},2051:(e,r,t)=>{"use strict";t.r(r),t.d(r,{GithubPlacement:()=>g,default:()=>x});var o=t(9520),a=t(8102),s=t(9257),l=t(7804),i=t(2945),n=t(6966),p=t(9424),h={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function d(e){var{style:r,title:t,checked:o,color:s,onClick:i,rectProps:n}=e,d=(0,l.useRef)(null),c=(0,l.useCallback)((()=>{d.current.style.zIndex="2",d.current.style.outline="#fff solid 2px",d.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),u=(0,l.useCallback)((()=>{o||(d.current.style.zIndex="0",d.current.style.outline="initial",d.current.style.boxShadow="initial")}),[o]),g=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,p.jsx)("div",(0,a.A)({ref:d,title:t},n,{onClick:i,onMouseEnter:c,onMouseLeave:u,style:(0,a.A)({},r,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},h,g,null==n?void 0:n.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],u=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],g=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),b=l.forwardRef(((e,r)=>{var{prefixCls:t="w-color-github",placement:h=g.TopRight,className:b,style:x,color:m,colors:f=u,rectProps:v={},onChange:w,rectRender:y}=e,j=(0,s.A)(e,c),C="string"===typeof m&&(0,i.validHex)(m)?(0,i.hexToHsva)(m):m,A=m?(0,i.hsvaToHex)(C):"",R=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},T=(0,a.A)({},k),B=(0,a.A)({},k);/^T/.test(h)&&(T.borderWidth="0 8px 8px",T.borderColor="transparent transparent var(--github-arrow-border-color)",B.borderWidth="0 7px 7px",B.borderColor="transparent transparent var(--github-background-color)"),h===g.TopRight&&(T.top=-8,B.top=-7),h===g.Top&&(T.top=-8,B.top=-7),h===g.TopLeft&&(T.top=-8,B.top=-7),/^B/.test(h)&&(T.borderWidth="8px 8px 0",T.borderColor="var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 0",B.borderColor="var(--github-background-color) transparent transparent",h===g.BottomRight&&(T.top="100%",B.top="100%"),h===g.Bottom&&(T.top="100%",B.top="100%"),h===g.BottomLeft&&(T.top="100%",B.top="100%")),/^(B|T)/.test(h)&&(h!==g.Top&&h!==g.Bottom||(T.left="50%",T.marginLeft=-8,B.left="50%",B.marginLeft=-7),h!==g.TopRight&&h!==g.BottomRight||(T.right=10,B.right=11),h!==g.TopLeft&&h!==g.BottomLeft||(T.left=7,B.left=8)),/^L/.test(h)&&(T.borderWidth="8px 8px 8px 0",T.borderColor="transparent var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 7px 0",B.borderColor="transparent var(--github-background-color) transparent transparent",T.left=-8,B.left=-7),/^R/.test(h)&&(T.borderWidth="8px 0 8px 8px",T.borderColor="transparent transparent transparent var(--github-arrow-border-color)",B.borderWidth="7px 0 7px 7px",B.borderColor="transparent transparent transparent var(--github-background-color)",T.right=-8,B.right=-7),/^(L|R)/.test(h)&&(h!==g.RightTop&&h!==g.LeftTop||(T.top=5,B.top=6),h!==g.Left&&h!==g.Right||(T.top="50%",B.top="50%",T.marginTop=-8,B.marginTop=-7),h!==g.LeftBottom&&h!==g.RightBottom||(T.top="100%",B.top="100%",T.marginTop=-21,B.marginTop=-20));return(0,p.jsx)(n.default,(0,a.A)({ref:r,className:[t,b].filter(Boolean).join(" "),colors:f,color:A,rectRender:e=>{var r=(0,a.A)({},((0,o.A)(e),e)),t=y&&y((0,a.A)({},r));return t||(0,p.jsx)(d,(0,a.A)({},r,{rectProps:v}))}},j,{onChange:e=>w&&w((0,i.color)(e)),style:R,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)("div",{style:T}),(0,p.jsx)("div",{style:B})]})}))}));b.displayName="Github";const x=b},9520:(e,r,t)=>{"use strict";function o(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(r,{A:()=>o})}}]); +//# sourceMappingURL=571.7d7437b7.chunk.js.map \ No newline at end of file diff --git a/static/js/571.7d7437b7.chunk.js.map b/static/js/571.7d7437b7.chunk.js.map new file mode 100644 index 000000000..ee41c92ce --- /dev/null +++ b/static/js/571.7d7437b7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/571.7d7437b7.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,G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AAA,EAAAA,GAA0B9B,GAAOA,IACvD+B,EAAS7C,GAAcA,GAAWlH,EAAAA,EAAAA,GAAS,CAAC,EAAGzC,IACnD,OAAIwM,IACgBnL,EAAAA,EAAAA,KAAKmJ,GAAO/H,EAAAA,EAAAA,GAAS,CAAC,EAAGzC,EAAO,CAClD8E,UAAWA,IACV,GAQF7C,EAAO,CACR8C,SAzHiBQ,GAAOR,GAAYA,GAASS,EAAAA,EAAAA,OAAYD,IA0HzD7D,MAAOuJ,EACPnG,UAAW,CACTpD,MAAO,CACL2I,YAAa,EACbC,aAAc,EACdxH,aAAc,EACdK,OAAQ,GACRD,MAAO,KAGXuJ,aAA0BvL,EAAAA,EAAAA,MAAMkG,EAAAA,SAAU,CACxChG,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCK,MAAO2J,KACQhK,EAAAA,EAAAA,KAAK,MAAO,CAC3BK,MAAO4J,SAGV,IAEL5E,EAAOkD,YAAc,SACrB,S,8BCtLA,SAAS2C,EAA0BG,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","../../packages/color-chrome/esm/Arrow.js","../../packages/color-chrome/esm/EyeDropper.js","../../packages/color-chrome/esm/index.js","../../packages/color-editable-input-hsla/esm/index.js","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React, { useRef, useCallback } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Arrow(props) {\n var {\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['backgroundColor'] = 'var(--chrome-arrow-background-color)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['backgroundColor'] = 'transparent';\n }, []);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n style: _extends({\n marginLeft: 5,\n cursor: 'pointer',\n transition: 'background-color .3s',\n borderRadius: 2\n }, style)\n }, other, {\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n children: /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 1024 1024\",\n width: \"24\",\n height: \"24\",\n style: {\n display: 'block'\n },\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z\",\n fill: \"var(--chrome-arrow-fill)\"\n })\n })\n }));\n}","import React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isSupportEyeDropper = 'EyeDropper' in window;\nexport function EyeDropper(props) {\n var click = () => {\n if ('EyeDropper' in window) {\n var eyeDropper = new window.EyeDropper();\n eyeDropper.open().then(result => {\n console.log(result);\n props.onPickColor == null || props.onPickColor(result.sRGBHex);\n });\n }\n };\n return /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 512 512\",\n height: \"1em\",\n width: \"1em\",\n onClick: click,\n children: /*#__PURE__*/_jsx(\"path\", {\n fill: \"currentColor\",\n d: \"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z\"\n })\n });\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"showEditableInput\", \"showEyeDropper\", \"showColorPreview\", \"showHue\", \"showAlpha\", \"inputType\", \"rectProps\", \"onChange\"];\nimport React, { Fragment } from 'react';\nimport { hsvaToRgbaString, color as handleColor, validHex, hexToHsva, hsvaToHex, hsvaToHexa } from '@uiw/color-convert';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport Alpha from '@uiw/react-color-alpha';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport { useState } from 'react';\nimport Arrow from './Arrow';\nimport { EyeDropper, isSupportEyeDropper } from './EyeDropper';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var ChromeInputType = /*#__PURE__*/function (ChromeInputType) {\n ChromeInputType[\"HEXA\"] = \"hexa\";\n ChromeInputType[\"RGBA\"] = \"rgba\";\n ChromeInputType[\"HSLA\"] = \"hsla\";\n return ChromeInputType;\n}({});\nvar Chrome = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-chrome',\n className,\n style,\n color,\n showEditableInput = true,\n showEyeDropper = true,\n showColorPreview = true,\n showHue = true,\n showAlpha = true,\n inputType = ChromeInputType.RGBA,\n rectProps = {},\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var [type, setType] = useState(inputType);\n var handleClick = () => {\n if (type === ChromeInputType.RGBA) {\n setType(ChromeInputType.HSLA);\n }\n if (type === ChromeInputType.HSLA) {\n setType(ChromeInputType.HEXA);\n }\n if (type === ChromeInputType.HEXA) {\n setType(ChromeInputType.RGBA);\n }\n };\n var labelStyle = {\n paddingTop: 6\n };\n var inputStyle = {\n textAlign: 'center',\n paddingTop: 4,\n paddingBottom: 4\n };\n var wrapperStyle = _extends({\n '--chrome-arrow-fill': '#333',\n '--chrome-arrow-background-color': '#e8e8e8',\n borderRadius: 0,\n flexDirection: 'column',\n width: 230,\n padding: 0\n }, style);\n var alphaStyle = {\n '--chrome-alpha-box-shadow': 'rgb(0 0 0 / 25%) 0px 0px 1px inset',\n borderRadius: '50%',\n background: hsvaToRgbaString(hsva),\n boxShadow: 'var(--chrome-alpha-box-shadow)'\n };\n var handleClickColor = hex => {\n var result = hexToHsva(hex);\n handleChange(_extends({}, result));\n };\n var styleSize = {\n height: 14,\n width: 14\n };\n var pointerProps = {\n style: _extends({}, styleSize),\n fillProps: {\n style: styleSize\n }\n };\n return /*#__PURE__*/_jsx(Github, _extends({\n ref: ref,\n color: hsva,\n style: wrapperStyle,\n colors: undefined,\n className: [prefixCls, className].filter(Boolean).join(' '),\n placement: GithubPlacement.TopLeft\n }, other, {\n addonAfter: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n style: {\n width: '100%',\n height: 130\n },\n onChange: newColor => {\n handleChange(_extends({}, hsva, newColor, {\n a: hsva.a\n }));\n }\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n padding: 15,\n display: 'flex',\n alignItems: 'center',\n gap: 10\n },\n children: [isSupportEyeDropper && showEyeDropper && /*#__PURE__*/_jsx(EyeDropper, {\n onPickColor: handleClickColor\n }), showColorPreview && /*#__PURE__*/_jsx(Alpha, {\n width: 28,\n height: 28,\n hsva: hsva,\n radius: 2,\n style: {\n borderRadius: '50%'\n },\n bgProps: {\n style: {\n background: 'transparent'\n }\n },\n innerProps: {\n style: alphaStyle\n },\n pointer: () => /*#__PURE__*/_jsx(Fragment, {})\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [showHue == true && /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n style: {\n width: '100%',\n height: 12\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newHue => {\n handleChange(_extends({}, hsva, newHue));\n }\n }), showAlpha == true && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n style: {\n marginTop: 6,\n height: 12\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newAlpha => {\n handleChange(_extends({}, hsva, newAlpha));\n }\n })]\n })]\n }), showEditableInput && /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '0 15px 15px 15px',\n userSelect: 'none'\n },\n children: [/*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [type == ChromeInputType.RGBA && /*#__PURE__*/_jsx(EditableInputRGBA, {\n hsva: hsva,\n rProps: {\n labelStyle,\n inputStyle\n },\n gProps: {\n labelStyle,\n inputStyle\n },\n bProps: {\n labelStyle,\n inputStyle\n },\n aProps: {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n }), type === ChromeInputType.HEXA && /*#__PURE__*/_jsx(EditableInput, {\n label: \"HEX\",\n labelStyle: labelStyle,\n inputStyle: inputStyle,\n value: hsva.a > 0 && hsva.a < 1 ? hsvaToHexa(hsva).toLocaleUpperCase() : hsvaToHex(hsva).toLocaleUpperCase(),\n onChange: (_, value) => {\n if (typeof value === 'string') {\n handleChange(hexToHsva(/^#/.test(value) ? value : \"#\" + value));\n }\n }\n }), type === ChromeInputType.HSLA && /*#__PURE__*/_jsx(EditableInputHSLA, {\n hsva: hsva,\n hProps: {\n labelStyle,\n inputStyle\n },\n sProps: {\n labelStyle,\n inputStyle\n },\n lProps: {\n labelStyle,\n inputStyle\n },\n aProps: {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n })]\n }), /*#__PURE__*/_jsx(Arrow, {\n onClick: handleClick\n })]\n })]\n }),\n rectRender: () => /*#__PURE__*/_jsx(Fragment, {})\n }));\n});\nChrome.displayName = 'Chrome';\nexport default Chrome;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n }),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","_excluded","Arrow","other","_objectWithoutPropertiesLoose","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","_extends","ref","marginLeft","cursor","transition","borderRadius","onMouseEnter","onMouseLeave","viewBox","width","height","display","d","fill","isSupportEyeDropper","window","EyeDropper","onClick","click","open","result","console","log","onPickColor","sRGBHex","ChromeInputType","Chrome","React","prefixCls","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","RGBA","rectProps","onChange","hsva","validHex","hexToHsva","h","s","l","handleChange","hsv","handleColor","type","setType","useState","labelStyle","paddingTop","inputStyle","textAlign","paddingBottom","wrapperStyle","flexDirection","padding","alphaStyle","background","hsvaToRgbaString","styleSize","pointerProps","fillProps","Github","colors","undefined","filter","Boolean","join","placement","GithubPlacement","TopLeft","addonAfter","Fragment","Saturation","newColor","alignItems","gap","hex","Alpha","radius","bgProps","innerProps","pointer","flex","Hue","hue","newHue","marginTop","newAlpha","userSelect","EditableInputRGBA","rProps","gProps","bProps","aProps","reColor","HEXA","EditableInput","label","value","hsvaToHexa","toLocaleUpperCase","hsvaToHex","_","test","HSLA","EditableInputHSLA","hProps","sProps","lProps","handleClick","rectRender","displayName","hsla","hsvaToHsla","evn","hslaToHsva","Math","round","val","defalutStyle","marginRight","marginBottom","boxSizing","Point","_ref","title","checked","rectStyle","zIndex","outline","CORLER_HEX","TopRight","styleWrapper","position","rStyle","borderStyle","arrBrStyl","arrStyl","borderWidth","borderColor","top","Top","BottomRight","Bottom","BottomLeft","left","right","RightTop","LeftTop","Left","Right","LeftBottom","RightBottom","Swatch","_objectDestructuringEmpty","handle","addonBefore","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/571.f2fe434b.chunk.js b/static/js/571.f2fe434b.chunk.js deleted file mode 100644 index e376ecd62..000000000 --- a/static/js/571.f2fe434b.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[571],{256:e=>{function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=256,e.exports=r},3623:(e,r,t)=>{"use strict";t.d(r,{A:()=>f});var o,a,s,n,l,i=t(114),p=t(7804),h=t(52),d=t(3235),c=t(9424);const u=d.Ay.div(o||(o=(0,i.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),g=d.Ay.a(a||(a=(0,i.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),b=d.Ay.div(s||(s=(0,i.A)(["\n padding-bottom: 120px;\n"]))),x=d.Ay.footer(n||(n=(0,i.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=d.Ay.div(l||(l=(0,i.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends p.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:r,data:t}=this.state.mdObj||{};return(0,c.jsxs)(b,{className:"wmde-markdown-var",children:[(0,c.jsxs)(u,{children:[this.editorUrl&&(0,c.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,c.jsxs)(m,{children:[(0,c.jsx)("h3",{children:"Example"}),this.example]}),(0,c.jsx)(h.A,{data:{data:t,components:r,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,c.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,c.jsxs)(x,{children:[(0,c.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,c.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,c.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,c.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,c.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},9262:(e,r,t)=>{"use strict";t.r(r),t.d(r,{ChromeInputType:()=>w,default:()=>j});var o=t(8102),a=t(9257),s=t(7804),n=t(2945),l=t(2051),i=t(2084),p=t(1068),h=t(1636),d=t(5991),c=t(6436),u=t(8088),g=t(9424),b=["style"];function x(e){var{style:r}=e,t=(0,a.A)(e,b),n=(0,s.useRef)(null),l=(0,s.useCallback)((()=>{n.current.style.backgroundColor="var(--chrome-arrow-background-color)"}),[]),i=(0,s.useCallback)((()=>{n.current.style.backgroundColor="transparent"}),[]);return(0,g.jsx)("div",(0,o.A)({ref:n,style:(0,o.A)({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},r)},t,{onMouseEnter:l,onMouseLeave:i,children:(0,g.jsx)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:(0,g.jsx)("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}var m="EyeDropper"in window;function f(e){return(0,g.jsx)("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:()=>{"EyeDropper"in window&&(new window.EyeDropper).open().then((r=>{console.log(r),null==e.onPickColor||e.onPickColor(r.sRGBHex)}))},children:(0,g.jsx)("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var v=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],w=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),y=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-chrome",className:b,style:y,color:j,showEditableInput:A=!0,showEyeDropper:C=!0,showColorPreview:R=!0,showHue:k=!0,showAlpha:T=!0,inputType:B=w.RGBA,rectProps:S={},onChange:P}=e,L=(0,a.A)(e,v),E="string"===typeof j&&(0,n.validHex)(j)?(0,n.hexToHsva)(j):j||{h:0,s:0,l:0,a:0},H=e=>P&&P((0,n.color)(e)),[D,M]=(0,s.useState)(B),_={paddingTop:6},N={textAlign:"center",paddingTop:4,paddingBottom:4},z=(0,o.A)({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},y),F={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:(0,n.hsvaToRgbaString)(E),boxShadow:"var(--chrome-alpha-box-shadow)"},G={height:14,width:14},I={style:(0,o.A)({},G),fillProps:{style:G}};return(0,g.jsx)(l.default,(0,o.A)({ref:r,color:E,style:z,colors:void 0,className:[t,b].filter(Boolean).join(" "),placement:l.GithubPlacement.TopLeft},L,{addonAfter:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(i.default,{hsva:E,style:{width:"100%",height:130},onChange:e=>{H((0,o.A)({},E,e,{a:E.a}))}}),(0,g.jsxs)("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[m&&C&&(0,g.jsx)(f,{onPickColor:e=>{var r=(0,n.hexToHsva)(e);H((0,o.A)({},r))}}),R&&(0,g.jsx)(h.default,{width:28,height:28,hsva:E,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:F},pointer:()=>(0,g.jsx)(s.Fragment,{})}),(0,g.jsxs)("div",{style:{flex:1},children:[1==k&&(0,g.jsx)(p.default,{hue:E.h,style:{width:"100%",height:12},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}}),1==T&&(0,g.jsx)(h.default,{hsva:E,style:{marginTop:6,height:12},pointerProps:I,bgProps:{style:{borderRadius:2}},onChange:e=>{H((0,o.A)({},E,e))}})]})]}),A&&(0,g.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[(0,g.jsxs)("div",{style:{flex:1},children:[D==w.RGBA&&(0,g.jsx)(c.default,{hsva:E,rProps:{labelStyle:_,inputStyle:N},gProps:{labelStyle:_,inputStyle:N},bProps:{labelStyle:_,inputStyle:N},aProps:{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)}),D===w.HEXA&&(0,g.jsx)(d.default,{label:"HEX",labelStyle:_,inputStyle:N,value:E.a>0&&E.a<1?(0,n.hsvaToHexa)(E).toLocaleUpperCase():(0,n.hsvaToHex)(E).toLocaleUpperCase(),onChange:(e,r)=>{"string"===typeof r&&H((0,n.hexToHsva)(/^#/.test(r)?r:"#"+r))}}),D===w.HSLA&&(0,g.jsx)(u.default,{hsva:E,hProps:{labelStyle:_,inputStyle:N},sProps:{labelStyle:_,inputStyle:N},lProps:{labelStyle:_,inputStyle:N},aProps:{labelStyle:_,inputStyle:N},onChange:e=>H(e.hsva)})]}),(0,g.jsx)(x,{onClick:()=>{D===w.RGBA&&M(w.HSLA),D===w.HSLA&&M(w.HEXA),D===w.HEXA&&M(w.RGBA)}})]})]}),rectRender:()=>(0,g.jsx)(s.Fragment,{})}))}));y.displayName="Chrome";const j=y},8088:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>d});var o=t(8102),a=t(9257),s=t(7804),n=t(6436),l=t(2945),i=t(9424),p=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],h=s.forwardRef(((e,r)=>{var{prefixCls:t="w-color-editable-input-hsla",hsva:s,hProps:h={},sProps:d={},lProps:c={},aProps:u={},className:g,onChange:b}=e,x=(0,a.A)(e,p),m=s?(0,l.hsvaToHsla)(s):{h:0,s:0,l:0,a:0},f=(e,r,t)=>{"number"===typeof e&&("h"===r&&(e<0&&(e=0),e>360&&(e=360),b&&b((0,l.color)((0,l.hslaToHsva)((0,o.A)({},m,{h:e}))))),"s"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,l.color)((0,l.hslaToHsva)((0,o.A)({},m,{s:e}))))),"l"===r&&(e<0&&(e=0),e>100&&(e=100),b&&b((0,l.color)((0,l.hslaToHsva)((0,o.A)({},m,{l:e}))))),"a"===r&&(e<0&&(e=0),e>1&&(e=1),b&&b((0,l.color)((0,l.hslaToHsva)((0,o.A)({},m,{a:e}))))))};return(0,i.jsx)(n.default,(0,o.A)({ref:r,hsva:s,rProps:(0,o.A)({label:"H",value:Math.round(m.h)},h,{onChange:(e,r)=>f(r,"h")}),gProps:(0,o.A)({label:"S",value:Math.round(m.s)+"%"},d,{onChange:(e,r)=>f(r,"s")}),bProps:(0,o.A)({label:"L",value:Math.round(m.l)+"%"},c,{onChange:(e,r)=>f(r,"l")}),aProps:(0,o.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(e,r)=>f(r,"a")}),className:[t,g||""].filter(Boolean).join(" ")},x))}));h.displayName="EditableInputHSLA";const d=h},2051:(e,r,t)=>{"use strict";t.r(r),t.d(r,{GithubPlacement:()=>g,default:()=>x});var o=t(9520),a=t(8102),s=t(9257),n=t(7804),l=t(2945),i=t(6966),p=t(9424),h={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function d(e){var{style:r,title:t,checked:o,color:s,onClick:l,rectProps:i}=e,d=(0,n.useRef)(null),c=(0,n.useCallback)((()=>{d.current.style.zIndex="2",d.current.style.outline="#fff solid 2px",d.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"}),[]),u=(0,n.useCallback)((()=>{o||(d.current.style.zIndex="0",d.current.style.outline="initial",d.current.style.boxShadow="initial")}),[o]),g=o?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return(0,p.jsx)("div",(0,a.A)({ref:d,title:t},i,{onClick:l,onMouseEnter:c,onMouseLeave:u,style:(0,a.A)({},r,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},h,g,null==i?void 0:i.style)}))}var c=["prefixCls","placement","className","style","color","colors","rectProps","onChange","rectRender"],u=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],g=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),b=n.forwardRef(((e,r)=>{var{prefixCls:t="w-color-github",placement:h=g.TopRight,className:b,style:x,color:m,colors:f=u,rectProps:v={},onChange:w,rectRender:y}=e,j=(0,s.A)(e,c),A="string"===typeof m&&(0,l.validHex)(m)?(0,l.hexToHsva)(m):m,C=m?(0,l.hsvaToHex)(A):"",R=(0,a.A)({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},x),k={borderStyle:"solid",position:"absolute"},T=(0,a.A)({},k),B=(0,a.A)({},k);/^T/.test(h)&&(T.borderWidth="0 8px 8px",T.borderColor="transparent transparent var(--github-arrow-border-color)",B.borderWidth="0 7px 7px",B.borderColor="transparent transparent var(--github-background-color)"),h===g.TopRight&&(T.top=-8,B.top=-7),h===g.Top&&(T.top=-8,B.top=-7),h===g.TopLeft&&(T.top=-8,B.top=-7),/^B/.test(h)&&(T.borderWidth="8px 8px 0",T.borderColor="var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 0",B.borderColor="var(--github-background-color) transparent transparent",h===g.BottomRight&&(T.top="100%",B.top="100%"),h===g.Bottom&&(T.top="100%",B.top="100%"),h===g.BottomLeft&&(T.top="100%",B.top="100%")),/^(B|T)/.test(h)&&(h!==g.Top&&h!==g.Bottom||(T.left="50%",T.marginLeft=-8,B.left="50%",B.marginLeft=-7),h!==g.TopRight&&h!==g.BottomRight||(T.right=10,B.right=11),h!==g.TopLeft&&h!==g.BottomLeft||(T.left=7,B.left=8)),/^L/.test(h)&&(T.borderWidth="8px 8px 8px 0",T.borderColor="transparent var(--github-arrow-border-color) transparent transparent",B.borderWidth="7px 7px 7px 0",B.borderColor="transparent var(--github-background-color) transparent transparent",T.left=-8,B.left=-7),/^R/.test(h)&&(T.borderWidth="8px 0 8px 8px",T.borderColor="transparent transparent transparent var(--github-arrow-border-color)",B.borderWidth="7px 0 7px 7px",B.borderColor="transparent transparent transparent var(--github-background-color)",T.right=-8,B.right=-7),/^(L|R)/.test(h)&&(h!==g.RightTop&&h!==g.LeftTop||(T.top=5,B.top=6),h!==g.Left&&h!==g.Right||(T.top="50%",B.top="50%",T.marginTop=-8,B.marginTop=-7),h!==g.LeftBottom&&h!==g.RightBottom||(T.top="100%",B.top="100%",T.marginTop=-21,B.marginTop=-20));return(0,p.jsx)(i.default,(0,a.A)({ref:r,className:[t,b].filter(Boolean).join(" "),colors:f,color:C,rectRender:e=>{var r=(0,a.A)({},((0,o.A)(e),e)),t=y&&y((0,a.A)({},r));return t||(0,p.jsx)(d,(0,a.A)({},r,{rectProps:v}))}},j,{onChange:e=>w&&w((0,l.color)(e)),style:R,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)("div",{style:T}),(0,p.jsx)("div",{style:B})]})}))}));b.displayName="Github";const x=b},9520:(e,r,t)=>{"use strict";function o(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(r,{A:()=>o})}}]); -//# sourceMappingURL=571.f2fe434b.chunk.js.map \ No newline at end of file diff --git a/static/js/571.f2fe434b.chunk.js.map b/static/js/571.f2fe434b.chunk.js.map deleted file mode 100644 index 855ac770b..000000000 --- a/static/js/571.f2fe434b.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/571.f2fe434b.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAA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EAAAA,GAAS,CAAC,EAAG1C,IACnD,OAAIyM,IACgBpL,EAAAA,EAAAA,KAAKoJ,GAAO/H,EAAAA,EAAAA,GAAS,CAAC,EAAG1C,EAAO,CAClD+E,UAAWA,IACV,GAQF7C,EAAO,CACR8C,SAzHiBQ,GAAOR,GAAYA,GAASS,EAAAA,EAAAA,OAAYD,IA0HzD7D,MAAOuJ,EACPnG,UAAW,CACTpD,MAAO,CACL2I,YAAa,EACbC,aAAc,EACdxH,aAAc,EACdK,OAAQ,GACRD,MAAO,KAGXuJ,aAA0BxL,EAAAA,EAAAA,MAAMmG,EAAAA,SAAU,CACxCjG,SAAU,EAAcC,EAAAA,EAAAA,KAAK,MAAO,CAClCM,MAAO2J,KACQjK,EAAAA,EAAAA,KAAK,MAAO,CAC3BM,MAAO4J,SAGV,IAEL5E,EAAOkD,YAAc,SACrB,S,8BCtLA,SAAS2C,EAA0BG,GACjC,GAAI,MAAQA,EAAG,MAAM,IAAIC,UAAU,sBAAwBD,EAC7D,C","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","../../packages/color-chrome/esm/Arrow.js","../../packages/color-chrome/esm/EyeDropper.js","../../packages/color-chrome/esm/index.js","../../packages/color-editable-input-hsla/esm/index.js","../../packages/color-github/esm/Point.js","../../packages/color-github/esm/index.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React, { useRef, useCallback } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function Arrow(props) {\n var {\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['backgroundColor'] = 'var(--chrome-arrow-background-color)';\n }, []);\n var handleMouseLeave = useCallback(() => {\n btn.current.style['backgroundColor'] = 'transparent';\n }, []);\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n style: _extends({\n marginLeft: 5,\n cursor: 'pointer',\n transition: 'background-color .3s',\n borderRadius: 2\n }, style)\n }, other, {\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n children: /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 1024 1024\",\n width: \"24\",\n height: \"24\",\n style: {\n display: 'block'\n },\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z\",\n fill: \"var(--chrome-arrow-fill)\"\n })\n })\n }));\n}","import React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var isSupportEyeDropper = ('EyeDropper' in window);\nexport function EyeDropper(props) {\n var click = () => {\n if ('EyeDropper' in window) {\n var eyeDropper = new window.EyeDropper();\n eyeDropper.open().then(result => {\n console.log(result);\n props.onPickColor == null || props.onPickColor(result.sRGBHex);\n });\n }\n };\n return /*#__PURE__*/_jsx(\"svg\", {\n viewBox: \"0 0 512 512\",\n height: \"1em\",\n width: \"1em\",\n onClick: click,\n children: /*#__PURE__*/_jsx(\"path\", {\n fill: \"currentColor\",\n d: \"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z\"\n })\n });\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"color\", \"showEditableInput\", \"showEyeDropper\", \"showColorPreview\", \"showHue\", \"showAlpha\", \"inputType\", \"rectProps\", \"onChange\"];\nimport React, { Fragment } from 'react';\nimport { hsvaToRgbaString, color as handleColor, validHex, hexToHsva, hsvaToHex, hsvaToHexa } from '@uiw/color-convert';\nimport Github, { GithubPlacement } from '@uiw/react-color-github';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport Alpha from '@uiw/react-color-alpha';\nimport EditableInput from '@uiw/react-color-editable-input';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport { useState } from 'react';\nimport Arrow from './Arrow';\nimport { EyeDropper, isSupportEyeDropper } from './EyeDropper';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var ChromeInputType = /*#__PURE__*/function (ChromeInputType) {\n ChromeInputType[\"HEXA\"] = \"hexa\";\n ChromeInputType[\"RGBA\"] = \"rgba\";\n ChromeInputType[\"HSLA\"] = \"hsla\";\n return ChromeInputType;\n}({});\nvar Chrome = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-chrome',\n className,\n style,\n color,\n showEditableInput = true,\n showEyeDropper = true,\n showColorPreview = true,\n showHue = true,\n showAlpha = true,\n inputType = ChromeInputType.RGBA,\n rectProps = {},\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var [type, setType] = useState(inputType);\n var handleClick = () => {\n if (type === ChromeInputType.RGBA) {\n setType(ChromeInputType.HSLA);\n }\n if (type === ChromeInputType.HSLA) {\n setType(ChromeInputType.HEXA);\n }\n if (type === ChromeInputType.HEXA) {\n setType(ChromeInputType.RGBA);\n }\n };\n var labelStyle = {\n paddingTop: 6\n };\n var inputStyle = {\n textAlign: 'center',\n paddingTop: 4,\n paddingBottom: 4\n };\n var wrapperStyle = _extends({\n '--chrome-arrow-fill': '#333',\n '--chrome-arrow-background-color': '#e8e8e8',\n borderRadius: 0,\n flexDirection: 'column',\n width: 230,\n padding: 0\n }, style);\n var alphaStyle = {\n '--chrome-alpha-box-shadow': 'rgb(0 0 0 / 25%) 0px 0px 1px inset',\n borderRadius: '50%',\n background: hsvaToRgbaString(hsva),\n boxShadow: 'var(--chrome-alpha-box-shadow)'\n };\n var handleClickColor = hex => {\n var result = hexToHsva(hex);\n handleChange(_extends({}, result));\n };\n var styleSize = {\n height: 14,\n width: 14\n };\n var pointerProps = {\n style: _extends({}, styleSize),\n fillProps: {\n style: styleSize\n }\n };\n return /*#__PURE__*/_jsx(Github, _extends({\n ref: ref,\n color: hsva,\n style: wrapperStyle,\n colors: undefined,\n className: [prefixCls, className].filter(Boolean).join(' '),\n placement: GithubPlacement.TopLeft\n }, other, {\n addonAfter: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n style: {\n width: '100%',\n height: 130\n },\n onChange: newColor => {\n handleChange(_extends({}, hsva, newColor, {\n a: hsva.a\n }));\n }\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n padding: 15,\n display: 'flex',\n alignItems: 'center',\n gap: 10\n },\n children: [isSupportEyeDropper && showEyeDropper && /*#__PURE__*/_jsx(EyeDropper, {\n onPickColor: handleClickColor\n }), showColorPreview && /*#__PURE__*/_jsx(Alpha, {\n width: 28,\n height: 28,\n hsva: hsva,\n radius: 2,\n style: {\n borderRadius: '50%'\n },\n bgProps: {\n style: {\n background: 'transparent'\n }\n },\n innerProps: {\n style: alphaStyle\n },\n pointer: () => /*#__PURE__*/_jsx(Fragment, {})\n }), /*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [showHue == true && /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n style: {\n width: '100%',\n height: 12\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newHue => {\n handleChange(_extends({}, hsva, newHue));\n }\n }), showAlpha == true && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n style: {\n marginTop: 6,\n height: 12\n },\n pointerProps: pointerProps,\n bgProps: {\n style: {\n borderRadius: 2\n }\n },\n onChange: newAlpha => {\n handleChange(_extends({}, hsva, newAlpha));\n }\n })]\n })]\n }), showEditableInput && /*#__PURE__*/_jsxs(\"div\", {\n style: {\n display: 'flex',\n alignItems: 'flex-start',\n padding: '0 15px 15px 15px',\n userSelect: 'none'\n },\n children: [/*#__PURE__*/_jsxs(\"div\", {\n style: {\n flex: 1\n },\n children: [type == ChromeInputType.RGBA && /*#__PURE__*/_jsx(EditableInputRGBA, {\n hsva: hsva,\n rProps: {\n labelStyle,\n inputStyle\n },\n gProps: {\n labelStyle,\n inputStyle\n },\n bProps: {\n labelStyle,\n inputStyle\n },\n aProps: {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n }), type === ChromeInputType.HEXA && /*#__PURE__*/_jsx(EditableInput, {\n label: \"HEX\",\n labelStyle: labelStyle,\n inputStyle: inputStyle,\n value: hsva.a > 0 && hsva.a < 1 ? hsvaToHexa(hsva).toLocaleUpperCase() : hsvaToHex(hsva).toLocaleUpperCase(),\n onChange: (_, value) => {\n if (typeof value === 'string') {\n handleChange(hexToHsva(/^#/.test(value) ? value : \"#\" + value));\n }\n }\n }), type === ChromeInputType.HSLA && /*#__PURE__*/_jsx(EditableInputHSLA, {\n hsva: hsva,\n hProps: {\n labelStyle,\n inputStyle\n },\n sProps: {\n labelStyle,\n inputStyle\n },\n lProps: {\n labelStyle,\n inputStyle\n },\n aProps: {\n labelStyle,\n inputStyle\n },\n onChange: reColor => handleChange(reColor.hsva)\n })]\n }), /*#__PURE__*/_jsx(Arrow, {\n onClick: handleClick\n })]\n })]\n }),\n rectRender: () => /*#__PURE__*/_jsx(Fragment, {})\n }));\n});\nChrome.displayName = 'Chrome';\nexport default Chrome;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n }),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useCallback } from 'react';\nimport { useRef } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defalutStyle = {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n};\nexport default function Point(_ref) {\n var {\n style,\n title,\n checked,\n color,\n onClick,\n rectProps\n } = _ref;\n var btn = useRef(null);\n var handleMouseEnter = useCallback(() => {\n btn.current.style['zIndex'] = '2';\n btn.current.style['outline'] = '#fff solid 2px';\n btn.current.style['boxShadow'] = 'rgb(0 0 0 / 25%) 0 0 5px 2px';\n }, []);\n var handleMouseLeave = useCallback(() => {\n if (!checked) {\n btn.current.style['zIndex'] = '0';\n btn.current.style['outline'] = 'initial';\n btn.current.style['boxShadow'] = 'initial';\n }\n }, [checked]);\n var rectStyle = checked ? {\n zIndex: 1,\n outline: '#fff solid 2px',\n boxShadow: 'rgb(0 0 0 / 25%) 0 0 5px 2px'\n } : {\n zIndex: 0\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: btn,\n title: title\n }, rectProps, {\n onClick: onClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n style: _extends({}, style, {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n boxSizing: 'border-box',\n height: 25,\n width: 25\n }, defalutStyle, rectStyle, rectProps == null ? void 0 : rectProps.style)\n }));\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"placement\", \"className\", \"style\", \"color\", \"colors\", \"rectProps\", \"onChange\", \"rectRender\"];\nimport React, { Fragment } from 'react';\nimport { color as handleColor, validHex, hexToHsva, hsvaToHex } from '@uiw/color-convert';\nimport Swatch from '@uiw/react-color-swatch';\nimport Point from './Point';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar CORLER_HEX = ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'];\nexport var GithubPlacement = /*#__PURE__*/function (GithubPlacement) {\n GithubPlacement[\"Left\"] = \"L\";\n GithubPlacement[\"LeftTop\"] = \"LT\";\n GithubPlacement[\"LeftBottom\"] = \"LB\";\n GithubPlacement[\"Right\"] = \"R\";\n GithubPlacement[\"RightTop\"] = \"RT\";\n GithubPlacement[\"RightBottom\"] = \"RB\";\n GithubPlacement[\"Top\"] = \"T\";\n GithubPlacement[\"TopRight\"] = \"TR\";\n GithubPlacement[\"TopLeft\"] = \"TL\";\n GithubPlacement[\"Bottom\"] = \"B\";\n GithubPlacement[\"BottomLeft\"] = \"BL\";\n GithubPlacement[\"BottomRight\"] = \"BR\";\n return GithubPlacement;\n}({});\nvar Github = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-github',\n placement = GithubPlacement.TopRight,\n className,\n style,\n color,\n colors = CORLER_HEX,\n rectProps = {},\n onChange,\n rectRender\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color;\n var hex = color ? hsvaToHex(hsva) : '';\n var handleChange = hsv => onChange && onChange(handleColor(hsv));\n var styleWrapper = _extends({\n '--github-border': '1px solid rgba(0, 0, 0, 0.2)',\n '--github-background-color': '#fff',\n '--github-box-shadow': 'rgb(0 0 0 / 15%) 0px 3px 12px',\n '--github-arrow-border-color': 'rgba(0, 0, 0, 0.15)',\n width: 200,\n borderRadius: 4,\n background: 'var(--github-background-color)',\n boxShadow: 'var(--github-box-shadow)',\n border: 'var(--github-border)',\n position: 'relative',\n padding: 5\n }, style);\n var rStyle = {\n borderStyle: 'solid',\n position: 'absolute'\n };\n var arrBrStyl = _extends({}, rStyle);\n var arrStyl = _extends({}, rStyle);\n if (/^T/.test(placement)) {\n arrBrStyl.borderWidth = '0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '0 7px 7px';\n arrStyl.borderColor = 'transparent transparent var(--github-background-color)';\n }\n if (placement === GithubPlacement.TopRight) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.Top) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (placement === GithubPlacement.TopLeft) {\n arrBrStyl.top = -8;\n arrStyl.top = -7;\n }\n if (/^B/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 0';\n arrBrStyl.borderColor = 'var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 0';\n arrStyl.borderColor = 'var(--github-background-color) transparent transparent';\n if (placement === GithubPlacement.BottomRight) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.Bottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n if (placement === GithubPlacement.BottomLeft) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n }\n }\n if (/^(B|T)/.test(placement)) {\n if (placement === GithubPlacement.Top || placement === GithubPlacement.Bottom) {\n arrBrStyl.left = '50%';\n arrBrStyl.marginLeft = -8;\n arrStyl.left = '50%';\n arrStyl.marginLeft = -7;\n }\n if (placement === GithubPlacement.TopRight || placement === GithubPlacement.BottomRight) {\n arrBrStyl.right = 10;\n arrStyl.right = 11;\n }\n if (placement === GithubPlacement.TopLeft || placement === GithubPlacement.BottomLeft) {\n arrBrStyl.left = 7;\n arrStyl.left = 8;\n }\n }\n if (/^L/.test(placement)) {\n arrBrStyl.borderWidth = '8px 8px 8px 0';\n arrBrStyl.borderColor = 'transparent var(--github-arrow-border-color) transparent transparent';\n arrStyl.borderWidth = '7px 7px 7px 0';\n arrStyl.borderColor = 'transparent var(--github-background-color) transparent transparent';\n arrBrStyl.left = -8;\n arrStyl.left = -7;\n }\n if (/^R/.test(placement)) {\n arrBrStyl.borderWidth = '8px 0 8px 8px';\n arrBrStyl.borderColor = 'transparent transparent transparent var(--github-arrow-border-color)';\n arrStyl.borderWidth = '7px 0 7px 7px';\n arrStyl.borderColor = 'transparent transparent transparent var(--github-background-color)';\n arrBrStyl.right = -8;\n arrStyl.right = -7;\n }\n if (/^(L|R)/.test(placement)) {\n if (placement === GithubPlacement.RightTop || placement === GithubPlacement.LeftTop) {\n arrBrStyl.top = 5;\n arrStyl.top = 6;\n }\n if (placement === GithubPlacement.Left || placement === GithubPlacement.Right) {\n arrBrStyl.top = '50%';\n arrStyl.top = '50%';\n arrBrStyl.marginTop = -8;\n arrStyl.marginTop = -7;\n }\n if (placement === GithubPlacement.LeftBottom || placement === GithubPlacement.RightBottom) {\n arrBrStyl.top = '100%';\n arrStyl.top = '100%';\n arrBrStyl.marginTop = -21;\n arrStyl.marginTop = -20;\n }\n }\n var render = _ref => {\n var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));\n var handle = rectRender && rectRender(_extends({}, props));\n if (handle) return handle;\n return /*#__PURE__*/_jsx(Point, _extends({}, props, {\n rectProps: rectProps\n }));\n };\n return /*#__PURE__*/_jsx(Swatch, _extends({\n ref: ref,\n className: [prefixCls, className].filter(Boolean).join(' '),\n colors: colors,\n color: hex,\n rectRender: render\n }, other, {\n onChange: handleChange,\n style: styleWrapper,\n rectProps: {\n style: {\n marginRight: 0,\n marginBottom: 0,\n borderRadius: 0,\n height: 25,\n width: 25\n }\n },\n addonBefore: /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsx(\"div\", {\n style: arrBrStyl\n }), /*#__PURE__*/_jsx(\"div\", {\n style: arrStyl\n })]\n })\n }));\n});\nGithub.displayName = 'Github';\nexport default Github;","function _objectDestructuringEmpty(t) {\n if (null == t) throw new TypeError(\"Cannot destructure \" + t);\n}\nexport { _objectDestructuringEmpty as default };"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","_excluded","Arrow","other","_objectWithoutPropertiesLoose","btn","useRef","handleMouseEnter","useCallback","current","handleMouseLeave","_extends","ref","marginLeft","cursor","transition","borderRadius","onMouseEnter","onMouseLeave","viewBox","width","height","display","d","fill","isSupportEyeDropper","window","EyeDropper","onClick","click","open","result","console","log","onPickColor","sRGBHex","ChromeInputType","Chrome","React","prefixCls","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","RGBA","rectProps","onChange","hsva","validHex","hexToHsva","h","s","l","handleChange","hsv","handleColor","type","setType","useState","labelStyle","paddingTop","inputStyle","textAlign","paddingBottom","wrapperStyle","flexDirection","padding","alphaStyle","background","hsvaToRgbaString","styleSize","pointerProps","fillProps","Github","colors","undefined","filter","Boolean","join","placement","GithubPlacement","TopLeft","addonAfter","Fragment","Saturation","newColor","alignItems","gap","hex","Alpha","radius","bgProps","innerProps","pointer","flex","Hue","hue","newHue","marginTop","newAlpha","userSelect","EditableInputRGBA","rProps","gProps","bProps","aProps","reColor","HEXA","EditableInput","label","value","hsvaToHexa","toLocaleUpperCase","hsvaToHex","_","test","HSLA","EditableInputHSLA","hProps","sProps","lProps","handleClick","rectRender","displayName","hsla","hsvaToHsla","evn","hslaToHsva","Math","round","val","defalutStyle","marginRight","marginBottom","boxSizing","Point","_ref","title","checked","rectStyle","zIndex","outline","CORLER_HEX","TopRight","styleWrapper","position","rStyle","borderStyle","arrBrStyl","arrStyl","borderWidth","borderColor","top","Top","BottomRight","Bottom","BottomLeft","left","right","RightTop","LeftTop","Left","Right","LeftBottom","RightBottom","Swatch","_objectDestructuringEmpty","handle","addonBefore","t","TypeError"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/674.2c00851e.chunk.js b/static/js/674.2c00851e.chunk.js deleted file mode 100644 index a82af650d..000000000 --- a/static/js/674.2c00851e.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[674],{256:t=>{function s(t){var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}s.keys=()=>[],s.resolve=s,s.id=256,t.exports=s},3623:(t,s,e)=>{"use strict";e.d(s,{A:()=>j});var r,a,o,n,i,l=e(114),h=e(7804),d=e(52),c=e(3235),p=e(9424);const u=c.Ay.div(r||(r=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),g=c.Ay.a(a||(a=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=c.Ay.div(o||(o=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=c.Ay.footer(n||(n=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=c.Ay.div(i||(i=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:s,data:e}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(u,{children:[this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:e,components:s,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(g,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3425:(t,s,e)=>{"use strict";e.r(s),e.d(s,{Component:()=>h});var r=e(7804),a=e(8088),o=e(3623),n=e(7980),i=e(9424);function l(){const{hsva:t,dispatch:s}=(0,r.useContext)(n.ob);return(0,i.jsx)("div",{style:{width:256},children:(0,i.jsx)(a.default,{hsva:t,onChange:e=>{s({hsva:{...t,...e.hsva}})}})})}class h extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-hsla/README.md",this.getMdStr=()=>e.e(547).then(e.bind(e,5547)),this.example=(0,i.jsx)(l,{})}}},8088:(t,s,e)=>{"use strict";e.r(s),e.d(s,{default:()=>c});var r=e(8102),a=e(9257),o=e(7804),n=e(6436),i=e(2945),l=e(9424),h=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=o.forwardRef(((t,s)=>{var{prefixCls:e="w-color-editable-input-hsla",hsva:o,hProps:d={},sProps:c={},lProps:p={},aProps:u={},className:g,onChange:x}=t,b=(0,a.A)(t,h),m=o?(0,i.hsvaToHsla)(o):{h:0,s:0,l:0,a:0},j=(t,s,e)=>{"number"===typeof t&&("h"===s&&(t<0&&(t=0),t>360&&(t=360),x&&x((0,i.color)((0,i.hslaToHsva)((0,r.A)({},m,{h:t}))))),"s"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,i.color)((0,i.hslaToHsva)((0,r.A)({},m,{s:t}))))),"l"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,i.color)((0,i.hslaToHsva)((0,r.A)({},m,{l:t}))))),"a"===s&&(t<0&&(t=0),t>1&&(t=1),x&&x((0,i.color)((0,i.hslaToHsva)((0,r.A)({},m,{a:t}))))))};return(0,l.jsx)(n.default,(0,r.A)({ref:s,hsva:o,rProps:(0,r.A)({label:"H",value:Math.round(m.h)},d,{onChange:(t,s)=>j(s,"h")}),gProps:(0,r.A)({label:"S",value:Math.round(m.s)+"%"},c,{onChange:(t,s)=>j(s,"s")}),bProps:(0,r.A)({label:"L",value:Math.round(m.l)+"%"},p,{onChange:(t,s)=>j(s,"l")}),aProps:(0,r.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(t,s)=>j(s,"a")}),className:[e,g||""].filter(Boolean).join(" ")},b))}));d.displayName="EditableInputHSLA";const c=d}}]); -//# sourceMappingURL=674.2c00851e.chunk.js.map \ No newline at end of file diff --git a/static/js/674.2c00851e.chunk.js.map b/static/js/674.2c00851e.chunk.js.map deleted file mode 100644 index 3d8209a50..000000000 --- a/static/js/674.2c00851e.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/674.2c00851e.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAAC5B,EAAO,CAAC6B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CACTT,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5CpB,QAAQc,EAAAA,EAAAA,GAAS,CACfG,MAAO,IACPR,MAAOS,KAAKC,MAAe,IAAThB,EAAK/D,GAAW,KACjC4D,EAAQ,CACTV,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5CjD,UAAW,CAACyB,EAAWzB,GAAa,IAAIoD,OAAOC,SAASC,KAAK,MAC5DxB,GAAO,IAEZZ,EAAkBqC,YAAc,oBAChC,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-hsla/index.tsx","../../packages/color-editable-input-hsla/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-hsla/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-hsla/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n }),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","EditableInputHSLA","onChange","color","arguments","_excluded","React","ref","prefixCls","hProps","sProps","lProps","aProps","other","_objectWithoutPropertiesLoose","hsla","hsvaToHsla","h","s","l","handleChange","value","type","evn","handleColor","hslaToHsva","_extends","EditableInputRGBA","rProps","label","Math","round","val","gProps","bProps","filter","Boolean","join","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/674.6dce0ead.chunk.js b/static/js/674.6dce0ead.chunk.js new file mode 100644 index 000000000..8d3324ce0 --- /dev/null +++ b/static/js/674.6dce0ead.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[674],{256:t=>{function s(t){var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s}s.keys=()=>[],s.resolve=s,s.id=256,t.exports=s},3623:(t,s,e)=>{"use strict";e.d(s,{A:()=>p});var r=e(7804),a=e(52),o=e(3235),i=e(9424);const l=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,h=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,n=o.Ay.div` + padding-bottom: 120px; +`,d=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:s,data:e}=this.state.mdObj||{};return(0,i.jsxs)(n,{className:"wmde-markdown-var",children:[(0,i.jsxs)(l,{children:[this.editorUrl&&(0,i.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,i.jsxs)(c,{children:[(0,i.jsx)("h3",{children:"Example"}),this.example]}),(0,i.jsx)(a.A,{data:{data:e,components:s,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,i.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,i.jsxs)(d,{children:[(0,i.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,i.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,i.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,i.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,i.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,i.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3425:(t,s,e)=>{"use strict";e.r(s),e.d(s,{Component:()=>n});var r=e(7804),a=e(8088),o=e(3623),i=e(7980),l=e(9424);function h(){const{hsva:t,dispatch:s}=(0,r.useContext)(i.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(a.default,{hsva:t,onChange:e=>{s({hsva:{...t,...e.hsva}})}})})}class n extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-hsla/README.md",this.getMdStr=()=>e.e(547).then(e.bind(e,5547)),this.example=(0,l.jsx)(h,{})}}},8088:(t,s,e)=>{"use strict";e.r(s),e.d(s,{default:()=>c});var r=e(8102),a=e(9257),o=e(7804),i=e(6436),l=e(2945),h=e(9424),n=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],d=o.forwardRef(((t,s)=>{var{prefixCls:e="w-color-editable-input-hsla",hsva:o,hProps:d={},sProps:c={},lProps:p={},aProps:u={},className:g,onChange:x}=t,b=(0,a.A)(t,n),m=o?(0,l.hsvaToHsla)(o):{h:0,s:0,l:0,a:0},j=(t,s,e)=>{"number"===typeof t&&("h"===s&&(t<0&&(t=0),t>360&&(t=360),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{h:t}))))),"s"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{s:t}))))),"l"===s&&(t<0&&(t=0),t>100&&(t=100),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{l:t}))))),"a"===s&&(t<0&&(t=0),t>1&&(t=1),x&&x((0,l.color)((0,l.hslaToHsva)((0,r.A)({},m,{a:t}))))))};return(0,h.jsx)(i.default,(0,r.A)({ref:s,hsva:o,rProps:(0,r.A)({label:"H",value:Math.round(m.h)},d,{onChange:(t,s)=>j(s,"h")}),gProps:(0,r.A)({label:"S",value:Math.round(m.s)+"%"},c,{onChange:(t,s)=>j(s,"s")}),bProps:(0,r.A)({label:"L",value:Math.round(m.l)+"%"},p,{onChange:(t,s)=>j(s,"l")}),aProps:(0,r.A)({label:"A",value:Math.round(100*m.a)/100},u,{onChange:(t,s)=>j(s,"a")}),className:[e,g||""].filter(Boolean).join(" ")},b))}));d.displayName="EditableInputHSLA";const c=d}}]); +//# sourceMappingURL=674.6dce0ead.chunk.js.map \ No newline at end of file diff --git a/static/js/674.6dce0ead.chunk.js.map b/static/js/674.6dce0ead.chunk.js.map new file mode 100644 index 000000000..bcfcdd41d --- /dev/null +++ b/static/js/674.6dce0ead.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/674.6dce0ead.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACV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O,IACPR,MAAOS,KAAKC,MAAMhB,EAAKE,IACtBR,EAAQ,CACTP,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5CC,QAAQP,EAAAA,EAAAA,GAAS,CACfG,MAAO,IACPR,MAAOS,KAAKC,MAAMhB,EAAKG,GAAK,KAC3BR,EAAQ,CACTR,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5CE,QAAQR,EAAAA,EAAAA,GAAS,CACfG,MAAO,IACPR,MAAOS,KAAKC,MAAMhB,EAAKI,GAAK,KAC3BR,EAAQ,CACTT,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5CpB,QAAQc,EAAAA,EAAAA,GAAS,CACfG,MAAO,IACPR,MAAOS,KAAKC,MAAe,IAAThB,EAAK1D,GAAW,KACjCuD,EAAQ,CACTV,SAAUA,CAACqB,EAAKS,IAAQZ,EAAaY,EAAK,OAE5ChD,UAAW,CAACwB,EAAWxB,GAAa,IAAImD,OAAOC,SAASC,KAAK,MAC5DxB,GAAO,IAEZZ,EAAkBqC,YAAc,oBAChC,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-hsla/index.tsx","../../packages/color-editable-input-hsla/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputHSLA from '@uiw/react-color-editable-input-hsla';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-hsla/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-hsla/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"hsva\", \"hProps\", \"sProps\", \"lProps\", \"aProps\", \"className\", \"onChange\"];\nimport React from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport { color as handleColor, hsvaToHsla, hslaToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar EditableInputHSLA = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-editable-input-hsla',\n hsva,\n hProps = {},\n sProps = {},\n lProps = {},\n aProps = {},\n className,\n onChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsla = hsva ? hsvaToHsla(hsva) : {\n h: 0,\n s: 0,\n l: 0,\n a: 0\n };\n var handleChange = (value, type, evn) => {\n if (typeof value === 'number') {\n if (type === 'h') {\n if (value < 0) value = 0;\n if (value > 360) value = 360;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n h: value\n }))));\n }\n if (type === 's') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n s: value\n }))));\n }\n if (type === 'l') {\n if (value < 0) value = 0;\n if (value > 100) value = 100;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n l: value\n }))));\n }\n if (type === 'a') {\n if (value < 0) value = 0;\n if (value > 1) value = 1;\n onChange && onChange(handleColor(hslaToHsva(_extends({}, hsla, {\n a: value\n }))));\n }\n }\n };\n return /*#__PURE__*/_jsx(EditableInputRGBA, _extends({\n ref: ref,\n hsva: hsva,\n rProps: _extends({\n label: 'H',\n value: Math.round(hsla.h)\n }, hProps, {\n onChange: (evn, val) => handleChange(val, 'h', evn)\n }),\n gProps: _extends({\n label: 'S',\n value: Math.round(hsla.s) + \"%\"\n }, sProps, {\n onChange: (evn, val) => handleChange(val, 's', evn)\n }),\n bProps: _extends({\n label: 'L',\n value: Math.round(hsla.l) + \"%\"\n }, lProps, {\n onChange: (evn, val) => handleChange(val, 'l', evn)\n }),\n aProps: _extends({\n label: 'A',\n value: Math.round(hsla.a * 100) / 100\n }, aProps, {\n onChange: (evn, val) => handleChange(val, 'a', evn)\n }),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other));\n});\nEditableInputHSLA.displayName = 'EditableInputHSLA';\nexport default EditableInputHSLA;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","EditableInputHSLA","onChange","color","arguments","_excluded","React","ref","prefixCls","hProps","sProps","lProps","aProps","other","_objectWithoutPropertiesLoose","hsla","hsvaToHsla","h","s","l","handleChange","value","type","evn","handleColor","hslaToHsva","_extends","EditableInputRGBA","rProps","label","Math","round","val","gProps","bProps","filter","Boolean","join","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/696.3e866dad.chunk.js b/static/js/696.3e866dad.chunk.js deleted file mode 100644 index e5d372b5e..000000000 --- a/static/js/696.3e866dad.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[696],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,o,a,d=s(114),h=s(7804),c=s(52),l=s(3235),p=s(9424);const g=l.Ay.div(r||(r=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1697:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h});var r=s(7804),i=s(2084),n=s(3623),o=s(7980),a=s(9424);function d(){const{hsva:t,dispatch:e}=(0,r.useContext)(o.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(i.default,{hsva:t,onChange:s=>{e({hsva:{...t,...s,a:t.a}})}})})}class h extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-saturation/README.md",this.getMdStr=()=>s.e(939).then(s.bind(s,5939)),this.example=(0,a.jsx)(d,{})}}}}]); -//# sourceMappingURL=696.3e866dad.chunk.js.map \ No newline at end of file diff --git a/static/js/696.3e866dad.chunk.js.map b/static/js/696.3e866dad.chunk.js.map deleted file mode 100644 index 42822e611..000000000 --- a/static/js/696.3e866dad.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/696.3e866dad.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAAC5B,EAAO,CAAC6B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAACpC,EAAe,CAAAsC,SA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AAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASzB,IACP,MAAM,KAAEqC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEd,EAAAA,EAAAA,KAAA,OAAKM,MAAO,CAAES,MAAO,KAAMhB,UACzBC,EAAAA,EAAAA,KAACgB,EAAAA,QAAU,CACTL,KAAMA,EACNM,SAAWC,IACTN,EAAU,CAAED,KAAM,IAAKA,KAASO,EAAUnD,EAAG4C,EAAK5C,IAAM,KAKlE,CAEO,MAAMU,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAyC,WAAA,KACtCtC,UAAY,uCAAuC,KACnDC,SAAW,IAAM,8BAAgD,KACjEC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/saturation/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Saturation from '@uiw/react-color-saturation';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newColor, a: hsva.a } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-saturation/README.md';\n getMdStr = () => import('@uiw/react-color-saturation/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Saturation","onChange","newColor","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/696.868ec7b2.chunk.js b/static/js/696.868ec7b2.chunk.js new file mode 100644 index 000000000..523240e7e --- /dev/null +++ b/static/js/696.868ec7b2.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[696],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const n=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,d=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(n,{children:[this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},1697:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h});var r=s(7804),i=s(2084),o=s(3623),a=s(7980),n=s(9424);function d(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,n.jsx)("div",{style:{width:256},children:(0,n.jsx)(i.default,{hsva:t,onChange:s=>{e({hsva:{...t,...s,a:t.a}})}})})}class h extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-saturation/README.md",this.getMdStr=()=>s.e(939).then(s.bind(s,5939)),this.example=(0,n.jsx)(d,{})}}}}]); +//# sourceMappingURL=696.868ec7b2.chunk.js.map \ No newline at end of file diff --git a/static/js/696.868ec7b2.chunk.js.map b/static/js/696.868ec7b2.chunk.js.map new file mode 100644 index 000000000..fd3d1cda9 --- /dev/null +++ b/static/js/696.868ec7b2.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/696.868ec7b2.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OAC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AAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,4DAA4DC,IAAI,oBAE3ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,8DAA8DC,IAAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,oHCnIF,SAASxB,IACP,MAAM,KAAEmC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEb,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAU,CACTL,KAAMA,EACNM,SAAWC,IACTN,EAAU,CAAED,KAAM,IAAKA,KAASO,EAAU9C,EAAGuC,EAAKvC,IAAM,KAKlE,CAEO,MAAMM,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAwC,WAAA,KACtCrC,UAAY,uCAAuC,KACnDC,SAAW,IAAM,8BAAgD,KACjEC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/saturation/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Saturation from '@uiw/react-color-saturation';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...newColor, a: hsva.a } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-saturation/README.md';\n getMdStr = () => import('@uiw/react-color-saturation/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Saturation","onChange","newColor","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/73.1cd15522.chunk.js b/static/js/73.1cd15522.chunk.js new file mode 100644 index 000000000..ed8d0ce3c --- /dev/null +++ b/static/js/73.1cd15522.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[73],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var s=r(7804),i=r(52),o=r(3235),a=r(9424);const d=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(d,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},8306:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-convert/README.md",this.getMdStr=()=>r.e(24).then(r.bind(r,6024))}}}}]); +//# sourceMappingURL=73.1cd15522.chunk.js.map \ No newline at end of file diff --git a/static/js/73.1cd15522.chunk.js.map b/static/js/73.1cd15522.chunk.js.map new file mode 100644 index 000000000..d19f17ff5 --- /dev/null +++ b/static/js/73.1cd15522.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/73.1cd15522.chunk.js","mappings":"4EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,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AAA,KAAA,KAAGG,KAAK,8CAA8CF,OAAO,UAASF,UACpEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,yDAAyDC,IAAI,qBAExET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,4DAA4DC,IAAI,oBAE3ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,8DAA8DC,IAAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAgC,WAAA,KACtC7B,UAAY,oCAAoC,KAChDC,SAAW,IAAM,4BAAuC,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/convert/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-convert/README.md';\n getMdStr = () => import('@uiw/color-convert/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/73.92a88990.chunk.js b/static/js/73.92a88990.chunk.js deleted file mode 100644 index 273a060be..000000000 --- a/static/js/73.92a88990.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[73],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,r)=>{"use strict";r.d(e,{A:()=>j});var s,i,n,o,a,d=r(114),c=r(7804),h=r(52),l=r(3235),p=r(9424);const g=l.Ay.div(s||(s=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),m=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends c.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:r}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},8306:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>i});var s=r(3623);class i extends s.A{constructor(){super(...arguments),this.editorUrl="/packages/color-convert/README.md",this.getMdStr=()=>r.e(24).then(r.bind(r,6024))}}}}]); -//# sourceMappingURL=73.92a88990.chunk.js.map \ No newline at end of file diff --git a/static/js/73.92a88990.chunk.js.map b/static/js/73.92a88990.chunk.js.map deleted file mode 100644 index b8459470e..000000000 --- a/static/js/73.92a88990.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/73.92a88990.chunk.js","mappings":"4EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MA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,EAAAA,EAAAA,KAAA,KAAGG,KAAK,kDAAkDF,OAAO,UAASF,UACxEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,4DAA4DC,IAAI,oBAE3EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,gDAAgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,8DAA8DC,IAAI,sBAE7EV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,0CAA0CC,IAAI,mBAEzDV,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKS,IAAI,oDAAoDC,IAAI,WAEnEb,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,4ECtIK,MAAMtB,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAAiC,WAAA,KACtC9B,UAAY,oCAAoC,KAChDC,SAAW,IAAM,4BAAuC,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/convert/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import Markdown from '../../components/Markdown';\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-convert/README.md';\n getMdStr = () => import('@uiw/color-convert/README.md');\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/734.4937948a.chunk.js b/static/js/734.4937948a.chunk.js new file mode 100644 index 000000000..c41780c5c --- /dev/null +++ b/static/js/734.4937948a.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[734],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),a=s(3235),o=s(9424);const n=a.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,h=a.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,l=a.Ay.div` + padding-bottom: 120px; +`,d=a.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=a.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,o.jsxs)(l,{className:"wmde-markdown-var",children:[(0,o.jsxs)(n,{children:[this.editorUrl&&(0,o.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,o.jsxs)(c,{children:[(0,o.jsx)("h3",{children:"Example"}),this.example]}),(0,o.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,o.jsx)(h,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,o.jsxs)(d,{children:[(0,o.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,o.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,o.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,o.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,o.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,o.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3229:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>l});var r=s(7804),i=s(6436),a=s(3623),o=s(7980),n=s(9424);function h(){const{hsva:t,dispatch:e}=(0,r.useContext)(o.ob);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"10px 0 10px 0"},children:[(0,n.jsx)(i.default,{style:{maxWidth:180,marginRight:15},hsva:t,onChange:s=>{e({hsva:{...t,...s.hsva}})}}),(0,n.jsx)(i.default,{style:{maxWidth:180},hsva:t,placement:"top",onChange:s=>{e({hsva:{...t,...s.hsva}})}})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:[(0,n.jsx)(i.default,{style:{maxWidth:180,marginRight:15},hsva:t,placement:"left",onChange:s=>{e({hsva:{...t,...s.hsva}})}}),(0,n.jsx)(i.default,{style:{maxWidth:180},hsva:t,placement:"right",onChange:s=>{e({hsva:{...t,...s.hsva}})}})]})]})}class l extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-rgba/README.md",this.getMdStr=()=>s.e(215).then(s.bind(s,2215)),this.example=(0,n.jsx)(h,{})}}}}]); +//# sourceMappingURL=734.4937948a.chunk.js.map \ No newline at end of file diff --git a/static/js/734.4937948a.chunk.js.map b/static/js/734.4937948a.chunk.js.map new file mode 100644 index 000000000..87fb98ac0 --- /dev/null +++ b/static/js/734.4937948a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/734.4937948a.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5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KAASY,EAAMZ,OAAS,KAGnDV,EAAAA,EAAAA,KAACkB,EAAAA,QAAiB,CAChBb,MAAO,CAAEc,SAAU,KACnBT,KAAMA,EACNa,UAAU,MACVF,SAAWC,IACTX,EAAU,CAAED,KAAM,IAAKA,KAASY,EAAMZ,OAAS,QAIrDb,EAAAA,EAAAA,MAAA,OAAKQ,MAAO,CAAES,QAAS,OAAQC,WAAY,aAAcC,eAAgB,UAAWjB,SAAA,EAClFC,EAAAA,EAAAA,KAACkB,EAAAA,QAAiB,CAChBb,MAAO,CAAEc,SAAU,IAAKC,YAAa,IACrCV,KAAMA,EACNa,UAAU,OACVF,SAAWC,IACTX,EAAU,CAAED,KAAM,IAAKA,KAASY,EAAMZ,OAAS,KAGnDV,EAAAA,EAAAA,KAACkB,EAAAA,QAAiB,CAChBb,MAAO,CAAEc,SAAU,KACnBT,KAAMA,EACNa,UAAU,QACVF,SAAWC,IACTX,EAAU,CAAED,KAAM,IAAKA,KAASY,EAAMZ,OAAS,SAM3D,CAEO,MAAMjC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA8C,WAAA,KACtC3C,UAAY,gDAAgD,KAC5DC,SAAW,IAAM,8BAAyD,KAC1EC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-rgba/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-rgba/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-rgba/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","display","alignItems","justifyContent","padding","EditableInputRGBA","maxWidth","marginRight","onChange","color","placement","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/734.b992ef51.chunk.js b/static/js/734.b992ef51.chunk.js deleted file mode 100644 index 15491785b..000000000 --- a/static/js/734.b992ef51.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[734],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,a,o,h=s(114),l=s(7804),d=s(52),c=s(3235),p=s(9424);const g=c.Ay.div(r||(r=(0,h.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),x=c.Ay.a(i||(i=(0,h.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),u=c.Ay.div(n||(n=(0,h.A)(["\n padding-bottom: 120px;\n"]))),m=c.Ay.footer(a||(a=(0,h.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=c.Ay.div(o||(o=(0,h.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends l.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(u,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(d.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},3229:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>l});var r=s(7804),i=s(6436),n=s(3623),a=s(7980),o=s(9424);function h(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"10px 0 10px 0"},children:[(0,o.jsx)(i.default,{style:{maxWidth:180,marginRight:15},hsva:t,onChange:s=>{e({hsva:{...t,...s.hsva}})}}),(0,o.jsx)(i.default,{style:{maxWidth:180},hsva:t,placement:"top",onChange:s=>{e({hsva:{...t,...s.hsva}})}})]}),(0,o.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:[(0,o.jsx)(i.default,{style:{maxWidth:180,marginRight:15},hsva:t,placement:"left",onChange:s=>{e({hsva:{...t,...s.hsva}})}}),(0,o.jsx)(i.default,{style:{maxWidth:180},hsva:t,placement:"right",onChange:s=>{e({hsva:{...t,...s.hsva}})}})]})]})}class l extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-editable-input-rgba/README.md",this.getMdStr=()=>s.e(215).then(s.bind(s,2215)),this.example=(0,o.jsx)(h,{})}}}}]); -//# sourceMappingURL=734.b992ef51.chunk.js.map \ No newline at end of file diff --git a/static/js/734.b992ef51.chunk.js.map b/static/js/734.b992ef51.chunk.js.map deleted file mode 100644 index e3ec29b4d..000000000 --- a/static/js/734.b992ef51.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/734.b992ef51.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GAC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AAA,KAACmB,EAAAA,QAAiB,CAChBb,MAAO,CAAEc,SAAU,KACnBT,KAAMA,EACNa,UAAU,QACVF,SAAWC,IACTX,EAAU,CAAED,KAAM,IAAKA,KAASY,EAAMZ,OAAS,SAM3D,CAEO,MAAMlC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA+C,WAAA,KACtC5C,UAAY,gDAAgD,KAC5DC,SAAW,IAAM,8BAAyD,KAC1EC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/editable-input-rgba/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport EditableInputRGBA from '@uiw/react-color-editable-input-rgba';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-editable-input-rgba/README.md';\n getMdStr = () => import('@uiw/react-color-editable-input-rgba/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","display","alignItems","justifyContent","padding","EditableInputRGBA","maxWidth","marginRight","onChange","color","placement","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/875.97dde8f2.chunk.js b/static/js/875.97dde8f2.chunk.js deleted file mode 100644 index c9da8360b..000000000 --- a/static/js/875.97dde8f2.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[875],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,o,a,l=s(114),d=s(7804),h=s(52),c=s(3235),p=s(9424);const g=c.Ay.div(r||(r=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=c.Ay.a(i||(i=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=c.Ay.div(n||(n=(0,l.A)(["\n padding-bottom: 120px;\n"]))),m=c.Ay.footer(o||(o=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),b=c.Ay.div(a||(a=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends d.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(b,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(m,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7958:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(7804),i=s(4883),n=s(3623),o=s(7980),a=s(9424);function l(){const{hsva:t,dispatch:e}=(0,r.useContext)(o.ob);return(0,a.jsx)("div",{style:{width:256},children:(0,a.jsx)(i.default,{color:t,onChange:s=>{e({hsva:{...t,...s.hsv}})}})})}class d extends n.A{constructor(){super(...arguments),this.editorUrl="/packages/color-slider/README.md",this.getMdStr=()=>s.e(428).then(s.bind(s,2428)),this.example=(0,a.jsx)(l,{})}}},4883:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>h});var r=s(8102),i=s(9257),n=s(7804),o=s(2945),a=s(9424),l=["prefixCls","className","style","onChange","color","lightness"],d=n.forwardRef(((t,e)=>{var{prefixCls:s="w-color-slider",className:n,style:d,onChange:h,color:c,lightness:p=[80,65,50,35,20]}=t,g=(0,i.A)(t,l),u="string"===typeof c&&(0,o.validHex)(c)?(0,o.hexToHsva)(c):c||{};return(0,a.jsx)("div",(0,r.A)({ref:e,style:(0,r.A)({display:"flex"},d),className:[s,n||""].filter(Boolean).join(" ")},g,{children:p.map(((t,e)=>{var s="hsl("+(0,o.hsvaToHsla)(u).h+", 50%, "+t+"%)",i=s===(0,o.hsvaToHslString)(u);return(0,a.jsx)("div",{style:{paddingLeft:1,width:100/p.length+"%",boxSizing:"border-box"},children:(0,a.jsx)("div",{onClick:t=>((t,e)=>{h&&h((0,o.color)((0,o.hslStringToHsva)(t)),e)})(s,t),style:(0,r.A)({backgroundColor:s,height:12,cursor:"pointer"},i?{borderRadius:2,transform:"scale(1, 1.5)"}:{})})},e)}))}))}));d.displayName="Slider";const h=d}}]); -//# sourceMappingURL=875.97dde8f2.chunk.js.map \ No newline at end of file diff --git a/static/js/875.97dde8f2.chunk.js.map b/static/js/875.97dde8f2.chunk.js.map deleted file mode 100644 index 9cb843423..000000000 --- a/static/js/875.97dde8f2.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/875.97dde8f2.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAAC5B,EAA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HR,UAAW,CAAC0B,EAAW1B,GAAa,IAAIkC,OAAOC,SAASC,KAAK,MAC5DR,EAAO,CACR3B,SAAU0B,EAAUU,KAAI,CAACC,EAAKC,KAC5B,IACIC,EAAS,QADHC,EAAAA,EAAAA,YAAW5B,GACK6B,EAAI,UAAYJ,EAAM,KAC5CK,EAAUH,KAAWI,EAAAA,EAAAA,iBAAgB/B,GACzC,OAAoBX,EAAAA,EAAAA,KAAK,MAAO,CAC9BM,MAAO,CACLqC,YAAa,EACb5B,MAAO,IAAMU,EAAUmB,OAAS,IAChCC,UAAW,cAEb9C,UAAuBC,EAAAA,EAAAA,KAAK,MAAO,CACjC8C,QAASC,GArBCC,EAACV,EAAQS,KACzB7B,GAAYA,GAAS+B,EAAAA,EAAAA,QAAYC,EAAAA,EAAAA,iBAAgBZ,IAAUS,EAAI,EAoBzCC,CAAYV,EAAQS,GACpCzC,OAAOwB,EAAAA,EAAAA,GAAS,CACdqB,gBAAiBb,EACjBc,OAAQ,GACRC,OAAQ,WACPZ,EAAU,CACXa,aAAc,EACdC,UAAW,iBACT,CAAC,MAENlB,EAAI,MAER,IAELrB,EAAOwC,YAAc,SACrB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/slider/index.tsx","../../packages/color-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsv } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-slider/README.md';\n getMdStr = () => import('@uiw/react-color-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"lightness\"];\nimport React from 'react';\nimport { color as handleColor, hexToHsva, hsvaToHsla, hsvaToHslString, validHex, hslStringToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Slider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-slider',\n className,\n style,\n onChange,\n color,\n lightness = [80, 65, 50, 35, 20]\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleClick = (hslStr, evn) => {\n onChange && onChange(handleColor(hslStringToHsva(hslStr)), evn);\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: ref,\n style: _extends({\n display: 'flex'\n }, style),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: lightness.map((num, idx) => {\n var hsl = hsvaToHsla(hsva);\n var hslStr = \"hsl(\" + hsl.h + \", 50%, \" + num + \"%)\";\n var checked = hslStr === hsvaToHslString(hsva);\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n paddingLeft: 1,\n width: 100 / lightness.length + \"%\",\n boxSizing: 'border-box'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n onClick: evn => handleClick(hslStr, evn),\n style: _extends({\n backgroundColor: hslStr,\n height: 12,\n cursor: 'pointer'\n }, checked ? {\n borderRadius: 2,\n transform: 'scale(1, 1.5)'\n } : {})\n })\n }, idx);\n })\n }));\n});\nSlider.displayName = 'Slider';\nexport default Slider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Slider","color","onChange","hsv","arguments","_excluded","React","ref","prefixCls","lightness","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","_extends","display","filter","Boolean","join","map","num","idx","hslStr","hsvaToHsla","h","checked","hsvaToHslString","paddingLeft","length","boxSizing","onClick","evn","handleClick","handleColor","hslStringToHsva","backgroundColor","height","cursor","borderRadius","transform","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/875.b5eef5f2.chunk.js b/static/js/875.b5eef5f2.chunk.js new file mode 100644 index 000000000..175810c25 --- /dev/null +++ b/static/js/875.b5eef5f2.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[875],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const l=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,n=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,d=o.Ay.div` + padding-bottom: 120px; +`,h=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(d,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(n,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(h,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},7958:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>d});var r=s(7804),i=s(4883),o=s(3623),a=s(7980),l=s(9424);function n(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,l.jsx)("div",{style:{width:256},children:(0,l.jsx)(i.default,{color:t,onChange:s=>{e({hsva:{...t,...s.hsv}})}})})}class d extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-slider/README.md",this.getMdStr=()=>s.e(428).then(s.bind(s,2428)),this.example=(0,l.jsx)(n,{})}}},4883:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>h});var r=s(8102),i=s(9257),o=s(7804),a=s(2945),l=s(9424),n=["prefixCls","className","style","onChange","color","lightness"],d=o.forwardRef(((t,e)=>{var{prefixCls:s="w-color-slider",className:o,style:d,onChange:h,color:c,lightness:p=[80,65,50,35,20]}=t,g=(0,i.A)(t,n),u="string"===typeof c&&(0,a.validHex)(c)?(0,a.hexToHsva)(c):c||{};return(0,l.jsx)("div",(0,r.A)({ref:e,style:(0,r.A)({display:"flex"},d),className:[s,o||""].filter(Boolean).join(" ")},g,{children:p.map(((t,e)=>{var s="hsl("+(0,a.hsvaToHsla)(u).h+", 50%, "+t+"%)",i=s===(0,a.hsvaToHslString)(u);return(0,l.jsx)("div",{style:{paddingLeft:1,width:100/p.length+"%",boxSizing:"border-box"},children:(0,l.jsx)("div",{onClick:t=>((t,e)=>{h&&h((0,a.color)((0,a.hslStringToHsva)(t)),e)})(s,t),style:(0,r.A)({backgroundColor:s,height:12,cursor:"pointer"},i?{borderRadius:2,transform:"scale(1, 1.5)"}:{})})},e)}))}))}));d.displayName="Slider";const h=d}}]); +//# sourceMappingURL=875.b5eef5f2.chunk.js.map \ No newline at end of file diff --git a/static/js/875.b5eef5f2.chunk.js.map b/static/js/875.b5eef5f2.chunk.js.map new file mode 100644 index 000000000..178d007f0 --- /dev/null +++ b/static/js/875.b5eef5f2.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/875.b5eef5f2.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAAC,EAC3D,OACEI,EAAAA,EAAAA,MAACzB,EAAO,CAAC0B,UAAU,oBAAmBC,SAAA,EACpCF,EAAAA,EAAAA,MAAC9B,EAAe,C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B,SAAUyB,EAAUU,KAAI,CAACC,EAAKC,KAC5B,IACIC,EAAS,QADHC,EAAAA,EAAAA,YAAW5B,GACK6B,EAAI,UAAYJ,EAAM,KAC5CK,EAAUH,KAAWI,EAAAA,EAAAA,iBAAgB/B,GACzC,OAAoBV,EAAAA,EAAAA,KAAK,MAAO,CAC9BK,MAAO,CACLqC,YAAa,EACb5B,MAAO,IAAMU,EAAUmB,OAAS,IAChCC,UAAW,cAEb7C,UAAuBC,EAAAA,EAAAA,KAAK,MAAO,CACjC6C,QAASC,GArBCC,EAACV,EAAQS,KACzB7B,GAAYA,GAAS+B,EAAAA,EAAAA,QAAYC,EAAAA,EAAAA,iBAAgBZ,IAAUS,EAAI,EAoBzCC,CAAYV,EAAQS,GACpCzC,OAAOwB,EAAAA,EAAAA,GAAS,CACdqB,gBAAiBb,EACjBc,OAAQ,GACRC,OAAQ,WACPZ,EAAU,CACXa,aAAc,EACdC,UAAW,iBACT,CAAC,MAENlB,EAAI,MAER,IAELrB,EAAOwC,YAAc,SACrB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/slider/index.tsx","../../packages/color-slider/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Slider from '@uiw/react-color-slider';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsv } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-slider/README.md';\n getMdStr = () => import('@uiw/react-color-slider/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"onChange\", \"color\", \"lightness\"];\nimport React from 'react';\nimport { color as handleColor, hexToHsva, hsvaToHsla, hsvaToHslString, validHex, hslStringToHsva } from '@uiw/color-convert';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Slider = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-slider',\n className,\n style,\n onChange,\n color,\n lightness = [80, 65, 50, 35, 20]\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleClick = (hslStr, evn) => {\n onChange && onChange(handleColor(hslStringToHsva(hslStr)), evn);\n };\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: ref,\n style: _extends({\n display: 'flex'\n }, style),\n className: [prefixCls, className || ''].filter(Boolean).join(' ')\n }, other, {\n children: lightness.map((num, idx) => {\n var hsl = hsvaToHsla(hsva);\n var hslStr = \"hsl(\" + hsl.h + \", 50%, \" + num + \"%)\";\n var checked = hslStr === hsvaToHslString(hsva);\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n paddingLeft: 1,\n width: 100 / lightness.length + \"%\",\n boxSizing: 'border-box'\n },\n children: /*#__PURE__*/_jsx(\"div\", {\n onClick: evn => handleClick(hslStr, evn),\n style: _extends({\n backgroundColor: hslStr,\n height: 12,\n cursor: 'pointer'\n }, checked ? {\n borderRadius: 2,\n transform: 'scale(1, 1.5)'\n } : {})\n })\n }, idx);\n })\n }));\n});\nSlider.displayName = 'Slider';\nexport default Slider;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Slider","color","onChange","hsv","arguments","_excluded","React","ref","prefixCls","lightness","other","_objectWithoutPropertiesLoose","validHex","hexToHsva","_extends","display","filter","Boolean","join","map","num","idx","hslStr","hsvaToHsla","h","checked","hsvaToHslString","paddingLeft","length","boxSizing","onClick","evn","handleClick","handleColor","hslStringToHsva","backgroundColor","height","cursor","borderRadius","transform","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/907.0a726bf9.chunk.js b/static/js/907.0a726bf9.chunk.js deleted file mode 100644 index b34ff28b7..000000000 --- a/static/js/907.0a726bf9.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[907],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>j});var r,i,n,o,a,d=s(114),h=s(7804),c=s(52),l=s(3235),p=s(9424);const g=l.Ay.div(r||(r=(0,d.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),u=l.Ay.a(i||(i=(0,d.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),x=l.Ay.div(n||(n=(0,d.A)(["\n padding-bottom: 120px;\n"]))),b=l.Ay.footer(o||(o=(0,d.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=l.Ay.div(a||(a=(0,d.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class j extends h.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,p.jsxs)(x,{className:"wmde-markdown-var",children:[(0,p.jsxs)(g,{children:[this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(c.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(u,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},2953:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>c});var r=s(7804),i=s(6966),n=s(2945),o=s(3623),a=s(7980),d=s(9424);function h(){const{hsva:t,dispatch:e}=(0,r.useContext)(a.ob);return(0,d.jsx)("div",{style:{width:256},children:(0,d.jsx)(i.default,{colors:["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],color:(0,n.hsvaToHex)(t),onChange:t=>{e({hsva:{...t,...t}})}})})}class c extends o.A{constructor(){super(...arguments),this.editorUrl="/packages/color-swatch/README.md",this.getMdStr=()=>s.e(135).then(s.bind(s,2135)),this.example=(0,d.jsx)(h,{})}}}}]); -//# sourceMappingURL=907.0a726bf9.chunk.js.map \ No newline at end of file diff --git a/static/js/907.0a726bf9.chunk.js.map b/static/js/907.0a726bf9.chunk.js.map deleted file mode 100644 index e1e3b23ea..000000000 --- a/static/js/907.0a726bf9.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/907.0a726bf9.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,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LC,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEFC,OAAOC,EAAAA,EAAAA,WAAUR,GACjBS,SAAWT,IACTC,EAAU,CAAED,KAAM,IAAKA,KAASA,IAAS,KAKnD,CAEO,MAAMlC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA2C,WAAA,KACtCxC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAAC1B,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/swatch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Swatch from '@uiw/react-color-swatch';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-swatch/README.md';\n getMdStr = () => import('@uiw/react-color-swatch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Swatch","colors","color","hsvaToHex","onChange","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/907.b674dc66.chunk.js b/static/js/907.b674dc66.chunk.js new file mode 100644 index 000000000..d4fb5ee5c --- /dev/null +++ b/static/js/907.b674dc66.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[907],{256:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=256,t.exports=e},3623:(t,e,s)=>{"use strict";s.d(e,{A:()=>p});var r=s(7804),i=s(52),o=s(3235),a=s(9424);const n=o.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,d=o.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,h=o.Ay.div` + padding-bottom: 120px; +`,l=o.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=o.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends r.Component{constructor(t){super(t),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((t=>{this.setState({mdStr:t.default.source,mdObj:t.default})}))}render(){const{source:t,components:e,data:s}=this.state.mdObj||{};return(0,a.jsxs)(h,{className:"wmde-markdown-var",children:[(0,a.jsxs)(n,{children:[this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(i.A,{data:{data:s,components:e,source:t},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(l,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},2953:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>l});var r=s(7804),i=s(6966),o=s(2945),a=s(3623),n=s(7980),d=s(9424);function h(){const{hsva:t,dispatch:e}=(0,r.useContext)(n.ob);return(0,d.jsx)("div",{style:{width:256},children:(0,d.jsx)(i.default,{colors:["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],color:(0,o.hsvaToHex)(t),onChange:t=>{e({hsva:{...t,...t}})}})})}class l extends a.A{constructor(){super(...arguments),this.editorUrl="/packages/color-swatch/README.md",this.getMdStr=()=>s.e(135).then(s.bind(s,2135)),this.example=(0,d.jsx)(h,{})}}}}]); +//# sourceMappingURL=907.b674dc66.chunk.js.map \ No newline at end of file diff --git a/static/js/907.b674dc66.chunk.js.map b/static/js/907.b674dc66.chunk.js.map new file mode 100644 index 000000000..7f8d1a4d2 --- /dev/null +++ b/static/js/907.b674dc66.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/907.b674dc66.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,yFCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,GAAG;;;;;;;;;;EAkB5BC,EAAYF,EAAAA,GAAOG,CAAC;;;;;;;;;;;;;EAepBC,EAAUJ,EAAAA,GAAOC,GAAG;;EAIpBI,EAASL,EAAAA,GAAOM,MAAM;;;;;;;;;;EAYtBC,EAAUP,EAAAA,GAAOC,GAAG;;;;;;;;EAUX,MAAMO,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL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AgDF,OAAO,UAASF,UACtEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,8DAA8DC,IAAI,sBAE7ET,EAAAA,EAAAA,KAAA,KAAGG,KAAK,uCAAuCF,OAAO,UAASF,UAC7DC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,0CAA0CC,IAAI,mBAEzDT,EAAAA,EAAAA,KAAA,KAAGG,KAAK,iDAAiDF,OAAO,UAASF,UACvEC,EAAAA,EAAAA,KAAA,OAAKQ,IAAI,oDAAoDC,IAAI,WAEnEZ,EAAAA,EAAAA,MAAA,KAAAE,SAAA,CAAG,sBACgB,KACjBC,EAAAA,EAAAA,KAAA,KAAGG,KAAK,2BAA2BF,OAAO,UAASF,SAAC,UAEhD,iCAMd,E,8HClIF,SAASxB,IACP,MAAM,KAAEmC,EAAI,SAAEC,IAAaC,EAAAA,EAAAA,YAAWC,EAAAA,IACtC,OACEb,EAAAA,EAAAA,KAAA,OAAKK,MAAO,CAAES,MAAO,KAAMf,UACzBC,EAAAA,EAAAA,KAACe,EAAAA,QAAM,CACLC,OAAQ,CACN,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAEFC,OAAOC,EAAAA,EAAAA,WAAUR,GACjBS,SAAWT,IACTC,EAAU,CAAED,KAAM,IAAKA,KAASA,IAAS,KAKnD,CAEO,MAAMjC,UAAkBD,EAAAA,EAASE,WAAAA,GAAA,SAAA0C,WAAA,KACtCvC,UAAY,mCAAmC,KAC/CC,SAAW,IAAM,8BAA4C,KAC7DC,SAAWiB,EAAAA,EAAAA,KAACzB,EAAO,GAAG,E","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/swatch/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext } from 'react';\nimport Swatch from '@uiw/react-color-swatch';\nimport { hsvaToHex } from '@uiw/react-color';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...hsva } });\n }}\n />\n
\n );\n}\n\nexport class Component extends Markdown {\n editorUrl = '/packages/color-swatch/README.md';\n getMdStr = () => import('@uiw/react-color-swatch/README.md');\n example = ();\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","width","Swatch","colors","color","hsvaToHex","onChange","arguments"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/914.6d1bf002.chunk.js b/static/js/914.6d1bf002.chunk.js deleted file mode 100644 index b8c4d6d19..000000000 --- a/static/js/914.6d1bf002.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[914],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var s,o,i,a,n,l=r(114),d=r(7804),h=r(52),c=r(3235),p=r(9424);const u=c.Ay.div(s||(s=(0,l.A)(["\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n"]))),x=c.Ay.a(o||(o=(0,l.A)(["\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n"]))),g=c.Ay.div(i||(i=(0,l.A)(["\n padding-bottom: 120px;\n"]))),b=c.Ay.footer(a||(a=(0,l.A)(["\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n"]))),m=c.Ay.div(n||(n=(0,l.A)(["\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n"])));class f extends d.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,p.jsxs)(g,{className:"wmde-markdown-var",children:[(0,p.jsxs)(u,{children:[this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"}),this.example&&(0,p.jsxs)(m,{children:[(0,p.jsx)("h3",{children:"Example"}),this.example]}),(0,p.jsx)(h.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,p.jsx)(x,{target:"_blank",rel:"noreferrer",href:"https://github.com/uiwjs/react-color/edit/main".concat(this.editorUrl),children:"Edit this page"})]}),(0,p.jsxs)(b,{children:[(0,p.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,p.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,p.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,p.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,p.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,p.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},5615:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>d});var s=r(7804),o=r(8024),i=r(3623),a=r(7980),n=r(9424);function l(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob),[r,i]=(0,s.useState)(!1);return(0,n.jsxs)("div",{style:{width:256},children:[(0,n.jsx)(o.default,{color:e,disableAlpha:r,onChange:r=>{t({hsva:{...e,...r.hsva}})}}),(0,n.jsx)("div",{children:(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:r,onChange:e=>i(e.target.checked)}),r?"Hide":"Show"," Alpha"]})})]})}class d extends i.A{constructor(){super(...arguments),this.displayName="colorful-Page",this.editorUrl="/packages/color-colorful/README.md",this.getMdStr=()=>r.e(185).then(r.bind(r,5185)),this.example=(0,n.jsx)(l,{})}}},8024:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var s=r(8102),o=r(9257),i=r(7804),a=r(2945),n=r(1636),l=r(2084),d=r(1068),h=r(9424),c=["style","color"],p=["prefixCls","className","onChange","color","style","disableAlpha"],u=e=>{var{style:t,color:r}=e,i=(0,o.A)(e,c),a=(0,s.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+n.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},t);return(0,h.jsx)("div",(0,s.A)({},i,{style:a,children:(0,h.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},x=i.forwardRef(((e,t)=>{var{prefixCls:r="w-color-colorful",className:i,onChange:c,color:x,style:g,disableAlpha:b}=e,m=(0,o.A)(e,p),f="string"===typeof x&&(0,a.validHex)(x)?(0,a.hexToHsva)(x):x||{},j=e=>c&&c((0,a.color)(e));return(0,h.jsxs)("div",(0,s.A)({ref:t,style:(0,s.A)({width:200,position:"relative"},g)},m,{className:r+" "+(i||""),children:[(0,h.jsx)(l.default,{hsva:f,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:t,top:r,color:s}=e;return(0,h.jsx)(u,{style:{left:t,top:r,transform:"translate(-16px, -16px)"},color:(0,a.hsvaToHex)(f)})},onChange:e=>j((0,s.A)({},f,e))}),(0,h.jsx)(d.default,{hue:f.h,height:24,radius:b?"0 0 8px 8px":0,className:r,onChange:e=>j((0,s.A)({},f,e)),pointer:e=>{var{left:t}=e;return(0,h.jsx)(u,{style:{left:t},color:"hsl("+(f.h||0)+"deg 100% 50%)"})}}),!b&&(0,h.jsx)(n.default,{hsva:f,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:t}=e;return(0,h.jsx)(u,{style:{left:t},color:(0,a.hsvaToRgbaString)(f)})},onChange:e=>j((0,s.A)({},f,e))})]}))}));x.displayName="Colorful";const g=x}}]); -//# sourceMappingURL=914.6d1bf002.chunk.js.map \ No newline at end of file diff --git a/static/js/914.6d1bf002.chunk.js.map b/static/js/914.6d1bf002.chunk.js.map deleted file mode 100644 index 8cdb9fdcc..000000000 --- a/static/js/914.6d1bf002.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/914.6d1bf002.chunk.js","mappings":"6EAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,CACP,CACAF,EAAoBK,KAAO,IAAM,GACjCL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,IACzBC,EAAOC,QAAUT,C,4GCHjB,MAAMU,EAAkBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wPAkB5BC,EAAYJ,EAAAA,GAAOK,EAACC,IAAAA,GAAAH,EAAAA,EAAAA,GAAA,iRAepBI,EAAUP,EAAAA,GAAOC,IAAGO,IAAAA,GAAAL,EAAAA,EAAAA,GAAA,oCAIpBM,EAAST,EAAAA,GAAOU,OAAMC,IAAAA,GAAAR,EAAAA,EAAAA,GAAA,iJAYtBS,EAAUZ,EAAAA,GAAOC,IAAGY,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,gLAUX,MAAMW,UAAiBC,EAAAA,UACpCC,WAAAA,CAAYC,GACVC,MAAMD,GAAO,KAKfE,eAAS,OACTC,cAAQ,OACRC,aAAO,EANLC,KAAKC,MAAQ,CACXC,MAAO,GAEX,CAIAC,iBAAAA,GACMH,KAAKF,UACPE,KAAKF,WAAWM,MAAMC,IACpBL,KAAKM,SAAS,CACZJ,MAAOG,EAAIE,QAAQC,OACnBC,MAAOJ,EAAIE,SACX,GAGR,CACAG,MAAAA,GACE,MAAM,OAAEF,EAAM,WAAEG,EAAU,KAAEC,GAAUZ,KAAKC,MAAMQ,OAAS,CAA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C,GACEoC,EACJ,OAAoBxD,EAAAA,EAAAA,KAAK6B,EAAS,CAChCvB,MAAO,CACLmD,OACAC,MACAtB,UAAW,2BAEbhB,OAAOuC,EAAAA,EAAAA,WAAUhD,IACjB,EAEJU,SAAUuC,GAAYZ,GAAaf,EAAAA,EAAAA,GAAS,CAAC,EAAGtB,EAAMiD,OACvC5D,EAAAA,EAAAA,KAAK6D,EAAAA,QAAK,CACzBC,IAAKnD,EAAKoD,EACV7B,OAAQ,GACRkB,OAAQrC,EAAe,cAAgB,EACvCjB,UAAW8C,EACXvB,SAAU2C,GAAUhB,GAAaf,EAAAA,EAAAA,GAAS,CAAC,EAAGtB,EAAMqD,IACpDT,QAASU,IACP,IAAI,KACFR,GACEQ,EACJ,OAAoBjE,EAAAA,EAAAA,KAAK6B,EAAS,CAChCvB,MAAO,CACLmD,QAEFrC,MAAO,QAAUT,EAAKoD,GAAK,GAAK,iBAChC,KAEDhD,IAA6Bf,EAAAA,EAAAA,KAAKkE,EAAAA,QAAO,CAC5CvD,KAAMA,EACNuB,OAAQ,GACRpC,UAAW8C,EACXQ,OAAQ,cACRG,QAASY,IACP,IAAI,KACFV,GACEU,EACJ,OAAoBnE,EAAAA,EAAAA,KAAK6B,EAAS,CAChCvB,MAAO,CACLmD,QAEFrC,OAAOgD,EAAAA,EAAAA,kBAAiBzD,IACxB,EAEJU,SAAUgD,GAAYrB,GAAaf,EAAAA,EAAAA,GAAS,CAAC,EAAGtB,EAAM0D,SAEvD,IAELlD,EAASO,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/colorful/index.tsx","../../packages/color-colorful/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext, useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n \n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'colorful-Page';\n editorUrl = '/packages/color-colorful/README.md';\n getMdStr = () => import('@uiw/react-color-colorful/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","_templateObject","_taggedTemplateLiteral","EditorUrl","a","_templateObject2","Wrapper","_templateObject3","Footer","footer","_templateObject4","Example","_templateObject5","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","concat","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","disableAlpha","setDisableAlpha","useState","width","Colorful","color","onChange","type","checked","evn","arguments","displayName","_excluded","_excluded2","Pointer","_ref","_objectWithoutPropertiesLoose","stylePointer","_extends","height","position","transform","borderRadius","background","BACKGROUND_IMG","backgroundColor","zIndex","React","ref","prefixCls","other","validHex","hexToHsva","handleChange","value","handleColor","Saturation","radius","minWidth","borderBottom","pointer","_ref2","left","top","hsvaToHex","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/914.ae19d238.chunk.js b/static/js/914.ae19d238.chunk.js new file mode 100644 index 000000000..fabd2bd43 --- /dev/null +++ b/static/js/914.ae19d238.chunk.js @@ -0,0 +1,45 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[914],{256:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=256,e.exports=t},3623:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7804),o=r(52),i=r(3235),a=r(9424);const l=i.Ay.div` + background-color: var(--color-theme-bg); + box-shadow: + 0 0 0 1px rgb(0 0 0 / 15%), + 0 8px 16px rgb(0 0 0 / 15%); + border-radius: 16px; + max-width: 860px; + margin: 0 auto; + padding-bottom: 20px; + position: relative; +`,d=i.Ay.a` + position: absolute; + right: 20px; + padding: 3px 8px 4px 8px; + background: #333333; + border-radius: 0 0 6px 6px; + text-decoration: initial; + color: #fff; + transition: all 0.3s; + font-size: 14px; + &:hover { + background-color: #3f51b4; + } +`,n=i.Ay.div` + padding-bottom: 120px; +`,h=i.Ay.footer` + text-align: center; + margin-top: 40px; + a { + margin: 0 5px; + } + p { + font-size: 12px; + text-align: center; + } +`,c=i.Ay.div` + border-bottom: 1px solid var(--color-border-default); + border-radius: 16px 16px 0 0; + padding: 28px; + > h3 { + margin: 0; + padding-bottom: 12px; + } +`;class p extends s.Component{constructor(e){super(e),this.editorUrl=void 0,this.getMdStr=void 0,this.example=void 0,this.state={mdStr:""}}componentDidMount(){this.getMdStr&&this.getMdStr().then((e=>{this.setState({mdStr:e.default.source,mdObj:e.default})}))}render(){const{source:e,components:t,data:r}=this.state.mdObj||{};return(0,a.jsxs)(n,{className:"wmde-markdown-var",children:[(0,a.jsxs)(l,{children:[this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"}),this.example&&(0,a.jsxs)(c,{children:[(0,a.jsx)("h3",{children:"Example"}),this.example]}),(0,a.jsx)(o.A,{data:{data:r,components:t,source:e},style:{border:0,boxShadow:"0 0 0"}}),this.editorUrl&&(0,a.jsx)(d,{target:"_blank",rel:"noreferrer",href:`https://github.com/uiwjs/react-color/edit/main${this.editorUrl}`,children:"Edit this page"})]}),(0,a.jsxs)(h,{children:[(0,a.jsx)("a",{href:"https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-color/file/README.md",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/Open%20in-unpkg-blue",alt:"Open in unpkg"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/issues",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/issues/uiwjs/react-color",alt:"Github Issues"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/stargazers",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/stars/uiwjs/react-color.svg",alt:"Github Stars"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color/releases",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/github/release/uiwjs/react-color.svg",alt:"Github Release"})}),(0,a.jsx)("a",{href:"https://github.com/uiwjs/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/dub/l/vibe-d.svg",alt:"License MIT"})}),(0,a.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-color",target:"__blank",children:(0,a.jsx)("img",{src:"https://img.shields.io/npm/v/@uiw/react-color.svg",alt:"npm"})}),(0,a.jsxs)("p",{children:["Copyright \xa9 2021"," ",(0,a.jsx)("a",{href:"https://github.com/uiwjs",target:"__blank",children:"uiwjs"}),". All rights reserved."]})]})]})}}},5615:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>n});var s=r(7804),o=r(8024),i=r(3623),a=r(7980),l=r(9424);function d(){const{hsva:e,dispatch:t}=(0,s.useContext)(a.ob),[r,i]=(0,s.useState)(!1);return(0,l.jsxs)("div",{style:{width:256},children:[(0,l.jsx)(o.default,{color:e,disableAlpha:r,onChange:r=>{t({hsva:{...e,...r.hsva}})}}),(0,l.jsx)("div",{children:(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:r,onChange:e=>i(e.target.checked)}),r?"Hide":"Show"," Alpha"]})})]})}class n extends i.A{constructor(){super(...arguments),this.displayName="colorful-Page",this.editorUrl="/packages/color-colorful/README.md",this.getMdStr=()=>r.e(185).then(r.bind(r,5185)),this.example=(0,l.jsx)(d,{})}}},8024:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var s=r(8102),o=r(9257),i=r(7804),a=r(2945),l=r(1636),d=r(2084),n=r(1068),h=r(9424),c=["style","color"],p=["prefixCls","className","onChange","color","style","disableAlpha"],u=e=>{var{style:t,color:r}=e,i=(0,o.A)(e,c),a=(0,s.A)({"--colorful-pointer-background-color":"#fff","--colorful-pointer-border":"2px solid #fff",height:28,width:28,position:"absolute",transform:"translate(-14px, -4px)",boxShadow:"0 2px 4px rgb(0 0 0 / 20%)",borderRadius:"50%",background:"url("+l.BACKGROUND_IMG+")",backgroundColor:"var(--colorful-pointer-background-color)",border:"var(--colorful-pointer-border)",zIndex:1},t);return(0,h.jsx)("div",(0,s.A)({},i,{style:a,children:(0,h.jsx)("div",{style:{backgroundColor:r,borderRadius:"50%",height:" 100%",width:"100%"}})}))},x=i.forwardRef(((e,t)=>{var{prefixCls:r="w-color-colorful",className:i,onChange:c,color:x,style:g,disableAlpha:b}=e,m=(0,o.A)(e,p),f="string"===typeof x&&(0,a.validHex)(x)?(0,a.hexToHsva)(x):x||{},j=e=>c&&c((0,a.color)(e));return(0,h.jsxs)("div",(0,s.A)({ref:t,style:(0,s.A)({width:200,position:"relative"},g)},m,{className:r+" "+(i||""),children:[(0,h.jsx)(d.default,{hsva:f,className:r,radius:"8px 8px 0 0",style:{width:"auto",height:150,minWidth:120,borderBottom:"12px solid #000"},pointer:e=>{var{left:t,top:r,color:s}=e;return(0,h.jsx)(u,{style:{left:t,top:r,transform:"translate(-16px, -16px)"},color:(0,a.hsvaToHex)(f)})},onChange:e=>j((0,s.A)({},f,e))}),(0,h.jsx)(n.default,{hue:f.h,height:24,radius:b?"0 0 8px 8px":0,className:r,onChange:e=>j((0,s.A)({},f,e)),pointer:e=>{var{left:t}=e;return(0,h.jsx)(u,{style:{left:t},color:"hsl("+(f.h||0)+"deg 100% 50%)"})}}),!b&&(0,h.jsx)(l.default,{hsva:f,height:24,className:r,radius:"0 0 8px 8px",pointer:e=>{var{left:t}=e;return(0,h.jsx)(u,{style:{left:t},color:(0,a.hsvaToRgbaString)(f)})},onChange:e=>j((0,s.A)({},f,e))})]}))}));x.displayName="Colorful";const g=x}}]); +//# sourceMappingURL=914.ae19d238.chunk.js.map \ No newline at end of file diff --git a/static/js/914.ae19d238.chunk.js.map b/static/js/914.ae19d238.chunk.js.map new file mode 100644 index 000000000..e67c78d94 --- /dev/null +++ b/static/js/914.ae19d238.chunk.js.map @@ -0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,GAAaf,EAAAA,EAAAA,GAAS,CAAC,EAAGtB,EAAMqD,IACpDT,QAASU,IACP,IAAI,KACFR,GACEQ,EACJ,OAAoBhE,EAAAA,EAAAA,KAAK4B,EAAS,CAChCvB,MAAO,CACLmD,QAEFrC,MAAO,QAAUT,EAAKoD,GAAK,GAAK,iBAChC,KAEDhD,IAA6Bd,EAAAA,EAAAA,KAAKiE,EAAAA,QAAO,CAC5CvD,KAAMA,EACNuB,OAAQ,GACRnC,UAAW6C,EACXQ,OAAQ,cACRG,QAASY,IACP,IAAI,KACFV,GACEU,EACJ,OAAoBlE,EAAAA,EAAAA,KAAK4B,EAAS,CAChCvB,MAAO,CACLmD,QAEFrC,OAAOgD,EAAAA,EAAAA,kBAAiBzD,IACxB,EAEJU,SAAUgD,GAAYrB,GAAaf,EAAAA,EAAAA,GAAS,CAAC,EAAGtB,EAAM0D,SAEvD,IAELlD,EAASO,YAAc,WACvB,S","sources":["../../node_modules/@babel/standalone|sync","components/Markdown.tsx","pages/colorful/index.tsx","../../packages/color-colorful/esm/index.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 256;\nmodule.exports = webpackEmptyContext;","import { Component } from 'react';\nimport { CodeBlockData } from 'markdown-react-code-preview-loader';\nimport MarkdownPreviewExample from '@uiw/react-markdown-preview-example/markdown';\nimport styled from 'styled-components';\n\nconst MarkdownWrapper = styled.div`\n background-color: var(--color-theme-bg);\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 15%),\n 0 8px 16px rgb(0 0 0 / 15%);\n border-radius: 16px;\n max-width: 860px;\n margin: 0 auto;\n padding-bottom: 20px;\n position: relative;\n`;\n\ninterface MarkdownProps {}\ninterface MarkdownState {\n mdStr: string;\n mdObj?: CodeBlockData;\n}\n\nconst EditorUrl = styled.a`\n position: absolute;\n right: 20px;\n padding: 3px 8px 4px 8px;\n background: #333333;\n border-radius: 0 0 6px 6px;\n text-decoration: initial;\n color: #fff;\n transition: all 0.3s;\n font-size: 14px;\n &:hover {\n background-color: #3f51b4;\n }\n`;\n\nconst Wrapper = styled.div`\n padding-bottom: 120px;\n`;\n\nconst Footer = styled.footer`\n text-align: center;\n margin-top: 40px;\n a {\n margin: 0 5px;\n }\n p {\n font-size: 12px;\n text-align: center;\n }\n`;\n\nconst Example = styled.div`\n border-bottom: 1px solid var(--color-border-default);\n border-radius: 16px 16px 0 0;\n padding: 28px;\n > h3 {\n margin: 0;\n padding-bottom: 12px;\n }\n`;\n\nexport default class Markdown extends Component {\n constructor(props: MarkdownProps) {\n super(props);\n this.state = {\n mdStr: '',\n };\n }\n editorUrl?: string;\n getMdStr?: any;\n example?: React.ReactNode;\n componentDidMount() {\n if (this.getMdStr) {\n this.getMdStr().then((str: any) => {\n this.setState({\n mdStr: str.default.source,\n mdObj: str.default,\n });\n });\n }\n }\n render() {\n const { source, components, data } = (this.state.mdObj || {}) as CodeBlockData;\n return (\n \n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n {this.example && (\n \n

Example

\n {this.example}\n
\n )}\n \n {this.editorUrl && (\n \n Edit this page\n \n )}\n
\n \n
\n );\n }\n}\n","import { useContext, useState } from 'react';\nimport Colorful from '@uiw/react-color-colorful';\nimport Markdown from '../../components/Markdown';\nimport { Context } from '../../Store';\n\nfunction Example() {\n const { hsva, dispatch } = useContext(Context);\n const [disableAlpha, setDisableAlpha] = useState(false);\n return (\n
\n {\n dispatch!({ hsva: { ...hsva, ...color.hsva } });\n }}\n />\n
\n \n
\n
\n );\n}\n\nexport class Component extends Markdown {\n displayName = 'colorful-Page';\n editorUrl = '/packages/color-colorful/README.md';\n getMdStr = () => import('@uiw/react-color-colorful/README.md');\n example = ();\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\", \"color\"],\n _excluded2 = [\"prefixCls\", \"className\", \"onChange\", \"color\", \"style\", \"disableAlpha\"];\nimport React from 'react';\nimport { validHex, color as handleColor, hexToHsva, hsvaToHex, hsvaToRgbaString } from '@uiw/color-convert';\nimport Alpha, { BACKGROUND_IMG } from '@uiw/react-color-alpha';\nimport Saturation from '@uiw/react-color-saturation';\nimport Hue from '@uiw/react-color-hue';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar Pointer = _ref => {\n var {\n style,\n color\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var stylePointer = _extends({\n '--colorful-pointer-background-color': '#fff',\n '--colorful-pointer-border': '2px solid #fff',\n height: 28,\n width: 28,\n position: 'absolute',\n transform: 'translate(-14px, -4px)',\n boxShadow: '0 2px 4px rgb(0 0 0 / 20%)',\n borderRadius: '50%',\n background: \"url(\" + BACKGROUND_IMG + \")\",\n backgroundColor: 'var(--colorful-pointer-background-color)',\n border: 'var(--colorful-pointer-border)',\n zIndex: 1\n }, style);\n return /*#__PURE__*/_jsx(\"div\", _extends({}, props, {\n style: stylePointer,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: {\n backgroundColor: color,\n borderRadius: '50%',\n height: ' 100%',\n width: '100%'\n }\n })\n }));\n};\nvar Colorful = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n prefixCls = 'w-color-colorful',\n className,\n onChange,\n color,\n style,\n disableAlpha\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n var hsva = typeof color === 'string' && validHex(color) ? hexToHsva(color) : color || {};\n var handleChange = value => onChange && onChange(handleColor(value));\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n ref: ref,\n style: _extends({\n width: 200,\n position: 'relative'\n }, style)\n }, other, {\n className: prefixCls + \" \" + (className || ''),\n children: [/*#__PURE__*/_jsx(Saturation, {\n hsva: hsva,\n className: prefixCls,\n radius: \"8px 8px 0 0\",\n style: {\n width: 'auto',\n height: 150,\n minWidth: 120,\n borderBottom: '12px solid #000'\n },\n pointer: _ref2 => {\n var {\n left,\n top,\n color\n } = _ref2;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left,\n top,\n transform: 'translate(-16px, -16px)'\n },\n color: hsvaToHex(hsva)\n });\n },\n onChange: newColor => handleChange(_extends({}, hsva, newColor))\n }), /*#__PURE__*/_jsx(Hue, {\n hue: hsva.h,\n height: 24,\n radius: disableAlpha ? '0 0 8px 8px' : 0,\n className: prefixCls,\n onChange: newHue => handleChange(_extends({}, hsva, newHue)),\n pointer: _ref3 => {\n var {\n left\n } = _ref3;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: \"hsl(\" + (hsva.h || 0) + \"deg 100% 50%)\"\n });\n }\n }), !disableAlpha && /*#__PURE__*/_jsx(Alpha, {\n hsva: hsva,\n height: 24,\n className: prefixCls,\n radius: \"0 0 8px 8px\",\n pointer: _ref4 => {\n var {\n left\n } = _ref4;\n return /*#__PURE__*/_jsx(Pointer, {\n style: {\n left\n },\n color: hsvaToRgbaString(hsva)\n });\n },\n onChange: newAlpha => handleChange(_extends({}, hsva, newAlpha))\n })]\n }));\n});\nColorful.displayName = 'Colorful';\nexport default Colorful;"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","MarkdownWrapper","styled","div","EditorUrl","a","Wrapper","Footer","footer","Example","Markdown","Component","constructor","props","super","editorUrl","getMdStr","example","this","state","mdStr","componentDidMount","then","str","setState","default","source","mdObj","render","components","data","_jsxs","className","children","_jsx","target","rel","href","MarkdownPreviewExample","style","border","boxShadow","src","alt","hsva","dispatch","useContext","Context","disableAlpha","setDisableAlpha","useState","width","Colorful","color","onChange","type","checked","evn","arguments","displayName","_excluded","_excluded2","Pointer","_ref","_objectWithoutPropertiesLoose","stylePointer","_extends","height","position","transform","borderRadius","background","BACKGROUND_IMG","backgroundColor","zIndex","React","ref","prefixCls","other","validHex","hexToHsva","handleChange","value","handleColor","Saturation","radius","minWidth","borderBottom","pointer","_ref2","left","top","hsvaToHex","newColor","Hue","hue","h","newHue","_ref3","Alpha","_ref4","hsvaToRgbaString","newAlpha"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/920.b8e8352a.chunk.js b/static/js/920.b8e8352a.chunk.js deleted file mode 100644 index 0793fa7bd..000000000 --- a/static/js/920.b8e8352a.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 920.b8e8352a.chunk.js.LICENSE.txt */ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[920],{8474:function(e){e.exports=function(){"use strict";function e(e,t){if("undefined"===typeof document)return;const r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style={position:"absolute",left:"-9999px"},document.body.appendChild(r);const a=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);r.select();let n=!1;try{n=!!document.execCommand("copy")}catch(s){n=!1}document.body.removeChild(r),a&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(a)),t&&t(n)}return e}()},52:(e,t,r)=>{"use strict";r.d(t,{A:()=>Au});var a={};r.r(a),r.d(a,{attentionMarkers:()=>Mo,contentInitial:()=>Do,disable:()=>Uo,document:()=>Io,flow:()=>Oo,flowInitial:()=>No,insideSpan:()=>Bo,string:()=>Fo,text:()=>Lo});var n=r(8102),s=r(9257);var i=r(7804),o=r(9424),d={},c=(0,i.createContext)({}),l=(e,t)=>(0,n.A)({},e,t),u=e=>{var{children:t,value:r}=e,[a,s]=(0,i.useReducer)(l,(0,n.A)({},d,r));return(0,o.jsx)(c.Provider,{value:(0,n.A)({},a,{dispatch:s}),children:t})},p=["tagName","className","children"],f=i.forwardRef(((e,t)=>{var{tagName:r="div",className:a,children:o}=e,d=(0,s.A)(e,p),l=[S+"-code",a].filter(Boolean).join(" ").trim();if((0,i.useContext)(c).collapse)return null;var u=e.href&&"string"===typeof r?"a":r,f=(0,n.A)({},d,{className:l,ref:t});return i.createElement(u,f,o)}));f.displayName="uiw.CodeLayoutCode";var g=["className","children"],h=i.forwardRef(((e,t)=>{var{className:r,children:a}=e,i=(0,s.A)(e,g),d=[S+"-preview",r].filter(Boolean).join(" ").trim();return(0,o.jsx)("div",(0,n.A)({},i,{className:d,ref:t,children:a}))}));h.displayName="uiw.Preview";var m=r(8474),y=r.n(m),b=e=>(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{d:"M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41zm13.14 6.14-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z","data-name":"code"})}),v=e=>(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[(0,o.jsx)("path",{d:"M18 21h-6a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3zm-6-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"}),(0,o.jsx)("path",{d:"M9.73 15H5.67A2.68 2.68 0 0 1 3 12.33V5.67A2.68 2.68 0 0 1 5.67 3h6.66A2.68 2.68 0 0 1 15 5.67V9.4h-2V5.67a.67.67 0 0 0-.67-.67H5.67a.67.67 0 0 0-.67.67v6.66a.67.67 0 0 0 .67.67h4.06z"})]}),x=e=>(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"green",children:[(0,o.jsx)("path",{d:"M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"}),(0,o.jsx)("path",{d:"M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"})]}),R=e=>{var[t,r]=(0,i.useState)(!1);return(0,o.jsx)("button",{onClick:()=>{r(!0),y()(e.text||"",(()=>{var e=setTimeout((()=>{r(!1),clearTimeout(e)}),2e3)}))},children:t?(0,o.jsx)(x,{}):(0,o.jsx)(v,{})})},E=["className","children","extra","text","copied","collapse","visibleButton","visible"],T=i.forwardRef(((e,t)=>{var{className:r,children:a,extra:d,text:l="",copied:u=!0,collapse:p=!0,visibleButton:f=!0,visible:g=!0}=e,h=(0,s.A)(e,E),m=(0,i.useContext)(c),y=[S+"-toolbar",r].filter(Boolean).join(" ").trim();if((0,i.useEffect)((()=>m.dispatch({collapse:p})),[p]),!g)return null;return(0,o.jsxs)("div",(0,n.A)({className:y},h,{ref:t,children:[(0,o.jsx)("div",{className:S+"-title",children:a}),(0,o.jsxs)("div",{className:S+"-extra",children:[d,u&&(0,o.jsx)(R,{text:l}),f&&(0,o.jsx)("button",{onClick:()=>m.dispatch({collapse:!m.collapse}),children:(0,o.jsx)(b,{})})]})]}))}));T.displayName="uiw.Toolbar";var w=["children","prefixCls","className","bordered","disableCheckered"],S="w-rcpl",A=i.forwardRef(((e,t)=>{var{children:r,prefixCls:a=S,className:d,bordered:c=!0,disableCheckered:l}=e,u=(0,s.A)(e,w),p=[a,d,c?"w-bordered":null,l?"w-disable-checkered":null].filter(Boolean).join(" ").trim();return(0,o.jsx)("div",(0,n.A)({ref:t},u,{className:p,children:i.Children.map(r,((e,t)=>i.isValidElement(e)?i.cloneElement(e,(0,n.A)({},e.props,{key:t})):e))}))})),j=i.forwardRef(((e,t)=>(0,o.jsx)(u,{value:{collapse:!1},children:(0,o.jsx)(A,(0,n.A)({},e,{ref:t}))})));j.Preview=h,j.Toolbar=T,j.Code=f;const _=j;r(3521),r(3132),r(8108),r(9050);var C=e=>{for(var t,r=/([^?=&]+)=([^&]*)/g,a={};t=r.exec(e);)a[t[1]]=t[2];return a},k=function(e){void 0===e&&(e="");var[t=""]=/mdx:(.[\w|:]+)/i.exec(e)||[];return t.replace(/^mdx:preview:?/,"")},P=function(e){return void 0===e&&(e=""),e&&e.includes("mdx:preview")};const I=function(e){if(null===e||void 0===e)return N;if("function"===typeof e)return D(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r":"")+")"})}return l;function l(){let c,l,u,p=F;if((!t||s(n,o,d[d.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[L,e];return null===e||void 0===e?F:[e]}(r(n,d)),p[0]===B))return p;if("children"in n&&n.children){const t=n;if(t.children&&p[0]!==M)for(l=(a?t.children.length:-1)+i,u=d.concat(t);l>-1&&l0&&0===i.length)return}const o={};let d;for(d in t)V.call(t,d)&&(o[d]="children"===d?i:t[d]);return o}(e)}var K=r(9386),Y=r(1689),X=r(2564);function J(){J=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,a,n){var s=new RegExp(e,a);return t.set(s,n||t.get(e)),Q(s,r.prototype)}function a(e,r){var a=t.get(r);return Object.keys(a).reduce((function(t,r){var n=a[r];if("number"==typeof n)t[r]=e[n];else{for(var s=0;void 0===e[n[s]]&&s+1]+)>/g,(function(e,t){var r=s[t];return"$"+(Array.isArray(r)?r.join("$"):r)})))}if("function"==typeof n){var i=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,i)),n.apply(this,e)}))}return e[Symbol.replace].call(this,r,n)},J.apply(this,arguments)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ee=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){H(e,"element",r)};function r(r,a,n){var s,i;if(n&&"pre"===n.tagName&&"code"===r.tagName){var o=(null==r||null==(s=r.data)?void 0:s.meta)||(null==r||null==(i=r.properties)?void 0:i.metastring)||"";r.properties.className?"boolean"==typeof r.properties.className?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var d,c,l=function(e){for(var t,r=Z(e.properties.className);!(t=r()).done;){var a=t.value;if("language-"===a.slice(0,9))return a.slice(9).toLowerCase()}return null}(r);if(!l&&t.defaultLanguage&&r.properties.className.push("language-"+(l=t.defaultLanguage)),r.properties.className.push("code-highlight"),l)try{var u,p;p=null!=(u=l)&&u.includes("diff-")?l.split("-")[1]:l,d=e.highlight(G(r),p),n.properties.className=(n.properties.className||[]).concat("language-"+p)}catch(x){if(!t.ignoreMissing||!/Unknown language/.test(x.message))throw x;d=r}else d=r;d.children=(c=1,function e(t){return t.reduce((function(t,r){if("text"===r.type){var a=r.value,n=(a.match(/\n/g)||"").length;if(0===n)r.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(r);else for(var s,i=a.split("\n"),o=Z(i.entries());!(s=o()).done;){var d=s.value,l=d[0],u=d[1];t.push({type:"text",value:l===i.length-1?u:u+"\n",position:{start:{line:c+l,column:1},end:{line:c+l,column:1}}})}return c+=n,t}if(Object.prototype.hasOwnProperty.call(r,"children")){var p=c;return r.children=e(r.children),t.push(r),r.position={start:{line:p,column:1},end:{line:c,column:1}},t}return t.push(r),t}),[])})(d.children),d.position=d.children.length>0?{start:{line:d.children[0].position.start.line,column:0},end:{line:d.children[d.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var f,g=function(e){var t=/{([\d,-]+)}/,r=e.split(",").map((function(e){return e.trim()})).join();if(t.test(r)){var a=t.exec(r)[1],n=K(a);return function(e){return n.includes(e+1)}}return function(){return!1}}(o),h=function(e){var t=J(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var r=t.exec(e);return Number(r.groups.lines)}return 1}(o),m=function(e){for(var t=new Array(e),r=0;r=n+1}));s.children=i.children,!o.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||y.some((function(e){return o.toLowerCase().includes(e)}))||(s.properties.line=[(n+h).toString()],s.properties.className.push("line-number")),g(n)&&s.properties.className.push("highlight-line"),("diff"===l||null!=(e=l)&&e.includes("diff-"))&&"-"===G(s).substring(0,1)?s.properties.className.push("deleted"):("diff"===l||null!=(r=l)&&r.includes("diff-"))&&"+"===G(s).substring(0,1)&&s.properties.className.push("inserted")},v=Z(m.entries());!(f=v()).done;)b();m.length>0&&""===G(m[m.length-1]).trim()&&m.pop(),r.children=m}}}},te=(ee(Y.L),ee(X.L)),re=r(5294),ae={},ne={};function se(e,t){for(var r=t,a=0;a","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Se=Ee(we,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Ae=Ee(Se,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),je={css1:Te,css2:we,css3:Se,"selectors-3":Se,"selectors-4":Ae,latest:Ae,progressive:Ee(Ae,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}})};function _e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"-"===e||"_"===e||"\\"===e||e>="\xa0"}function Ce(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"-"===e||"_"===e||e>="\xa0"}function ke(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Pe={" ":!0,"\t":!0,"\n":!0,"\r":!0,"\f":!0},Ie={'"':!0,"'":!0},De={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0};var Ne="css-selector-parser parse error: ";var Oe=function(){return Oe=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0,T=i.pseudoClasses?[!0,i.pseudoClasses.definitions?ue(i.pseudoClasses.definitions):de,"accept"===i.pseudoClasses.unknown]:[!1,de,!1],w=T[0],S=T[1],A=T[2],j=i.pseudoElements?[!0,"singleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,!i.pseudoElements.notation||"doubleColon"===i.pseudoElements.notation||"both"===i.pseudoElements.notation,i.pseudoElements.definitions?ue(Array.isArray(i.pseudoElements.definitions)?{NoArgument:i.pseudoElements.definitions}:i.pseudoElements.definitions):de,"accept"===i.pseudoElements.unknown]:[!1,!1,!1,de,!1],_=j[0],C=j[1],k=j[2],P=j[3],I=j[4],D="",N=D.length,O=0,F="",L=function(e){return F===e},B=function(){return L("*")||_e(F)},M=function(e){O=e,F=D.charAt(O)},U=function(){O++,F=D.charAt(O)},H=function(){var e=F;return O++,F=D.charAt(O),e};function G(e){var t=Math.min(N-1,O),r=new Error("".concat(Ne).concat(e," Pos: ").concat(t,"."));throw r.position=t,r.name="ParserError",r}function q(e,t){if(!e)return G(t)}var W=function(){q(O=N},z=function(e){q(O=2&&G("Identifiers cannot start with two hyphens with strict mode on."),De[F]&&G("Identifiers cannot start with hyphens followed by digits.");O0)return(t.commaSeparated?Ve.A:Ke.A)(e)}}(t.properties[a.property],a);if(!e.value)return void 0!==n;e.value.type;let s=e.value.value;if("i"===e.caseSensitivityModifier&&(s=s.toLowerCase(),n&&(n=n.toLowerCase())),void 0!==n)switch(e.operator){case"=":return s===n;case"$=":return s===n.slice(-s.length);case"*=":return n.includes(s);case"^=":return s===n.slice(0,s.length);case"|=":return s===n||s===n.slice(0,s.length)&&"-"===n.charAt(s.length);case"~=":return s===n||Ke.q(n).includes(s)}return!1}const Xe=[];function Je(e,t){return(t.properties.className||Xe).includes(e.name)}function Qe(e,t){return t.properties.id===e.name}function $e(e,t){return e.name===t.tagName}function Ze(e,t){return function(r,a){let n=tt(r,"tag");const s=tt(null===a||void 0===a?"*":a,"range"),i=[];let o=-1;for(;++oe<=r;if(0===t)return e=>e===r;if(1===t)return r<0?lt.trueFunc:e=>e>=r;const a=Math.abs(t),n=(r%a+a)%a;return t>1?e=>e>=r&&e%a===n:e=>e<=r&&e%a===n}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,r=0,a=s(),n=i();if(t=dt&&e.charCodeAt(t)<=ct;)a=10*a+(e.charCodeAt(t)-dt),t++;return t===r?null:a}function o(){for(;t1?s-1:0),o=1;o0},is:vt,lang:function(e,t,r,a,n){return e.argument,e.argument.type,""!==n.language&&void 0!==n.language&&et(n.language,(0,Ve.q)(e.argument.value)).length>0},"last-child":function(e,t,r,a,n){return mt(n,e),Boolean(n.elementCount&&n.elementIndex===n.elementCount-1)},"last-of-type":function(e,t,r,a,n){return mt(n,e),"number"===typeof n.typeIndex&&"number"===typeof n.typeCount&&n.typeIndex===n.typeCount-1},not:function(e,t,r,a,n){return!vt(e,t,r,a,n)},"nth-child":function(e,t,r,a,n){const s=bt(e);return mt(n,e),"number"===typeof n.elementIndex&&s(n.elementIndex)},"nth-last-child":function(e,t,r,a,n){const s=bt(e);return mt(n,e),Boolean("number"===typeof n.elementCount&&"number"===typeof n.elementIndex&&s(n.elementCount-n.elementIndex-1))},"nth-last-of-type":function(e,t,r,a,n){const s=bt(e);return mt(n,e),"number"===typeof n.typeCount&&"number"===typeof n.typeIndex&&s(n.typeCount-1-n.typeIndex)},"nth-of-type":function(e,t,r,a,n){const s=bt(e);return mt(n,e),"number"===typeof n.typeIndex&&s(n.typeIndex)},"only-child":function(e,t,r,a,n){return mt(n,e),1===n.elementCount},"only-of-type":function(e,t,r,a,n){return mt(n,e),1===n.typeCount},optional:function(e,t){return!Rt(e,t)},"read-only":function(e,t,r,a,n){return!xt(e,t,r,a,n)},"read-write":xt,required:Rt,root:function(e,t,r,a,n){return Boolean((!a||"root"===a.type)&&n.schema&&("html"===n.schema.space||"svg"===n.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,r,a,n){return n.scopeElements.includes(t)}},invalid:function(){},unknown:function(e){throw new Error("Unknown pseudo-selector `"+e.name+"`")}});function mt(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function yt(e,t){return("button"===t.tagName||"input"===t.tagName||"select"===t.tagName||"textarea"===t.tagName||"optgroup"===t.tagName||"option"===t.tagName||"menuitem"===t.tagName||"fieldset"===t.tagName)&&at(t,"disabled")}function bt(e){let t=e._cachedFn;if(!t){const r=e.argument;if("Formula"!==r.type)throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=gt(r.a+"n+"+r.b),e._cachedFn=t}return t}function vt(e,t,r,a,n){e.argument,e.argument.type;const s={...n,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return St(s,t),s.results[0]===t}function xt(e,t,r,a,n){return"input"===t.tagName||"textarea"===t.tagName?!at(t,"readOnly")&&!at(t,"disabled"):Boolean(n.editableOrEditingHost)}function Rt(e,t){return("input"===t.tagName||"textarea"===t.tagName||"select"===t.tagName)&&at(t,"required")}function Et(e,t){const r=e.children;let a=-1;for(;++a0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wt}function _t(e,t){if("element"===t.type){const r=t.tagName.toUpperCase(),a=(e.types.get(r)||0)+1;e.count++,e.types.set(r,a)}}function Ct(e,t,r,a,n,s){let i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=function(e,t){const r=e.schema,a=e.language,n=e.direction,s=e.editableOrEditingHost;let i;if("element"===t.type){const a=t.properties.xmlLang||t.properties.lang,n=t.properties.type||"text",s=We(t);null!==a&&void 0!==a&&(e.language=String(a)),r&&"html"===r.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0),"svg"===t.tagName&&(e.schema=re.JW),"rtl"===s?i=s:"ltr"===s||"auto"!==s&&"html"===t.tagName||"auto"!==s&&"input"===t.tagName&&"tel"===n?i="ltr":"auto"!==s&&"bdi"!==t.tagName||("textarea"===t.tagName?i=qe(G(t)):"input"!==t.tagName||"email"!==n&&"search"!==n&&"tel"!==n&&"text"!==n?H(t,(function(e){return"text"===e.type?(i=qe(e.value),i?B:void 0):e===t||"element"!==e.type||"bdi"!==e.tagName&&"script"!==e.tagName&&"style"!==e.tagName&&"textare"!==e.tagName&&!We(e)?void 0:M})):i=t.properties.value?qe(String(t.properties.value)):"ltr"),i&&(e.direction=i)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return function(){e.schema=r,e.language=a,e.direction=n,e.editableOrEditingHost=s}}(e,r);if("element"===r.type){let o=e.rootQuery.rules;n&&n!==s&&(o=e.rootQuery.rules.filter((e=>void 0===e.combinator||">"===e.combinator&&n===s))),i=function(e,t,r,a,n){const s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let i=-1;for(;++i"===t.combinator?"directChild":"descendant",t):(e.found=!0,e.results.includes(r)||e.results.push(r))}void 0===o.combinator?At(s,"descendant",o):"~"===o.combinator&&At(s,"generalSibling",o)}return s}(e,jt(t,o),r,a,n)}return!("children"in r)||e.shallow||e.one&&e.found||function(e,t,r,a){const n=jt(t.descendant,t.directChild);let s,i=-1;const o={count:0,types:new Map},d={count:0,types:new Map};for(;++i1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=Pt(t.children))})),e},It=e=>{const{selector:t,rewrite:r}=e||{};return e=>{if(r&&"function"===typeof r)if(t&&"string"===typeof t){const a=function(e,t,r){const a=kt(e,t,r);return St(a,t||void 0),a.results}(t,e);a&&a.length>0&&H(e,a,((e,t,a)=>{r(e,t,a)}))}else H(e,((e,t,a)=>{r(e,t,a)}))}},Dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>1?arguments[1]:void 0;for(;a/,"$2")||""))return;if(r){if(Dt(e,a,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},Nt=e=>{let{value:t=""}=e;const r=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(r).forEach((e=>{"true"===r[e]&&(r[e]=!0),"false"===r[e]&&(r[e]=!1),"string"!==typeof r[e]||/^0/.test(r[e])||isNaN(+r[e])||(r[e]=+r[e])})),r},Ot=(e,t,r)=>"string"===r?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===r?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:r=!0}=e;return e=>{H(e,"element",((e,a,n)=>{if(r&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&n&&Array.isArray(n.children)&&n.children.length>1){const r=e.children[0];if(r&&"code"===r.tagName&&"number"===typeof a){const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(n.children,a);if(s){const a=Nt(s);Object.keys(a).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},r.properties=Ot(r.properties,a,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&n&&Array.isArray(n.children)&&"number"===typeof a){const s=Dt(n.children,a,"",r);if(s){const r=Nt(s);Object.keys(r).length>0&&(e.properties=Ot(e.properties,r,t))}}}))}},Lt="object"===typeof self?self:globalThis,Bt=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),a=n=>{if(e.has(n))return e.get(n);const[s,i]=t[n];switch(s){case 0:case-1:return r(i,n);case 1:{const e=r([],n);for(const t of i)e.push(a(t));return e}case 2:{const e=r({},n);for(const[t,r]of i)e[a(t)]=a(r);return e}case 3:return r(new Date(i),n);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),n)}case 5:{const e=r(new Map,n);for(const[t,r]of i)e.set(a(t),a(r));return e}case 6:{const e=r(new Set,n);for(const t of i)e.add(a(t));return e}case 7:{const{name:e,message:t}=i;return r(new Lt[e](t),n)}case 8:return r(BigInt(i),n);case"BigInt":return r(Object(BigInt(i)),n)}return r(new Lt[s](i),n)};return a})(new Map,e)(0),Mt="",{toString:Ut}={},{keys:Ht}=Object,Gt=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ut.call(e).slice(8,-1);switch(r){case"Array":return[1,Mt];case"Object":return[2,Mt];case"Date":return[3,Mt];case"RegExp":return[4,Mt];case"Map":return[5,Mt];case"Set":return[6,Mt]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},qt=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},Wt=function(e){let{json:t,lossy:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,r,a)=>{const n=(e,t)=>{const n=a.push(e)-1;return r.set(t,n),n},s=a=>{if(r.has(a))return r.get(a);let[i,o]=Gt(a);switch(i){case 0:{let t=a;switch(o){case"bigint":i=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return n([-1],a)}return n([i,t],a)}case 1:{if(o)return n([o,[...a]],a);const e=[],t=n([i,e],a);for(const r of a)e.push(s(r));return t}case 2:{if(o)switch(o){case"BigInt":return n([o,a.toString()],a);case"Boolean":case"Number":case"String":return n([o,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const r=[],d=n([i,r],a);for(const t of Ht(a))!e&&qt(Gt(a[t]))||r.push([s(t),s(a[t])]);return d}case 3:return n([i,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return n([i,{source:e,flags:t}],a)}case 5:{const t=[],r=n([i,t],a);for(const[n,i]of a)(e||!qt(Gt(n))&&!qt(Gt(i)))&&t.push([s(n),s(i)]);return r}case 6:{const t=[],r=n([i,t],a);for(const n of a)!e&&qt(Gt(n))||t.push(s(n));return r}}const{message:d}=a;return n([i,{name:o,message:d}],a)};return s})(!(t||r),!!t,new Map,a)(e),a},Vt="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Bt(Wt(e,t)):structuredClone(e):(e,t)=>Bt(Wt(e,t)),zt=/[#.]/g;var Kt=r(1141);const Yt=new Set(["button","menu","reset","submit"]),Xt={}.hasOwnProperty;function Jt(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?o-2:0),c=2;c-1&&ee)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,a=e&&e.column;if("number"===typeof t&&"number"===typeof a&&!Number.isNaN(t)&&!Number.isNaN(a)&&t-1 in r){const e=(r[t-2]||0)+a-1||0;if(e>-1&&e=55296&&e<=57343}function Cr(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function kr(e){return e>=64976&&e<=65007||vr.has(e)}var Pr;!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"}(Pr=Pr||(Pr={}));class Ir{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:r,offset:a}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Rr.EOF;return this._err(Pr.surrogateInInputStream),e}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(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Rr.EOF;const r=this.html.charCodeAt(t);return r===Rr.CARRIAGE_RETURN?Rr.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,Rr.EOF;let e=this.html.charCodeAt(this.pos);if(e===Rr.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,Rr.LINE_FEED;if(e===Rr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,_r(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===Rr.LINE_FEED||e===Rr.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Cr(e)?this._err(Pr.controlCharacterInInputStream):kr(e)&&this._err(Pr.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!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"}(Dr=Dr||(Dr={}));const Or=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0)))),Fr=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var Lr;const Br=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]]),Mr=null!==(Lr=String.fromCodePoint)&&void 0!==Lr?Lr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function Ur(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Br.get(e))&&void 0!==t?t:e}var Hr;!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"}(Hr||(Hr={}));var Gr,qr,Wr;function Vr(e){return e>=Hr.ZERO&&e<=Hr.NINE}function zr(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_F||e>=Hr.LOWER_A&&e<=Hr.LOWER_F}function Kr(e){return e===Hr.EQUALS||function(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_Z||e>=Hr.LOWER_A&&e<=Hr.LOWER_Z||Vr(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Gr||(Gr={})),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"}(qr||(qr={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Wr||(Wr={}));class Yr{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=qr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wr.Strict}startEntity(e){this.decodeMode=e,this.state=qr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case qr.EntityStart:return e.charCodeAt(t)===Hr.NUM?(this.state=qr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=qr.NamedEntity,this.stateNamedEntity(e,t));case qr.NumericStart:return this.stateNumericStart(e,t);case qr.NumericDecimal:return this.stateNumericDecimal(e,t);case qr.NumericHex:return this.stateNumericHex(e,t);case qr.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Hr.LOWER_X?(this.state=qr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=qr.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,a){if(t!==r){const n=r-t;this.result=this.result*Math.pow(a,n)+parseInt(e.substr(t,n),a),this.consumed+=n}}stateNumericHex(e,t){const r=t;for(;t>14;for(;t>14,0!==n){if(s===Hr.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==Wr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,a=(r[t]&Gr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,a,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:a}=this;return this.emitCodePoint(1===t?a[e]&~Gr.VALUE_LENGTH:a[e+1],r),3===t&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case qr.NamedEntity:return 0===this.result||this.decodeMode===Wr.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case qr.NumericDecimal:return this.emitNumericEntity(0,2);case qr.NumericHex:return this.emitNumericEntity(0,3);case qr.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qr.EntityStart:return 0}}}function Xr(e){let t="";const r=new Yr(e,(e=>t+=Mr(e)));return function(e,a){let n=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(n,s),r.startEntity(a);const i=r.write(e,s+1);if(i<0){n=s+r.end();break}n=s+i,s=0===i?n+1:n}const i=t+e.slice(n);return t="",i}}function Jr(e,t,r,a){const n=(t&Gr.BRANCH_LENGTH)>>7,s=t&Gr.JUMP_TABLE;if(0===n)return 0!==s&&a===s?r:-1;if(s){const t=a-s;return t<0||t>=n?-1:e[r+t]-1}let i=r,o=i+n-1;for(;i<=o;){const t=i+o>>>1,r=e[t];if(ra))return e[t+n];o=t-1}}return-1}Xr(Or),Xr(Fr);var Qr,$r,Zr,ea,ta;!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/"}(Qr=Qr||(Qr={})),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"}($r=$r||($r={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Zr=Zr||(Zr={})),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.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"}(ea=ea||(ea={})),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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(ta=ta||(ta={}));const ra=new Map([[ea.A,ta.A],[ea.ADDRESS,ta.ADDRESS],[ea.ANNOTATION_XML,ta.ANNOTATION_XML],[ea.APPLET,ta.APPLET],[ea.AREA,ta.AREA],[ea.ARTICLE,ta.ARTICLE],[ea.ASIDE,ta.ASIDE],[ea.B,ta.B],[ea.BASE,ta.BASE],[ea.BASEFONT,ta.BASEFONT],[ea.BGSOUND,ta.BGSOUND],[ea.BIG,ta.BIG],[ea.BLOCKQUOTE,ta.BLOCKQUOTE],[ea.BODY,ta.BODY],[ea.BR,ta.BR],[ea.BUTTON,ta.BUTTON],[ea.CAPTION,ta.CAPTION],[ea.CENTER,ta.CENTER],[ea.CODE,ta.CODE],[ea.COL,ta.COL],[ea.COLGROUP,ta.COLGROUP],[ea.DD,ta.DD],[ea.DESC,ta.DESC],[ea.DETAILS,ta.DETAILS],[ea.DIALOG,ta.DIALOG],[ea.DIR,ta.DIR],[ea.DIV,ta.DIV],[ea.DL,ta.DL],[ea.DT,ta.DT],[ea.EM,ta.EM],[ea.EMBED,ta.EMBED],[ea.FIELDSET,ta.FIELDSET],[ea.FIGCAPTION,ta.FIGCAPTION],[ea.FIGURE,ta.FIGURE],[ea.FONT,ta.FONT],[ea.FOOTER,ta.FOOTER],[ea.FOREIGN_OBJECT,ta.FOREIGN_OBJECT],[ea.FORM,ta.FORM],[ea.FRAME,ta.FRAME],[ea.FRAMESET,ta.FRAMESET],[ea.H1,ta.H1],[ea.H2,ta.H2],[ea.H3,ta.H3],[ea.H4,ta.H4],[ea.H5,ta.H5],[ea.H6,ta.H6],[ea.HEAD,ta.HEAD],[ea.HEADER,ta.HEADER],[ea.HGROUP,ta.HGROUP],[ea.HR,ta.HR],[ea.HTML,ta.HTML],[ea.I,ta.I],[ea.IMG,ta.IMG],[ea.IMAGE,ta.IMAGE],[ea.INPUT,ta.INPUT],[ea.IFRAME,ta.IFRAME],[ea.KEYGEN,ta.KEYGEN],[ea.LABEL,ta.LABEL],[ea.LI,ta.LI],[ea.LINK,ta.LINK],[ea.LISTING,ta.LISTING],[ea.MAIN,ta.MAIN],[ea.MALIGNMARK,ta.MALIGNMARK],[ea.MARQUEE,ta.MARQUEE],[ea.MATH,ta.MATH],[ea.MENU,ta.MENU],[ea.META,ta.META],[ea.MGLYPH,ta.MGLYPH],[ea.MI,ta.MI],[ea.MO,ta.MO],[ea.MN,ta.MN],[ea.MS,ta.MS],[ea.MTEXT,ta.MTEXT],[ea.NAV,ta.NAV],[ea.NOBR,ta.NOBR],[ea.NOFRAMES,ta.NOFRAMES],[ea.NOEMBED,ta.NOEMBED],[ea.NOSCRIPT,ta.NOSCRIPT],[ea.OBJECT,ta.OBJECT],[ea.OL,ta.OL],[ea.OPTGROUP,ta.OPTGROUP],[ea.OPTION,ta.OPTION],[ea.P,ta.P],[ea.PARAM,ta.PARAM],[ea.PLAINTEXT,ta.PLAINTEXT],[ea.PRE,ta.PRE],[ea.RB,ta.RB],[ea.RP,ta.RP],[ea.RT,ta.RT],[ea.RTC,ta.RTC],[ea.RUBY,ta.RUBY],[ea.S,ta.S],[ea.SCRIPT,ta.SCRIPT],[ea.SECTION,ta.SECTION],[ea.SELECT,ta.SELECT],[ea.SOURCE,ta.SOURCE],[ea.SMALL,ta.SMALL],[ea.SPAN,ta.SPAN],[ea.STRIKE,ta.STRIKE],[ea.STRONG,ta.STRONG],[ea.STYLE,ta.STYLE],[ea.SUB,ta.SUB],[ea.SUMMARY,ta.SUMMARY],[ea.SUP,ta.SUP],[ea.TABLE,ta.TABLE],[ea.TBODY,ta.TBODY],[ea.TEMPLATE,ta.TEMPLATE],[ea.TEXTAREA,ta.TEXTAREA],[ea.TFOOT,ta.TFOOT],[ea.TD,ta.TD],[ea.TH,ta.TH],[ea.THEAD,ta.THEAD],[ea.TITLE,ta.TITLE],[ea.TR,ta.TR],[ea.TRACK,ta.TRACK],[ea.TT,ta.TT],[ea.U,ta.U],[ea.UL,ta.UL],[ea.SVG,ta.SVG],[ea.VAR,ta.VAR],[ea.WBR,ta.WBR],[ea.XMP,ta.XMP]]);function aa(e){var t;return null!==(t=ra.get(e))&&void 0!==t?t:ta.UNKNOWN}const na=ta,sa={[Qr.HTML]:new Set([na.ADDRESS,na.APPLET,na.AREA,na.ARTICLE,na.ASIDE,na.BASE,na.BASEFONT,na.BGSOUND,na.BLOCKQUOTE,na.BODY,na.BR,na.BUTTON,na.CAPTION,na.CENTER,na.COL,na.COLGROUP,na.DD,na.DETAILS,na.DIR,na.DIV,na.DL,na.DT,na.EMBED,na.FIELDSET,na.FIGCAPTION,na.FIGURE,na.FOOTER,na.FORM,na.FRAME,na.FRAMESET,na.H1,na.H2,na.H3,na.H4,na.H5,na.H6,na.HEAD,na.HEADER,na.HGROUP,na.HR,na.HTML,na.IFRAME,na.IMG,na.INPUT,na.LI,na.LINK,na.LISTING,na.MAIN,na.MARQUEE,na.MENU,na.META,na.NAV,na.NOEMBED,na.NOFRAMES,na.NOSCRIPT,na.OBJECT,na.OL,na.P,na.PARAM,na.PLAINTEXT,na.PRE,na.SCRIPT,na.SECTION,na.SELECT,na.SOURCE,na.STYLE,na.SUMMARY,na.TABLE,na.TBODY,na.TD,na.TEMPLATE,na.TEXTAREA,na.TFOOT,na.TH,na.THEAD,na.TITLE,na.TR,na.TRACK,na.UL,na.WBR,na.XMP]),[Qr.MATHML]:new Set([na.MI,na.MO,na.MN,na.MS,na.MTEXT,na.ANNOTATION_XML]),[Qr.SVG]:new Set([na.TITLE,na.FOREIGN_OBJECT,na.DESC]),[Qr.XLINK]:new Set,[Qr.XML]:new Set,[Qr.XMLNS]:new Set};function ia(e){return e===na.H1||e===na.H2||e===na.H3||e===na.H4||e===na.H5||e===na.H6}new Set([ea.STYLE,ea.SCRIPT,ea.XMP,ea.IFRAME,ea.NOEMBED,ea.NOFRAMES,ea.PLAINTEXT]);const oa=new Map([[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]]);var da;!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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(da||(da={}));const ca={DATA:da.DATA,RCDATA:da.RCDATA,RAWTEXT:da.RAWTEXT,SCRIPT_DATA:da.SCRIPT_DATA,PLAINTEXT:da.PLAINTEXT,CDATA_SECTION:da.CDATA_SECTION};function la(e){return e>=Rr.DIGIT_0&&e<=Rr.DIGIT_9}function ua(e){return e>=Rr.LATIN_CAPITAL_A&&e<=Rr.LATIN_CAPITAL_Z}function pa(e){return function(e){return e>=Rr.LATIN_SMALL_A&&e<=Rr.LATIN_SMALL_Z}(e)||ua(e)}function fa(e){return pa(e)||la(e)}function ga(e){return e>=Rr.LATIN_CAPITAL_A&&e<=Rr.LATIN_CAPITAL_F}function ha(e){return e>=Rr.LATIN_SMALL_A&&e<=Rr.LATIN_SMALL_F}function ma(e){return e+32}function ya(e){return e===Rr.SPACE||e===Rr.LINE_FEED||e===Rr.TABULATION||e===Rr.FORM_FEED}function ba(e){return ya(e)||e===Rr.SOLIDUS||e===Rr.GREATER_THAN_SIGN}class va{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=da.DATA,this.returnState=da.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ir(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===r||void 0===r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(Pr.endTagWithAttributes),e.selfClosing&&this._err(Pr.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Dr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Dr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Dr.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Dr.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ya(e)?Dr.WHITESPACE_CHARACTER:e===Rr.NULL?Dr.NULL_CHARACTER:Dr.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Dr.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,a=!1;for(let s=0,i=Or[0];s>=0&&(s=Jr(Or,i,s+1,e),!(s<0));e=this._consume()){r+=1,i=Or[s];const o=i&Gr.VALUE_LENGTH;if(o){const i=(o>>14)-1;if(e!==Rr.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((n=this.preprocessor.peek(1))===Rr.EQUALS_SIGN||fa(n))?(t=[Rr.AMPERSAND],s+=i):(t=0===i?[Or[s]&~Gr.VALUE_LENGTH]:1===i?[Or[++s]]:[Or[++s],Or[++s]],r=0,a=e!==Rr.SEMICOLON),0===i){this._consume();break}}}var n;return this._unconsume(r),a&&!this.preprocessor.endOfChunkHit&&this._err(Pr.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===da.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===da.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===da.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case da.DATA:this._stateData(e);break;case da.RCDATA:this._stateRcdata(e);break;case da.RAWTEXT:this._stateRawtext(e);break;case da.SCRIPT_DATA:this._stateScriptData(e);break;case da.PLAINTEXT:this._statePlaintext(e);break;case da.TAG_OPEN:this._stateTagOpen(e);break;case da.END_TAG_OPEN:this._stateEndTagOpen(e);break;case da.TAG_NAME:this._stateTagName(e);break;case da.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case da.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case da.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case da.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case da.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case da.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case da.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case da.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case da.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case da.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case da.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case da.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case da.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case da.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case da.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case da.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case da.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case da.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case da.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case da.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case da.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case da.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case da.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case da.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case da.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case da.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case da.BOGUS_COMMENT:this._stateBogusComment(e);break;case da.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case da.COMMENT_START:this._stateCommentStart(e);break;case da.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case da.COMMENT:this._stateComment(e);break;case da.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case da.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case da.COMMENT_END:this._stateCommentEnd(e);break;case da.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case da.DOCTYPE:this._stateDoctype(e);break;case da.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case da.DOCTYPE_NAME:this._stateDoctypeName(e);break;case da.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case da.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case da.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case da.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case da.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case da.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case da.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case da.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case da.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case da.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case da.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case da.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case da.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case da.CDATA_SECTION:this._stateCdataSection(e);break;case da.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case da.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case da.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case da.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case da.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case da.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case da.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case da.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case da.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case da.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.TAG_OPEN;break;case Rr.AMPERSAND:this.returnState=da.DATA,this.state=da.CHARACTER_REFERENCE;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitCodePoint(e);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Rr.AMPERSAND:this.returnState=da.RCDATA,this.state=da.CHARACTER_REFERENCE;break;case Rr.LESS_THAN_SIGN:this.state=da.RCDATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.RAWTEXT_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.SCRIPT_DATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(pa(e))this._createStartTagToken(),this.state=da.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.EXCLAMATION_MARK:this.state=da.MARKUP_DECLARATION_OPEN;break;case Rr.SOLIDUS:this.state=da.END_TAG_OPEN;break;case Rr.QUESTION_MARK:this._err(Pr.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=da.BOGUS_COMMENT,this._stateBogusComment(e);break;case Rr.EOF:this._err(Pr.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Pr.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=da.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(pa(e))this._createEndTagToken(),this.state=da.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.GREATER_THAN_SIGN:this._err(Pr.missingEndTagName),this.state=da.DATA;break;case Rr.EOF:this._err(Pr.eofBeforeTagName),this._emitChars("");break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this.state=da.SCRIPT_DATA_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(Pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=da.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Rr.SOLIDUS?this.state=da.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:pa(e)?(this._emitChars("<"),this.state=da.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=da.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){pa(e)?(this.state=da.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(Pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Rr.SOLIDUS?(this.state=da.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Sr,!1)&&ba(this.preprocessor.peek(Sr.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(Pr.characterReferenceOutsideUnicodeRange),this.charRefCode=Rr.REPLACEMENT_CHARACTER;else if(_r(this.charRefCode))this._err(Pr.surrogateCharacterReference),this.charRefCode=Rr.REPLACEMENT_CHARACTER;else if(kr(this.charRefCode))this._err(Pr.noncharacterCharacterReference);else if(Cr(this.charRefCode)||this.charRefCode===Rr.CARRIAGE_RETURN){this._err(Pr.controlCharacterReference);const e=oa.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const xa=new Set([ta.DD,ta.DT,ta.LI,ta.OPTGROUP,ta.OPTION,ta.P,ta.RB,ta.RP,ta.RT,ta.RTC]),Ra=new Set([...xa,ta.CAPTION,ta.COLGROUP,ta.TBODY,ta.TD,ta.TFOOT,ta.TH,ta.THEAD,ta.TR]),Ea=new Map([[ta.APPLET,Qr.HTML],[ta.CAPTION,Qr.HTML],[ta.HTML,Qr.HTML],[ta.MARQUEE,Qr.HTML],[ta.OBJECT,Qr.HTML],[ta.TABLE,Qr.HTML],[ta.TD,Qr.HTML],[ta.TEMPLATE,Qr.HTML],[ta.TH,Qr.HTML],[ta.ANNOTATION_XML,Qr.MATHML],[ta.MI,Qr.MATHML],[ta.MN,Qr.MATHML],[ta.MO,Qr.MATHML],[ta.MS,Qr.MATHML],[ta.MTEXT,Qr.MATHML],[ta.DESC,Qr.SVG],[ta.FOREIGN_OBJECT,Qr.SVG],[ta.TITLE,Qr.SVG]]),Ta=[ta.H1,ta.H2,ta.H3,ta.H4,ta.H5,ta.H6],wa=[ta.TR,ta.TEMPLATE,ta.HTML],Sa=[ta.TBODY,ta.TFOOT,ta.THEAD,ta.TEMPLATE,ta.HTML],Aa=[ta.TABLE,ta.TEMPLATE,ta.HTML],ja=[ta.TD,ta.TH];class _a{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ta.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===ta.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Qr.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const a=this._indexOf(e)+1;this.items.splice(a,0,t),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Qr.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Aa,Qr.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Sa,Qr.HTML)}clearBackToTableRowContext(){this.clearBackTo(wa,Qr.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ta.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===ta.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if(Ea.get(r)===a)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(ia(t)&&r===Qr.HTML)return!0;if(Ea.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if((r===ta.UL||r===ta.OL)&&a===Qr.HTML||Ea.get(r)===a)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if(r===ta.BUTTON&&a===Qr.HTML||Ea.get(r)===a)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML){if(r===e)return!0;if(r===ta.TABLE||r===ta.TEMPLATE||r===ta.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===Qr.HTML){if(t===ta.TBODY||t===ta.THEAD||t===ta.TFOOT)return!0;if(t===ta.TABLE||t===ta.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML){if(r===e)return!0;if(r!==ta.OPTION&&r!==ta.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;xa.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ra.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Ra.has(this.currentTagId);)this.pop()}}var Ca;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Ca=Ca||(Ca={}));const ka={type:Ca.Marker};class Pa{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],a=t.length,n=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let i=0;i[e.name,e.value])));let n=0;for(let s=0;sa.get(e.name)===e.value))&&(n+=1,n>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(ka)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ca.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ca.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(ka);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Ca.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Ca.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Ca.Element&&t.element===e))}}function Ia(e){return{nodeName:"#text",value:e,parentNode:null}}const Da={createDocument:()=>({nodeName:"#document",mode:Zr.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const a=e.childNodes.indexOf(r);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,a){const n=e.childNodes.find((e=>"#documentType"===e.nodeName));if(n)n.name=t,n.publicId=r,n.systemId=a;else{const n={nodeName:"#documentType",name:t,publicId:r,systemId:a,parentNode:null};Da.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>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 r=e.childNodes[e.childNodes.length-1];if(Da.isTextNode(r))return void(r.value+=t)}Da.appendChild(e,Ia(t))},insertTextBefore(e,t,r){const a=e.childNodes[e.childNodes.indexOf(r)-1];a&&Da.isTextNode(a)?a.value+=t:Da.insertBefore(e,Ia(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map((e=>e.name)));for(let a=0;ae.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Na="html",Oa="about:legacy-compat",Fa="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",La=["+//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//"],Ba=[...La,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ma=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ua=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ha=[...Ua,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ga(e,t){return t.some((t=>e.startsWith(t)))}const qa={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wa="definitionurl",Va="definitionURL",za=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]))),Ka=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Qr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Qr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Qr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Qr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Qr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Qr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Qr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Qr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Qr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Qr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Qr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Qr.XMLNS}]]),Ya=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]))),Xa=new Set([ta.B,ta.BIG,ta.BLOCKQUOTE,ta.BODY,ta.BR,ta.CENTER,ta.CODE,ta.DD,ta.DIV,ta.DL,ta.DT,ta.EM,ta.EMBED,ta.H1,ta.H2,ta.H3,ta.H4,ta.H5,ta.H6,ta.HEAD,ta.HR,ta.I,ta.IMG,ta.LI,ta.LISTING,ta.MENU,ta.META,ta.NOBR,ta.OL,ta.P,ta.PRE,ta.RUBY,ta.S,ta.SMALL,ta.SPAN,ta.STRONG,ta.STRIKE,ta.SUB,ta.SUP,ta.TABLE,ta.TT,ta.U,ta.UL,ta.VAR]);function Ja(e){for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=an.INITIAL,this.originalInsertionMode=an.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={...on,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new va(this.options,this),this.activeFormattingElements=new Pa(this.treeAdapter),this.fragmentContextID=r?aa(this.treeAdapter.getTagName(r)):ta.UNKNOWN,this._setContextModes(null!==r&&void 0!==r?r:this.document,this.fragmentContextID),this.openElements=new _a(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...on,...t};null!==e&&void 0!==e||(e=r.treeAdapter.createElement(ea.TEMPLATE,Qr.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Qr.HTML,[]),n=new this(r,a,e);return n.fragmentContextID===ta.TEMPLATE&&n.tmplInsertionModeStack.unshift(an.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var a;if(!this.onParseError)return;const n=null!==(a=e.location)&&void 0!==a?a:nn,s={code:t,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:r?n.startLine:n.endLine,endCol:r?n.startCol:n.endCol,endOffset:r?n.startOffset:n.endOffset};this.onParseError(s)}onItemPush(e,t,r){var a,n;null===(n=(a=this.treeAdapter).onItemPush)||void 0===n||n.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(a=(r=this.treeAdapter).onItemPop)||void 0===a||a.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===Qr.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Qr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=an.TEXT}switchToPlaintextParsing(){this.insertionMode=an.TEXT,this.originalInsertionMode=an.IN_BODY,this.tokenizer.state=ca.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===ea.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Qr.HTML)switch(this.fragmentContextID){case ta.TITLE:case ta.TEXTAREA:this.tokenizer.state=ca.RCDATA;break;case ta.STYLE:case ta.XMP:case ta.IFRAME:case ta.NOEMBED:case ta.NOFRAMES:case ta.NOSCRIPT:this.tokenizer.state=ca.RAWTEXT;break;case ta.SCRIPT:this.tokenizer.state=ca.SCRIPT_DATA;break;case ta.PLAINTEXT:this.tokenizer.state=ca.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,a),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,Qr.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Qr.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(ea.HTML,Qr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ta.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:r}=this._findFosterParentingLocation()),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(t),n=r?a.lastIndexOf(r):a.length,s=a[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:r,endOffset:a}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:a})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,a=this.treeAdapter.getTagName(e),n=t.type===Dr.END_TAG&&a===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,n)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):({current:t,currentTagId:r}=this.openElements),(e.tagID!==ta.SVG||this.treeAdapter.getTagName(t)!==ea.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Qr.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ta.MGLYPH||e.tagID===ta.MALIGNMARK)&&!this._isIntegrationPoint(r,t,Qr.HTML))}_processToken(e){switch(e.type){case Dr.CHARACTER:this.onCharacter(e);break;case Dr.NULL_CHARACTER:this.onNullCharacter(e);break;case Dr.COMMENT:this.onComment(e);break;case Dr.DOCTYPE:this.onDoctype(e);break;case Dr.START_TAG:this._processStartTag(e);break;case Dr.END_TAG:this.onEndTag(e);break;case Dr.EOF:this.onEof(e);break;case Dr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return Za(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Ca.Marker||this.openElements.contains(e.element)));for(let r=t<0?e-1:t-1;r>=0;r--){const e=this.activeFormattingElements.entries[r];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=an.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ta.P),this.openElements.popUntilTagNamePopped(ta.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ta.TR:return void(this.insertionMode=an.IN_ROW);case ta.TBODY:case ta.THEAD:case ta.TFOOT:return void(this.insertionMode=an.IN_TABLE_BODY);case ta.CAPTION:return void(this.insertionMode=an.IN_CAPTION);case ta.COLGROUP:return void(this.insertionMode=an.IN_COLUMN_GROUP);case ta.TABLE:return void(this.insertionMode=an.IN_TABLE);case ta.BODY:return void(this.insertionMode=an.IN_BODY);case ta.FRAMESET:return void(this.insertionMode=an.IN_FRAMESET);case ta.SELECT:return void this._resetInsertionModeForSelect(e);case ta.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case ta.HTML:return void(this.insertionMode=this.headElement?an.AFTER_HEAD:an.BEFORE_HEAD);case ta.TD:case ta.TH:if(e>0)return void(this.insertionMode=an.IN_CELL);break;case ta.HEAD:if(e>0)return void(this.insertionMode=an.IN_HEAD)}this.insertionMode=an.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===ta.TEMPLATE)break;if(e===ta.TABLE)return void(this.insertionMode=an.IN_SELECT_IN_TABLE)}this.insertionMode=an.IN_SELECT}_isElementCausesFosterParenting(e){return sn.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ta.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Qr.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ta.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return sa[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.IN_BODY:case an.IN_CAPTION:case an.IN_CELL:case an.IN_TEMPLATE:_n(this,e);break;case an.TEXT:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Ln(this,e);break;case an.IN_TABLE_TEXT:Gn(this,e);break;case an.IN_COLUMN_GROUP:zn(this,e);break;case an.AFTER_BODY:ts(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=xr,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.TEXT:this._insertCharacters(e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Ln(this,e);break;case an.IN_COLUMN_GROUP:zn(this,e);break;case an.AFTER_BODY:ts(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)mn(this,e);else switch(this.insertionMode){case an.INITIAL:case an.BEFORE_HTML:case an.BEFORE_HEAD:case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:case an.IN_BODY:case an.IN_TABLE:case an.IN_CAPTION:case an.IN_COLUMN_GROUP:case an.IN_TABLE_BODY:case an.IN_ROW:case an.IN_CELL:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:case an.IN_TEMPLATE:case an.IN_FRAMESET:case an.AFTER_FRAMESET:mn(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case an.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Zr.QUIRKS:function(e){if(e.name!==Na)return Zr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Fa)return Zr.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Ma.has(r))return Zr.QUIRKS;let e=null===t?Ba:La;if(Ga(r,e))return Zr.QUIRKS;if(e=null===t?Ua:Ha,Ga(r,e))return Zr.LIMITED_QUIRKS}return Zr.NO_QUIRKS}(t);(function(e){return e.name===Na&&null===e.publicId&&(null===e.systemId||e.systemId===Oa)})(t)||e._err(t,Pr.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=an.BEFORE_HTML}(this,e);break;case an.BEFORE_HEAD:case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:this._err(e,Pr.misplacedDoctype);break;case an.IN_TABLE_TEXT:qn(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Pr.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===ta.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===$r.COLOR||t===$r.SIZE||t===$r.FACE}))||Xa.has(t)}(t))as(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===Qr.MATHML?Ja(t):a===Qr.SVG&&(!function(e){const t=Ya.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=aa(e.tagName))}(t),Qa(t)),$a(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:!function(e,t){t.tagID===ta.HTML?(e._insertElement(t,Qr.HTML),e.insertionMode=an.BEFORE_HEAD):vn(e,t)}(this,e);break;case an.BEFORE_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.HEAD:e._insertElement(t,Qr.HTML),e.headElement=e.openElements.current,e.insertionMode=an.IN_HEAD;break;default:xn(e,t)}}(this,e);break;case an.IN_HEAD:Rn(this,e);break;case an.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BASEFONT:case ta.BGSOUND:case ta.HEAD:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.STYLE:Rn(e,t);break;case ta.NOSCRIPT:e._err(t,Pr.nestedNoscriptInHead);break;default:wn(e,t)}}(this,e);break;case an.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BODY:e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=an.IN_BODY;break;case ta.FRAMESET:e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_FRAMESET;break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:e._err(t,Pr.abandonedHeadElementChild),e.openElements.push(e.headElement,ta.HEAD),Rn(e,t),e.openElements.remove(e.headElement);break;case ta.HEAD:e._err(t,Pr.misplacedStartTagForHeadElement);break;default:Sn(e,t)}}(this,e);break;case an.IN_BODY:Dn(this,e);break;case an.IN_TABLE:Bn(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_CAPTION:!function(e,t){const r=t.tagID;Wn.has(r)?e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_TABLE,Bn(e,t)):Dn(e,t)}(this,e);break;case an.IN_COLUMN_GROUP:Vn(this,e);break;case an.IN_TABLE_BODY:Kn(this,e);break;case an.IN_ROW:Xn(this,e);break;case an.IN_CELL:!function(e,t){const r=t.tagID;Wn.has(r)?(e.openElements.hasInTableScope(ta.TD)||e.openElements.hasInTableScope(ta.TH))&&(e._closeTableCell(),Xn(e,t)):Dn(e,t)}(this,e);break;case an.IN_SELECT:Qn(this,e);break;case an.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Qn(e,t)}(this,e);break;case an.IN_TEMPLATE:!function(e,t){switch(t.tagID){case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:Rn(e,t);break;case ta.CAPTION:case ta.COLGROUP:case ta.TBODY:case ta.TFOOT:case ta.THEAD:e.tmplInsertionModeStack[0]=an.IN_TABLE,e.insertionMode=an.IN_TABLE,Bn(e,t);break;case ta.COL:e.tmplInsertionModeStack[0]=an.IN_COLUMN_GROUP,e.insertionMode=an.IN_COLUMN_GROUP,Vn(e,t);break;case ta.TR:e.tmplInsertionModeStack[0]=an.IN_TABLE_BODY,e.insertionMode=an.IN_TABLE_BODY,Kn(e,t);break;case ta.TD:case ta.TH:e.tmplInsertionModeStack[0]=an.IN_ROW,e.insertionMode=an.IN_ROW,Xn(e,t);break;default:e.tmplInsertionModeStack[0]=an.IN_BODY,e.insertionMode=an.IN_BODY,Dn(e,t)}}(this,e);break;case an.AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Dn(e,t):ts(e,t)}(this,e);break;case an.IN_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.FRAMESET:e._insertElement(t,Qr.HTML);break;case ta.FRAME:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.NOFRAMES:Rn(e,t)}}(this,e);break;case an.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.NOFRAMES:Rn(e,t)}}(this,e);break;case an.AFTER_AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Dn(e,t):rs(e,t)}(this,e);break;case an.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.NOFRAMES:Rn(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ta.P||t.tagID===ta.BR)return as(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(a)===Qr.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(a);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==ta.HTML&&r!==ta.HEAD&&r!==ta.BODY&&r!==ta.BR||vn(e,t)}(this,e);break;case an.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===ta.HEAD||r===ta.BODY||r===ta.HTML||r===ta.BR?xn(e,t):e._err(t,Pr.endTagWithoutMatchingOpenElement)}(this,e);break;case an.IN_HEAD:!function(e,t){switch(t.tagID){case ta.HEAD:e.openElements.pop(),e.insertionMode=an.AFTER_HEAD;break;case ta.BODY:case ta.BR:case ta.HTML:Tn(e,t);break;case ta.TEMPLATE:En(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.NOSCRIPT:e.openElements.pop(),e.insertionMode=an.IN_HEAD;break;case ta.BR:wn(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.BODY:case ta.HTML:case ta.BR:Sn(e,t);break;case ta.TEMPLATE:En(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.IN_BODY:On(this,e);break;case an.TEXT:!function(e,t){var r;t.tagID===ta.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case an.IN_TABLE:Mn(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case ta.CAPTION:case ta.TABLE:e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_TABLE,r===ta.TABLE&&Mn(e,t));break;case ta.BODY:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:On(e,t)}}(this,e);break;case an.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case ta.COLGROUP:e.openElements.currentTagId===ta.COLGROUP&&(e.openElements.pop(),e.insertionMode=an.IN_TABLE);break;case ta.TEMPLATE:En(e,t);break;case ta.COL:break;default:zn(e,t)}}(this,e);break;case an.IN_TABLE_BODY:Yn(this,e);break;case an.IN_ROW:Jn(this,e);break;case an.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case ta.TD:case ta.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_ROW);break;case ta.TABLE:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Jn(e,t));break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:break;default:On(e,t)}}(this,e);break;case an.IN_SELECT:$n(this,e);break;case an.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$n(e,t)}(this,e);break;case an.IN_TEMPLATE:!function(e,t){t.tagID===ta.TEMPLATE&&En(e,t)}(this,e);break;case an.AFTER_BODY:es(this,e);break;case an.IN_FRAMESET:!function(e,t){t.tagID!==ta.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===ta.FRAMESET||(e.insertionMode=an.AFTER_FRAMESET))}(this,e);break;case an.AFTER_FRAMESET:!function(e,t){t.tagID===ta.HTML&&(e.insertionMode=an.AFTER_AFTER_FRAMESET)}(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onEof(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.IN_BODY:case an.IN_TABLE:case an.IN_CAPTION:case an.IN_COLUMN_GROUP:case an.IN_TABLE_BODY:case an.IN_ROW:case an.IN_CELL:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:Fn(this,e);break;case an.TEXT:!function(e,t){e._err(t,Pr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_TEMPLATE:Zn(this,e);break;case an.AFTER_BODY:case an.IN_FRAMESET:case an.AFTER_FRAMESET:case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:yn(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Rr.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:case an.TEXT:case an.IN_COLUMN_GROUP:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:case an.IN_FRAMESET:case an.AFTER_FRAMESET:this._insertCharacters(e);break;case an.IN_BODY:case an.IN_CAPTION:case an.IN_CELL:case an.IN_TEMPLATE:case an.AFTER_BODY:case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:jn(this,e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Ln(this,e);break;case an.IN_TABLE_TEXT:Hn(this,e)}}}function cn(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Nn(e,t),r}function ln(e,t){let r=null,a=e.openElements.stackTop;for(;a>=0;a--){const n=e.openElements.items[a];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[a])&&(r=n)}return r||(e.openElements.shortenToLength(a<0?0:a),e.activeFormattingElements.removeEntry(t)),r}function un(e,t,r){let a=t,n=e.openElements.getCommonAncestor(t);for(let s=0,i=n;i!==r;s++,i=n){n=e.openElements.getCommonAncestor(i);const r=e.activeFormattingElements.getElementEntry(i),o=r&&s>=rn;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=pn(e,r),a===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}function pn(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function fn(e,t,r){const a=aa(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const n=e.treeAdapter.getNamespaceURI(t);a===ta.TEMPLATE&&n===Qr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function gn(e,t,r){const a=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,s=e.treeAdapter.createElement(n.tagName,a,n.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,n.tagID)}function hn(e,t){for(let r=0;r=r;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(r);a&&!a.endTag&&e._setEndLocation(r,t)}}}}function bn(e,t){e._err(t,Pr.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Zr.QUIRKS),e.insertionMode=an.BEFORE_HTML,e._processToken(t)}function vn(e,t){e._insertFakeRootElement(),e.insertionMode=an.BEFORE_HEAD,e._processToken(t)}function xn(e,t){e._insertFakeElement(ea.HEAD,ta.HEAD),e.headElement=e.openElements.current,e.insertionMode=an.IN_HEAD,e._processToken(t)}function Rn(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.TITLE:e._switchToTextParsing(t,ca.RCDATA);break;case ta.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ca.RAWTEXT):(e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_HEAD_NO_SCRIPT);break;case ta.NOFRAMES:case ta.STYLE:e._switchToTextParsing(t,ca.RAWTEXT);break;case ta.SCRIPT:e._switchToTextParsing(t,ca.SCRIPT_DATA);break;case ta.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=an.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(an.IN_TEMPLATE);break;case ta.HEAD:e._err(t,Pr.misplacedStartTagForHeadElement);break;default:Tn(e,t)}}function En(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ta.TEMPLATE&&e._err(t,Pr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Pr.endTagWithoutMatchingOpenElement)}function Tn(e,t){e.openElements.pop(),e.insertionMode=an.AFTER_HEAD,e._processToken(t)}function wn(e,t){const r=t.type===Dr.EOF?Pr.openElementsLeftAfterEof:Pr.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=an.IN_HEAD,e._processToken(t)}function Sn(e,t){e._insertFakeElement(ea.BODY,ta.BODY),e.insertionMode=an.IN_BODY,An(e,t)}function An(e,t){switch(t.type){case Dr.CHARACTER:_n(e,t);break;case Dr.WHITESPACE_CHARACTER:jn(e,t);break;case Dr.COMMENT:mn(e,t);break;case Dr.START_TAG:Dn(e,t);break;case Dr.END_TAG:On(e,t);break;case Dr.EOF:Fn(e,t)}}function jn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _n(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Cn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kn(e){const t=Nr(e,$r.TYPE);return null!=t&&t.toLowerCase()===en}function Pn(e,t){e._switchToTextParsing(t,ca.RAWTEXT)}function In(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}function Dn(e,t){switch(t.tagID){case ta.I:case ta.S:case ta.B:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.SMALL:case ta.STRIKE:case ta.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(ea.A);r&&(hn(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),ia(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.P:case ta.DL:case ta.OL:case ta.UL:case ta.DIV:case ta.DIR:case ta.NAV:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.DETAILS:case ta.ADDRESS:case ta.ARTICLE:case ta.SECTION:case ta.SUMMARY:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.LI:case ta.DD:case ta.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const t=e.openElements.tagIDs[a];if(r===ta.LI&&t===ta.LI||(r===ta.DD||r===ta.DT)&&(t===ta.DD||t===ta.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==ta.ADDRESS&&t!==ta.DIV&&t!==ta.P&&e._isSpecialElement(e.openElements.items[a],t))break}e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.BR:case ta.IMG:case ta.WBR:case ta.AREA:case ta.EMBED:case ta.KEYGEN:Cn(e,t);break;case ta.HR:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case ta.RB:case ta.RTC:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.RT:case ta.RP:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ta.RTC),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.PRE:case ta.LISTING:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case ta.XMP:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ca.RAWTEXT)}(e,t);break;case ta.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Qa(t),$a(t),t.selfClosing?e._appendElement(t,Qr.SVG):e._insertElement(t,Qr.SVG),t.ackSelfClosing=!0}(e,t);break;case ta.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case ta.BASE:case ta.LINK:case ta.META:case ta.STYLE:case ta.TITLE:case ta.SCRIPT:case ta.BGSOUND:case ta.BASEFONT:case ta.TEMPLATE:Rn(e,t);break;case ta.BODY:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t);break;case ta.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case ta.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ta.NOBR)&&(hn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ja(t),$a(t),t.selfClosing?e._appendElement(t,Qr.MATHML):e._insertElement(t,Qr.MATHML),t.ackSelfClosing=!0}(e,t);break;case ta.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zr.QUIRKS&&e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=an.IN_TABLE}(e,t);break;case ta.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),kn(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case ta.PARAM:case ta.TRACK:case ta.SOURCE:!function(e,t){e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0}(e,t);break;case ta.IMAGE:!function(e,t){t.tagName=ea.IMG,t.tagID=ta.IMG,Cn(e,t)}(e,t);break;case ta.BUTTON:!function(e,t){e.openElements.hasInScope(ta.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1}(e,t);break;case ta.APPLET:case ta.OBJECT:case ta.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case ta.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ca.RAWTEXT)}(e,t);break;case ta.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===an.IN_TABLE||e.insertionMode===an.IN_CAPTION||e.insertionMode===an.IN_TABLE_BODY||e.insertionMode===an.IN_ROW||e.insertionMode===an.IN_CELL?an.IN_SELECT_IN_TABLE:an.IN_SELECT}(e,t);break;case ta.OPTION:case ta.OPTGROUP:!function(e,t){e.openElements.currentTagId===ta.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.NOEMBED:Pn(e,t);break;case ta.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_FRAMESET)}(e,t);break;case ta.TEXTAREA:!function(e,t){e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ca.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=an.TEXT}(e,t);break;case ta.NOSCRIPT:e.options.scriptingEnabled?Pn(e,t):In(e,t);break;case ta.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.tokenizer.state=ca.PLAINTEXT}(e,t);break;case ta.COL:case ta.TH:case ta.TD:case ta.TR:case ta.HEAD:case ta.FRAME:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.CAPTION:case ta.COLGROUP:break;default:In(e,t)}}function Nn(e,t){const r=t.tagName,a=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const t=e.openElements.items[n],s=e.openElements.tagIDs[n];if(a===s&&(a!==ta.UNKNOWN||e.treeAdapter.getTagName(t)===r)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(t,s))break}}function On(e,t){switch(t.tagID){case ta.A:case ta.B:case ta.I:case ta.S:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.NOBR:case ta.SMALL:case ta.STRIKE:case ta.STRONG:hn(e,t);break;case ta.P:!function(e){e.openElements.hasInButtonScope(ta.P)||e._insertFakeElement(ea.P,ta.P),e._closePElement()}(e);break;case ta.DL:case ta.UL:case ta.OL:case ta.DIR:case ta.DIV:case ta.NAV:case ta.PRE:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.BUTTON:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.ADDRESS:case ta.ARTICLE:case ta.DETAILS:case ta.SECTION:case ta.SUMMARY:case ta.LISTING:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.LI:!function(e){e.openElements.hasInListItemScope(ta.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ta.LI),e.openElements.popUntilTagNamePopped(ta.LI))}(e);break;case ta.DD:case ta.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case ta.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ea.BR,ta.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case ta.BODY:!function(e,t){if(e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=an.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case ta.HTML:!function(e,t){e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=an.AFTER_BODY,es(e,t))}(e,t);break;case ta.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(ta.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(ta.FORM):r&&e.openElements.remove(r))}(e);break;case ta.APPLET:case ta.OBJECT:case ta.MARQUEE:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case ta.TEMPLATE:En(e,t);break;default:Nn(e,t)}}function Fn(e,t){e.tmplInsertionModeStack.length>0?Zn(e,t):yn(e,t)}function Ln(e,t){if(sn.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=an.IN_TABLE_TEXT,t.type){case Dr.CHARACTER:Gn(e,t);break;case Dr.WHITESPACE_CHARACTER:Hn(e,t)}else Un(e,t)}function Bn(e,t){switch(t.tagID){case ta.TD:case ta.TH:case ta.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.TBODY,ta.TBODY),e.insertionMode=an.IN_TABLE_BODY,Kn(e,t)}(e,t);break;case ta.STYLE:case ta.SCRIPT:case ta.TEMPLATE:Rn(e,t);break;case ta.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.COLGROUP,ta.COLGROUP),e.insertionMode=an.IN_COLUMN_GROUP,Vn(e,t)}(e,t);break;case ta.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Qr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case ta.TABLE:!function(e,t){e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case ta.TBODY:case ta.TFOOT:case ta.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_TABLE_BODY}(e,t);break;case ta.INPUT:!function(e,t){kn(t)?e._appendElement(t,Qr.HTML):Un(e,t),t.ackSelfClosing=!0}(e,t);break;case ta.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_CAPTION}(e,t);break;case ta.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_COLUMN_GROUP}(e,t);break;default:Un(e,t)}}function Mn(e,t){switch(t.tagID){case ta.TABLE:e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode());break;case ta.TEMPLATE:En(e,t);break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:Un(e,t)}}function Un(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,An(e,t),e.fosterParentingEnabled=r}function Hn(e,t){e.pendingCharacterTokens.push(t)}function Gn(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function qn(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&e.openElements.currentTagId===ta.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ta.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ta.OPTGROUP&&e.openElements.pop();break;case ta.OPTION:e.openElements.currentTagId===ta.OPTION&&e.openElements.pop();break;case ta.SELECT:e.openElements.hasInSelectScope(ta.SELECT)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode());break;case ta.TEMPLATE:En(e,t)}}function Zn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):yn(e,t)}function es(e,t){var r;if(t.tagID===ta.HTML){if(e.fragmentContext||(e.insertionMode=an.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ta.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(a))||void 0===r?void 0:r.endTag)&&e._setEndLocation(a,t)}}else ts(e,t)}function ts(e,t){e.insertionMode=an.IN_BODY,An(e,t)}function rs(e,t){e.insertionMode=an.IN_BODY,An(e,t)}function as(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Qr.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const ns=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function ss(e,t){return function(r){let a,n=0,s="";for(;a=e.exec(r);)n!==a.index&&(s+=r.substring(n,a.index)),s+=t.get(a[0].charCodeAt(0)),n=a.index+1;return s+r.substring(n)}}ss(/[&<>'"]/g,ns),ss(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ss(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([ea.AREA,ea.BASE,ea.BASEFONT,ea.BGSOUND,ea.BR,ea.COL,ea.EMBED,ea.FRAME,ea.HR,ea.IMG,ea.INPUT,ea.KEYGEN,ea.LINK,ea.META,ea.PARAM,ea.SOURCE,ea.TRACK,ea.WBR]);const is=ds("end"),os=ds("start");function ds(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"===typeof r.line&&r.line>0&&"number"===typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"===typeof r.offset&&r.offset>-1?r.offset:void 0}}}const cs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ls={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function us(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),a=ft("type",{handlers:{root:fs,element:gs,text:hs,comment:bs,doctype:ms,raw:vs},unknown:xs}),n={parser:r?new dn(ls):dn.getFragmentParser(void 0,ls),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),Rs(n,os());const s=function(e,t){const r=t||{};return ir({file:r.file||void 0,location:!1,schema:"svg"===r.space?re.JW:re.qy,verbose:r.verbose||!1},e)}(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&H(s,"comment",(function(e,t,r){const a=e;if(a.value.stitch&&r&&void 0!==t){return r.children[t]=a.value.stitch,t}})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function ps(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:Dr.CHARACTER,chars:e.value,location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ms(e,t){const r={type:Dr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ys(e,t){t.stitches=!0;const r=function(e){return Vt("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const a=us({type:"root",children:e.children},t.options);r.children=a.children}bs({type:"comment",value:{stitch:r}},t)}function bs(e,t){const r=e.value,a={type:Dr.COMMENT,data:r,location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function vs(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,Es(t,os(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function xs(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw cs.has(r.type)&&(e=". 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 `"+r.type+"` node"+e)}ys(r,t)}function Rs(e,t){Es(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=ca.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 Es(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function Ts(e){const t=os(e)||{line:void 0,column:void 0,offset:void 0},r=is(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function ws(e){return function(t,r){return us(t,{...e,file:r})}}const Ss=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,As=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,js={};function _s(e,t){return((t||js).jsx?As:Ss).test(e)}const Cs={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"};var ks=r(1581);const Ps=ks.default||ks;function Is(e){return e&&"object"===typeof e?"position"in e||"type"in e?Ns(e.position):"start"in e||"end"in e?Ns(e):"line"in e||"column"in e?Ds(e):"":""}function Ds(e){return Os(e&&e.line)+":"+Os(e&&e.column)}function Ns(e){return Ds(e&&e.start)+"-"+Ds(e&&e.end)}function Os(e){return e&&"number"===typeof e?e:1}class Fs extends Error{constructor(e,t,r){super(),"string"===typeof t&&(r=t,t=void 0);let a="",n={},s=!1;if(t&&(n="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?a=e:!n.cause&&e&&(s=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"===typeof r){const e=r.indexOf(":");-1===e?n.ruleId=r:(n.source=r.slice(0,e),n.ruleId=r.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){const e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}const i=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=i?i.line:void 0,this.name=Is(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&"string"===typeof n.cause.stack?n.cause.stack:"",this.actual,this.expected,this.note,this.url}}Fs.prototype.file="",Fs.prototype.name="",Fs.prototype.reason="",Fs.prototype.message="",Fs.prototype.stack="",Fs.prototype.column=void 0,Fs.prototype.line=void 0,Fs.prototype.ancestors=void 0,Fs.prototype.cause=void 0,Fs.prototype.fatal=void 0,Fs.prototype.place=void 0,Fs.prototype.ruleId=void 0,Fs.prototype.source=void 0;const Ls={}.hasOwnProperty,Bs=new Map,Ms=/[A-Z]/g,Us=/-([a-z])/g,Hs=new Set(["table","tbody","thead","tfoot","tr"]),Gs=new Set(["td","th"]),qs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ws(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return r;function r(r,a,n,s){const i=Array.isArray(n.children),o=os(r);return t(a,n,s,i,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,r){return a;function a(e,a,n,s){const i=Array.isArray(n.children)?r:t;return s?i(a,n,s):i(a,n)}}(0,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?re.JW:re.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Vs(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function Vs(e,t,r){return"element"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=Js(e,t.tagName,!1),i=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&Ls.call(t.properties,n)){const s=Xs(e,n,t.properties[n]);if(s){const[n,i]=s;e.tableCellAlignToStyle&&"align"===n&&"string"===typeof i&&Gs.has(t.tagName)?a=i:r[n]=i}}if(a){(r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return r}(e,t);let o=Ys(e,t);Hs.has(t.tagName)&&(o=o.filter((function(e){return"string"!==typeof e||!st(e)})));return zs(e,i,s,t),Ks(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(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)}Qs(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.name&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=null===t.name?e.Fragment:Js(e,t.name,!0),i=function(e,t){const r={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];t.type;const n=t.expression;n.type;const s=n.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Qs(e,t.position);else{const n=a.name;let s;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];t.type,s=e.evaluater.evaluateExpression(t.expression)}else Qs(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),o=Ys(e,t);return zs(e,i,s,t),Ks(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qs(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Ks(a,Ys(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function zs(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Ks(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Ys(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:Bs;for(;++an?0:n+t:t>n?n:t,r=r>0?r:0,a.length<1e4)s=Array.from(a),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i0?(ii(e,e.length,0,t),e):t}class di{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const a=t||0;this.setCursor(Math.trunc(e));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ci(this.left,r),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ci(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ci(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function Ci(e,t,r,a){const n=a?a-1:Number.POSITIVE_INFINITY;let s=0;return function(a){if(Si(a))return e.enter(r),i(a);return t(a)};function i(a){return Si(a)&&s++s))return;const r=t.events.length;let n,o,d=r;for(;d--;)if("exit"===t.events[d][0]&&"chunkFlow"===t.events[d][1].type){if(n){o=t.events[d][1].end;break}n=!0}for(y(i),e=r;ea;){const a=r[n];t.containerState=a[1],a[0].exit.call(t,e)}r.length=a}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}},Ii={tokenize:function(e,t,r){return Ci(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Di={tokenize:function(e,t,r){return function(t){return Si(t)?Ci(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||Ti(e)?t(e):r(e)}},partial:!0};const Ni={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?n(t):Ti(t)?e.check(Oi,s,n)(t):(e.consume(t),a)}function n(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function s(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}},resolve:function(e){return li(e),e}},Oi={tokenize:function(e,t,r){const a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ci(e,n,"linePrefix")};function n(n){if(null===n||Ti(n))return r(n);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(n):e.interrupt(a.parser.constructs.flow,r,t)(n)}},partial:!0};const Fi={tokenize:function(e){const t=this,r=e.attempt(Di,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,a,Ci(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ni,a)),"linePrefix")));return r;function a(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}}};const Li={resolveAll:Hi()},Bi=Ui("string"),Mi=Ui("text");function Ui(e){return{tokenize:function(t){const r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){if(null===e)return!0;const t=a[e];let n=-1;if(t)for(;++n-1){const e=i[0];"string"===typeof e?i[0]=e.slice(a):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}(i,e)}function g(){const{line:e,column:t,offset:r,_index:n,_bufferIndex:s}=a;return{line:e,column:t,offset:r,_index:n,_bufferIndex:s}}function h(){let e;for(;a._index=3&&(null===s||Ti(s))?(e.exit("thematicBreak"),t(s)):r(s)}function i(t){return t===a?(e.consume(t),n++,i):(e.exit("thematicBreakSequence"),Si(t)?Ci(e,s,"whitespace")(t):s(t))}}};const zi={name:"list",tokenize:function(e,t,r){const a=this,n=a.events[a.events.length-1];let s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=0;return function(t){const n=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!a.containerState.marker||t===a.containerState.marker:xi(t)){if(a.containerState.type||(a.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(Vi,r,d)(t):d(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return r(t)};function o(t){return xi(t)&&++i<10?(e.consume(t),o):(!a.interrupt||i<2)&&(a.containerState.marker?t===a.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),d(t)):r(t)}function d(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(Di,a.interrupt?r:c,e.attempt(Ki,u,l))}function c(e){return a.containerState.initialBlankLine=!0,s++,u(e)}function l(t){return Si(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):r(t)}function u(r){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Di,n,s);function n(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ci(e,t,"listItemIndent",a.containerState.size+1)(r)}function s(r){return a.containerState.furtherBlankLines||!Si(r)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(r)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(Yi,t,i)(r))}function i(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ci(e,e.attempt(zi,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},Ki={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return!Si(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Yi={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)},partial:!0};const Xi={name:"blockQuote",tokenize:function(e,t,r){const a=this;return function(t){if(62===t){const r=a.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),n}return r(t)};function n(r){return Si(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){const a=this;return function(t){if(Si(t))return Ci(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return n(t)};function n(a){return e.attempt(Xi,t,r)(a)}}},exit:function(e){e.exit("blockQuote")}};function Ji(e,t,r,a,n,s,i,o,d){const c=d||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(a),e.enter(n),e.enter(s),e.consume(t),e.exit(s),u;if(null===t||32===t||41===t||vi(t))return r(t);return e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(t)};function u(r){return 62===r?(e.enter(s),e.consume(r),e.exit(s),e.exit(n),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),u(t)):null===t||60===t||Ti(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(n){return l||null!==n&&41!==n&&!wi(n)?l999||null===u||91===u||93===u&&!o||94===u&&!d&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):93===u?(e.exit(s),e.enter(n),e.consume(u),e.exit(n),e.exit(a),t):Ti(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(t){return null===t||91===t||93===t||Ti(t)||d++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!Si(t)),92===t?u:l)}function u(t){return 91===t||92===t||93===t?(e.consume(t),d++,l):l(t)}}function $i(e,t,r,a,n,s){let i;return function(t){if(34===t||39===t||40===t)return e.enter(a),e.enter(n),e.consume(t),e.exit(n),i=40===t?41:t,o;return r(t)};function o(r){return r===i?(e.enter(n),e.consume(r),e.exit(n),e.exit(a),t):(e.enter(s),d(r))}function d(t){return t===i?(e.exit(s),o(i)):null===t?r(t):Ti(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ci(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Ti(t)?(e.exit("chunkString"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Zi(e,t){let r;return function a(n){if(Ti(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a;if(Si(n))return Ci(e,a,r?"linePrefix":"lineSuffix")(n);return t(n)}}function eo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const to={name:"definition",tokenize:function(e,t,r){const a=this;let n;return function(t){return e.enter("definition"),function(t){return Qi.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return n=eo(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):r(t)}function i(t){return wi(t)?Zi(e,o)(t):o(t)}function o(t){return Ji(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function d(t){return e.attempt(ro,c,c)(t)}function c(t){return Si(t)?Ci(e,l,"whitespace")(t):l(t)}function l(s){return null===s||Ti(s)?(e.exit("definition"),a.parser.defined.push(n),t(s)):r(s)}}},ro={tokenize:function(e,t,r){return function(t){return wi(t)?Zi(e,a)(t):r(t)};function a(t){return $i(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function n(t){return Si(t)?Ci(e,s,"whitespace")(t):s(t)}function s(e){return null===e||Ti(e)?t(e):r(e)}},partial:!0};const ao={name:"codeIndented",tokenize:function(e,t,r){const a=this;return function(t){return e.enter("codeIndented"),Ci(e,n,"linePrefix",5)(t)};function n(e){const t=a.events[a.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):r(e)}function s(t){return null===t?o(t):Ti(t)?e.attempt(no,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Ti(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(r){return e.exit("codeIndented"),t(r)}}},no={tokenize:function(e,t,r){const a=this;return n;function n(t){return a.parser.lazy[a.now().line]?r(t):Ti(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n):Ci(e,s,"linePrefix",5)(t)}function s(e){const s=a.events[a.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):Ti(e)?n(e):r(e)}},partial:!0};const so={name:"headingAtx",tokenize:function(e,t,r){let a=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),n(t)}(t)};function n(t){return 35===t&&a++<6?(e.consume(t),n):null===t||wi(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),i(r)):null===r||Ti(r)?(e.exit("atxHeading"),t(r)):Si(r)?Ci(e,s,"whitespace")(r):(e.enter("atxHeadingText"),o(r))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||wi(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}},resolve:function(e,t){let r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},ii(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e}};const io={name:"setextUnderline",tokenize:function(e,t,r){const a=this;let n;return function(t){let i,o=a.events.length;for(;o--;)if("lineEnding"!==a.events[o][1].type&&"linePrefix"!==a.events[o][1].type&&"content"!==a.events[o][1].type){i="paragraph"===a.events[o][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||i))return e.enter("setextHeadingLine"),n=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t);return r(t)};function s(t){return t===n?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Si(t)?Ci(e,i,"lineSuffix")(t):i(t))}function i(a){return null===a||Ti(a)?(e.exit("setextHeadingLine"),t(a)):r(a)}},resolveTo:function(e,t){let r,a,n,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){r=s;break}"paragraph"===e[s][1].type&&(a=s)}else"content"===e[s][1].type&&e.splice(s,1),n||"definition"!==e[s][1].type||(n=s);const i={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",i,t]),e.splice(n+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[n][1].end)):e[r][1]=i;return e.push(["exit",i,t]),e}};const oo=["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"],co=["pre","script","style","textarea"],lo={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let n,s,i,o,d;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),l):47===o?(e.consume(o),s=!0,f):63===o?(e.consume(o),n=3,a.interrupt?t:N):mi(o)?(e.consume(o),i=String.fromCharCode(o),g):r(o)}function l(s){return 45===s?(e.consume(s),n=2,u):91===s?(e.consume(s),n=5,o=0,p):mi(s)?(e.consume(s),n=4,a.interrupt?t:N):r(s)}function u(n){return 45===n?(e.consume(n),a.interrupt?t:N):r(n)}function p(n){const s="CDATA[";return n===s.charCodeAt(o++)?(e.consume(n),6===o?a.interrupt?t:A:p):r(n)}function f(t){return mi(t)?(e.consume(t),i=String.fromCharCode(t),g):r(t)}function g(o){if(null===o||47===o||62===o||wi(o)){const d=47===o,c=i.toLowerCase();return d||s||!co.includes(c)?oo.includes(i.toLowerCase())?(n=6,d?(e.consume(o),h):a.interrupt?t(o):A(o)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(o):s?m(o):y(o)):(n=1,a.interrupt?t(o):A(o))}return 45===o||yi(o)?(e.consume(o),i+=String.fromCharCode(o),g):r(o)}function h(n){return 62===n?(e.consume(n),a.interrupt?t:A):r(n)}function m(t){return Si(t)?(e.consume(t),m):w(t)}function y(t){return 47===t?(e.consume(t),w):58===t||95===t||mi(t)?(e.consume(t),b):Si(t)?(e.consume(t),y):w(t)}function b(t){return 45===t||46===t||58===t||95===t||yi(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),x):Si(t)?(e.consume(t),v):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),d=t,R):Si(t)?(e.consume(t),x):E(t)}function R(t){return t===d?(e.consume(t),d=null,T):null===t||Ti(t)?r(t):(e.consume(t),R)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wi(t)?v(t):(e.consume(t),E)}function T(e){return 47===e||62===e||Si(e)?y(e):r(e)}function w(t){return 62===t?(e.consume(t),S):r(t)}function S(t){return null===t||Ti(t)?A(t):Si(t)?(e.consume(t),S):r(t)}function A(t){return 45===t&&2===n?(e.consume(t),k):60===t&&1===n?(e.consume(t),P):62===t&&4===n?(e.consume(t),O):63===t&&3===n?(e.consume(t),N):93===t&&5===n?(e.consume(t),D):!Ti(t)||6!==n&&7!==n?null===t||Ti(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(uo,F,j)(t))}function j(t){return e.check(po,_,F)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||Ti(t)?j(t):(e.enter("htmlFlowData"),A(t))}function k(t){return 45===t?(e.consume(t),N):A(t)}function P(t){return 47===t?(e.consume(t),i="",I):A(t)}function I(t){if(62===t){const r=i.toLowerCase();return co.includes(r)?(e.consume(t),O):A(t)}return mi(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),I):A(t)}function D(t){return 93===t?(e.consume(t),N):A(t)}function N(t){return 62===t?(e.consume(t),O):45===t&&2===n?(e.consume(t),N):A(t)}function O(t){return null===t||Ti(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),O)}function F(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},uo={tokenize:function(e,t,r){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Di,t,r)}},partial:!0},po={tokenize:function(e,t,r){const a=this;return function(t){if(Ti(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n;return r(t)};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}},partial:!0};const fo={tokenize:function(e,t,r){const a=this;return function(t){if(null===t)return r(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}},partial:!0},go={name:"codeFenced",tokenize:function(e,t,r){const a=this,n={tokenize:function(e,t,r){let n=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return e.enter("codeFencedFence"),Si(t)?Ci(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===s?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===s?(n++,e.consume(t),l):n>=o?(e.exit("codeFencedFenceSequence"),Si(t)?Ci(e,u,"whitespace")(t):u(t)):r(t)}function u(a){return null===a||Ti(a)?(e.exit("codeFencedFence"),t(a)):r(a)}},partial:!0};let s,i=0,o=0;return function(t){return function(t){const r=a.events[a.events.length-1];return i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}(t)};function d(t){return t===s?(o++,e.consume(t),d):o<3?r(t):(e.exit("codeFencedFenceSequence"),Si(t)?Ci(e,c,"whitespace")(t):c(t))}function c(r){return null===r||Ti(r)?(e.exit("codeFencedFence"),a.interrupt?t(r):e.check(fo,f,b)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(r))}function l(t){return null===t||Ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Si(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ci(e,u,"whitespace")(t)):96===t&&t===s?r(t):(e.consume(t),l)}function u(t){return null===t||Ti(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?r(t):(e.consume(t),p)}function f(t){return e.attempt(n,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Si(t)?Ci(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||Ti(t)?e.check(fo,f,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Ti(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function b(r){return e.exit("codeFenced"),t(r)}},concrete:!0};var ho=r(7018);const mo={name:"characterReference",tokenize:function(e,t,r){const a=this;let n,s,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),n=31,s=yi,c(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=Ri,c):(e.enter("characterReferenceValue"),n=7,s=xi,c(t))}function c(o){if(59===o&&i){const n=e.exit("characterReferenceValue");return s!==yi||(0,ho.s)(a.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(o)}return s(o)&&i++1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),p=Object.assign({},e[l][1].start);Ao(u,-o),Ao(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},i={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:p},n={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},a={type:o>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},i.end)},e[r][1].end=Object.assign({},s.start),e[l][1].start=Object.assign({},i.end),d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=oi(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=oi(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),d=oi(d,qi(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),d=oi(d,[["exit",n,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[l][1].end.offset-e[l][1].start.offset?(c=2,d=oi(d,[["enter",e[l][1],t],["exit",e[l][1],t]])):c=0,ii(e,r-1,l-r+3,d),l=r+d.length-c-2;break}l=-1;for(;++l13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":String.fromCodePoint(r)}const qo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return Go(r.slice(t?2:1),t?16:10)}return(0,ho.s)(r)||e}const Vo={}.hasOwnProperty;function zo(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:s(Q),blockQuote:s(z),characterEscape:S,characterReference:S,codeFenced:s(K),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(K,i),codeText:s(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:s(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(J),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(Z,i),htmlFlowData:S,htmlText:s(Z,i),htmlTextData:S,image:s(ee),label:i,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,u),listUnordered:s(re),paragraph:s(ne),reference:M,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(Q),strong:s(se),thematicBreak:s(oe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:V,autolinkProtocol:W,blockQuote:d(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,characterReference:q,codeFenced:d(m),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:d(y),codeText:d(P),codeTextData:A,data:A,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(_),hardBreakTrailing:d(_),htmlFlow:d(C),htmlFlowData:A,htmlText:d(k),htmlTextData:A,image:d(D),label:O,labelText:N,lineEnding:j,link:d(I),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:F,resourceTitleString:L,resource:B,setextHeading:d(w),setextHeadingLineSequence:T,setextHeadingText:E,strong:d(),thematicBreak:d()}};Yo(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:o,exit:c,buffer:i,resume:l,data:r},d=[];let u=-1;for(;++u0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Jo).call(s,void 0,e[0])}for(a.position={start:Ko(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ko(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u55295&&s<57344){const t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),n=1):i="\ufffd"}else i=String.fromCharCode(s);i&&(t.push(e.slice(a,r),encodeURIComponent(i)),a=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function Zo(e,t){const r=[{type:"text",value:"\u21a9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ed(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function td(e,t){const r=t.referenceType;let a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),s=n[0];s&&"text"===s.type?s.value="["+s.value:n.unshift({type:"text",value:"["});const i=n[n.length-1];return i&&"text"===i.type?i.value+=a:n.push({type:"text",value:a}),n}function rd(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}const ad=9,nd=32;function sd(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push(id(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push(id(t.slice(n),n>0,!1)),s.join("")}function id(e,t,r){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;t===ad||t===nd;)a++,t=e.codePointAt(a)}if(r){let t=e.codePointAt(n-1);for(;t===ad||t===nd;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}const od={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),n=$o(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let i,o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(a,o);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,d);const c={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return td(e,t);const n={src:$o(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const r={src:$o(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return td(e,t);const n={href:$o(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const r={href:$o(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,r){const a=e.all(t),n=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=os(t.children[1]),i=is(t.children[t.children.length-1]);s&&i&&(a.position={start:s,end:i}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const a=r?r.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,i=s?s.length:t.children.length;let o=-1;const d=[];for(;++o0&&r.push({type:"text",value:"\n"}),r}function hd(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function md(e,t){const r=function(e,t){const r=t||ld,a=new Map,n=new Map,s=new Map,i={...od,...r.handlers},o={all:function(e){const t=[];if("children"in e){const r=e.children;let a=-1;for(;++a0&&u.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,l);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else s.push(...u);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(n,g),o.push(g)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vt(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&s.children.push({type:"text",value:"\n"},n),s}function yd(e,t){return e&&"run"in e?async function(r,a){const n=md(r,{file:a,...t});await e.run(n,a)}:function(r,a){return md(r,{file:a,...t||e})}}function bd(e){if(e)throw e}var vd=r(1761);function xd(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rd(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),l=1;ln.length;let c;d&&n.push(s);try{c=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(c&&c.then&&"function"===typeof c.then?c.then(i,s):c instanceof Error?s(c):i(c))}function s(e){if(!r){r=!0;for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;se.length){for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else n<0&&(r=!0,n=s+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else i<0&&(r=!0,i=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(n=s):(o=-1,n=i));a===n?n=i:n<0&&(n=e.length);return e.slice(a,n)},dirname:function(e){if(Td(e),0===e.length)return".";let t,r=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){r=a;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},extname:function(e){Td(e);let t,r=e.length,a=-1,n=0,s=-1,i=0;for(;r--;){const o=e.codePointAt(r);if(47!==o)a<0&&(t=!0,a=r+1),46===o?s<0?s=r:1!==i&&(i=1):s>-1&&(i=-1);else if(t){n=r+1;break}}if(s<0||a<0||0===i||1===i&&s===a-1&&s===n+1)return"";return e.slice(s,a)},join:function(){let e,t=-1;for(var r=arguments.length,a=new Array(r),n=0;n2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",s=0):(n=n.slice(0,a),s=n.length-1-n.lastIndexOf("/")),i=d,o=0;continue}}else if(n.length>0){n="",s=0,i=d,o=0;continue}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},sep:"/"};function Td(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wd={cwd:function(){return"/"}};function Sd(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Ad(e){if("string"===typeof e)e=new URL(e);else if(!Sd(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r1?a-1:0),s=1;s0){let[a,...s]=r;const i=t[n][1];xd(i)&&xd(a)&&(a=vd(!0,i,a)),t[n]=[e,a,...s]}}}}const Od=(new Nd).freeze();function Fd(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ld(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bd(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 Md(e){if(!xd(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ud(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hd(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new _d(e)}const Gd=[],qd={allowDangerousHtml:!0},Wd=/^(https?|ircs?|mailto|xmpp)$/i,Vd=[{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:"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 zd(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,i=e.disallowedElements,d=e.rehypePlugins||Gd,c=e.remarkPlugins||Gd,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qd}:qd,u=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||Kd,g=Od().use(Qo).use(c).use(yd,l).use(d),h=new _d;"string"===typeof a&&(h.value=a);for(const o of Vd)Object.hasOwn(e,o.from)&&(o.from,o.to&&o.to,o.id);const m=g.parse(h);let y=g.runSync(m,h);return n&&(y={type:"element",tagName:"div",properties:{className:n},children:"root"===y.type?y.children:[y]}),H(y,(function(e,a,n){if("raw"===e.type&&n&&"number"===typeof a)return u?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in ti)if(Object.hasOwn(ti,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=ti[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=f(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"===typeof a&&(s=!r(e,a,n)),s&&n&&"number"===typeof a)return p&&e.children?n.children.splice(a,1,...e.children):n.children.splice(a,1),a}})),Ws(y,{Fragment:o.Fragment,components:s,ignoreInvalidStyle:!0,jsx:o.jsx,jsxs:o.jsxs,passKeys:!0,passNode:!0})}function Kd(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t<0||n>-1&&t>n||r>-1&&t>r||a>-1&&t>a||Wd.test(e.slice(0,t))?e:""}function Yd(e,t){const r=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;-1!==n;)a++,n=r.indexOf(t,n+t.length);return a}function Xd(e,t,r){const a=I((r||{}).ignore||[]),n=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a0?{type:"text",value:s}:void 0),!1===s?a.lastIndex=r+1:(o!==r&&l.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?l.push(...s):s&&l.push(s),o=r+u[0].length,c=!0),!a.global)break;u=a.exec(e.value)}c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=Yd(e,"(");let s=Yd(e,")");for(;-1!==a&&n>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}(r+a);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function dc(e,t,r,a){return!(!cc(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function cc(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||ji(r)||Ai(r))&&(!t||47!==r)}function lc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uc(){this.buffer()}function pc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=eo(this.sliceSerialize(e)).toLowerCase()}function fc(e){this.exit(e)}function gc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hc(){this.buffer()}function mc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=eo(this.sliceSerialize(e)).toLowerCase()}function yc(e){this.exit(e)}function bc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteReference"),o=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),i(),s+=n.move("]"),s}function vc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteDefinition"),o=r.enter("label");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),s+=n.move("]:"+(e.children&&e.children.length>0?" ":"")),n.shift(4),s+=n.move(r.indentLines(r.containerFlow(e,n.current()),xc)),i(),s}function xc(e,t,r){return 0===t?e:(r?"":" ")+e}bc.peek=function(){return"["};const Rc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ec(e){this.enter({type:"delete",children:[]},e)}function Tc(e){this.exit(e)}function wc(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let i=n.move("~~");return i+=r.containerPhrasing(e,{...n.current(),before:i,after:"~"}),i+=n.move("~~"),s(),i}function Sc(e){return null===e||void 0===e?"":String(e)}function Ac(e){return e.length}function jc(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _c(e,t,r){return">"+(r?"":" ")+e}function Cc(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":")",...d.current()}))),o(),e.title&&(o=r.enter("title".concat(s)),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),c+=d.move(")"),i(),c}function Fc(e,t,r,a){const n=e.referenceType,s=r.enter("imageReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("![");const c=r.safe(e.alt,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Lc(e,t,r){let a=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}function Mc(e,t,r,a){const n=Ic(r),s='"'===n?"Quote":"Apostrophe",i=r.createTracker(a);let o,d;if(Bc(e,r)){const t=r.stack;r.stack=[],o=r.enter("autolink");let a=i.move("<");return a+=i.move(r.containerPhrasing(e,{before:a,after:">",...i.current()})),a+=i.move(">"),o(),r.stack=t,a}o=r.enter("link"),d=r.enter("label");let c=i.move("[");return c+=i.move(r.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(r.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(d=r.enter("destinationRaw"),c+=i.move(r.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),d(),e.title&&(d=r.enter("title".concat(s)),c+=i.move(" "+n),c+=i.move(r.safe(e.title,{before:c,after:n,...i.current()})),c+=i.move(n),d()),c+=i.move(")"),o(),c}function Uc(e,t,r,a){const n=e.referenceType,s=r.enter("linkReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("[");const c=r.containerPhrasing(e,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Hc(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 Gc(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}wc.peek=function(){return"~"},Dc.peek=function(e,t,r){return r.options.emphasis||"*"},Nc.peek=function(){return"<"},Oc.peek=function(){return"!"},Fc.peek=function(){return"!"},Lc.peek=function(){return"`"},Mc.peek=function(e,t,r){return Bc(e,r)?"<":"["},Uc.peek=function(){return"["};const qc=I(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Wc(e,t,r,a){const n=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),s=r.enter("strong"),i=r.createTracker(a);let o=i.move(n+n);return o+=i.move(r.containerPhrasing(e,{before:o,after:n,...i.current()})),o+=i.move(n+n),s(),o}Wc.peek=function(e,t,r){return r.options.strong||"*"};const Vc={blockquote:function(e,t,r,a){const n=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const i=r.indentLines(r.containerFlow(e,s.current()),_c);return n(),i},break:kc,code:function(e,t,r,a){const n=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),s=e.value||"",i="`"===n?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(s,Pc);return e(),t}const o=r.createTracker(a),d=n.repeat(Math.max(function(e,t){const r=String(e);let a=r.indexOf(t),n=a,s=0,i=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==a;)a===n?++s>i&&(i=s):s=1,n=a+t.length,a=r.indexOf(t,n);return i}(s,n)+1,3)),c=r.enter("codeFenced");let l=o.move(d);if(e.lang){const t=r.enter("codeFencedLang".concat(i));l+=o.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){const t=r.enter("codeFencedMeta".concat(i));l+=o.move(" "),l+=o.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...o.current()})),t()}return l+=o.move("\n"),s&&(l+=o.move(s+"\n")),l+=o.move(d),c(),l},definition:function(e,t,r,a){const n=Ic(r),s='"'===n?"Quote":"Apostrophe",i=r.enter("definition");let o=r.enter("label");const d=r.createTracker(a);let c=d.move("[");return c+=d.move(r.safe(r.associationId(e),{before:c,after:"]",...d.current()})),c+=d.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=d.move("<"),c+=d.move(r.safe(e.url,{before:c,after:">",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...d.current()}))),o(),e.title&&(o=r.enter("title".concat(s)),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),i(),c},emphasis:Dc,hardBreak:kc,heading:function(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(function(e,t){let r=!1;return H(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,B})),Boolean((!e.depth||e.depth<3)&&ai(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),i=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return a(),t(),i+"\n"+(1===n?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(n),o=r.enter("headingAtx"),d=r.enter("phrasing");s.move(i+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?i+" "+c:i,r.options.closeAtx&&(c+=" "+i),d(),o(),c},html:Nc,image:Oc,imageReference:Fc,inlineCode:Lc,link:Mc,linkReference:Uc,list:function(e,t,r,a){const n=r.enter("list"),s=r.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Hc(r);const o=e.ordered?"."===i?")":".":function(e){const t=Hc(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let d=!(!t||!r.bulletLastUsed)&&i===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(d=!0),Gc(r)===i&&t){let t=-1;for(;++t-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let i=s.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const o=r.createTracker(a);o.move(s+" ".repeat(i-s.length)),o.shift(i);const d=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(i))+e;return(r?s:s+" ".repeat(i-s.length))+e}));return d(),c},paragraph:function(e,t,r,a){const n=r.enter("paragraph"),s=r.enter("phrasing"),i=r.containerPhrasing(e,a);return s(),n(),i},root:function(e,t,r,a){return(e.children.some((function(e){return qc(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:Wc,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(Gc(r)+(r.options.ruleSpaces?" ":"")).repeat(function(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}(r));return r.options.ruleSpaces?a.slice(0,-1):a}};function zc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Kc(e){this.exit(e),this.data.inTable=void 0}function Yc(e){this.enter({type:"tableRow",children:[]},e)}function Xc(e){this.exit(e)}function Jc(e){this.enter({type:"tableCell",children:[]},e)}function Qc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$c));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function $c(e,t){return"|"===t?t:e}function Zc(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let a=Vc.inlineCode(e,t,r);r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&"));return a},table:function(e,t,r,a){return o(function(e,t,r){const a=e.children;let n=-1;const s=[],i=t.enter("table");for(;++n1&&void 0!==arguments[1]?arguments[1]:{};const r=(t.align||[]).concat(),a=t.stringLength||Ac,n=[],s=[],i=[],o=[];let d=0,c=-1;for(;++cd&&(d=e[c].length);++lo[l])&&(o[l]=e)}r.push(s)}s[c]=r,i[c]=n}let l=-1;if("object"===typeof r&&"length"in r)for(;++lo[l]&&(o[l]=s),p[l]=s),u[l]=i}s.splice(1,0,u),i.splice(1,0,p),c=-1;const f=[];for(;++c0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}ul[43]=ll,ul[45]=ll,ul[46]=ll,ul[95]=ll,ul[72]=[ll,cl],ul[104]=[ll,cl],ul[87]=[ll,dl],ul[119]=[ll,dl];const bl={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function vl(e,t,r){const a=this;let n=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i;for(;n--;){const e=a.events[n][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(n){if(!i||!i._balanced)return r(n);const o=eo(a.sliceSerialize({start:i.end,end:a.now()}));if(94!==o.codePointAt(0)||!s.includes(o.slice(1)))return r(n);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),t(n)}}function xl(e,t){let r,a=e.length;for(;a--;)if("labelImage"===e[a][1].type&&"enter"===e[a][0]){r=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},d=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",s,t],["exit",s,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...d),e}function Rl(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(o){if(i>999||93===o&&!s||null===o||91===o||wi(o))return r(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes(eo(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(o)}return wi(o)||(s=!0),i++,e.consume(o),92===o?c:d}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,d):d(t)}}function El(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||wi(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=eo(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return wi(t)||(i=!0),o++,e.consume(t),92===t?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),Ci(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Tl(e,t,r){return e.check(Di,t,e.attempt(bl,t,r))}function wl(e){e.exit("gfmFootnoteDefinition")}function Sl(e){let t=(e||{}).singleTilde;const r={tokenize:function(e,r,a){const n=this.previous,s=this.events;let i=0;return function(t){if(126===n&&"characterEscape"!==s[s.length-1][1].type)return a(t);return e.enter("strikethroughSequenceTemporary"),o(t)};function o(s){const d=wo(n);if(126===s)return i>1?a(s):(e.consume(s),i++,o);if(i<2&&!t)return a(s);const c=e.exit("strikethroughSequenceTemporary"),l=wo(s);return c._open=!l||2===l&&Boolean(d),c._close=!d||2===d&&Boolean(l),r(s)}},resolveAll:function(e,t){let r=-1;for(;++r0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function jl(e,t){let r=!1;const a=[];for(;t-1;){const e=a.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const n=t>-1?a.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?x:o;if(s===x&&a.parser.lazy[a.now().line])return r(e);return s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return d(e);return n=!0,i+=1,d(e)}(t)}function d(t){return null===t?r(t):Ti(t)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):r(t):Si(t)?Ci(e,d,"whitespace")(t):(i+=1,n&&(n=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,d):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||wi(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,Si(t)?Ci(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return Si(t)?Ci(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||Ti(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Si(t)?Ci(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||Ti(r))&&n&&s===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function x(t){return e.enter("tableRow"),R(t)}function R(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),R):null===r||Ti(r)?(e.exit("tableRow"),t(r)):Si(r)?Ci(e,R,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||wi(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?T:E)}function T(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Cl(e,t){let r,a,n,s=-1,i=!0,o=0,d=[0,0,0,0],c=[0,0,0,0],l=!1,u=0;const p=new Al;for(;++sr[2]+1){const t=r[2]+1,a=r[3]-r[2]-1;e.add(t,a,[])}}e.add(r[3]+1,0,[["exit",i,t]])}return void 0!==n&&(s.end=Object.assign({},Il(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Pl(e,t,r,a,n){const s=[],i=Il(t.events,r);n&&(n.end=Object.assign({},i),s.push(["exit",n,t])),a.end=Object.assign({},i),s.push(["exit",a,t]),e.add(r+1,0,s)}function Il(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Dl={tokenize:function(e,t,r){const a=this;return function(t){if(null!==a.previous||!a._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n};function n(t){return wi(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):r(t)}function i(a){return Ti(a)?t(a):Si(a)?e.check({tokenize:Nl},t,r)(a):r(a)}}};function Nl(e,t,r){return Ci(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const Ol={};function Fl(e){const t=e||Ol,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return fi([{text:ul},{document:{91:{tokenize:El,continuation:{tokenize:Tl},exit:wl}},text:{91:{tokenize:Rl},93:{add:"after",tokenize:vl,resolveTo:xl}}},Sl(e),{flow:{null:{tokenize:_l,resolveAll:Cl}}},{text:{91:Dl}}])}(t)),n.push([{transforms:[ic],enter:{literalAutolink:ec,literalAutolinkEmail:tc,literalAutolinkHttp:tc,literalAutolinkWww:tc},exit:{literalAutolink:sc,literalAutolinkEmail:nc,literalAutolinkHttp:rc,literalAutolinkWww:ac}},{enter:{gfmFootnoteDefinition:lc,gfmFootnoteDefinitionLabelString:uc,gfmFootnoteCall:gc,gfmFootnoteCallString:hc},exit:{gfmFootnoteDefinition:fc,gfmFootnoteDefinitionLabelString:pc,gfmFootnoteCall:yc,gfmFootnoteCallString:mc}},{canContainEols:["delete"],enter:{strikethrough:Ec},exit:{strikethrough:Tc}},{enter:{table:zc,tableData:Jc,tableHeader:Jc,tableRow:Yc},exit:{codeText:Qc,table:Kc,tableData:Xc,tableHeader:Xc,tableRow:Xc}},{exit:{taskListCheckValueChecked:el,taskListCheckValueUnchecked:el,paragraph:tl}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$d,notInConstruct:Zd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$d,notInConstruct:Zd},{character:":",before:"[ps]",after:"\\/",inConstruct:$d,notInConstruct:Zd}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:vc,footnoteReference:bc}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rc}],handlers:{delete:wc}},Zc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rl}}]}}(t))}const Ll=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Bl=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Ml=function(){let{legacyTitle:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{H(t,"blockquote",((t,r,a)=>{let n="",s="",i=!0,o=t.children.map((t=>{if(i&&"paragraph"===t.type){const r=t.children[0],a="text"===r.type?r.value:"",o=e?Bl:Ll,d=a.match(o);if(d&&(i=!1,n=d[1].toLocaleLowerCase(),s=e&&d[2]||n.toLocaleUpperCase(),a.includes("\n")&&(t.children[0]={type:"text",value:a.replace(o,"").replace(/^\n+/,"")}),!a.includes("\n"))){const e=[];t.children.forEach(((t,r)=>{0!=r&&(1==r&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));n&&(t.data={hName:"div",hProperties:{class:"markdown-alert markdown-alert-".concat(n),dir:"auto"}},o.unshift({type:"paragraph",children:[Ul(n),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),t.children=[...o]}))}};function Ul(e){var t;return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:null!==(t=Hl[e])&&void 0!==t?t:""}},children:[]}]}}const Hl={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Gl(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Gl(t.parentElement):null}function ql(e){var t=e=>{var t=Gl(e.target);t&&(t.classList.add("active"),y()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,i.useEffect)((()=>{var r,a;return null==(r=e.current)||r.removeEventListener("click",t,!1),null==(a=e.current)||a.addEventListener("click",t,!1),()=>{var r;null==(r=e.current)||r.removeEventListener("click",t,!1)}}),[e])}var Wl=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Vl=e=>e;const zl=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:d,style:c,disableCopy:l=!1,skipHtml:u=!0,onScroll:p,onMouseOver:f,pluginsFilter:g,wrapperElement:h={},warpperElement:m={},urlTransform:y}=e,b=(0,s.A)(e,Wl),v=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:v})),[v,e]);var x=(r||"")+" "+(a||"");ql(v);var R=[...b.rehypePlugins||[]],E={allowElement:(e,t,r)=>b.allowElement?b.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};u&&R.push(ws);var T=[Ml,...b.remarkPlugins||[],Fl],w=(0,n.A)({},m,h);return(0,o.jsx)("div",(0,n.A)({ref:v,onScroll:p,onMouseOver:f},w,{className:x,style:c,children:(0,o.jsx)(zd,(0,n.A)({},E,b,{skipHtml:u,urlTransform:y||Vl,rehypePlugins:g?g("rehype",R):R,remarkPlugins:g?g("remark",T):T,children:d||""}))}))}));var Kl=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=(0,n.A)({},e.properties,{"data-meta":String(e.data.meta)}))}))}},Yl=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta&&(e.data||(e.data={}),e.data.meta=e.properties.dataMeta,delete e.properties.dataMeta)}))}};const Xl=/[\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\u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\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]|\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38\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,Jl=Object.hasOwnProperty;function Ql(e){const t="element"===e.type?e.tagName.toLowerCase():"",r=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return r>48&&r<55?r-48:void 0}const $l={},Zl=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let a=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(Xl,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;Jl.call(r.occurrences,a);)r.occurrences[n]++,a=n+"-"+r.occurrences[n];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};const eu=function(e){if(null===e||void 0===e)return ru;if("string"===typeof e)return function(e){return tu(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let r=-1;for(;++r0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:r="rehype:ignore:end"}=e;return e=>{H(e,((e,a,n)=>{if("element"===e.type||"root"===e.type){let a=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let n=(e.value||"").trim();if(n=n.replace(/^/,"$1"),n===t)return a=!0,!1;if(n===r)return a=!1,!1}return!a}))}}))}};var pu={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var fu=[function(e){const t=(e||$l).prefix||"";return function(e){Zl.reset(),H(e,"element",(function(e){Ql(e)&&!e.properties.id&&(e.properties.id=t+Zl.slug(G(e)))}))}},function(e){const t=e||su;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,i=t.group,o=eu(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const o=du(s||nu,e),d=ou(e,lu(r,e),o);let c="before"===n?[d,e]:[e,d];if(i){const t=cu(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return a.children.splice(t,1,...c),[M,t+c.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=iu(s));return e.children=[ou(e,lu(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[M]}:(d=function(e){const t=du(s||nu,e);return e.children["prepend"===n?"unshift":"push"](ou(e,lu(r,e),t)),[M]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){H(e,"element",(function(e,t,r){if(Ql(e)&&e.properties.id&&o(e,t,r))return Object.assign(e.properties,lu(a,e)),d(e,t,r)}))}},uu];const gu=i.forwardRef(((e,t)=>{var r,a,s,i=[Kl,ws,Yl,...fu,[It,{rewrite:(a=null!=(r=e.disableCopy)&&r,s=e.rehypeRewrite,(e,t,r)=>{if("element"===e.type&&r&&"root"===r.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var i=e.children&&e.children[0];i&&i.properties&&"true"===i.properties.ariaHidden&&(i.properties=(0,n.A)({class:"anchor"},i.properties),i.children=[pu])}if("element"===e.type&&"pre"===e.tagName&&!a){var o=Pt(e.children);e.children.push((void 0===(d=o)&&(d=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":d},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var d;s&&s(e,null===t?void 0:t,null===r?void 0:r)})}],[Ft,{properties:"attr"}],...e.rehypePlugins||[],[te,{ignoreMissing:!0}]];return(0,o.jsx)(zl,(0,n.A)({},e,{rehypePlugins:i,ref:t}))}));var hu,mu,yu,bu=r(3235),vu=["components","data","node"],xu=["source","components","data","rehypeRewrite"],Ru=_.Preview,Eu=_.Code,Tu=_.Toolbar,wu=(0,bu.Ay)(gu)(hu||(mu=["\n margin: 0 auto;\n box-shadow:\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\n border: 1px solid var(--color-border-default, #30363d);\n text-align: left;\n max-width: 56rem;\n overflow: auto;\n padding: 2rem;\n border-radius: 0.55rem;\n"],yu||(yu=mu.slice(0)),mu.raw=yu,hu=mu)),Su=e=>{var{components:t,data:r,node:a}=e,i=(0,s.A)(e,vu);if(a&&"element"===a.type&&"pre"===a.tagName){var d,c,l,u=a.children[0];if(!u)return(0,o.jsx)("pre",(0,n.A)({},i));var p=(null==(d=u.data)?void 0:d.meta)||(null==(c=u.properties)?void 0:c.dataMeta);if(!P(p))return(0,o.jsx)("pre",(0,n.A)({},i));var f=null==a||null==(l=a.position)?void 0:l.start.line,g=k(p)||String(f),h=t[""+g];if(g&&"function"===typeof h){var m=r[g].value||"",{title:y,boreder:b=1,checkered:v=1,code:x=1,toolbar:R=1}=C(p||"");return(0,o.jsxs)(_,{bordered:!!Number(b),disableCheckered:!Number(v),style:{marginBottom:16},children:[(0,o.jsx)(Ru,{children:(0,o.jsx)(h,{})}),!!Number(R)&&(0,o.jsx)(Tu,{text:m,visibleButton:!!Number(x),children:y||"Code Example"}),!!Number(x)&&(0,o.jsx)(Eu,{tagName:"pre",style:{marginBottom:0},className:i.className,children:i.children})]})}}return(0,o.jsx)("code",(0,n.A)({},i))};function Au(e){var{components:t,data:r}=e,a=(0,s.A)(e,xu);return(0,o.jsx)(wu,(0,n.A)({disableCopy:!0,rehypePlugins:[uu,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,o.jsx)(Su,(0,n.A)({},e,{components:r.components,data:r.data}))})}))}},8108:(e,t)=>{"use strict";function r(e,t){return(Array.isArray(t)?t:[t]).some((function(t){return"string"===typeof t&&(t=new RegExp(t)),t.test(e||"")}))}},9050:(e,t)=>{"use strict"},144:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1761:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},i=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,n=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},o=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(n)return n(e,r).value}return e[r]};e.exports=function e(){var t,r,a,n,c,l,u=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof u&&(g=u,u=arguments[1]||{},p=2),(null==u||"object"!==typeof u&&"function"!==typeof u)&&(u={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,d=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(d,c):c}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var u=1,p=1;function f(e){var t=e.match(r);t&&(u+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:u,column:p};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:u,column:p},this.source=d.source}h.prototype.content=e;var m=[];function y(t){var r=new Error(d.source+":"+u+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=u,r.column=p,r.source=e,!d.silent)throw r;m.push(r)}function b(t){var r=t.exec(e);if(r){var a=r[0];return f(a),e=e.slice(a.length),r}}function v(){b(a)}function x(e){var t;for(e=e||[];t=R();)!1!==t&&e.push(t);return e}function R(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var a=e.slice(2,r-2);return p+=2,f(a),e=e.slice(r),p+=2,t({type:"comment",comment:a})}}function E(){var e=g(),r=b(n);if(r){if(R(),!b(s))return y("property missing ':'");var a=b(i),d=e({type:"declaration",property:l(r[0].replace(t,c)),value:a?l(a[0].replace(t,c)):c});return b(o),d}}return v(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},3670:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9386:(e,t)=>{function r(e){let t,r=[];for(let a of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(a))r.push(parseInt(a,10));else if(t=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,a,n,s]=t;if(a&&s){a=parseInt(a),s=parseInt(s);const e=a{"use strict";e.exports=function(e){var t=this;this.Compiler=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}};var a=r(7503)},4014:e=>{"use strict";e.exports=function(e,t){var r,a,n=0,s=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),a=e.indexOf(t),r=a;for(;-1!==a;)n++,a===r?n>s&&(s=n):n=1,r=a+1,a=e.indexOf(t,r);return s}},7503:(e,t,r)=>{e.exports=r(4127)},3927:e=>{e.exports=function e(t,r){var a,n=-1;if(r.extensions)for(;++n{e.exports=function(e,t,r){var i=r.enter("blockquote"),o=n(a(e,r),s);return i(),o};var a=r(9960),n=r(6242);function s(e,t,r){return">"+(r?"":" ")+e}},5301:(e,t,r)=>{e.exports=function(e,t,r,n){var s=-1;for(;++s{e.exports=function(e,t,r){var l,u,p,f,g=i(r),h=e.value||"",m="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),l=o(h,c)):(u=a(g,Math.max(n(h,g)+1,3)),p=r.enter("codeFenced"),l=u,e.lang&&(f=r.enter("codeFencedLang"+m),l+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+m),l+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),l+="\n",h&&(l+=h+"\n"),l+=u);return p(),l};var a=r(6040),n=r(4014),s=r(3342),i=r(7156),o=r(6242),d=r(8671);function c(e,t,r){return(r?"":" ")+e}},6141:(e,t,r)=>{e.exports=function(e,t,r){var i=n(r),o='"'===i?"Quote":"Apostrophe",d=r.enter("definition"),c=r.enter("label"),l="["+s(r,a(e),{before:"[",after:"]"})+"]: ";c(),!e.url||/[ \t\r\n]/.test(e.url)?(c=r.enter("destinationLiteral"),l+="<"+s(r,e.url,{before:"<",after:">"})+">"):(c=r.enter("destinationRaw"),l+=s(r,e.url,{before:" ",after:" "}));c(),e.title&&(c=r.enter("title"+o),l+=" "+i+s(r,e.title,{before:i,after:i})+i,c());return d(),l};var a=r(6755),n=r(1989),s=r(8671)},6490:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.emphasis||"*"};var a=r(6451),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("emphasis"),o=n(e,r,{before:s,after:s});return i(),s+o+s}},1384:(e,t,r)=>{e.exports=function(e,t,r){var i,o,d,c,l=Math.max(Math.min(6,e.depth||1),1);if(n(e,r))return i=r.enter("headingSetext"),o=r.enter("phrasing"),d=s(e,r,{before:"\n",after:"\n"}),o(),i(),d+"\n"+a(1===l?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));c=a("#",l),i=r.enter("headingAtx"),o=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?c+" "+d:c,r.options.closeAtx&&(d+=" "+c);return o(),i(),d};var a=r(6040),n=r(723),s=r(4046)},3437:e=>{function t(e){return e.value||""}e.exports=t,t.peek=function(){return"<"}},6951:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(6755),n=r(8671);function s(e,t,r){var s,i,o=e.referenceType,d=r.enter("imageReference"),c=r.enter("label"),l=n(r,e.alt,{before:"[",after:"]"}),u="!["+l+"]";return c(),i=r.stack,r.stack=[],c=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),c(),r.stack=i,d(),"full"!==o&&l&&l===s?"shortcut"!==o&&(u+="[]"):u+="["+s+"]",u}},3179:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(1989),n=r(8671);function s(e,t,r){var s=a(r),i='"'===s?"Quote":"Apostrophe",o=r.enter("image"),d=r.enter("label"),c="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+i),c+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),c+=")",o(),c}},6438:(e,t,r)=>{t.blockquote=r(2939),t.break=r(5301),t.code=r(1873),t.definition=r(6141),t.emphasis=r(6490),t.hardBreak=r(5301),t.heading=r(1384),t.html=r(3437),t.image=r(3179),t.imageReference=r(6951),t.inlineCode=r(1951),t.link=r(6296),t.linkReference=r(1220),t.list=r(8948),t.listItem=r(4246),t.paragraph=r(8336),t.root=r(4368),t.strong=r(2855),t.text=r(6847),t.thematicBreak=r(6749)},1951:(e,t,r)=>{e.exports=n,n.peek=function(){return"`"};var a=r(4186);function n(e,t,r){for(var n,s,i,o,d=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(d);)c+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++l{e.exports=i,i.peek=function(){return"["};var a=r(6755),n=r(4046),s=r(8671);function i(e,t,r){var i,o,d=e.referenceType,c=r.enter("linkReference"),l=r.enter("label"),u=n(e,r,{before:"[",after:"]"}),p="["+u+"]";return l(),o=r.stack,r.stack=[],l=r.enter("reference"),i=s(r,a(e),{before:"[",after:"]"}),l(),r.stack=o,c(),"full"!==d&&u&&u===i?"shortcut"!==d&&(p+="[]"):p+="["+i+"]",p}},6296:(e,t,r)=>{e.exports=o,o.peek=function(e,t,r){return n(e,r)?"<":"["};var a=r(1989),n=r(1455),s=r(4046),i=r(8671);function o(e,t,r){var o,d,c,l,u=a(r),p='"'===u?"Quote":"Apostrophe";return n(e,r)?(l=r.stack,r.stack=[],o=r.enter("autolink"),c="<"+s(e,r,{before:"<",after:">"})+">",o(),r.stack=l,c):(o=r.enter("link"),d=r.enter("label"),c="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+i(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=i(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),c+=" "+u+i(r,e.title,{before:u,after:u})+u,d()),c+=")",o(),c)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,c,l,u=n(r),p=s(r);t&&t.ordered&&(u=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=u.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return l=r.enter("listItem"),c=o(i(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?u:u+a(" ",d-u.length))+e})),l(),c};var a=r(6040),n=r(6261),s=r(9972),i=r(9960),o=r(6242)},8948:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("list"),s=a(e,r);return n(),s};var a=r(9960)},8336:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("paragraph"),s=r.enter("phrasing"),i=a(e,r,{before:"\n",after:"\n"});return s(),n(),i};var a=r(4046)},4368:(e,t,r)=>{e.exports=function(e,t,r){return a(e,r)};var a=r(9960)},2855:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.strong||"*"};var a=r(3298),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("strong"),o=n(e,r,{before:s,after:s});return i(),s+s+o+s+s}},6847:(e,t,r)=>{e.exports=function(e,t,r,n){return a(r,e.value,n)};var a=r(8671)},6749:(e,t,r)=>{e.exports=function(e,t,r){var i=a(s(r)+(r.options.ruleSpaces?" ":""),n(r));return r.options.ruleSpaces?i.slice(0,-1):i};var a=r(6040),n=r(3516),s=r(2647)},4127:(e,t,r)=>{e.exports=function(e,t){var r,u=t||{},p={enter:function(e){return p.stack.push(e),t;function t(){p.stack.pop()}},stack:[],unsafe:[],join:[],handlers:{},options:{}};n(p,{unsafe:o,join:i,handlers:s}),n(p,u),p.options.tightDefinitions&&(p.join=[l].concat(p.join));p.handle=a("type",{invalid:d,unknown:c,handlers:p.handlers}),(r=p.handle(e,null,p,{before:"\n",after:"\n"}))&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n");return r};var a=r(5040),n=r(3927),s=r(6438),i=r(1131),o=r(341);function d(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function c(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function l(e,t){if("definition"===e.type&&e.type===t.type)return 0}},1131:(e,t,r)=>{e.exports=[function(e,t,r,s){if("list"===t.type&&t.type===e.type&&Boolean(e.ordered)===Boolean(t.ordered)||"code"===t.type&&a(t,s)&&("list"===e.type||e.type===t.type&&a(e,s)))return!1;if("boolean"===typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&n(t,s)))return;return r.spread?1:0}}];var a=r(3342),n=r(723)},341:e=>{e.exports=[{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]},6755:(e,t,r)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(n,"$1").replace(s,i)};var a=r(8976),n=/\\([!-/:-@[-`{-~])/g,s=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i(e,t){return a(t)||e}},6261:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6451:e=>{e.exports=function(e){var t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}},7156:e=>{e.exports=function(e){var t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}},9972:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},1989:e=>{e.exports=function(e){var t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}},3516:e=>{e.exports=function(e){var 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}},2647:e=>{e.exports=function(e){var t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}},3298:e=>{e.exports=function(e){var t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}},9960:(e,t,r)=>{e.exports=function(e,t){var r,n=e.children||[],s=[],i=-1;for(;++i{e.exports=function(e,t,r){var a,n,s,i=e.children||[],o=[],d=-1,c=r.before;for(;++d0&&("\r"===c||"\n"===c)&&"html"===s.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" "),o.push(t.handle(s,e,t,{before:c,after:a})),c=o[o.length-1].slice(-1);return o.join("")}},3342:e=>{e.exports=function(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}},723:(e,t,r)=>{e.exports=function(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&a(e)};var a=r(6619)},1455:(e,t,r)=>{e.exports=function(e,t){var r=a(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)};var a=r(6619)},6242:e=>{e.exports=function(e,r){var a,n=[],s=0,i=0;for(;a=t.exec(e);)o(e.slice(s,a.index)),n.push(a[0]),s=a.index+a[0].length,i++;return o(e.slice(s)),n.join("");function o(e){n.push(r(e,i,!e))}};var t=/\r?\n|\r/g},4186:e=>{e.exports=function(e){var t,r;e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g"));return e._compiled}},9753:e=>{function t(e,t,r){var a;if(!t)return r;for("string"===typeof t&&(t=[t]),a=-1;++a{e.exports=function(e,t,r){var o,d,c,l,u,p,f,g,h=(r.before||"")+(t||"")+(r.after||""),m=[],y=[],b={},v=-1;for(;++v=g||c+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},5040:e=>{"use strict";e.exports=function(e,a){var n=a||{};function s(a){var n=s.invalid,i=s.handlers;return a&&r.call(a,e)&&(n=r.call(i,a[e])?i[a[e]]:s.unknown),(n||t).apply(this,arguments)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s};var t=Function.prototype,r={}.hasOwnProperty},3521:(e,t,r)=>{"use strict";var a=r(8617),n=r(2155),s=r(4957);e.exports=a().use(n).use(s).freeze()},6157:e=>{"use strict";e.exports=function(e){if(e)throw e}},9580:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},5117:(e,t,r)=>{"use strict";e.exports=function(e,t,r){"string"!==typeof t&&(r=t,t=void 0);return function(e){var t=e||{},r=function(e,t){var r=-1;for(;++r-1&&(L.call(this,e),B.call(this,e))}function U(){g("atHardBreak",!0)}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function G(){var e=this.resume();this.stack[this.stack.length-1].value=e}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function V(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function z(e){this.stack[this.stack.length-2].identifier=i(this.sliceSerialize(e)).toLowerCase()}function K(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,g("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function X(){var e=this.resume();this.stack[this.stack.length-1].title=e}function J(){g("inReference")}function Q(){g("referenceType","collapsed")}function $(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=i(this.sliceSerialize(e)).toLowerCase(),g("referenceType","full")}function Z(e){g("characterReferenceType",e.type)}function ee(e){var t,r,a=this.sliceSerialize(e),n=h("characterReferenceType");n?(t=o(a,"characterReferenceMarkerNumeric"===n?10:16),g("characterReferenceType")):t=u(a),(r=this.stack.pop()).value+=t,r.position.end=m(e.end)}function te(e){B.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function re(e){B.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function ae(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function ue(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function fe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ge(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function me(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}(r)(l(d(r).document().write(c()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),i=r(8419),o=r(7012),d=r(1140),c=r(2961),l=r(1188),u=r(1580),p=r(3215);function f(e,t){var r,a;for(r in t)a=s.call(e,r)?e[r]:e[r]={},"canContainEols"===r||"transforms"===r?e[r]=[].concat(a,t[r]):Object.assign(a,t[r])}},1900:(e,t,r)=>{"use strict";e.exports=r(5117)},439:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var a=r(2726)(/[A-Za-z]/);e.exports=a},9510:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Za-z]/);e.exports=a},5205:(e,t,r)=>{"use strict";var a=r(2726)(/[#-'*+\--9=?A-Z^-~]/);e.exports=a},9116:e=>{"use strict";e.exports=function(e){return e<32||127===e}},9236:(e,t,r)=>{"use strict";var a=r(2726)(/\d/);e.exports=a},9252:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Fa-f]/);e.exports=a},8401:(e,t,r)=>{"use strict";var a=r(2726)(/[!-/:-@[-`{-~]/);e.exports=a},7748:e=>{"use strict";e.exports=function(e){return e<0||32===e}},8581:e=>{"use strict";e.exports=function(e){return e<-2}},773:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},5297:(e,t,r)=>{"use strict";var a=r(4008),n=r(2726)(a);e.exports=n},1976:(e,t,r)=>{"use strict";var a=r(2726)(/\s/);e.exports=a},3175:e=>{"use strict";var t=Object.assign;e.exports=t},9097:e=>{"use strict";var t=String.fromCharCode;e.exports=t},4915:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},4546:e=>{"use strict";e.exports=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},9569:e=>{"use strict";e.exports=["pre","script","style","textarea"]},7322:e=>{"use strict";var t=[].splice;e.exports=t},4008:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},6853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(4435),n=r(7803),s=r(6086),i=r(1825),o=r(7100),d=r(9410),c=r(1446),l=r(2770),u=r(2994),p=r(708),f=r(5256),g=r(841),h=r(5473),m=r(5074),y=r(1135),b=r(2818),v=r(6387),x=r(1847),R=r(6677),E=r(355),T=r(1492),w={42:R,43:R,45:R,48:R,49:R,50:R,51:R,52:R,53:R,54:R,55:R,56:R,57:R,62:i},S={91:p},A={"-2":l,"-1":l,32:l},j={35:g,42:T,45:[E,T],60:h,61:E,95:T,96:c,126:c},_={38:d,92:o},C={"-5":x,"-4":x,"-3":x,33:b,38:d,42:n,60:[s,m],91:v,92:[f,o],93:y,95:n,96:u},k={null:[n,a.resolver]};t.contentInitial=S,t.disable={null:[]},t.document=w,t.flow=j,t.flowInitial=A,t.insideSpan=k,t.string=_,t.text=C},9635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=function(e){var t,r=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,r,"linePrefix")}),(function(t){return e.enter("paragraph"),s(t)}));return r;function s(r){var a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,i(r)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):a(t)?(e.consume(t),e.exit("chunkText"),s):(e.consume(t),i)}};t.tokenize=s},393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=r(1666),i=function(e){var t,r,n,i=this,c=[],l=0,u={tokenize:function(e,a){var n=0;return t={},l;function l(a){return nt;)i.containerState=c[s][1],c[s][0].exit.call(i,e);c.length=t}},o={tokenize:function(e,t,r){return n(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},d={tokenize:function(e,t,r){return n(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=i},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(1372),n=r(7376),s=r(1666),i=function(e){var t=this,r=e.attempt(s,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,i,n(e,e.attempt(this.parser.constructs.flow,i,e.attempt(a,i)),"linePrefix")));return r;function i(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}};t.tokenize=i},4435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(3175),n=r(9380),s=d("text"),i=d("string"),o={resolveAll:c()};function d(e){return{tokenize:function(t){var r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){var t=a[e],n=-1;if(null===e)return!0;if(t)for(;++n{"use strict";var a=r(9635),n=r(393),s=r(7756),i=r(4435),o=r(620),d=r(3674),c=r(1306),l=r(6853);e.exports=function(e){var t={defined:[],constructs:o([l].concat(c((e||{}).extensions))),content:r(a),document:r(n),flow:r(s),string:r(i.string),text:r(i.text)};return t;function r(e){return function(r){return d(t,e,r)}}}},1188:(e,t,r)=>{"use strict";var a=r(6015);e.exports=function(e){for(;!a(e););return e}},2961:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,r=!0,a=1,n="";return function(s,i,o){var d,c,l,u,p,f=[];s=n+s.toString(i),l=0,n="",r&&(65279===s.charCodeAt(0)&&l++,r=void 0);for(;l{"use strict";var a=r(9977),n=r(8857),s=r(6454),i=r(8196),o=r(2870),d=r(9380),c={name:"attention",tokenize:function(e,t){var r,a=s(this.previous);return function(t){return e.enter("attentionSequence"),r=t,n(t)};function n(i){var o,d,c,l;return i===r?(e.consume(i),n):(o=e.exit("attentionSequence"),c=!(d=s(i))||2===d&&a,l=!a||2===a&&d,o._open=42===r?c:c&&(a||!l),o._close=42===r?l:l&&(d||!c),t(i))}},resolveAll:function(e,t){var r,s,c,l,u,p,f,g,h=-1;for(;++h1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:i(d(e[r][1].end),-p),end:d(e[r][1].end)},u={type:p>1?"strongSequence":"emphasisSequence",start:d(e[h][1].start),end:i(d(e[h][1].start),p)},c={type:p>1?"strongText":"emphasisText",start:d(e[r][1].end),end:d(e[h][1].start)},s={type:p>1?"strong":"emphasis",start:d(l.start),end:d(u.end)},e[r][1].end=d(l.start),e[h][1].start=d(u.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=a(f,[["enter",s,t],["enter",l,t],["exit",l,t],["enter",c,t]]),f=a(f,o(t.parser.constructs.insideSpan.null,e.slice(r+1,h),t)),f=a(f,[["exit",c,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[h][1].end.offset-e[h][1].start.offset?(g=2,f=a(f,[["enter",e[h][1],t],["exit",e[h][1],t]])):g=0,n(e,r-1,h-r+3,f),h=r+f.length-g-2;break}h=-1;for(;++h{"use strict";var a=r(5573),n=r(9510),s=r(5205),i=r(9116),o={name:"autolink",tokenize:function(e,t,r){var o=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),d};function d(t){return a(t)?(e.consume(t),c):s(t)?p(t):r(t)}function c(e){return 43===e||45===e||46===e||n(e)?l(e):p(e)}function l(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||n(t))&&o++<32?(e.consume(t),l):p(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),m(t)):32===t||60===t||i(t)?r(t):(e.consume(t),u)}function p(t){return 64===t?(e.consume(t),o=0,f):s(t)?(e.consume(t),p):r(t)}function f(e){return n(e)?g(e):r(e)}function g(t){return 46===t?(e.consume(t),o=0,f):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",m(t)):h(t)}function h(t){return(45===t||n(t))&&o++<63?(e.consume(t),45===t?h:g):r(t)}function m(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=o},1825:(e,t,r)=>{"use strict";var a=r(773),n=r(7376),s={name:"blockQuote",tokenize:function(e,t,r){var n=this;return function(t){if(62===t)return n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),s;return r(t)};function s(r){return a(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return n(e,e.attempt(s,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=s},7100:(e,t,r)=>{"use strict";var a=r(8401),n={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return a(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};e.exports=n},9410:(e,t,r)=>{"use strict";var a=r(1580),n=r(9510),s=r(9236),i=r(9252);function o(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var d=o(a),c={name:"characterReference",tokenize:function(e,t,r){var a,o,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,o=n,f(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=i,f):(e.enter("characterReferenceValue"),a=7,o=s,f(t))}function f(s){var i;return 59===s&&l?(i=e.exit("characterReferenceValue"),o!==n||d.default(c.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&l++{"use strict";var a=r(8581),n=r(7748),s=r(3970),i=r(7376),o={name:"codeFenced",tokenize:function(e,t,r){var o,d=this,c={tokenize:function(e,t,r){var n=0;return i(e,s,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function s(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}function d(t){return t===o?(e.consume(t),n++,d):n{"use strict";var a=r(8581),n=r(8857),s=r(3970),i=r(7376),o={name:"codeIndented",tokenize:function(e,t,r){return e.attempt(d,n,r);function n(r){return null===r?t(r):a(r)?e.attempt(d,n,t)(r):(e.enter("codeFlowValue"),s(r))}function s(t){return null===t||a(t)?(e.exit("codeFlowValue"),n(t)):(e.consume(t),s)}},resolve:function(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return n(e,0,0,[["enter",r,t]]),n(e,e.length,0,[["exit",r,t]]),e}},d={tokenize:function(e,t,r){var n=this;return i(e,(function o(d){if(a(d))return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),i(e,o,"linePrefix",5);return s(n.events,"linePrefix")<4?r(d):t(d)}),"linePrefix",5)},partial:!0};e.exports=o},2994:(e,t,r)=>{"use strict";var a=r(8581),n={name:"codeText",tokenize:function(e,t,r){var n,s,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),d(t))}function d(t){return null===t?r(t):96===t?(s=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),d):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||a(t)?(e.exit("codeTextData"),d(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(s.type="codeTextData",c(r))}},resolve:function(e){var t,r,a=e.length-4,n=3;if(("lineEnding"===e[n][1].type||"space"===e[n][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type))for(t=n;++t{"use strict";var a=r(8581),n=r(3970),s=r(6015),i=r(7376),o={tokenize:function(e,t){var r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?s(t):a(t)?e.check(d,i,s)(t):(e.consume(t),n)}function s(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function i(t){return e.consume(t),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),n}},resolve:function(e){return s(e),e},interruptible:!0,lazy:!0},d={tokenize:function(e,t,r){var s=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,o,"linePrefix")};function o(i){return null===i||a(i)?r(i):s.parser.constructs.disable.null.indexOf("codeIndented")>-1||n(s.events,"linePrefix")<4?e.interrupt(s.parser.constructs.flow,r,t)(i):t(i)}},partial:!0};e.exports=o},708:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(8419),i=r(4006),o=r(8340),d=r(7376),c=r(6185),l=r(4668),u={name:"definition",tokenize:function(e,t,r){var n,l=this;return function(t){return e.enter("definition"),o.call(l,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function u(t){return n=s(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,i(e,e.attempt(p,d(e,f,"whitespace"),d(e,f,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function f(s){return null===s||a(s)?(e.exit("definition"),l.parser.defined.indexOf(n)<0&&l.parser.defined.push(n),t(s)):r(s)}}},p={tokenize:function(e,t,r){return function(t){return n(t)?c(e,s)(t):r(t)};function s(t){return 34===t||39===t||40===t?l(e,d(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||a(e)?t(e):r(e)}},partial:!0};e.exports=u},4006:(e,t,r)=>{"use strict";var a=r(9116),n=r(7748),s=r(8581);e.exports=function(e,t,r,i,o,d,c,l,u){var p=u||1/0,f=0;return function(t){if(60===t)return e.enter(i),e.enter(o),e.enter(d),e.consume(t),e.exit(d),g;if(a(t)||41===t)return r(t);return e.enter(i),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(t)};function g(r){return 62===r?(e.enter(d),e.consume(r),e.exit(d),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(l),g(t)):null===t||60===t||s(t)?r(t):(e.consume(t),92===t?m:h)}function m(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function y(s){return 40===s?++f>p?r(s):(e.consume(s),y):41===s?f--?(e.consume(s),y):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):null===s||n(s)?f?r(s):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):a(s)?r(s):(e.consume(s),92===s?b:y)}function b(t){return 40===t||41===t||92===t?(e.consume(t),y):y(t)}}},8340:(e,t,r)=>{"use strict";var a=r(8581),n=r(773);e.exports=function(e,t,r,s,i,o){var d,c=this,l=0;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(n){return null===n||91===n||93===n&&!d||94===n&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?r(n):93===n?(e.exit(o),e.enter(i),e.consume(n),e.exit(i),e.exit(s),t):a(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return null===t||91===t||93===t||a(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),d=d||!n(t),92===t?f:p)}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,p):p(t)}}},7376:(e,t,r)=>{"use strict";var a=r(773);e.exports=function(e,t,r,n){var s=n?n-1:1/0,i=0;return function(n){if(a(n))return e.enter(r),o(n);return t(n)};function o(n){return a(n)&&i++{"use strict";var a=r(8581),n=r(7376);e.exports=function(e,t,r,s,i,o){var d;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),d=40===t?41:t,c};function c(r){return r===d?(e.enter(i),e.consume(r),e.exit(i),e.exit(s),t):(e.enter(o),l(r))}function l(t){return t===d?(e.exit(o),c(d)):null===t?r(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===d||null===t||a(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:u)}function p(t){return t===d||92===t?(e.consume(t),u):u(t)}}},6185:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376);e.exports=function(e,t){var r;return function i(o){if(a(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i;if(n(o))return s(e,i,r?"linePrefix":"lineSuffix")(o);return t(o)}}},5256:(e,t,r)=>{"use strict";var a=r(8581),n={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return a(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};e.exports=n},841:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(773),i=r(8857),o=r(7376),d={name:"headingAtx",tokenize:function(e,t,r){var i=this,d=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(a){return 35===a&&d++<6?(e.consume(a),c):null===a||n(a)?(e.exit("atxHeadingSequence"),i.interrupt?t(a):l(a)):r(a)}function l(r){return 35===r?(e.enter("atxHeadingSequence"),u(r)):null===r||a(r)?(e.exit("atxHeading"),t(r)):s(r)?o(e,l,"whitespace")(r):(e.enter("atxHeadingText"),p(r))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),l(t))}function p(t){return null===t||35===t||n(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),p)}},resolve:function(e,t){var r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},i(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e}};e.exports=d},5473:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(9097),c=r(4546),l=r(9569),u=r(1666),p={name:"htmlFlow",tokenize:function(e,t,r){var u,p,g,h,m,y=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),b};function b(n){return 33===n?(e.consume(n),v):47===n?(e.consume(n),E):63===n?(e.consume(n),u=3,y.interrupt?t:G):a(n)?(e.consume(n),g=d(n),p=!0,T):r(n)}function v(n){return 45===n?(e.consume(n),u=2,x):91===n?(e.consume(n),u=5,g="CDATA[",h=0,R):a(n)?(e.consume(n),u=4,y.interrupt?t:G):r(n)}function x(a){return 45===a?(e.consume(a),y.interrupt?t:G):r(a)}function R(a){return a===g.charCodeAt(h++)?(e.consume(a),h===g.length?y.interrupt?t:O:R):r(a)}function E(t){return a(t)?(e.consume(t),g=d(t),T):r(t)}function T(a){return null===a||47===a||62===a||i(a)?47!==a&&p&&l.indexOf(g.toLowerCase())>-1?(u=1,y.interrupt?t(a):O(a)):c.indexOf(g.toLowerCase())>-1?(u=6,47===a?(e.consume(a),w):y.interrupt?t(a):O(a)):(u=7,y.interrupt?r(a):p?A(a):S(a)):45===a||n(a)?(e.consume(a),g+=d(a),T):r(a)}function w(a){return 62===a?(e.consume(a),y.interrupt?t:O):r(a)}function S(t){return o(t)?(e.consume(t),S):D(t)}function A(t){return 47===t?(e.consume(t),D):58===t||95===t||a(t)?(e.consume(t),j):o(t)?(e.consume(t),A):D(t)}function j(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),j):_(t)}function _(t){return 61===t?(e.consume(t),C):o(t)?(e.consume(t),_):A(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),m=t,k):o(t)?(e.consume(t),C):(m=void 0,P(t))}function k(t){return t===m?(e.consume(t),I):null===t||s(t)?r(t):(e.consume(t),k)}function P(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||i(t)?_(t):(e.consume(t),P)}function I(e){return 47===e||62===e||o(e)?A(e):r(e)}function D(t){return 62===t?(e.consume(t),N):r(t)}function N(t){return o(t)?(e.consume(t),N):null===t||s(t)?O(t):r(t)}function O(t){return 45===t&&2===u?(e.consume(t),B):60===t&&1===u?(e.consume(t),M):62===t&&4===u?(e.consume(t),q):63===t&&3===u?(e.consume(t),G):93===t&&5===u?(e.consume(t),H):!s(t)||6!==u&&7!==u?null===t||s(t)?F(t):(e.consume(t),O):e.check(f,q,F)(t)}function F(t){return e.exit("htmlFlowData"),L(t)}function L(t){return null===t?W(t):s(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L):(e.enter("htmlFlowData"),O(t))}function B(t){return 45===t?(e.consume(t),G):O(t)}function M(t){return 47===t?(e.consume(t),g="",U):O(t)}function U(t){return 62===t&&l.indexOf(g.toLowerCase())>-1?(e.consume(t),q):a(t)&&g.length<8?(e.consume(t),g+=d(t),U):O(t)}function H(t){return 93===t?(e.consume(t),G):O(t)}function G(t){return 62===t?(e.consume(t),q):O(t)}function q(t){return null===t||s(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),q)}function W(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},f={tokenize:function(e,t,r){return function(a){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),e.attempt(u,t,r)}},partial:!0};e.exports=p},5074:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(7376),c={name:"htmlText",tokenize:function(e,t,r){var c,l,u,p,f=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),g};function g(t){return 33===t?(e.consume(t),h):47===t?(e.consume(t),_):63===t?(e.consume(t),A):a(t)?(e.consume(t),P):r(t)}function h(t){return 45===t?(e.consume(t),m):91===t?(e.consume(t),l="CDATA[",u=0,R):a(t)?(e.consume(t),S):r(t)}function m(t){return 45===t?(e.consume(t),y):r(t)}function y(t){return null===t||62===t?r(t):45===t?(e.consume(t),b):v(t)}function b(e){return null===e||62===e?r(e):v(e)}function v(t){return null===t?r(t):45===t?(e.consume(t),x):s(t)?(p=v,M(t)):(e.consume(t),v)}function x(t){return 45===t?(e.consume(t),H):v(t)}function R(t){return t===l.charCodeAt(u++)?(e.consume(t),u===l.length?E:R):r(t)}function E(t){return null===t?r(t):93===t?(e.consume(t),T):s(t)?(p=E,M(t)):(e.consume(t),E)}function T(t){return 93===t?(e.consume(t),w):E(t)}function w(t){return 62===t?H(t):93===t?(e.consume(t),w):E(t)}function S(t){return null===t||62===t?H(t):s(t)?(p=S,M(t)):(e.consume(t),S)}function A(t){return null===t?r(t):63===t?(e.consume(t),j):s(t)?(p=A,M(t)):(e.consume(t),A)}function j(e){return 62===e?H(e):A(e)}function _(t){return a(t)?(e.consume(t),C):r(t)}function C(t){return 45===t||n(t)?(e.consume(t),C):k(t)}function k(t){return s(t)?(p=k,M(t)):o(t)?(e.consume(t),k):H(t)}function P(t){return 45===t||n(t)?(e.consume(t),P):47===t||62===t||i(t)?I(t):r(t)}function I(t){return 47===t?(e.consume(t),H):58===t||95===t||a(t)?(e.consume(t),D):s(t)?(p=I,M(t)):o(t)?(e.consume(t),I):H(t)}function D(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),D):N(t)}function N(t){return 61===t?(e.consume(t),O):s(t)?(p=N,M(t)):o(t)?(e.consume(t),N):I(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,F):s(t)?(p=O,M(t)):o(t)?(e.consume(t),O):(e.consume(t),c=void 0,B)}function F(t){return t===c?(e.consume(t),L):null===t?r(t):s(t)?(p=F,M(t)):(e.consume(t),F)}function L(e){return 62===e||47===e||i(e)?I(e):r(e)}function B(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||i(t)?I(t):(e.consume(t),B)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d(e,U,"linePrefix",f.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function U(t){return e.enter("htmlTextData"),p(t)}function H(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):r(a)}}};e.exports=c},1135:(e,t,r)=>{"use strict";var a=r(7748),n=r(9977),s=r(8857),i=r(8419),o=r(2870),d=r(9380),c=r(4006),l=r(8340),u=r(4668),p=r(6185),f={name:"labelEnd",tokenize:function(e,t,r){var a,n,s=this,o=s.events.length;for(;o--;)if(("labelImage"===s.events[o][1].type||"labelLink"===s.events[o][1].type)&&!s.events[o][1]._balanced){a=s.events[o][1];break}return function(t){if(!a)return r(t);return a._inactive?c(t):(n=s.parser.defined.indexOf(i(s.sliceSerialize({start:a.end,end:s.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),d)};function d(r){return 40===r?e.attempt(g,t,n?t:c)(r):91===r?e.attempt(h,t,n?e.attempt(m,t,c):c)(r):n?t(r):c(r)}function c(e){return a._balanced=!0,r(e)}},resolveTo:function(e,t){var r,a,i,c,l,u,p,f=e.length,g=0;for(;f--;)if(c=e[f][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[f][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(u){if("enter"===e[f][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=f,"labelLink"!==c.type)){g=2;break}}else"labelEnd"===c.type&&(u=f);return r={type:"labelLink"===e[l][1].type?"link":"image",start:d(e[l][1].start),end:d(e[e.length-1][1].end)},a={type:"label",start:d(e[l][1].start),end:d(e[u][1].end)},i={type:"labelText",start:d(e[l+g+2][1].end),end:d(e[u-2][1].start)},p=n(p=[["enter",r,t],["enter",a,t]],e.slice(l+1,l+g+3)),p=n(p,[["enter",i,t]]),p=n(p,o(t.parser.constructs.insideSpan.null,e.slice(l+g+4,u-3),t)),p=n(p,[["exit",i,t],e[u-2],e[u-1],["exit",a,t]]),p=n(p,e.slice(u+1)),p=n(p,[["exit",r,t]]),s(e,l,e.length,p),e},resolveAll:function(e){var t,r=-1;for(;++r{"use strict";var a={name:"labelStartImage",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),n};function n(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):r(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},6387:(e,t,r)=>{"use strict";var a={name:"labelStartLink",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),n};function n(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},1847:(e,t,r)=>{"use strict";var a=r(7376),n={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a(e,t,"linePrefix")}}};e.exports=n},6677:(e,t,r)=>{"use strict";var a=r(9236),n=r(773),s=r(3970),i=r(2078),o=r(7376),d=r(1666),c=r(1492),l={name:"list",tokenize:function(e,t,r){var o=this,l=s(o.events,"linePrefix"),p=0;return function(t){var n=o.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!o.containerState.marker||t===o.containerState.marker:a(t)){if(o.containerState.type||(o.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,r,g)(t):g(t);if(!o.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return a(t)&&++p<10?(e.consume(t),f):(!o.interrupt||p<2)&&(o.containerState.marker?t===o.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),g(t)):r(t)}function g(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||t,e.check(d,o.interrupt?r:h,e.attempt(u,y,m))}function h(e){return o.containerState.initialBlankLine=!0,l++,y(e)}function m(t){return n(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),y):r(t)}function y(r){return o.containerState.size=l+i(o.sliceStream(e.exit("listItemPrefix"))),t(r)}},continuation:{tokenize:function(e,t,r){var a=this;return a.containerState._closeFlow=void 0,e.check(d,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,o(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!n(r))return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,s(r);return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,e.attempt(p,t,s)(r)}));function s(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,o(e,e.attempt(l,t,r),"linePrefix",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},u={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return n(e)||!s(a.events,"listItemPrefixWhitespace")?r(e):t(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return s(a.events,"listItemIndent")===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)},partial:!0};e.exports=l},1666:(e,t,r)=>{"use strict";var a=r(8581),n=r(7376),s={tokenize:function(e,t,r){return n(e,(function(e){return null===e||a(e)?t(e):r(e)}),"linePrefix")},partial:!0};e.exports=s},355:(e,t,r)=>{"use strict";var a=r(8581),n=r(9380),s=r(7376),i={name:"setextUnderline",tokenize:function(e,t,r){var n,i,o=this,d=o.events.length;for(;d--;)if("lineEnding"!==o.events[d][1].type&&"linePrefix"!==o.events[d][1].type&&"content"!==o.events[d][1].type){i="paragraph"===o.events[d][1].type;break}return function(t){if(!o.lazy&&(o.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),n=t,c(t);return r(t)};function c(t){return t===n?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),s(e,l,"lineSuffix")(t))}function l(n){return null===n||a(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){var r,a,s,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(a=o)}else"content"===e[o][1].type&&e.splice(o,1),s||"definition"!==e[o][1].type||(s=o);i={type:"setextHeading",start:n(e[a][1].start),end:n(e[e.length-1][1].end)},e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=n(e[s][1].end)):e[r][1]=i;return e.push(["exit",i,t]),e}};e.exports=i},1492:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376),i={name:"thematicBreak",tokenize:function(e,t,r){var i,o=0;return function(t){return e.enter("thematicBreak"),i=t,d(t)};function d(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):n(l)?s(e,d,"whitespace")(l):o<3||null!==l&&!a(l)?r(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===i?(e.consume(t),o++,c):(e.exit("thematicBreakSequence"),d(t))}}};e.exports=i},9977:(e,t,r)=>{"use strict";var a=r(8857);e.exports=function(e,t){return e.length?(a(e,e.length,0,t),e):t}},8857:(e,t,r)=>{"use strict";var a=r(7322);e.exports=function(e,t,r,n){var s,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)(s=Array.from(n)).unshift(t,r),a.apply(e,s);else for(r&&a.apply(e,[t,r]);o{"use strict";var a=r(7748),n=r(5297),s=r(1976);e.exports=function(e){return null===e||a(e)||s(e)?1:n(e)?2:void 0}},620:(e,t,r)=>{"use strict";var a=r(4915),n=r(8857),s=r(1306);function i(e,t){var r,n,i,d;for(r in t)for(d in n=a.call(e,r)?e[r]:e[r]={},i=t[r])n[d]=o(s(i[d]),a.call(n,d)?n[d]:[])}function o(e,t){for(var r=-1,a=[];++r{"use strict";var a=r(3175),n=r(8581),s=r(9977),i=r(8857),o=r(1306),d=r(2870),c=r(2773),l=r(9380),u=r(8645);e.exports=function(e,t,r){var p=r?l(r):{line:1,column:1,offset:0},f={},g=[],h=[],m=[],y={consume:function(e){n(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,j()):-1!==e&&(p.column++,p.offset++);p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===h[p._index].length&&(p._bufferIndex=-1,p._index++));b.previous=e},enter:function(e,t){var r=t||{};return r.type=e,r.start=R(),b.events.push(["enter",r,b]),m.push(r),r},exit:function(e){var t=m.pop();return t.end=R(),b.events.push(["exit",t,b]),t},attempt:S((function(e,t){A(e,t.from)})),check:S(w),interrupt:S(w,{interrupt:!0}),lazy:S(w,{lazy:!0})},b={previous:null,events:[],parser:e,sliceStream:x,sliceSerialize:function(e){return c(x(e))},now:R,defineSkip:function(e){f[e.line]=e.column,j()},write:function(e){if(h=s(h,e),E(),null!==h[h.length-1])return[];return A(t,0),b.events=d(g,b.events,b),b.events}},v=t.tokenize.call(b,y);return t.resolveAll&&g.push(t),p._index=0,p._bufferIndex=-1,b;function x(e){return u(h,e)}function R(){return l(p)}function E(){for(var e,t;p._index-1)return h();return e.tokenize.call(t?a({},b,t):b,y,g,h)(r)}}function g(t){return e(c,l),n}function h(e){return l.restore(),++d{"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},8196:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},8419:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},3970:(e,t,r)=>{"use strict";var a=r(2078);e.exports=function(e,t){var r=e[e.length-1];return r&&r[1].type===t?a(r[2].sliceStream(r[1])):0}},2726:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){return function(t){return e.test(a(t))}}},2870:e=>{"use strict";e.exports=function(e,t,r){for(var a,n=[],s=-1;++s{"use strict";var a=r(9097);e.exports=function(e,t){var r=parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":a(r)}},2773:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){for(var t,r,n,s=-1,i=[];++s{"use strict";var a=r(3175);e.exports=function(e){return a({},e)}},2078:e=>{"use strict";e.exports=function(e){for(var t=-1,r=0;++t{"use strict";e.exports=function(e,t){var r,a=t.start._index,n=t.start._bufferIndex,s=t.end._index,i=t.end._bufferIndex;return a===s?r=[e[a].slice(n,i)]:(r=e.slice(a,s),n>-1&&(r[0]=r[0].slice(n)),i>0&&r.push(e[s].slice(0,i))),r}},6015:(e,t,r)=>{"use strict";var a=r(3175),n=r(8857),s=r(9380);function i(e,t){for(var r,a,s,i,o,d,c=e[t][1],l=e[t][2],u=t-1,p=[],f=c._tokenizer||l.parser[c.contentType](c.start),g=f.events,h=[],m={};c;){for(;e[++u][1]!==c;);p.push(u),c._tokenizer||(r=l.sliceStream(c),c.next||r.push(null),a&&f.defineSkip(c.start),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(r),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),a=c,c=c.next}for(c=a,s=g.length;s--;)"enter"===g[s][0]?i=!0:i&&g[s][1].type===g[s-1][1].type&&g[s][1].start.line!==g[s][1].end.line&&(y(g.slice(s+1,o)),c._tokenizer=c.next=void 0,c=c.previous,o=s+1);for(f.events=c._tokenizer=c.next=void 0,y(g.slice(0,o)),s=-1,d=0;++s{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},2155:(e,t,r)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var a=r(1900)},8952:(e,t,r)=>{"use strict";var a=r(7222);e.exports=s,s.wrap=a;var n=[].slice;function s(){var e=[],t={run:function(){var t=-1,r=n.call(arguments,0,-1),s=arguments[arguments.length-1];if("function"!==typeof s)throw new Error("Expected function as last argument, not "+s);(function i(o){var d=e[++t],c=n.call(arguments,0).slice(1),l=r.length,u=-1;if(o)s(o);else{for(;++u{"use strict";var t=[].slice;e.exports=function(e,r){var a;return function(){var r,i=t.call(arguments,0),o=e.length>i.length;o&&i.push(n);try{r=e.apply(null,i)}catch(d){if(o&&a)throw d;return n(d)}o||(r&&"function"===typeof r.then?r.then(s,n):r instanceof Error?n(r):s(r))};function n(){a||(a=!0,r.apply(null,arguments))}function s(e){n(null,e)}}},8617:(e,t,r)=>{"use strict";var a=r(6157),n=r(3670),s=r(1761),i=r(9580),o=r(8952),d=r(2063);e.exports=function e(){var t,r=[],n=o(),b={},v=-1;return x.data=function(e,r){if("string"===typeof e)return 2===arguments.length?(h("data",t),b[e]=r,x):l.call(b,e)&&b[e]||null;if(e)return h("data",t),b=e,x;return b},x.freeze=R,x.attachers=r,x.use=function(e){var a;if(h("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?d(e):n(e)}a&&(b.settings=s(b.settings||{},a));return x;function n(e){d(e.plugins),e.settings&&(a=s(a||{},e.settings))}function o(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):n(e)}}function d(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{"use strict";var t={}.hasOwnProperty;function r(e){return e&&"object"===typeof e||(e={}),n(e.line)+":"+n(e.column)}function a(e){return e&&"object"===typeof e||(e={}),r(e.start)+"-"+r(e.end)}function n(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return a(e.position);if(t.call(e,"start")||t.call(e,"end"))return a(e);if(t.call(e,"line")||t.call(e,"column"))return r(e);return""}},4449:(e,t,r)=>{"use strict";var a=r(3215);function n(){}e.exports=i,n.prototype=Error.prototype,i.prototype=new n;var s=i.prototype;function i(e,t,r){var n,s,i;"string"===typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),s=a(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=s,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},2063:(e,t,r)=>{"use strict";e.exports=r(207)},2088:(e,t,r)=>{"use strict";var a=r(7986),n=r(5657),s=r(3670);e.exports=d;var i={}.hasOwnProperty,o=["history","path","basename","stem","extname","dirname"];function d(e){var t,r;if(e){if("string"===typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof d))return new d(e);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),r=-1;++r-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+a.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}d.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(d.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(d.prototype,"dirname",{get:function(){return"string"===typeof this.path?a.dirname(this.path):void 0},set:function(e){u(this.path,"dirname"),this.path=a.join(e||"",this.basename)}}),Object.defineProperty(d.prototype,"basename",{get:function(){return"string"===typeof this.path?a.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=a.join(this.dirname||"",e)}}),Object.defineProperty(d.prototype,"extname",{get:function(){return"string"===typeof this.path?a.extname(this.path):void 0},set:function(e){if(c(e,"extname"),u(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(d.prototype,"stem",{get:function(){return"string"===typeof this.path?a.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=a.join(this.dirname||"",e+(this.extname||""))}})},207:(e,t,r)=>{"use strict";var a=r(4449),n=r(2088);e.exports=n,n.prototype.message=function(e,t,r){var n=new a(e,t,r);this.path&&(n.name=this.path+":"+n.name,n.file=this.path);return n.fatal=!1,this.messages.push(n),n},n.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},n.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7986:(e,t)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var a,n,s,i,o=0,d=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),a=e.length,void 0===t||!t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else d<0&&(s=!0,d=a+1);return d<0?"":e.slice(o,d)}if(t===e)return"";n=-1,i=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else n<0&&(s=!0,n=a+1),i>-1&&(e.charCodeAt(a)===t.charCodeAt(i--)?i<0&&(d=a):(i=-1,d=n));o===d?d=n:d<0&&(d=e.length);return e.slice(o,d)},t.dirname=function(e){var t,a,n;if(r(e),!e.length)return".";t=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(a){t=n;break}}else a||(a=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,a,n,s=-1,i=0,o=-1,d=0;r(e),n=e.length;for(;n--;)if(47!==(a=e.charCodeAt(n)))o<0&&(t=!0,o=n+1),46===a?s<0?s=n:1!==d&&(d=1):s>-1&&(d=-1);else if(t){i=n+1;break}if(s<0||o<0||0===d||1===d&&s===o-1&&s===i+1)return"";return e.slice(s,o)},t.join=function(){var e,t=-1;for(;++t2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",s=0):s=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),i=d,o=0;continue}}else if(n.length){n="",s=0,i=d,o=0;continue}t&&(n=n.length?n+"/..":"..",s=2)}else n.length?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t),a.length||t||(a=".");a.length&&47===e.charCodeAt(e.length-1)&&(a+="/");return t?"/"+a:a}(e)},t.sep="/"},5657:(e,t)=>{"use strict";t.cwd=function(){return"/"}},6040:e=>{"use strict";var t,r="";e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("expected a string");if(1===a)return e;if(2===a)return e+e;var n=e.length*a;if(t!==e||"undefined"===typeof t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&a>1;)1&a&&(r+=e),a>>=1,e+=e;return r=(r+=e).substr(0,n)}},1581:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(2524));t.default=function(e,t){var r=null;if(!e||"string"!==typeof e)return r;var a=(0,n.default)(e),s="function"===typeof t;return a.forEach((function(e){if("declaration"===e.type){var a=e.property,n=e.value;s?t(a,n,e):n&&((r=r||{})[a]=n)}})),r}},3132:function(e,t,r){!function(e){"use strict";var t=Object.freeze({__proto__:null,get DEFAULT_EXTENSIONS(){return L6},get File(){return eX},get buildExternalHelpers(){return AX},get createConfigItem(){return j2},get createConfigItemAsync(){return S2},get createConfigItemSync(){return A2},get getEnv(){return qX},get loadOptions(){return T2},get loadOptionsAsync(){return R2},get loadOptionsSync(){return E2},get loadPartialConfig(){return b2},get loadPartialConfigAsync(){return m2},get loadPartialConfigSync(){return y2},get parse(){return D6},get parseAsync(){return O6},get parseSync(){return N6},get resolvePlugin(){return MX},get resolvePreset(){return UX},get template(){return WS},get tokTypes(){return Ew},get transform(){return E6},get transformAsync(){return w6},get transformFile(){return S6},get transformFileAsync(){return j6},get transformFileSync(){return A6},get transformFromAst(){return C6},get transformFromAstAsync(){return P6},get transformFromAstSync(){return k6},get transformSync(){return T6},get traverse(){return DW},get types(){return Qx},get version(){return F6}});function a(e,t,r){if(n())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var s=new(e.bind.apply(e,a));return r&&h(s,r.prototype),s}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}function s(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,s,i,o=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(o.push(a.value),o.length!==t);d=!0);}catch(e){c=!0,n=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return o}}function i(){i=function(){return t};var e,t={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,a){var s=t&&t.prototype instanceof b?t:b,i=Object.create(s.prototype),o=new P(a||[]);return n(i,"_invoke",{value:j(e,r,o)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",g="suspendedYield",h="executing",m="completed",y={};function b(){}function v(){}function x(){}var R={};l(R,o,(function(){return this}));var E=Object.getPrototypeOf,T=E&&E(E(I([])));T&&T!==r&&a.call(T,o)&&(R=T);var w=x.prototype=b.prototype=Object.create(R);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(n,s,i,o){var d=p(e[n],e,s);if("throw"!==d.type){var c=d.arg,l=c.value;return l&&"object"==typeof l&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,i,o)}),(function(e){r("throw",e,i,o)})):t.resolve(l).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,o)}))}o(d.arg)}var s;n(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,n){r(e,a,t,n)}))}return s=s?s.then(n,n):n()}})}function j(t,r,a){var n=f;return function(s,i){if(n===h)throw Error("Generator is already running");if(n===m){if("throw"===s)throw i;return{value:e,done:!0}}for(a.method=s,a.arg=i;;){var o=a.delegate;if(o){var d=_(o,a);if(d){if(d===y)continue;return d}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===f)throw n=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=h;var c=p(t,r,a);if("normal"===c.type){if(n=a.done?m:g,c.arg===y)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n=m,a.method="throw",a.arg=c.arg)}}}function _(t,r){var a=r.method,n=t.iterator[a];if(n===e)return r.delegate=null,"throw"===a&&t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var s=p(n,t.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,y;var i=s.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,s=function r(){for(;++n=0;--s){var i=this.tryEntries[s],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var d=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(d&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;k(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:I(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function o(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){var t=o(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t,r,a,n,s,i){try{var o=e[s](i),d=o.value}catch(nQ){return void r(nQ)}o.done?t(d):Promise.resolve(d).then(a,n)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var s=e.apply(t,r);function i(e){c(s,a,n,i,o,"next",e)}function o(e){c(s,a,n,i,o,"throw",e)}i(void 0)}))}}function u(e,t){for(var r=0;r=0||(n[r]=e[r]);return n}function v(e,t){if(null==e)return{};var r,a,n=b(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x(e,t){return t||(t=e.slice(0)),e.raw=t,e}function R(e,t){return w(e)||s(e,t)||A(e,t)||C()}function E(e){return T(e)||S(e)||A(e)||_()}function T(e){if(Array.isArray(e))return j(e)}function w(e){if(Array.isArray(e))return e}function S(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function A(e,t){if(e){if("string"===typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){for(var r=0,a=Object.keys(t);rn.length)return!1;for(var i=0,o=s.length-1;i1)for(var r=1;re)return!1;if((r+=t[a+1])>=e)return!0}return!1}function wi(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&vi.test(String.fromCharCode(e)):Ti(e,Ri)))}function Si(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&xi.test(String.fromCharCode(e)):Ti(e,Ri)||Ti(e,Ei))))}function Ai(e){for(var t=!0,r=0;r=48&&e<=57},Bi={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Mi={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function Ui(e,t,r,a,n,s){for(var i=r,o=a,d=n,c="",l=null,u=r,p=t.length;;){if(r>=p){s.unterminated(i,o,d),c+=t.slice(u,r);break}var f=t.charCodeAt(r);if(Hi(e,f,t,r)){c+=t.slice(u,r);break}if(92===f){c+=t.slice(u,r);var g=Gi(t,r,a,n,"template"===e,s);null!==g.ch||l?c+=g.ch:l={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,u=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(c+=t.slice(u,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,u=a=r):s.unterminated(i,o,d):++r}return{pos:r,str:c,firstInvalidLoc:l,lineStart:a,curLine:n,containsInvalid:!!l}}function Hi(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function Gi(e,t,r,a,n,s){var i=!n;t++;var o=function(e){return{pos:t,ch:e,lineStart:r,curLine:a}},d=e.charCodeAt(t++);switch(d){case 110:return o("\n");case 114:return o("\r");case 120:var c,l=qi(e,t,r,a,2,!1,i,s);return c=l.code,t=l.pos,o(null===c?null:String.fromCharCode(c));case 117:var u,p=Vi(e,t,r,a,i,s);return u=p.code,t=p.pos,o(null===u?null:String.fromCodePoint(u));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++a;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,a);default:if(d>=48&&d<=55){var f=t-1,g=e.slice(f,t+2).match(/^[0-7]+/)[0],h=parseInt(g,8);h>255&&(g=g.slice(0,-1),h=parseInt(g,8)),t+=g.length-1;var m=e.charCodeAt(t);if("0"!==g||56===m||57===m){if(n)return o(null);s.strictNumericEscape(f,r,a)}return o(String.fromCharCode(h))}return o(String.fromCharCode(d))}}function qi(e,t,r,a,n,s,i,o){var d,c=t,l=Wi(e,t,r,a,16,n,s,!1,o,!i);return d=l.n,t=l.pos,null===d&&(i?o.invalidEscapeSequence(c,r,a):t=c-1),{code:d,pos:t}}function Wi(e,t,r,a,n,s,i,o,d,c){for(var l=t,u=16===n?Bi.hex:Bi.decBinOct,p=16===n?Mi.hex:10===n?Mi.dec:8===n?Mi.oct:Mi.bin,f=!1,g=0,h=0,m=null==s?1/0:s;h=97?y-97+10:y>=65?y-65+10:Li(y)?y-48:1/0)>=n){if(b<=9&&c)return{n:null,pos:t};if(b<=9&&d.invalidDigit(t,r,a,n))b=0;else{if(!i)break;b=0,f=!0}}++t,g=g*n+b}else{var v=e.charCodeAt(t-1),x=e.charCodeAt(t+1);if(o){if(Number.isNaN(x)||!p(x)||u.has(v)||u.has(x)){if(c)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(c)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===l||null!=s&&t-l!==s||f?{n:null,pos:t}:{n:g,pos:t}}function Vi(e,t,r,a,n,s){var i;if(123===e.charCodeAt(t)){var o=qi(e,++t,r,a,e.indexOf("}",t)-t,!0,n,s);if(i=o.code,t=o.pos,++t,null!==i&&i>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,a)}}else{var d=qi(e,t,r,a,4,!1,n,s);i=d.code,t=d.pos}return{code:i,pos:t}}var zi=["consequent","body","alternate"],Ki=["body","expressions"],Yi=["left","init"],Xi=["leadingComments","trailingComments","innerComments"],Ji=["||","&&","??"],Qi=["++","--"],$i=[">","<",">=","<="],Zi=["==","===","!=","!=="],eo=[].concat(Zi,["in","instanceof"]),to=[].concat(E(eo),$i),ro=["-","/","%","*","**","&","|",">>",">>>","<<","^"],ao=["+"].concat(ro,E(to),["|>"]),no=["=","+="].concat(E(ro.map((function(e){return e+"="}))),E(Ji.map((function(e){return e+"="})))),so=["delete","!"],io=["+","-","~"],oo=["typeof"],co=["void","throw"].concat(so,io,oo),lo={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},uo=Symbol.for("var used to be block scoped"),po=Symbol.for("should not be considered a local binding"),fo={},go={},ho={},mo={},yo={},bo={},vo={};function xo(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function Ro(e){return{validate:e}}function Eo(e){return"string"===typeof e?Po(e):Po.apply(void 0,E(e))}function To(e){return Ro(Eo(e))}function wo(e){return{validate:e,optional:!0}}function So(e){return{validate:Eo(e),optional:!0}}function Ao(e){return Fo(Do("array"),Co(e))}function jo(e){return Ao(Eo(e))}function _o(e){return Ro(jo(e))}function Co(e){function t(t,r,a){if(Array.isArray(a))for(var n=0;n=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return a}var Lo=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],Bo=["default","optional","deprecated","validate"],Mo={};function Uo(){for(var e=arguments.length,t=new Array(e),r=0;r0:d&&"object"===typeof d)throw new Error("field defaults can only be primitives or empty arrays currently");a[i]={default:Array.isArray(d)?[]:d,optional:o.optional,deprecated:o.deprecated,validate:o.validate}}for(var c=t.visitor||r.visitor||[],l=t.aliases||r.aliases||[],u=t.builder||r.builder||t.visitor||[],p=0,f=Object.keys(t);p+s+1)throw new TypeError("RestElement must be last element of "+n)}}}),Go("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Po("Expression"),optional:!0}}}),Go("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:Fo(Do("array"),Co(Po("Expression")))}},aliases:["Expression"]}),Go("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:Po("Expression")}}}),Go("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:Po("Expression"),optional:!0},consequent:{validate:Fo(Do("array"),Co(Po("Statement")))}}}),Go("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:Po("Expression")},cases:{validate:Fo(Do("array"),Co(Po("SwitchCase")))}}}),Go("ThisExpression",{aliases:["Expression"]}),Go("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Po("Expression")}}}),Go("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:Fo(Po("BlockStatement"),Object.assign((function(e){if(di.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:Po("CatchClause")},finalizer:{optional:!0,validate:Po("BlockStatement")}}}),Go("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:Po("Expression")},operator:{validate:ko.apply(void 0,E(co))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Go("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:di.env.BABEL_TYPES_8_BREAKING?Po("Identifier","MemberExpression"):Po("Expression")},operator:{validate:ko.apply(void 0,E(Qi))}},visitor:["argument"],aliases:["Expression"]}),Go("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Do("boolean"),optional:!0},kind:{validate:ko("var","let","const","using","await using")},declarations:{validate:Fo(Do("array"),Co(Po("VariableDeclarator")))}},validate:function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&mi("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+e.type)}}),Go("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!di.env.BABEL_TYPES_8_BREAKING)return Po("LVal");var e=Po("Identifier","ArrayPattern","ObjectPattern"),t=Po("Identifier");return function(r,a,n){(r.init?e:t)(r,a,n)}}()},definite:{optional:!0,validate:Do("boolean")},init:{optional:!0,validate:Po("Expression")}}}),Go("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:Po("Expression")},body:{validate:Po("Statement")}}}),Go("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:Po("Expression")},body:{validate:Po("Statement")}}}),Go("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{left:{validate:Po("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:Po("Expression")},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0}})}),Go("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{elements:{validate:Fo(Do("array"),Co(Io("null","PatternLike","LVal")))}})}),Go("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},qo(),Wo(),{expression:{validate:Do("boolean")},body:{validate:Po("BlockStatement","Expression")},predicate:{validate:Po("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Go("ClassBody",{visitor:["body"],fields:{body:{validate:Fo(Do("array"),Co(Po("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),Go("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:Po("Identifier"),optional:!0},typeParameters:{validate:Po("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Po("ClassBody")},superClass:{optional:!0,validate:Po("Expression")},superTypeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:Fo(Do("array"),Co(Po("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},mixins:{validate:Po("InterfaceExtends"),optional:!0}}}),Go("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:Po("Identifier"),optional:!0},typeParameters:{validate:Po("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Po("ClassBody")},superClass:{optional:!0,validate:Po("Expression")},superTypeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:Fo(Do("array"),Co(Po("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},mixins:{validate:Po("InterfaceExtends"),optional:!0},declare:{validate:Do("boolean"),optional:!0},abstract:{validate:Do("boolean"),optional:!0}},validate:function(){var e=Po("Identifier");return function(t,r,a){di.env.BABEL_TYPES_8_BREAKING&&(mi("ExportDefaultDeclaration",t)||e(a,"id",a.id))}}()}),Go("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:Po("StringLiteral")},exportKind:wo(ko("type","value")),attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))}}}),Go("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:Po("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:wo(ko("value"))}}),Go("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:Fo(Po("Declaration"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},specifiers:{default:[],validate:Fo(Do("array"),Co(function(){var e=Po("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=Po("ExportSpecifier");return di.env.BABEL_TYPES_8_BREAKING?function(r,a,n){(r.source?e:t)(r,a,n)}:e}()))},source:{validate:Po("StringLiteral"),optional:!0},exportKind:wo(ko("type","value"))}}),Go("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")},exported:{validate:Po("Identifier","StringLiteral")},exportKind:{validate:ko("type","value"),optional:!0}}}),Go("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!di.env.BABEL_TYPES_8_BREAKING)return Po("VariableDeclaration","LVal");var e=Po("VariableDeclaration"),t=Po("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,a,n){mi("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}}()},right:{validate:Po("Expression")},body:{validate:Po("Statement")},await:{default:!1}}}),Go("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},module:{optional:!0,validate:Do("boolean")},phase:{default:null,validate:ko("source","defer")},specifiers:{validate:Fo(Do("array"),Co(Po("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:Po("StringLiteral")},importKind:{validate:ko("type","typeof","value"),optional:!0}}}),Go("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")}}}),Go("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")}}}),Go("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")},imported:{validate:Po("Identifier","StringLiteral")},importKind:{validate:ko("type","typeof","value"),optional:!0}}}),Go("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:ko("source","defer")},source:{validate:Po("Expression")},options:{validate:Po("Expression"),optional:!0}}}),Go("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:Fo(Po("Identifier"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING){var a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta"}if(!mi("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:Po("Identifier")}}});var Ko=function(){return{abstract:{validate:Do("boolean"),optional:!0},accessibility:{validate:ko("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Do("boolean"),optional:!0},key:{validate:Fo(function(){var e=Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=Po("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Yo=function(){return Object.assign({},qo(),Ko(),{params:{validate:Fo(Do("array"),Co(Po("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:ko("get","set","method","constructor"),default:"method"},access:{validate:Fo(Do("string"),ko("public","private","protected")),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0}})};Go("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},Yo(),Wo(),{body:{validate:Po("BlockStatement")}})}),Go("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{properties:{validate:Fo(Do("array"),Co(Po("RestElement","ObjectProperty")))}})}),Go("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:Po("Expression")}}}),Go("Super",{aliases:["Expression"]}),Go("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:Po("Expression")},quasi:{validate:Po("TemplateLiteral")},typeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Go("TemplateElement",{builder:["value","tail"],fields:{value:{validate:Fo(No({raw:{validate:Do("string")},cooked:{validate:Do("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=Ui("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a}),s=n.str,i=n.firstInvalidLoc;if(!r)throw new Error("Invalid raw");e.value.cooked=i?null:s}))},tail:{default:!1}}}),Go("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:Fo(Do("array"),Co(Po("TemplateElement")))},expressions:{validate:Fo(Do("array"),Co(Po("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),Go("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:Fo(Do("boolean"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:Po("Expression")}}}),Go("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:Po("Expression")}}}),Go("Import",{aliases:["Expression"]}),Go("BigIntLiteral",{builder:["value"],fields:{value:{validate:Do("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Go("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:Po("Identifier")}}}),Go("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:Po("Expression")},property:{validate:function(){var e=Po("Identifier"),t=Po("Expression"),r=Object.assign((function(r,a,n){(r.computed?t:e)(r,a,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:di.env.BABEL_TYPES_8_BREAKING?Fo(Do("boolean"),Oo()):Do("boolean")}}}),Go("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:Po("Expression")},arguments:{validate:Fo(Do("array"),Co(Po("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:di.env.BABEL_TYPES_8_BREAKING?Fo(Do("boolean"),Oo()):Do("boolean")},typeArguments:{validate:Po("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:Po("TSTypeParameterInstantiation"),optional:!0}}}),Go("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ko(),{value:{validate:Po("Expression"),optional:!0},definite:{validate:Do("boolean"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},readonly:{validate:Do("boolean"),optional:!0},declare:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}})}),Go("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ko(),{key:{validate:Fo(function(){var e=Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=Po("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:Po("Expression"),optional:!0},definite:{validate:Do("boolean"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},readonly:{validate:Do("boolean"),optional:!0},declare:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}})}),Go("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:Po("PrivateName")},value:{validate:Po("Expression"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},static:{validate:Do("boolean"),default:!1},readonly:{validate:Do("boolean"),optional:!0},definite:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}}}),Go("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Yo(),Wo(),{kind:{validate:ko("get","set","method"),default:"method"},key:{validate:Po("PrivateName")},body:{validate:Po("BlockStatement")}})}),Go("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:Po("Identifier")}}}),Go("StaticBlock",{visitor:["body"],fields:{body:{validate:Fo(Do("array"),Co(Po("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});var Xo=Uo("Flow"),Jo=function(e){var t="DeclareClass"===e;Xo(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(E(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),extends:wo(jo("InterfaceExtends"))},t?{mixins:wo(jo("InterfaceExtends")),implements:wo(jo("ClassImplements"))}:{},{body:To("ObjectTypeAnnotation")})})};Xo("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:To("FlowType")}}),Xo("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("boolean"))}}),Xo("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ClassImplements",{visitor:["id","typeParameters"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterInstantiation")}}),Jo("DeclareClass"),Xo("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),predicate:So("DeclaredPredicate")}}),Jo("DeclareInterface"),Xo("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To(["Identifier","StringLiteral"]),body:To("BlockStatement"),kind:wo(ko("CommonJS","ES"))}}),Xo("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:To("TypeAnnotation")}}),Xo("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),right:To("FlowType")}}),Xo("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),supertype:So("FlowType"),impltype:So("FlowType")}}),Xo("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier")}}),Xo("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:So("Flow"),specifiers:wo(jo(["ExportSpecifier","ExportNamespaceSpecifier"])),source:So("StringLiteral"),default:wo(Do("boolean"))}}),Xo("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:To("StringLiteral"),exportKind:wo(ko("type","value"))}}),Xo("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:To("Flow")}}),Xo("ExistsTypeAnnotation",{aliases:["FlowType"]}),Xo("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:So("TypeParameterDeclaration"),params:Ro(jo("FunctionTypeParam")),rest:So("FunctionTypeParam"),this:So("FunctionTypeParam"),returnType:To("FlowType")}}),Xo("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:So("Identifier"),typeAnnotation:To("FlowType"),optional:wo(Do("boolean"))}}),Xo("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:To(["Identifier","QualifiedTypeIdentifier"]),typeParameters:So("TypeParameterInstantiation")}}),Xo("InferredPredicate",{aliases:["FlowPredicate"]}),Xo("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:To(["Identifier","QualifiedTypeIdentifier"]),typeParameters:So("TypeParameterInstantiation")}}),Jo("InterfaceDeclaration"),Xo("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:wo(jo("InterfaceExtends")),body:To("ObjectTypeAnnotation")}}),Xo("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:To("FlowType")}}),Xo("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("number"))}}),Xo("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:Ro(jo(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:jo("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:jo("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:jo("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Do("boolean"),default:!1},inexact:wo(Do("boolean"))}}),Xo("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:To("Identifier"),value:To("FlowType"),optional:Ro(Do("boolean")),static:Ro(Do("boolean")),method:Ro(Do("boolean"))}}),Xo("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:To("FlowType"),static:Ro(Do("boolean"))}}),Xo("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:So("Identifier"),key:To("FlowType"),value:To("FlowType"),static:Ro(Do("boolean")),variance:So("Variance")}}),Xo("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:To(["Identifier","StringLiteral"]),value:To("FlowType"),kind:Ro(ko("init","get","set")),static:Ro(Do("boolean")),proto:Ro(Do("boolean")),optional:Ro(Do("boolean")),variance:So("Variance"),method:Ro(Do("boolean"))}}),Xo("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:To("FlowType")}}),Xo("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),supertype:So("FlowType"),impltype:To("FlowType")}}),Xo("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:To("Identifier"),qualification:To(["Identifier","QualifiedTypeIdentifier"])}}),Xo("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("string"))}}),Xo("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:To("FlowType")}}),Xo("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),right:To("FlowType")}}),Xo("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:To("FlowType")}}),Xo("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:To("Expression"),typeAnnotation:To("TypeAnnotation")}}),Xo("TypeParameter",{visitor:["bound","default","variance"],fields:{name:Ro(Do("string")),bound:So("TypeAnnotation"),default:So("FlowType"),variance:So("Variance")}}),Xo("TypeParameterDeclaration",{visitor:["params"],fields:{params:Ro(jo("TypeParameter"))}}),Xo("TypeParameterInstantiation",{visitor:["params"],fields:{params:Ro(jo("FlowType"))}}),Xo("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("Variance",{builder:["kind"],fields:{kind:Ro(ko("minus","plus"))}}),Xo("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:To("Identifier"),body:To(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),Xo("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o("EnumBooleanMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o("EnumNumberMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:_o("EnumDefaultedMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:To("Identifier"),init:To("BooleanLiteral")}}),Xo("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:To("Identifier"),init:To("NumericLiteral")}}),Xo("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:To("Identifier"),init:To("StringLiteral")}}),Xo("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:To("Identifier")}}),Xo("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:To("FlowType"),indexType:To("FlowType")}}),Xo("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:To("FlowType"),indexType:To("FlowType"),optional:Ro(Do("boolean"))}});var Qo=Uo("JSX");Qo("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:Po("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),Qo("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),Qo("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:Po("JSXOpeningElement")},closingElement:{optional:!0,validate:Po("JSXClosingElement")},children:{validate:Fo(Do("array"),Co(Po("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:Do("boolean"),optional:!0}})}),Qo("JSXEmptyExpression",{}),Qo("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Po("Expression","JSXEmptyExpression")}}}),Qo("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Po("Expression")}}}),Qo("JSXIdentifier",{builder:["name"],fields:{name:{validate:Do("string")}}}),Qo("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:Po("JSXMemberExpression","JSXIdentifier")},property:{validate:Po("JSXIdentifier")}}}),Qo("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:Po("JSXIdentifier")},name:{validate:Po("JSXIdentifier")}}}),Qo("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:Fo(Do("array"),Co(Po("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Qo("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:Po("Expression")}}}),Qo("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Do("string")}}}),Qo("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:Po("JSXOpeningFragment")},closingFragment:{validate:Po("JSXClosingFragment")},children:{validate:Fo(Do("array"),Co(Po("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),Qo("JSXOpeningFragment",{aliases:["Immutable"]}),Qo("JSXClosingFragment",{aliases:["Immutable"]});for(var $o=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Zo={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},ed=0,td=$o;ed=0)){if(ht(o))return[o];if(Zn(o))a.set(o.type,o);else if(pr(o))n.has(o.types)||(t.push.apply(t,E(o.types)),n.add(o.types));else if(Ot(o)){var d=Yb(o.id);if(r.has(d)){var c,l=r.get(d);l.typeParameters?o.typeParameters&&((c=l.typeParameters.params).push.apply(c,E(o.typeParameters.params)),l.typeParameters.params=Xb(l.typeParameters.params)):l=o.typeParameters}else r.set(d,o)}else s.push(o)}}for(var u,p=k(a);!(u=p()).done;){var f=R(u.value,2)[1];s.push(f)}for(var g,h=k(r);!(g=h()).done;){var m=R(g.value,2)[1];s.push(m)}return s}function Jb(e){var t=Xb(e);return 1===t.length?t[0]:eu(t)}function Qb(e){return re(e)?e.name:e.right.name+"."+Qb(e.left)}function $b(e){for(var t=Array.from(e),r=new Map,a=new Map,n=new Set,s=[],i=0;i=0)){if(fa(o))return[o];if(cs(o))a.set(o.type,o);else if(Ba(o))n.has(o.types)||(t.push.apply(t,E(o.types)),n.add(o.types));else if(Ca(o)&&o.typeParameters){var d=Qb(o.typeName);if(r.has(d)){var c,l=r.get(d);l.typeParameters?o.typeParameters&&((c=l.typeParameters.params).push.apply(c,E(o.typeParameters.params)),l.typeParameters.params=$b(l.typeParameters.params)):l=o.typeParameters}else r.set(d,o)}else s.push(o)}}for(var u,p=k(a);!(u=p()).done;){var f=R(u.value,2)[1];s.push(f)}for(var g,h=k(r);!(g=h()).done;){var m=R(g.value,2)[1];s.push(m)}return s}function Zb(e){var t=e.map((function(e){return pn(e)?e.typeAnnotation:e})),r=$b(t);return 1===r.length?r[0]:Ap(r)}function ev(){return gc("void",Yd(0),!0)}var tv=Function.call.bind(Object.prototype.hasOwnProperty);function rv(e,t,r,a){return e&&"string"===typeof e.type?sv(e,t,r,a):e}function av(e,t,r,a){return Array.isArray(e)?e.map((function(e){return rv(e,t,r,a)})):rv(e,t,r,a)}function nv(e,t,r){return void 0===t&&(t=!0),void 0===r&&(r=!1),sv(e,t,r,new Map)}function sv(e,t,r,a){if(void 0===t&&(t=!0),void 0===r&&(r=!1),!e)return e;var n=e.type,s={type:e.type};if(re(e))s.name=e.name,tv(e,"optional")&&"boolean"===typeof e.optional&&(s.optional=e.optional),tv(e,"typeAnnotation")&&(s.typeAnnotation=t?av(e.typeAnnotation,!0,r,a):e.typeAnnotation);else{if(!tv(mo,n))throw new Error('Unknown node type: "'+n+'"');for(var i=0,o=Object.keys(mo[n]);i=Number.MAX_SAFE_INTEGER?Ax.uid=0:Ax.uid++};var _x=Function.call.bind(Object.prototype.toString);function Cx(e){return"[object RegExp]"===_x(e)}function kx(e){if("object"!==typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Px(e){if(void 0===e)return Wd("undefined");if(!0===e||!1===e)return Jd(e);if(null===e)return Xd();if("string"===typeof e)return Kd(e);var t;if("number"===typeof e)return t=Number.isFinite(e)?Yd(Math.abs(e)):Sd("/",Number.isNaN(e)?Yd(0):Yd(1),Yd(0)),(e<0||Object.is(e,-0))&&(t=gc("-",t)),t;if(Cx(e))return Qd(e.source,e.toString().match(/\/([a-z]+|)$/)[1]);if(Array.isArray(e))return Td(e.map(Px));if(kx(e)){for(var r=[],a=0,n=Object.keys(e);a=0)return!0}else if(s===e)return!0}return!1}function Ux(e){return _e(e)&&("var"!==e.kind||e[uo])}function Hx(e){return ee(e)||Le(e)||Ux(e)}function Gx(e){return!!gi(e.type,"Immutable")||!!re(e)&&"undefined"===e.name}function qx(e,t){if("object"!==typeof e||"object"!==typeof t||null==e||null==t)return e===t;if(e.type!==t.type)return!1;for(var r=Object.keys(mo[e.type]||e.type),a=fo[e.type],n=0,s=r;n1?e:e[0]})),tR=Zx((function(e){return e})),rR=Zx((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),aR={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===aR.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=R(e.program.body,1)[0];return $x(t),t.expression}},nR={code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}},sR=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function iR(e,t){var r=t.placeholderWhitelist,a=void 0===r?e.placeholderWhitelist:r,n=t.placeholderPattern,s=void 0===n?e.placeholderPattern:n,i=t.preserveComments,o=void 0===i?e.preserveComments:i,d=t.syntacticPlaceholders,c=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:o,syntacticPlaceholders:c}}function oR(e){if(null!=e&&"object"!==typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,a=t.placeholderPattern,n=t.preserveComments,s=t.syntacticPlaceholders,i=b(t,sR);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!==typeof n)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!==typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:i,placeholderWhitelist:r||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}}function dR(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"===typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var cR=p((function(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r})),lR=p((function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}));function uR(e,t){var r=e.line,a=e.column,n=e.index;return new cR(r,a+t,n+t)}var pR,fR="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",gR={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:fR},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:fR}},hR={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},mR=function(e){return"UpdateExpression"===e.type?hR.UpdateExpression[""+e.prefix]:hR[e.type]},yR={AccessorIsGenerator:function(e){return"A "+e.kind+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){return"Missing initializer in "+e.kind+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){return"`"+e.exportName+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){return"'import."+e.phase+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+e.localName+"' as '"+e.exportName+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){return"'"+("ForInStatement"===e.type?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){return"Unsyntactic "+("BreakStatement"===e.type?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(e){return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+e.importName+'" as foo }`?'},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(e){return"`import()` requires exactly "+(1===e.maxArgumentCount?"one argument":"one or two arguments")+"."},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){return"Expected number in radix "+e.radix+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){return"Escape sequence in keyword "+e.reservedWord+"."},InvalidIdentifier:function(e){return"Invalid identifier "+e.identifierName+"."},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in "+mR(t)+"."},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in "+mR(t)+"."},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of "+mR(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){return"Unexpected character '"+e.unexpected+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){return"Private name #"+e.identifierName+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){return"Label '"+e.labelName+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){return"This experimental syntax requires enabling the parser plugin: "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingOneOfPlugins:function(e){return"This experimental syntax requires enabling one of the following parser plugin(s): "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){return'Duplicate key "'+e.key+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(e){return"An export name cannot include a lone surrogate, found '\\u"+e.surrogateCharCode.toString(16)+"'."},ModuleExportUndefined:function(e){return"Export '"+e.localName+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(e){return"Duplicate private name #"+e.identifierName+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){return"Unexpected keyword '"+e.keyword+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){return"Unexpected reserved word '"+e.reservedWord+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token"+(r?" '"+r+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target;return"The only valid meta property for "+t+" is "+t+"."+e.onlyValidPropertyName+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){return"Identifier '"+e.identifierName+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},bR={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){return"Assigning to '"+e.referenceName+"' in strict mode."},StrictEvalArgumentsBinding:function(e){return"Binding '"+e.bindingName+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},vR=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),xR={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized "+mR({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},RR=["toMessage"],ER=["message"];function TR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function wR(e){var t=e.toMessage,r=b(e,RR);return function e(a,n){var s=new SyntaxError;return Object.assign(s,r,{loc:a,pos:a.index}),"missingPlugin"in n&&Object.assign(s,{missingPlugin:n.missingPlugin}),TR(s,"clone",(function(t){var r;void 0===t&&(t={});var s=null!=(r=t.loc)?r:a,i=s.line,o=s.column,d=s.index;return e(new cR(i,o,d),Object.assign({},n,t.details))})),TR(s,"details",n),Object.defineProperty(s,"message",{configurable:!0,get:function(){var e=t(n)+" ("+a.line+":"+a.column+")";return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),s}}function SR(e,t){if(Array.isArray(e))return function(t){return SR(t,e[0])};for(var r={},a=function(){var a=s[n],i=e[a],o="string"===typeof i?{message:function(){return i}}:"function"===typeof i?{message:i}:i,d=o.message,c=b(o,ER),l="string"===typeof d?function(){return d}:d;r[a]=wR(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},c))},n=0,s=Object.keys(e);n0&&i.start===n.start&&this.resetStartLocation(n,a)}return n},r.parseSubscript=function(t,r,a,n){var s=e.prototype.parseSubscript.call(this,t,r,a,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){var i=this.startNodeAtNode(s);return i.expression=s,this.finishNode(i,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s},r.isOptionalMemberExpression=function(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:e.prototype.isOptionalMemberExpression.call(this,t)},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)},r.finishNodeAt=function(t,r,a){return CR(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),CR(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),CR(t)},p(t)}(e)},PR=p((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),IR={brace:new PR("{"),j_oTag:new PR("...",!0)};IR.template=new PR("`",!0);var DR=!0,NR=!0,OR=!0,FR=!0,LR=!0,BR=!0,MR=p((function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null})),UR=new Map;function HR(e,t){void 0===t&&(t={}),t.keyword=e;var r=JR(e,t);return UR.set(e,r),r}function GR(e,t){return JR(e,{beforeExpr:DR,binop:t})}var qR=-1,WR=[],VR=[],zR=[],KR=[],YR=[],XR=[];function JR(e,t){var r,a,n,s;return void 0===t&&(t={}),++qR,VR.push(e),zR.push(null!=(r=t.binop)?r:-1),KR.push(null!=(a=t.beforeExpr)&&a),YR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),WR.push(new MR(e,t)),qR}function QR(e,t){var r,a,n,s;return void 0===t&&(t={}),++qR,UR.set(e,qR),VR.push(e),zR.push(null!=(r=t.binop)?r:-1),KR.push(null!=(a=t.beforeExpr)&&a),YR.push(null!=(n=t.startsExpr)&&n),XR.push(null!=(s=t.prefix)&&s),WR.push(new MR("name",t)),qR}var $R={bracketL:JR("[",{beforeExpr:DR,startsExpr:NR}),bracketHashL:JR("#[",{beforeExpr:DR,startsExpr:NR}),bracketBarL:JR("[|",{beforeExpr:DR,startsExpr:NR}),bracketR:JR("]"),bracketBarR:JR("|]"),braceL:JR("{",{beforeExpr:DR,startsExpr:NR}),braceBarL:JR("{|",{beforeExpr:DR,startsExpr:NR}),braceHashL:JR("#{",{beforeExpr:DR,startsExpr:NR}),braceR:JR("}"),braceBarR:JR("|}"),parenL:JR("(",{beforeExpr:DR,startsExpr:NR}),parenR:JR(")"),comma:JR(",",{beforeExpr:DR}),semi:JR(";",{beforeExpr:DR}),colon:JR(":",{beforeExpr:DR}),doubleColon:JR("::",{beforeExpr:DR}),dot:JR("."),question:JR("?",{beforeExpr:DR}),questionDot:JR("?."),arrow:JR("=>",{beforeExpr:DR}),template:JR("template"),ellipsis:JR("...",{beforeExpr:DR}),backQuote:JR("`",{startsExpr:NR}),dollarBraceL:JR("${",{beforeExpr:DR,startsExpr:NR}),templateTail:JR("...`",{startsExpr:NR}),templateNonTail:JR("...${",{beforeExpr:DR,startsExpr:NR}),at:JR("@"),hash:JR("#",{startsExpr:NR}),interpreterDirective:JR("#!..."),eq:JR("=",{beforeExpr:DR,isAssign:FR}),assign:JR("_=",{beforeExpr:DR,isAssign:FR}),slashAssign:JR("_=",{beforeExpr:DR,isAssign:FR}),xorAssign:JR("_=",{beforeExpr:DR,isAssign:FR}),moduloAssign:JR("_=",{beforeExpr:DR,isAssign:FR}),incDec:JR("++/--",{prefix:LR,postfix:BR,startsExpr:NR}),bang:JR("!",{beforeExpr:DR,prefix:LR,startsExpr:NR}),tilde:JR("~",{beforeExpr:DR,prefix:LR,startsExpr:NR}),doubleCaret:JR("^^",{startsExpr:NR}),doubleAt:JR("@@",{startsExpr:NR}),pipeline:GR("|>",0),nullishCoalescing:GR("??",1),logicalOR:GR("||",1),logicalAND:GR("&&",2),bitwiseOR:GR("|",3),bitwiseXOR:GR("^",4),bitwiseAND:GR("&",5),equality:GR("==/!=/===/!==",6),lt:GR("/<=/>=",7),gt:GR("/<=/>=",7),relational:GR("/<=/>=",7),bitShift:GR("<>/>>>",8),bitShiftL:GR("<>/>>>",8),bitShiftR:GR("<>/>>>",8),plusMin:JR("+/-",{beforeExpr:DR,binop:9,prefix:LR,startsExpr:NR}),modulo:JR("%",{binop:10,startsExpr:NR}),star:JR("*",{binop:10}),slash:GR("/",10),exponent:JR("**",{beforeExpr:DR,binop:11,rightAssociative:!0}),_in:HR("in",{beforeExpr:DR,binop:7}),_instanceof:HR("instanceof",{beforeExpr:DR,binop:7}),_break:HR("break"),_case:HR("case",{beforeExpr:DR}),_catch:HR("catch"),_continue:HR("continue"),_debugger:HR("debugger"),_default:HR("default",{beforeExpr:DR}),_else:HR("else",{beforeExpr:DR}),_finally:HR("finally"),_function:HR("function",{startsExpr:NR}),_if:HR("if"),_return:HR("return",{beforeExpr:DR}),_switch:HR("switch"),_throw:HR("throw",{beforeExpr:DR,prefix:LR,startsExpr:NR}),_try:HR("try"),_var:HR("var"),_const:HR("const"),_with:HR("with"),_new:HR("new",{beforeExpr:DR,startsExpr:NR}),_this:HR("this",{startsExpr:NR}),_super:HR("super",{startsExpr:NR}),_class:HR("class",{startsExpr:NR}),_extends:HR("extends",{beforeExpr:DR}),_export:HR("export"),_import:HR("import",{startsExpr:NR}),_null:HR("null",{startsExpr:NR}),_true:HR("true",{startsExpr:NR}),_false:HR("false",{startsExpr:NR}),_typeof:HR("typeof",{beforeExpr:DR,prefix:LR,startsExpr:NR}),_void:HR("void",{beforeExpr:DR,prefix:LR,startsExpr:NR}),_delete:HR("delete",{beforeExpr:DR,prefix:LR,startsExpr:NR}),_do:HR("do",{isLoop:OR,beforeExpr:DR}),_for:HR("for",{isLoop:OR}),_while:HR("while",{isLoop:OR}),_as:QR("as",{startsExpr:NR}),_assert:QR("assert",{startsExpr:NR}),_async:QR("async",{startsExpr:NR}),_await:QR("await",{startsExpr:NR}),_defer:QR("defer",{startsExpr:NR}),_from:QR("from",{startsExpr:NR}),_get:QR("get",{startsExpr:NR}),_let:QR("let",{startsExpr:NR}),_meta:QR("meta",{startsExpr:NR}),_of:QR("of",{startsExpr:NR}),_sent:QR("sent",{startsExpr:NR}),_set:QR("set",{startsExpr:NR}),_source:QR("source",{startsExpr:NR}),_static:QR("static",{startsExpr:NR}),_using:QR("using",{startsExpr:NR}),_yield:QR("yield",{startsExpr:NR}),_asserts:QR("asserts",{startsExpr:NR}),_checks:QR("checks",{startsExpr:NR}),_exports:QR("exports",{startsExpr:NR}),_global:QR("global",{startsExpr:NR}),_implements:QR("implements",{startsExpr:NR}),_intrinsic:QR("intrinsic",{startsExpr:NR}),_infer:QR("infer",{startsExpr:NR}),_is:QR("is",{startsExpr:NR}),_mixins:QR("mixins",{startsExpr:NR}),_proto:QR("proto",{startsExpr:NR}),_require:QR("require",{startsExpr:NR}),_satisfies:QR("satisfies",{startsExpr:NR}),_keyof:QR("keyof",{startsExpr:NR}),_readonly:QR("readonly",{startsExpr:NR}),_unique:QR("unique",{startsExpr:NR}),_abstract:QR("abstract",{startsExpr:NR}),_declare:QR("declare",{startsExpr:NR}),_enum:QR("enum",{startsExpr:NR}),_module:QR("module",{startsExpr:NR}),_namespace:QR("namespace",{startsExpr:NR}),_interface:QR("interface",{startsExpr:NR}),_type:QR("type",{startsExpr:NR}),_opaque:QR("opaque",{startsExpr:NR}),name:JR("name",{startsExpr:NR}),string:JR("string",{startsExpr:NR}),num:JR("num",{startsExpr:NR}),bigint:JR("bigint",{startsExpr:NR}),decimal:JR("decimal",{startsExpr:NR}),regexp:JR("regexp",{startsExpr:NR}),privateName:JR("#name",{startsExpr:NR}),eof:JR("eof"),jsxName:JR("jsxName"),jsxText:JR("jsxText",{beforeExpr:!0}),jsxTagStart:JR("jsxTagStart",{startsExpr:!0}),jsxTagEnd:JR("jsxTagEnd"),placeholder:JR("%%",{startsExpr:!0})};function ZR(e){return e>=93&&e<=132}function eE(e){return e<=92}function tE(e){return e>=58&&e<=132}function rE(e){return e>=58&&e<=136}function aE(e){return KR[e]}function nE(e){return YR[e]}function sE(e){return e>=29&&e<=33}function iE(e){return e>=129&&e<=131}function oE(e){return e>=90&&e<=92}function dE(e){return e>=58&&e<=92}function cE(e){return e>=39&&e<=59}function lE(e){return 34===e}function uE(e){return XR[e]}function pE(e){return e>=121&&e<=123}function fE(e){return e>=124&&e<=130}function gE(e){return VR[e]}function hE(e){return zR[e]}function mE(e){return 57===e}function yE(e){return e>=24&&e<=25}function bE(e){return WR[e]}function vE(e,t,r){return 64===e&&64===t&&wi(r)}WR[8].updateContext=function(e){e.pop()},WR[5].updateContext=WR[7].updateContext=WR[23].updateContext=function(e){e.push(IR.brace)},WR[22].updateContext=function(e){e[e.length-1]===IR.template?e.pop():e.push(IR.template)},WR[142].updateContext=function(e){e.push(IR.j_expr,IR.j_oTag)};var xE=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function RE(e){return xE.has(e)}var EE={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},TE={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},wE={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},SE={Var:1,Lexical:2,Function:4},AE=p((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),jE=function(){function e(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new AE(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){return this.scopeStack.pop().flags},t.treatFunctionsAsVarInScope=function(e){return!!(e.flags&(EE.FUNCTION|EE.STATIC_BLOCK)||!this.parser.inModule&&e.flags&EE.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&TE.SCOPE_LEXICAL||t&TE.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&TE.SCOPE_FUNCTION?n|=SE.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=SE.Lexical),a.names.set(e,n),t&TE.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&TE.SCOPE_VAR)for(var s=this.scopeStack.length-1;s>=0&&(a=this.scopeStack[s],this.checkRedeclarationInScope(a,e,t,r),a.names.set(e,(a.names.get(e)||0)|SE.Var),this.maybeExportDefined(a,e),!(a.flags&EE.VAR));--s);this.parser.inModule&&a.flags&EE.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&EE.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(AR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&TE.KIND_VALUE))return!1;if(r&TE.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&TE.SCOPE_FUNCTION?(a&SE.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&SE.Var)>0:(a&SE.Lexical)>0&&!(e.flags&EE.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&SE.Function)>0},t.checkLocalExport=function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&EE.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(EE.VAR|EE.CLASS)&&!(t&EE.ARROW))return t}},p(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&EE.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&EE.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&EE.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&EE.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&EE.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&EE.CLASS)>0&&0===(e&EE.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&EE.STATIC_BLOCK)return!0;if(t&(EE.VAR|EE.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&EE.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),_E=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&SE.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},p(t)}(jE);function kE(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function PE(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function IE(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function DE(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?IE(e,r.comments):kE(a,r.comments)}var NE=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++},r.processComment=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=r-1,n=t[a];n.start===e.end&&(n.leadingNode=e,a--);for(var s=e.start;a>=0;a--){var i=t[a],o=i.end;if(!(o>s)){o===s&&(i.trailingNode=e);break}i.containingNode=e,this.finalizeComment(i),t.splice(a,1)}}},r.finalizeComment=function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&kE(e.leadingNode,t),null!==e.trailingNode&&PE(e.trailingNode,t);else{var r=e.containingNode,a=e.start;if(44===this.input.charCodeAt(a-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":DE(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":DE(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":DE(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":DE(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":DE(r,r.specifiers,e);break;default:IE(r,t)}else IE(r,t)}},r.finalizeRemainingComments=function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]},r.resetPreviousNodeTrailingComments=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=t[r-1];a.leadingNode===e&&(a.leadingNode=null)}},r.resetPreviousIdentifierLeadingComments=function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))},r.takeSurroundingComments=function(e,t,r){var a=this.state.commentStack,n=a.length;if(0!==n)for(var s=n-1;s>=0;s--){var i=a[s],o=i.end;if(i.start===r)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}}])}();function WE(e,t,r){return new cR(r,e-t,e)}var VE=new Set([103,109,115,105,121,117,100,118]),zE=p((function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new lR(e.startLoc,e.endLoc)})),KE=function(e){function t(t,r){var a;return(a=e.call(this)||this).isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(e,t,r,n){return!!a.options.errorRecovery&&(a.raise(AR.InvalidDigit,WE(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(AR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(AR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(AR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(AR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(AR.StrictNumericEscape,WE(e,t,r))},unterminated:function(e,t,r){throw a.raise(AR.UnterminatedString,WE(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(AR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(AR.UnterminatedTemplate,WE(e,t,r))}}),a.state=new qE,a.state.init(t),a.input=r,a.length=r.length,a.comments=[],a.isLookahead=!1,a}f(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new zE(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return BE.lastIndex=e,BE.test(this.input)?BE.lastIndex:e},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},r.nextTokenInLineStartSince=function(e){return ME.lastIndex=e,ME.test(this.input)?ME.lastIndex:e},r.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.skipBlockComment=function(e){var t;this.isLookahead||(t=this.state.curPosition());var r=this.state.pos,a=this.input.indexOf(e,r+2);if(-1===a)throw this.raise(AR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,FE.lastIndex=r+2;FE.test(this.input)&&FE.lastIndex<=a;)++this.state.curLine,this.state.lineStart=FE.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(r+2,a),start:r,end:a+e.length,loc:new lR(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var a=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var i=this.skipLineComment(3);void 0!==i&&(this.addComment(i),this.options.attachComment&&t.push(i))}else{if(60!==r||this.inModule||!this.options.annexB)break e;var o=this.state.pos;if(33!==this.input.charCodeAt(o+1)||45!==this.input.charCodeAt(o+2)||45!==this.input.charCodeAt(o+3))break e;var d=this.skipLineComment(4);void 0!==d&&(this.addComment(d),this.options.attachComment&&t.push(d))}}}if(t.length>0){var c={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}},r.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)},r.replaceToken=function(e){this.state.type=e,this.updateContext()},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(AR.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?AR.RecordExpressionHashIncorrectStartSyntaxType:AR.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else wi(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!LE(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(AR.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(AR.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(wi(e))return void this.readWord(e)}throw this.raise(AR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.startLoc,a=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(AR.UnterminatedRegExp,uR(r,1));var s=this.input.charCodeAt(n);if(LE(s))throw this.raise(AR.UnterminatedRegExp,uR(r,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var i=this.input.slice(a,n);++n;for(var o="",d=function(){return uR(r,n+2-a)};n=2&&48===this.input.charCodeAt(t);if(d){var c=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(AR.StrictOctalLiteral,r),!this.state.strict){var l=c.indexOf("_");l>0&&this.raise(AR.ZeroDigitNumericSeparator,uR(r,l))}o=d&&!/[89]/.test(c)}var u=this.input.charCodeAt(this.state.pos);if(46!==u||o||(++this.state.pos,this.readInt(10),a=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||o||(43!==(u=this.input.charCodeAt(++this.state.pos))&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(AR.InvalidOrMissingExponent,r),a=!0,i=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((a||d)&&this.raise(AR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(i||d)&&this.raise(AR.InvalidDecimal,r),++this.state.pos,s=!0),wi(this.codePointAtPos(this.state.pos)))throw this.raise(AR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(135,p);else if(s)this.finishToken(136,p);else{var f=o?parseInt(p,8):parseFloat(p);this.finishToken(134,f)}},r.readCodePoint=function(e){var t=Vi(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,a=t.pos;return this.state.pos=a,r},r.readString=function(e){var t=Ui(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,a=t.pos,n=t.curLine,s=t.lineStart;this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(133,r)},r.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},r.readTemplateToken=function(){var e=this.input[this.state.pos],t=Ui("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,a=t.firstInvalidLoc,n=t.pos,s=t.curLine,i=t.lineStart;this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new cR(a.curLine,a.pos-a.lineStart,a.pos)),96===this.input.codePointAt(n)?this.finishToken(24,a?null:e+r+"`"):(this.state.pos++,this.finishToken(25,a?null:e+r+"${"))},r.recordStrictModeErrors=function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,a=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;i--){var o=s[i];if(o.loc.index===n)return s[i]=e(a,r);if(o.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&aT.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&aT.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&aT.PARAM_IN)>0}}])}();function sT(e,t){return(e?aT.PARAM_AWAIT:0)|(t?aT.PARAM_YIELD:0)}var iT=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.addExtra=function(e,t,r,a){if(void 0===a&&(a=!0),e){var n=e.extra=e.extra||{};a?n[t]=r:Object.defineProperty(n,t,{enumerable:a,value:r})}},r.isContextual=function(e){return this.state.type===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var a=this.input.charCodeAt(r);return!(Si(a)||55296===(64512&a))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},r.expectContextual=function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}},r.canInsertSemicolon=function(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return OE.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))},r.hasFollowingLineBreak=function(){return UE.lastIndex=this.state.end,UE.test(this.input)},r.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(13))||this.raise(AR.MissingSemicolon,this.state.lastTokEndLoc)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var a=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:a,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(nQ){var s=this.state;if(this.state=t,nQ instanceof SyntaxError)return{node:null,error:nQ,thrown:!0,aborted:!1,failState:s};if(nQ===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw nQ}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,a=e.doubleProtoLoc,n=e.privateKeyLoc,s=e.optionalParametersLoc;if(!t)return!!r||!!a||!!s||!!n;null!=r&&this.raise(AR.InvalidCoverInitializedName,r),null!=a&&this.raise(AR.DuplicateProto,a),null!=n&&this.raise(AR.UnexpectedPrivateField,n),null!=s&&this.unexpected(s)},r.isLiteralPropertyName=function(){return rE(this.state.type)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var n=this.inModule;this.inModule=e;var s=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);var o=this.prodParam;this.prodParam=new nT;var d=this.classScope;this.classScope=new XE(this);var c=this.expressionScope;return this.expressionScope=new $E(this),function(){t.state.labels=r,t.exportedIdentifiers=a,t.inModule=n,t.scope=s,t.prodParam=o,t.classScope=d,t.expressionScope=c}},r.enterInitialScopes=function(){var e=aT.PARAM;this.inModule&&(e|=aT.PARAM_AWAIT),this.scope.enter(EE.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},p(t)}(KE),oT=p((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),dT=p((function(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new lR(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)})),cT=dT.prototype;function lT(e){return uT(e)}function uT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra,o=e.name,d=Object.create(cT);return d.type=t,d.start=r,d.end=a,d.loc=n,d.range=s,d.extra=i,d.name=o,"Placeholder"===t&&(d.expectedNode=e.expectedNode),d}function pT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra;if("Placeholder"===t)return lT(e);var o=Object.create(cT);return o.type=t,o.start=r,o.end=a,o.loc=n,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=i,o.value=e.value,o}cT.__clone=function(){for(var e=new dT(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,a=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){return"`declare export "+e.unsupportedExportKind+"` is not supported. Use `"+e.suggestion+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function yT(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function bT(e){return"type"===e.importKind||"typeof"===e.importKind}var vT={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function xT(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(mT.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=e.prototype.parseExpression.call(this),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11);var s=this.flowParseTypeAndPredicateInitialiser();return r.returnType=s[0],e.predicate=s[1],a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,TE.TYPE_FLOW_DECLARE_FN,e.id.loc.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(mT.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,TE.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(EE.OTHER),this.match(133)?t.id=e.prototype.parseExprAtom.call(this):t.id=this.parseIdentifier();var a=t.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){var s=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(mT.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,mT.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");var i=null,o=!1;return n.forEach((function(e){yT(e)?("CommonJS"===i&&r.raise(mT.AmbiguousDeclareModuleKind,e),i="ES"):"DeclareModuleExports"===e.type&&(o&&r.raise(mT.DuplicateDeclareModuleExports,e),"ES"===i&&r.raise(mT.AmbiguousDeclareModuleKind,e),i="CommonJS",o=!0)})),t.kind=i||"CommonJS",this.finishNode(t,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(mT.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:vT[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t},r.flowParseDeclareOpaqueType=function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?TE.TYPE_FUNCTION:TE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(mT.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){hT.has(e)&&this.raise(r?mT.AssignReservedType:mT.UnexpectedReservedType,t,{reservedType:e})},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,TE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,TE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(mT.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(r);t.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(134)||this.match(133)?e.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,a=e.allowSpread,n=e.allowProto,s=e.allowInexact,i=this.state.inType;this.state.inType=!0;var o,d,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var l=!1;for(r&&this.match(6)?(this.expect(6),o=9,d=!0):(this.expect(5),o=8,d=!1),c.exact=d;!this.match(o);){var u=!1,p=null,f=null,g=this.startNode();if(n&&this.isContextual(118)){var h=this.lookahead();14!==h.type&&17!==h.type&&(this.next(),p=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),u=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,u))):c.indexers.push(this.flowParseObjectTypeIndexer(g,u,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(g,u));else{var b="init";(this.isContextual(99)||this.isContextual(104))&&rE(this.lookahead().type)&&(b=this.state.value,this.next());var v=this.flowParseObjectTypeProperty(g,u,p,y,b,a,null!=s?s:!d);null===v?(l=!0,f=this.state.lastTokStartLoc):c.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(mT.UnexpectedExplicitInexactInObject,f)}this.expect(o),a&&(c.inexact=l);var x=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=i,x},r.flowParseObjectTypeProperty=function(e,t,r,a,n,s,i){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?i||this.raise(mT.InexactInsideExact,this.state.lastTokStartLoc):this.raise(mT.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(mT.InexactVariance,a),null):(s||this.raise(mT.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(mT.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),a&&this.unexpected(a.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(mT.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=o,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?mT.GetterMayNotHaveThisParam:mT.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?AR.BadGetterArity:AR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(AR.BadSetterRestParameter,e)},r.flowObjectTypeSemicolon=function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var a=this.startNodeAt(e);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},r.flowParseGenericType=function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0){var g=[].concat(i);if(f.length>0){this.state=s,this.state.noArrowAt=g;for(var h=0;h1&&this.raise(mT.AmbiguousConditionalArrow,s.startLoc),l&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();c=b.consequent,l=b.failed}}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=c,o.alternate=this.forwardNoArrowParamsConversionAt(o,(function(){return a.parseMaybeAssign(void 0,void 0)})),this.finishNode(o,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,a=[e],n=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type&&"BlockStatement"!==s.body.type?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):n.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}return t?(n.forEach((function(e){return r.finishArrowValidation(e)})),[n,[]]):xT(n,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingCommaLoc,!1),this.scope.enter(EE.FUNCTION|EE.ARROW),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r){var a=e.prototype.parseParenItem.call(this,t,r);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(t)),this.match(14)){var n=this.startNodeAt(r);return n.expression=a,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return a},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExportDeclaration=function(t){if(this.isContextual(130)){t.exportKind="type";var r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),e.prototype.parseExportFrom.call(this,t),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){t.exportKind="type";var a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}if(this.isContextual(129)){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.shouldParseEnums()&&this.isContextual(126)){t.exportKind="value";var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.call(this,t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.startLoc,a=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return a&&"type"===t.exportKind&&this.unexpected(r),a},r.parseClassId=function(t,r,a){e.prototype.parseClassId.call(this,t,r,a),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,a){var n=this.state.startLoc;if(this.isContextual(125)){if(e.prototype.parseClassMemberFromModifier.call(this,t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,a),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(mT.DeclareClassElement,n):r.value&&this.raise(mT.DeclareClassFieldInitializer,r.value))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(AR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);123===t&&124===r?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(18,2):this.finishOp(17,1):vE(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(62===t?48:47,1)},r.isAssignable=function(t,r){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,r):e.prototype.isAssignable.call(this,t,r)},r.toAssignable=function(t,r){void 0===r&&(r=!1),r||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,a){for(var n=0;n1)&&t||this.raise(mT.TypeCastInPattern,n.typeAnnotation)}return e},r.parseArrayLike=function(t,r,a,n){var s=e.prototype.parseArrayLike.call(this,t,r,a,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s},r.isValidLVal=function(t,r,a){return"TypeCastExpression"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.parseClassProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.match(47)||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(14)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(14)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,a,n,s,i){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,a,n,s,i),r.params&&s){var o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(mT.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&s&&r.value.params){var d=r.value.params;d.length>0&&this.isThisParam(d[0])&&this.raise(mT.ThisParamBannedInConstructor,r)}},r.pushClassPrivateMethod=function(t,r,a,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,a,n)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=t.implements=[];do{var a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,r.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var a=r[0];this.isThisParam(a)&&"get"===t.kind?this.raise(mT.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(mT.SetterMayNotHaveThisParam,a)}},r.parsePropertyNamePrefixOperator=function(e){e.variance=this.flowParseVariance()},r.parseObjPropValue=function(t,r,a,n,s,i,o){var d;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!i&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,i,o);return d&&((c.value||c).typeParameters=d),c},r.parseAssignableListItemTypes=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(mT.PatternIsOptional,e),this.isThisParam(e)&&this.raise(mT.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(mT.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(mT.ThisParamNoDefault,e),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r){var a=e.prototype.parseMaybeDefault.call(this,t,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(mT.ThisParamMustBeFirst,t.params[s]);e.prototype.checkParams.call(this,t,r,a,n)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&-1===this.state.noArrowAt.indexOf(this.state.start))},r.parseSubscripts=function(t,r,a){var n=this;if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(r.index)){this.next();var s=this.startNodeAt(r);s.callee=t,s.arguments=e.prototype.parseCallExpressionArguments.call(this,11,!1),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){var i=this.state.clone(),o=this.tryParse((function(e){return n.parseAsyncArrowWithTypeParameters(r)||e()}),i);if(!o.error&&!o.aborted)return o.node;var d=this.tryParse((function(){return e.prototype.parseSubscripts.call(n,t,r,a)}),i);if(d.node&&!d.error)return d.node;if(o.node)return this.state=o.failState,o.node;if(d.node)return this.state=d.failState,d.node;throw o.error||d.error}return e.prototype.parseSubscripts.call(this,t,r,a)},r.parseSubscript=function(t,r,a,n){var s=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,a)return n.stop=!0,t;this.next();var i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!a&&this.shouldParseTypes()&&this.match(47)){var o=this.startNodeAt(r);o.callee=t;var d=this.tryParse((function(){return o.typeArguments=s.flowParseTypeParameterInstantiationCallOrNew(),s.expect(10),o.arguments=e.prototype.parseCallExpressionArguments.call(s,11,!1),n.optionalChainMember&&(o.optional=!1),s.finishCallExpression(o,n.optionalChainMember)}));if(d.node)return d.error&&(this.state=d.failState),d.node}return e.prototype.parseSubscript.call(this,t,r,a,n)},r.parseNewCallee=function(t){var r=this;e.prototype.parseNewCallee.call(this,t);var a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=a},r.parseAsyncArrowWithTypeParameters=function(t){var r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return e.prototype.parseArrowExpression.call(this,r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(9,2)},r.parseTopLevel=function(t,r){var a=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(mT.UnterminatedFlowComment,this.state.curPosition()),a},r.skipBlockComment=function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return e.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(mT.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===r&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==a&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(AR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(mT.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?mT.EnumInvalidMemberInitializerSymbolType:mT.EnumInvalidMemberInitializerPrimaryType:mT.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(mT.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(mT.EnumStringMemberInconsistentlyInitialized,e,t)},r.flowEnumMemberInit=function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 134:var a=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:t};case 133:var n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t};case 85:case 86:var s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}},r.flowEnumMemberRaw=function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var a=t.explicitType;null!==a&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,a=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;!this.match(8);){if(this.eat(21)){s=!0;break}var i=this.startNode(),o=this.flowEnumMemberRaw(),d=o.id,c=o.init,l=d.name;if(""!==l){/^[a-z]/.test(l)&&this.raise(mT.EnumInvalidMemberName,d,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),a.has(l)&&this.raise(mT.EnumDuplicateMemberName,d,{memberName:l,enumName:t}),a.add(l);var u={enumName:t,explicitType:r,memberName:l};switch(i.id=d,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),i.init=c.value,n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),i.init=c.value,n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),i.init=c.value,n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:n.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:s}},r.flowEnumStringMembers=function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n=0;n=f){for(var g=0,h=o.defaultedMembers;g=f){for(var y=0,b=o.defaultedMembers;y",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},ST=SR(RT||(RT=x(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){return"Expected corresponding JSX closing tag for <"+e.openingTagName+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected;return"Unexpected token `"+t+"`. Did you mean `"+e.HTMLEntity+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function AT(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function jT(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return jT(e.object)+"."+jT(e.property);throw new Error("Node had unexpected type: "+e.type)}var _T,CT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(ST.UnterminatedJsxContent,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:return this.state.pos===this.state.start?void(60===a&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):e.prototype.getTokenFromCode.call(this,a)):(t+=this.input.slice(r,this.state.pos),void this.finishToken(141,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;default:LE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(AR.UnterminatedString,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):LE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(133,t)},r.jsxReadEntity=function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var a=0,n=!1;a++<10&&this.state.pos1)for(var a=0;a0?!(a&TE.FLAG_TS_ENUM)||!!(a&TE.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&TE.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&SE.Lexical)&&!!(a&TE.KIND_VALUE):!!(a&TE.KIND_TYPE&&(1&n)>0)||e.prototype.isRedeclaredInScope.call(this,t,r,a)},r.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var a=this.scopeStack.length-1;a>=0;a--){var n=this.scopeStack[a].tsNames.get(r);if((1&n)>0||(16&n)>0)return}e.prototype.checkLocalExport.call(this,t)}},p(t)}(jE),IT=function(e,t){return hasOwnProperty.call(e,t)&&e[t]},DT=function e(t){return"ParenthesizedExpression"===t.type?e(t.expression):t},NT={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},OT=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,a;void 0===t&&(t=!1);var n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=DT(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(AR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(AR.InvalidParenthesizedAssignment,e):this.raise(AR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var s=0,i=e.properties.length,o=i-1;s() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."}});function UT(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function HT(e){return"private"===e||"public"===e||"protected"===e}function GT(e){return"in"===e||"out"===e}var qT,WT=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(AR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(MT.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(AR.BadSetterArity,this.state.curPosition());else{var i=a[n][0];this.isThisParam(i)&&this.raise(MT.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===i.type&&i.optional&&this.raise(MT.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===i.type&&this.raise(MT.SetAccesorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(MT.SetAccesorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}var o=r;t&&(o.readonly=!0);var d=this.tsTryParseTypeAnnotation();return d&&(o.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(o,"TSPropertySignature")},r.tsParseTypeMember=function(){var t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){var r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);var a=this.tsTryParseIndexSignature(t);return a||(e.prototype.parsePropertyName.call(this,t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,e.prototype.parsePropertyName.call(this,t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))},r.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")},r.tsParseMappedType=function(){var e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){var a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(MT.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e,t,r,a,n,s=this.state.startLoc,i=this.eat(21),o=tE(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){r=!0;var d=this.state.startLoc,c=this.state.value,l=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),c),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=l,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAtNode(t)).optional=r,n.label=t,n.elementType=a,this.eat(17)&&(n.optional=!0,this.raise(MT.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(MT.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var u=this.startNodeAtNode(a);u.typeAnnotation=a,a=this.finishNode(u,"TSOptionalType")}if(i){var p=this.startNodeAt(s);p.typeAnnotation=a,a=this.finishNode(p,"TSRestType")}return a},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this,a=this.startNode();return"TSConstructorType"===e&&(a.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return r.tsFillSignature(19,a)})),this.finishNode(a,e)},r.tsParseLiteralTypeNode=function(){var t=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:t.literal=e.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var t=this.startNode();return t.literal=e.prototype.parseTemplate.call(this,!1),this.finishNode(t,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var r=this.state.type;if(ZR(r)||88===r||84===r){var a=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":UT(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(MT.UnexpectedReadonly,e)}},r.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},r.tsParseConstraintForInferType=function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}},r.tsParseTypeOperatorOrHigher=function(){var e=this;return pE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},r.tsParseUnionOrIntersectionType=function(e,t,r){var a=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(a.types=s,this.finishNode(a,e)):s[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},r.tsIsStartOfFunctionType=function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(ZR(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(s){return!1}}if(this.match(0)){this.next();var a=this.state.errors,n=a.length;try{return e.prototype.parseBindingList.call(this,3,93,NT.ALLOW_EMPTY),a.length===n}catch(i){return!1}}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var a=t.startNode(),n=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(n&&t.match(78)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(a.parameterName=s,a.asserts=!0,a.typeAnnotation=null,s=t.finishNode(a,"TSTypePredicate")):(t.resetStartLocationFromNode(s,a),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i)return n?(a.parameterName=t.parseIdentifier(),a.asserts=n,a.typeAnnotation=null,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return a.parameterName=i,a.typeAnnotation=o,a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},r.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},r.tsTryParseType=function(){return this.tsEatThenParseType(14)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!ZR(this.state.type)&&!this.match(78))&&(e&&this.raise(AR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(14),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){var e=this;BT(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(r,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual(124)&&77===this.lookahead().type},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(MT.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType((function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()})),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this,r=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return a.length||this.raise(MT.EmptyHeritageClauseType,r,{token:e}),a},r.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),ZR(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,TE.TYPE_TS_INTERFACE)):(e.id=null,this.raise(MT.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,TE.TYPE_TS_TYPE),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsInDisallowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsInAllowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsEatThenParseType=function(e){if(this.match(e))return this.tsNextThenParseType()},r.tsExpectThenParseType=function(e){var t=this;return this.tsInType((function(){return t.expect(e),t.tsParseType()}))},r.tsNextThenParseType=function(){var e=this;return this.tsInType((function(){return e.next(),e.tsParseType()}))},r.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(133)?e.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=e.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(t,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?TE.TYPE_TS_CONST_ENUM:TE.TYPE_TS_ENUM),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var t=this.startNode();return this.scope.enter(EE.OTHER),this.expect(5),e.prototype.parseBlockOrModuleBlockBody.call(this,t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,TE.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(EE.TS_MODULE),this.prodParam.enter(aT.PARAM),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual(112)?(t.global=!0,t.id=this.parseIdentifier()):this.match(133)?t.id=e.prototype.parseStringLiteral.call(this,this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(EE.TS_MODULE),this.prodParam.enter(aT.PARAM),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,TE.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(MT.ImportAliasHasImportType,a),e.moduleReference=a,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual(119)&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),t.expression=e.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t},r.tsTryParseDeclare=function(t){var r=this;if(!this.isLineTerminator()){var a,n=this.state.type;return this.isContextual(100)&&(n=74,a="let"),this.tsInAmbientContext((function(){switch(n){case 68:return t.declare=!0,e.prototype.parseFunctionStatement.call(r,t,!1,!1);case 80:return t.declare=!0,r.parseClass(t,!0,!1);case 126:return r.tsParseEnumDeclaration(t,{declare:!0});case 112:return r.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return r.match(75)&&r.isLookaheadContextual("enum")?(r.expect(75),r.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,r.parseVarStatement(t,a||r.state.value,!0));case 129:var s=r.tsParseInterfaceDeclaration(t,{declare:!0});if(s)return s;default:if(ZR(n))return r.tsParseDeclaration(t,r.state.value,!0,null)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},r.tsParseExpressionStatement=function(e,t,r){switch(t.name){case"declare":var a=this.tsTryParseDeclare(e);return a&&(a.declare=!0),a;case"global":if(this.match(5)){this.scope.enter(EE.TS_MODULE),this.prodParam.enter(aT.PARAM);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}},r.tsParseDeclaration=function(e,t,r,a){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||ZR(this.state.type)))return this.tsParseAbstractDeclaration(e,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(ZR(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&ZR(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&ZR(this.state.type))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t){var r=this;if(this.match(47)){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var n=this.tsTryParseAndCatch((function(){var a=r.startNodeAt(t);return a.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),a}));if(this.state.maybeInArrowParameters=a,n)return e.prototype.parseArrowExpression.call(this,n,null,!0)}},r.tsParseTypeArgumentsInExpression=function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length?this.raise(MT.EmptyTypeArguments,t):this.state.inType||this.curContext()!==IR.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){return fE(this.state.type)},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);var n=a.accessibility,s=a.override,i=a.readonly;e&NT.IS_CONSTRUCTOR_PARAMS||!(n||i||s)||this.raise(MT.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);var d=this.parseMaybeDefault(o.loc.start,o);if(n||i||s){var c=this.startNodeAt(r);return t.length&&(c.decorators=t),n&&(c.accessibility=n),i&&(c.readonly=i),s&&(c.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(MT.UnsupportedParameterPropertyKind,c),c.parameter=d,this.finishNode(c,"TSParameterProperty")}return t.length&&(o.decorators=t),d},r.isSimpleParameter=function(t){return"TSParameterProperty"===t.type&&e.prototype.isSimpleParameter.call(this,t.parameter)||e.prototype.isSimpleParameter.call(this,t)},r.tsDisallowOptionalPattern=function(e){for(var t=0,r=e.params;ta&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){var i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType((function(){return s.next(),s.match(75)?(n&&s.raise(AR.UnexpectedKeyword,s.state.startLoc,{keyword:"const"}),s.tsParseTypeReference()):s.tsParseType()})),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,a)}return e.prototype.parseExprOp.call(this,t,r,a)},r.checkReservedWord=function(t,r,a,n){this.state.isAmbientContext||e.prototype.checkReservedWord.call(this,t,r,a,n)},r.checkImportReflection=function(t){e.prototype.checkImportReflection.call(this,t),t.module&&"value"!==t.importKind&&this.raise(MT.ImportReflectionHasImportType,t.specifiers[0].loc.start)},r.checkDuplicateExports=function(){},r.isPotentialImportPhase=function(t){if(e.prototype.isPotentialImportPhase.call(this,t))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return t?123===r||42===r:61!==r}return!t&&this.isContextual(87)},r.applyImportPhase=function(t,r,a,n){e.prototype.applyImportPhase.call(this,t,r,a,n),r?t.exportKind="type"===a?"type":"value":t.importKind="type"===a||"typeof"===a?a:"value"},r.parseImport=function(t){if(this.match(133))return t.importKind="value",e.prototype.parseImport.call(this,t);var r;if(ZR(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){var a=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,a);r=e.prototype.parseImportSpecifiersAndAfter.call(this,t,a)}else r=e.prototype.parseImport.call(this,t);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(MT.TypeImportCannotSpecifyDefaultAndNamed,r),r},r.parseExport=function(t,r){if(this.match(83)){this.next();var a=t,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,n,!0)}if(this.eat(29)){var s=t;return s.expression=e.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}if(this.eatContextual(93)){var i=t;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t,r)},r.isAbstractClass=function(){return this.isContextual(124)&&80===this.lookahead().type},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseVarStatement=function(t,r,a){void 0===a&&(a=!1);var n=this.state.isAmbientContext,s=e.prototype.parseVarStatement.call(this,t,r,a||n);if(!n)return s;for(var i=0,o=s.declarations;i0))&&XT(e.object)}function zT(e,t){var r,a=e.type;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===a){var n=e.value;if("string"===typeof n||"boolean"===typeof n)return!0}}else if("StringLiteral"===a||"BooleanLiteral"===a)return!0;return!(!KT(e,t)&&!YT(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!VT(e)}function KT(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function YT(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&KT(a,t))return!0}return!1}function XT(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&XT(e.object)}var JT=SR(qT||(qT=x(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),QT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(144)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r},r.getTokenFromCode=function(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):e.prototype.getTokenFromCode.call(this,t)},r.parseExprAtom=function(t){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.call(this,t)},r.parseIdentifier=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.call(this,t)},r.checkReservedWord=function(t,r,a,n){void 0!==t&&e.prototype.checkReservedWord.call(this,t,r,a,n)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.call(this)},r.isValidLVal=function(t,r,a){return"Placeholder"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.toAssignable=function(t,r){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":e.prototype.toAssignable.call(this,t,r)},r.chStartsBindingIdentifier=function(t,r){return!!e.prototype.chStartsBindingIdentifier.call(this,t,r)||144===this.lookahead().type},r.verifyBreakContinue=function(t,r){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.call(this,t,r)},r.parseExpressionStatement=function(t,r){var a;if("Placeholder"!==r.type||null!=(a=r.extra)&&a.parenthesized)return e.prototype.parseExpressionStatement.call(this,t,r);if(this.match(14)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=e.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(n,"LabeledStatement")}this.semicolon();var s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")},r.parseBlock=function(t,r,a){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.call(this,t,r,a)},r.parseFunctionId=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.call(this,t)},r.parseClass=function(t,r,a){var n=r?"ClassDeclaration":"ClassExpression";this.next();var s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(a||!r)return t.id=null,t.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(t,n);throw this.raise(JT.ClassNameIsRequired,this.state.startLoc)}t.id=i}else this.parseClassId(t,r,a);return e.prototype.parseClassSuper.call(this,t),t.body=this.parsePlaceholder("ClassBody")||e.prototype.parseClassBody.call(this,!!t.superClass,s),this.finishNode(t,n)},r.parseExport=function(t,r){var a=this.parsePlaceholder("Identifier");if(!a)return e.prototype.parseExport.call(this,t,r);var n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var s=this.startNode();return s.exported=a,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,n,r)},r.isExportDefaultSpecifier=function(){if(this.match(65)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(gE(144),this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t,r){var a;return!(null==(a=t.specifiers)||!a.length)||e.prototype.maybeParseExportDefaultSpecifier.call(this,t,r)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.call(this,t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.call(this)},r.assertNoSpace=function(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(JT.UnexpectedSpace,this.state.lastTokEndLoc)},p(t)}(e)},$T=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),ZR(this.state.type)){var r=this.parseIdentifierName(),a=this.createIdentifier(t,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(e)}},r.parseExprAtom=function(t){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.call(this,t)},p(t)}(e)};function ZT(e,t){var r="string"===typeof t?[t,{}]:t,a=r[0],n=r[1],s=Object.keys(n),i=0===s.length;return e.some((function(e){if("string"===typeof e)return i&&e===a;var t=e[0],r=e[1];if(t!==a)return!1;for(var o=0;o1?a[1][r]:null}var tw=["minimal","fsharp","hack","smart"],rw=["^^","@@","^","%","#"];function aw(e){if(ZT(e,"decorators")){if(ZT(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=ew(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=ew(e,"decorators","allowCallParenthesized");if(null!=r&&"boolean"!==typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(ZT(e,"flow")&&ZT(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(ZT(e,"placeholders")&&ZT(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(ZT(e,"pipelineOperator")){var a=ew(e,"pipelineOperator","proposal");if(!tw.includes(a)){var n=tw.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+n+".")}var s=["recordAndTuple",{syntaxType:"hash"}],i=ZT(e,s);if("hack"===a){if(ZT(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(ZT(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var o=ew(e,"pipelineOperator","topicToken");if(!rw.includes(o)){var d=rw.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+d+".")}if("#"===o&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(s)+"`.")}else if("smart"===a&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(s)+"`.")}if(ZT(e,"moduleAttributes")){if(ZT(e,"importAssertions")||ZT(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==ew(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(ZT(e,"importAssertions")&&ZT(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(ZT(e,"recordAndTuple")){var c=ew(e,"recordAndTuple","syntaxType");if(null!=c){var l=["hash","bar"];if(!l.includes(c))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+l.map((function(e){return"'"+e+"'"})).join(", "))}}if(ZT(e,"asyncDoExpressions")&&!ZT(e,"doExpressions")){var u=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw u.missingPlugins="doExpressions",u}if(ZT(e,"optionalChainingAssign")&&"2023-07"!==ew(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var nw={estree:kR,jsx:CT,flow:TT,typescript:WT,v8intrinsic:$T,placeholders:QT},sw=Object.keys(nw),iw={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function ow(e){if(null==e)return Object.assign({},iw);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var t={},r=0,a=Object.keys(iw);r=c&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else o.left=i;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(i,{in:this.finishNode(o,"AssignmentExpression")}),o}return r&&this.checkExpressionErrors(e,!0),i},r.parseMaybeConditional=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,r)?a:this.parseConditional(a,t,e)},r.parseConditional=function(e,t,r){if(this.eat(17)){var a=this.startNodeAt(t);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e},r.parseMaybeUnaryOrPrivate=function(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)},r.parseExprOps=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,r)?a:this.parseExprOp(a,t,-1)},r.parseExprOp=function(e,t,r){if(this.isPrivateName(e)){var a=this.getPrivateNameSV(e);(r>=hE(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(AR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(cE(n)&&(this.prodParam.hasIn||!this.match(58))){var s=hE(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;var o=41===n||42===n,d=40===n;if(d&&(s=hE(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(AR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);var c=this.finishNode(i,o||d?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(d&&(41===l||42===l)||o&&40===l)throw this.raise(AR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e},r.parseExprOpRightExpr=function(e,t){var r=this,a=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return r.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(AR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}return this.parseExprOpBaseRightExpr(e,t)},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,mE(e)?t-1:t)},r.parseHackPipeBody=function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!vR.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(AR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(AR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(AR.UnexpectedTokenUnaryExponentiation,e.argument)},r.parseMaybeUnary=function(e,t){var r=this.state.startLoc,a=this.isContextual(96);if(a&&this.isAwaitAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var s=this.match(34),i=this.startNode();if(uE(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var o=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){var d=i.argument;"Identifier"===d.type?this.raise(AR.StrictDelete,i):this.hasPropertyAsPrivateName(d)&&this.raise(AR.DeletePrivateField,i)}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var c=this.parseUpdate(i,s,e);if(a){var l=this.state.type;if((this.hasPlugin("v8intrinsic")?nE(l):nE(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(AR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return c},r.parseUpdate=function(e,t,r){if(t){var a=e;return this.checkLVal(a.argument,{in:this.finishNode(a,"UpdateExpression")}),e}var n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;lE(this.state.type)&&!this.canInsertSemicolon();){var i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=s,this.next(),this.checkLVal(s,{in:s=this.finishNode(i,"UpdateExpression")})}return s},r.parseExprSubscripts=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,r)?a:this.parseSubscripts(a,t)},r.parseSubscripts=function(e,t,r){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,a),a.maybeAsyncArrow=!1}while(!a.stop);return e},r.parseSubscript=function(e,t,r,a){var n=this.state.type;if(!r&&15===n)return this.parseBind(e,t,r,a);if(yE(n))return this.parseTaggedTemplateExpression(e,t,a);var s=!1;if(18===n){if(r&&(this.raise(AR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return a.stop=!0,e;a.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,a,s);var i=this.eat(0);return i||s||this.eat(16)?this.parseMember(e,t,a,i,s):(a.stop=!0,e)},r.parseMember=function(e,t,r,a,n){var s=this.startNodeAt(t);return s.object=e,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(AR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")},r.parseBind=function(e,t,r,a){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,a){var n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();var i=this.startNodeAt(t);i.callee=e;var o=r.maybeAsyncArrow,d=r.optionalChainMember;o&&(this.expressionScope.enter(tT()),s=new oT),d&&(i.optional=a),i.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,i,s);var c=this.finishCallExpression(i,d);return o&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r){var a=this.startNodeAt(t);return a.tag=e,a.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(AR.OptionalChainingNoTemplate,t),this.finishNode(a,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt},r.expectImportAttributesPlugin=function(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(AR.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(var r=0,a=e.arguments;r1?((t=this.startNodeAt(o)).expressions=d,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=d[0],this.wrapParenthesis(r,t))},r.wrapParenthesis=function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")},r.shouldParseArrow=function(e){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(19))return e},r.parseParenItem=function(e,t){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(AR.UnexpectedNewTarget,r),r}return this.parseNew(e)},r.parseNew=function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")},r.parseNewCallee=function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(AR.ImportCallNotNewExpression,r)},r.parseTemplateElement=function(e){var t=this.state,r=t.start,a=t.startLoc,n=t.end,s=t.value,i=r+1,o=this.startNodeAt(uR(a,1));null===s&&(e||this.raise(AR.InvalidEscapeSequenceTemplate,uR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),c=d?-1:-2,l=n+c;o.value={raw:this.input.slice(i,l).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},o.tail=d,this.next();var u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,uR(this.state.lastTokEndLoc,c)),u},r.parseTemplate=function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),a=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=a,this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=Object.create(null),i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var d=void 0;t?d=this.parseBindingProperty():(d=this.parsePropertyDefinition(a),this.checkProto(d,r,s,a)),r&&!this.isObjectProperty(d)&&"SpreadElement"!==d.type&&this.raise(AR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),o.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)},r.addTrailingCommaExtraToNode=function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},r.parsePropertyDefinition=function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(AR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,a=this.startNode(),n=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(a.decorators=t,t=[]),a.method=!1,e&&(r=this.state.startLoc);var i=this.eat(55);this.parsePropertyNamePrefixOperator(a);var o=this.state.containsEsc;if(this.parsePropertyName(a,e),!i&&!o&&this.maybeAsyncOrAccessorProp(a)){var d=a.key,c=d.name;"async"!==c||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),i=this.eat(55),this.parsePropertyName(a)),"get"!==c&&"set"!==c||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=c,this.match(55)&&(i=!0,this.raise(AR.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,r,i,n,!1,s,e)},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e);a.length!==r&&this.raise("get"===e.kind?AR.BadGetterArity:AR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(AR.BadSetterRestParameter,e)},r.parseObjectMethod=function(e,t,r,a,n){if(n){var s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(r||t||this.match(10))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")},r.parseObjectProperty=function(e,t,r,a){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,uT(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(AR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,uT(e.key))}else e.value=uT(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}},r.parseObjPropValue=function(e,t,r,a,n,s,i){var o=this.parseObjectMethod(e,r,a,n,s)||this.parseObjectProperty(e,t,n,i);return o||this.unexpected(),o},r.parsePropertyName=function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,a=this.state,n=a.type,s=a.value;if(tE(n))r=this.parseIdentifier(!0);else switch(n){case 134:r=this.parseNumericLiteral(s);break;case 133:r=this.parseStringLiteral(s);break;case 135:r=this.parseBigIntLiteral(s);break;case 136:r=this.parseDecimalLiteral(s);break;case 138:var i=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=i):this.raise(AR.UnexpectedPrivateField,i),r=this.parsePrivateName();break;default:this.unexpected()}e.key=r,138!==n&&(e.computed=!1)}},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=t},r.parseMethod=function(e,t,r,a,n,s,i){void 0===i&&(i=!1),this.initFunction(e,r),e.generator=t,this.scope.enter(EE.FUNCTION|EE.SUPER|(i?EE.CLASS:0)|(n?EE.DIRECT_SUPER:0)),this.prodParam.enter(sT(r,e.generator)),this.parseFunctionParams(e,a);var o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o},r.parseArrayLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,a){this.scope.enter(EE.FUNCTION|EE.ARROW);var n=sT(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=aT.PARAM_IN),this.prodParam.enter(n),this.initFunction(e,r);var s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){this.toAssignableList(t,r,!1),e.params=t},r.parseFunctionBodyAndFinish=function(e,t,r){return void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var a=this;void 0===r&&(r=!1);var n=t&&!this.match(5);if(this.expressionScope.enter(rT()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|aT.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var i=!a.isSimpleParamList(e.params);n&&i&&a.raise(AR.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var o=!s&&a.state.strict;a.checkParams(e,!a.state.strict&&!t&&!r&&!i,t,o),a.state.strict&&e.id&&a.checkIdentifier(e.id,TE.TYPE_OUTSIDE,o)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()},r.isSimpleParameter=function(e){return"Identifier"===e.type},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t10)&&RE(e))if(r&&Oi(e))this.raise(AR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?Ni:Ii:Pi)(e,this.inModule))this.raise(AR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(AR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(AR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(AR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(AR.ArgumentsInClass,t)},r.isAwaitAllowed=function(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)},r.parseAwait=function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(AR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(AR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")},r.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||yE(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(AR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.parseImportCall=function(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")},r.checkPipelineAtInfixOperator=function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(AR.PipelineHeadSequenceExpression,t)},r.parseSmartPipelineBodyInStyle=function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var a=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),a.expression=e,this.finishNode(a,"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.checkSmartPipeTopicBodyEarlyErrors=function(e){if(this.match(19))throw this.raise(AR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(AR.PipelineTopicUnused,e)},r.withTopicBindingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSmartMixTopicForbiddingContext=function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(aT.PARAM_IN&~t){this.prodParam.enter(t|aT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(aT.PARAM_IN&t){this.prodParam.enter(t&~aT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,a},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")},r.parsePropertyNamePrefixOperator=function(e){},p(t)}(OT),cw={kind:GE.Loop},lw={kind:GE.Switch},uw={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},pw={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},fw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,gw=new RegExp("in(?:stanceof)?","y");function hw(e,t){for(var r=0;r0)for(var a=0,n=Array.from(this.scope.undefinedExports);a0?("boolean"!==typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorsBeforeAfterExport,t.decorators[0]),(a=t.decorators).unshift.apply(a,e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t},r.canHaveLeadingDecorator=function(){return this.match(80)},r.parseDecorators=function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(AR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(AR.UnexpectedLeadingDecorator,this.state.startLoc);return t},r.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var a=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(a,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(AR.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var s=this.startNodeAt(r);s.object=t,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r;for(r=0;r=0;o--){var d=this.state.labels[o];if(d.statementStart!==e.start)break;d.statementStart=this.state.start,d.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=a&pw.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var a=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(EE.OTHER),this.parseBlockBody(a,e,!1,8,r),t&&this.scope.exit(),this.finishNode(a,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,a,n){var s=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?i:void 0,r,a,n)},r.parseBlockOrModuleBlockBody=function(e,t,r,a,n){for(var s=this.state.strict,i=!1,o=!1;!this.match(a);){var d=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(d)){var c=this.stmtToDirective(d);t.push(c),i||"use strict"!==c.value.value||(i=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(d)}null==n||n.call(this,i),s||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var a=this,n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(AR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(AR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return a.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r,a){void 0===a&&(a=!1);var n=e.declarations=[];for(e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),s.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==s.init||a||("Identifier"===s.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(AR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(AR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return e},r.parseVarId=function(e,t){var r=this.parseBindingAtom();this.checkLVal(r,{in:{type:"VariableDeclarator"},binding:"var"===t?TE.TYPE_VAR:TE.TYPE_LEXICAL}),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,uw.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=uw.Expression);var a=t&uw.HangingDeclaration,n=!!(t&uw.Declaration),s=n&&!(t&uw.NullableId),i=!!(t&uw.Async);this.initFunction(e,i),this.match(55)&&(a&&this.raise(AR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(EE.FUNCTION),this.prodParam.enter(sT(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){r.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e},r.parseFunctionId=function(e){return e||ZR(this.state.type)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(10),this.expressionScope.enter(ZE()),e.params=this.parseBindingList(11,41,NT.IS_FUNCTION_PARAMS|(t?NT.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?TE.TYPE_VAR:TE.TYPE_LEXICAL:TE.TYPE_FUNCTION,e.id.loc.start)},r.parseClass=function(e,t,r){this.next();var a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,a),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},r.isClassMethod=function(){return this.match(10)},r.nameIsConstructor=function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value},r.isNonstaticConstructor=function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var a={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(8);)if(r.eat(13)){if(n.length>0)throw r.raise(AR.DecoratorSemicolon,r.state.lastTokEndLoc)}else if(r.match(26))n.push(r.parseDecorator());else{var e=r.startNode();n.length&&(e.decorators=n,r.resetStartLocationFromNode(e,n[0]),n=[]),r.parseClassMember(s,e,a),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(AR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(AR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var a=t;return a.kind="method",a.computed=!1,a.key=r,a.static=!1,this.pushClassMethod(e,a,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1},r.parseClassMember=function(e,t,r){var a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,a)},r.parseClassMemberWithIsStatic=function(e,t,r,a){var n=t,s=t,i=t,o=t,d=t,c=n,l=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";var u=this.match(138);return this.parseClassElementName(c),u?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var p=!this.state.containsEsc&&ZR(this.state.type),f=this.parseClassElementName(t),g=p?f.name:null,h=this.isPrivateName(f),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",h)return void this.pushClassPrivateMethod(e,s,!1,!1);var y=this.isNonstaticConstructor(n),b=!1;y&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(AR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(AR.OverrideOnConstructor,f),r.hadConstructor=!0,b=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,y,b)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i);else if("async"!==g||this.isLineTerminator())if("get"!==g&&"set"!==g||this.match(55)&&this.isLineTerminator())if("accessor"!==g||this.isLineTerminator())this.isLineTerminator()?h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);var v=this.match(138);this.parseClassElementName(i),this.pushClassAccessorProperty(e,d,v)}else{this.resetPreviousNodeTrailingComments(f),c.kind=g;var x=this.match(138);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);l.optional&&this.unexpected(m),c.kind="method";var E=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),E?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(AR.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,R,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,a=t.value;if(132!==r&&133!==r||!e.static||"prototype"!==a||this.raise(AR.StaticPrototype,this.state.startLoc),138===r){"constructor"===a&&this.raise(AR.ConstructorClassPrivateField,this.state.startLoc);var n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key},r.parseClassStaticBlock=function(e,t){var r;this.scope.enter(EE.CLASS|EE.STATIC_BLOCK|EE.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(aT.PARAM);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(AR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(AR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),wE.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(AR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),wE.OTHER,a.key.loc.start)},r.pushClassMethod=function(e,t,r,a,n,s){e.body.push(this.parseMethod(t,r,a,n,s,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,a){var n=this.parseMethod(t,r,a,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var s="get"===n.kind?n.static?wE.STATIC_GETTER:wE.INSTANCE_GETTER:"set"===n.kind?n.static?wE.STATIC_SETTER:wE.INSTANCE_SETTER:wE.OTHER;this.declareClassPrivateMethodInScope(n,s)},r.declareClassPrivateMethodInScope=function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseClassAccessorProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")},r.parseInitializer=function(e){this.scope.enter(EE.CLASS|EE.SUPER),this.expressionScope.enter(rT()),this.prodParam.enter(aT.PARAM),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,a){if(void 0===a&&(a=TE.TYPE_CLASS),ZR(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(AR.MissingClassName,this.state.startLoc);e.id=null}},r.parseClassSuper=function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null},r.parseExport=function(e,t){var r=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,r),n=!a||this.eat(12),s=n&&this.eatExportStar(e),i=s&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!i||this.eat(12)),d=a||s;if(s&&!i){if(a&&this.unexpected(),t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var c,l=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!l&&this.unexpected(null,5),i&&o&&this.unexpected(null,98),d||l){if(c=!1,t)throw this.raise(AR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else c=this.maybeParseExportDeclaration(e);if(d||l||c){var u,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(u=p.declaration)?void 0:u.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){var f=e,g=this.parseExportDefaultExpression();if(f.declaration=g,"ClassDeclaration"===g.type)this.maybeTakeDecorators(t,g,f);else if(t)throw this.raise(AR.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)},r.eatExportStar=function(e){return this.eat(55)},r.maybeParseExportDefaultSpecifier=function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),a=this.startNodeAtNode(r);return a.exported=r,e.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){if(this.match(5)){var t,r=e;r.specifiers||(r.specifiers=[]);var a="type"===r.exportKind;return(t=r.specifiers).push.apply(t,this.parseExportSpecifiers(a)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,uw.Declaration|uw.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,uw.Declaration|uw.NullableId|uw.Async);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(AR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t},r.parseExportDeclaration=function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()},r.isExportDefaultSpecifier=function(){var e=this.state.type;if(ZR(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(ZR(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||ZR(this.state.type)&&a)return!0;if(this.match(65)&&a){var n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===n||39===n}return!1},r.parseExportFrom=function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()},r.shouldParseExportDeclaration=function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(AR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(AR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,a){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,i=e.declaration;"Identifier"!==i.type||"from"!==i.name||i.end-i.start!==4||null!=(s=i.extra)&&s.parenthesized||this.raise(AR.ExportDefaultFromAsIdentifier,i)}}else if(null!=(n=e.specifiers)&&n.length)for(var o=0,d=e.specifiers;o0&&this.raise(AR.ImportReflectionHasAssertion,t[0].loc.start)}},r.checkJSONModuleImport=function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find((function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(AR.ImportJSONBindingNotDefault,r.loc.start)}}},r.isPotentialImportPhase=function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))},r.applyImportPhase=function(e,t,r,a){t||("module"===r?(this.expectPlugin("importReflection",a),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",a),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",a),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))},r.parseMaybeImportPhase=function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),a=this.state.type;return(tE(a)?98!==a||102===this.lookaheadCharCode():12!==a)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)},r.isPrecedingIdImportPhase=function(e){var t=this.state.type;return ZR(t)?98!==t||102===this.lookaheadCharCode():12!==t},r.parseImport=function(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))},r.parseImportSpecifiersAndAfter=function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)},r.parseImportSourceAndAttributes=function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(133)||this.unexpected(),this.parseExprAtom()},r.parseImportSpecifierLocal=function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))},r.finishImportSpecifier=function(e,t,r){return void 0===r&&(r=TE.TYPE_LEXICAL),this.checkLVal(e.local,{in:{type:t},binding:r}),this.finishNode(e,t)},r.parseImportAttributes=function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),a=this.state.value;if(t.has(a)&&this.raise(AR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),t.add(a),this.match(133)?r.key=this.parseStringLiteral(a):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(AR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e},r.parseModuleAttributes=function(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(AR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(AR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(AR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e},r.maybeParseImportAttributes=function(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(AR.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t},r.maybeParseDefaultImportSpecifier=function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!tE(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(AR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),a=this.match(133),n=this.isContextual(130);r.imported=this.parseModuleExportName();var s=this.parseImportSpecifier(r,a,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}},r.parseImportSpecifier=function(e,t,r,a,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var s=e.imported;if(t)throw this.raise(AR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=uT(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},p(t)}(dw),yw=function(e){function t(t,r){var a;return t=ow(t),(a=e.call(this,t,r)||this).options=t,a.initializeScopes(),a.plugins=bw(a.options.plugins),a.filename=t.sourceFilename,a}f(t,e);var r=t.prototype;return r.getScopeHandler=function(){return jE},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e},p(t)}(mw);function bw(e){for(var t=new Map,r=0;r!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,_w.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),_w}function kw(e){return null!=e&&e&&"false"!==e&&"0"!==e}var Pw=(kw(di.env.BABEL_8_BREAKING),Cw()),Iw={exports:{}},Dw=String,Nw=function(){return{isColorSupported:!1,reset:Dw,bold:Dw,dim:Dw,italic:Dw,underline:Dw,inverse:Dw,hidden:Dw,strikethrough:Dw,black:Dw,red:Dw,green:Dw,yellow:Dw,blue:Dw,magenta:Dw,cyan:Dw,white:Dw,gray:Dw,bgBlack:Dw,bgRed:Dw,bgGreen:Dw,bgYellow:Dw,bgBlue:Dw,bgMagenta:Dw,bgCyan:Dw,bgWhite:Dw}};Iw.exports=Nw();var Ow=Iw.exports.createColors=Nw,Fw=Iw.exports,Lw="object"!==typeof di||"0"!==di.env.FORCE_COLOR&&"false"!==di.env.FORCE_COLOR?Fw:Ow(!1),Bw=function(e,t){return function(r){return e(t(r))}},Mw=new Set(["as","async","from","get","of","set"]);function Uw(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Bw(Bw(e.white,e.bgRed),e.bold)}}var Hw,Gw=/\r\n|[\n\r\u2028\u2029]/,qw=/^[()[\]{}]$/,Ww=/^[a-z][\w-]*$/i,Vw=function(e,t,r){if("name"===e.type){if(Oi(e.value)||Ii(e.value,!0)||Mw.has(e.value))return"keyword";if(Ww.test(e.value)&&("<"===r[t-1]||""),i(s.gutter,n),e.length>0?" "+e:"",u].join("")}return" "+i(s.gutter,n)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!u&&(f=""+" ".repeat(p+1)+r.message+"\n"+f),a?n.reset(f):f}var sS=q,iS=J,oS=Pn,dS=re,cS=Ir,lS=pe,uS=Gr,pS=En,fS=se,gS=Sx,hS=Lx,mS=/^[_$A-Z0-9]+$/;function yS(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,i=r.syntacticPlaceholders,o=xS(t,r.parser,i);gS(o,{preserveComments:s}),e.validate(o);var d={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:n,syntacticPlaceholders:i};return hS(o,bS,d),Object.assign({ast:o},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function bS(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(uS(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(dS(e)||cS(e))n=e.name;else{if(!fS(e))return;n=e.value}}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||mS).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var i,o=(t=t.slice())[t.length-1],d=o.node,c=o.key;fS(e)||uS(e,{expectedNode:"StringLiteral"})?i="string":lS(d)&&"arguments"===c||sS(d)&&"arguments"===c||oS(d)&&"params"===c?i="param":iS(d)&&!uS(e)?(i="statement",t=t.slice(0,-1)):i=pS(e)&&uS(e)?"statement":"other";var l=s?r.syntactic:r.legacy,u=l.placeholders,p=l.placeholderNames;u.push({name:n,type:i,resolve:function(e){return vS(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function vS(e,t){for(var r=e,a=0;a1?a-1:0),i=1;i1)throw new Error("Unexpected extra params.");return BS(IS(e,t,iR(n,oR(s[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=DS(e,t,n),r.set(t,o)),BS(o(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return LS(e,iR(n,oR(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i1)throw new Error("Unexpected extra params.");return IS(e,t,iR(iR(n,oR(s[0])),FS))()}if(Array.isArray(t)){var o=a.get(t);return o||(o=DS(e,t,iR(n,FS)),a.set(t,o)),o(s)()}throw new Error("Unexpected template param "+typeof t)}})}function BS(e){var t="";try{throw new Error}catch(nQ){nQ.stack&&(t=nQ.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var MS=LS(eR),US=LS(rR),HS=LS(tR),GS=LS(aR),qS=LS(nR),WS=Object.assign(MS.bind(void 0),{smart:MS,statement:US,statements:HS,expression:GS,program:qS,ast:MS.ast}),VS=Object.freeze({__proto__:null,default:WS,expression:GS,program:qS,smart:MS,statement:US,statements:HS});function zS(e,t,r){return Object.freeze({minVersion:e,ast:function(){return WS.program.ast(t,{preserveComments:!0})},metadata:r})}var KS={__proto__:null,OverloadYield:zS("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:zS("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(i,e,a),a=null),a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:zS("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:zS("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:zS("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:zS("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]}}),objectWithoutPropertiesLoose:zS("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{}}),possibleConstructorReturn:zS("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]}}),readOnlyError:zS("7.0.0-beta.0","function _readOnlyError(r){throw new TypeError('\"'+r+'\" is read-only')}",{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{}}),regeneratorRuntime:zS("7.18.0",'function _regeneratorRuntime(){"use strict";\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:zS("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:zS("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:zS("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:zS("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:zS("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:zS("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),taggedTemplateLiteral:zS("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:zS("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:zS("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:zS("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:zS("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:zS("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:zS("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:zS("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:zS("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:zS("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:zS("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:zS("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:zS("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,n){var e=Error();return e.name="SuppressedError",e.error=r,e.suppressed=n,e},n={},e=[];function using(r,n){if(null!=n){if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==o&&(o=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof o)throw new TypeError("Property [Symbol.dispose] is not a function.");e.push({v:n,d:o,a:r})}else r&&e.push({d:n,a:r});return n}return{e:n,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o=this.e;function next(){for(;r=e.pop();)try{var r,t=r.d&&r.d.call(r.v);if(r.a)return Promise.resolve(t).then(next,err)}catch(r){return err(r)}if(o!==n)throw o}function err(e){return o=o!==n?new r(e,o):e,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:zS("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:zS("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:zS("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:zS("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(KS,{AwaitValue:zS("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:zS("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:zS("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:zS("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:zS("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:zS("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:zS("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:zS("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:zS("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:zS("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:zS("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:zS("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:zS("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:zS("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:zS("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:zS("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:zS("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:zS("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:zS("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[n],n=a.shift();if(!(arguments.length>2))return e[n];e[n]=r}catch(oOe){throw oOe.message+=" (when accessing "+t+")",oOe}}function QS(e,t,r,a,n,s){var i=t.locals,o=t.dependencies,d=t.exportBindingAssignments,c=t.exportName,l=new Set(a||[]);r&&l.add(r);for(var u=0,p=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(i);u100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(o){var d=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(n){var s=Math.abs(n);return s>=a?Math.round(n/a)+"d":s>=r?Math.round(n/r)+"h":s>=t?Math.round(n/t)+"m":s>=e?Math.round(n/e)+"s":n+"ms"}function d(n){var s=Math.abs(n);return s>=a?c(n,s,a,"day"):s>=r?c(n,s,r,"hour"):s>=t?c(n,s,t,"minute"):s>=e?c(n,s,e,"second"):n+" ms"}function c(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return Dj=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return i(e);if("number"===r&&isFinite(e))return t.long?d(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},Dj}function Bj(e){function t(e){for(var t=0,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))})),t.splice(n,0,r)}}function n(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(nQ){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(nQ){}return!e&&"undefined"!==typeof di&&"env"in di&&(e=di.env.DEBUG),e}function i(){try{return localStorage}catch(nQ){}}t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=Mj(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(nQ){return"[UnexpectedJSONParseError]: "+nQ.message}}}(Fj,Fj.exports);var Uj=Fj.exports,Hj=nv,Gj=_c,qj=Cc,Wj=Wd,Vj=mc,zj=yc;function Kj(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){var t=e.get("declaration"),r=t.isFunctionDeclaration()||t.isClassDeclaration(),a=t.isFunctionExpression()||t.isClassExpression(),n=t.isScope()?t.scope.parent:t.scope,s=t.node.id,i=!1;s?a&&n.hasBinding(s.name)&&(i=!0,s=n.generateUidIdentifier(s.name)):(i=!0,s=n.generateUidIdentifier("default"),(r||a)&&(t.node.id=Hj(s)));var o=r?t.node:Vj("var",[zj(Hj(s),t.node)]),d=Gj(null,[qj(Hj(s),Wj("default"))]);return e.insertAfter(d),e.replaceWith(o),i&&n.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");var c=e.get("declaration"),l=c.getOuterBindingIdentifiers(),u=Object.keys(l).map((function(e){return qj(Wj(e),Wj(e))})),p=Gj(null,u);return e.insertAfter(p),e.replaceWith(c.node),e}function Yj(e){var t=e.context,r=e.node;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(var a,n=k(e.get("decorators"));!(a=n()).done;){var s=a.value;t.maybeQueue(s)}}var Xj={FunctionParent:function(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&Yj(e))},Property:function(e){e.isObjectProperty()||(e.skip(),Yj(e))}},Jj={ReferencedIdentifier:function(e,t){var r=e.node;r.name===t.oldName&&(r.name=t.newName)},Scope:function(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&Yj(e))},ObjectProperty:function(e,t){var r,a=e.node,n=e.scope,s=a.key.name;!a.shorthand||s!==t.oldName&&s!==t.newName||n.getBindingIdentifier(s)!==t.binding.identifier||(a.shorthand=!1,null!=(r=a.extra)&&r.shorthand&&(a.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator":function(e,t){if(!e.isVariableDeclaration()){var r=e.getOuterBindingIdentifiers();for(var a in r)a===t.oldName&&(r[a].name=t.newName)}}},Qj=function(){function e(e,t,r){this.newName=r,this.oldName=t,this.binding=e}var t=e.prototype;return t.maybeConvertFromExportDeclaration=function(e){var t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){var r=t.node.declaration;if(Nn(r)&&!r.id)return}t.isExportAllDeclaration()||Kj(t)}},t.maybeConvertFromClassFunctionDeclaration=function(e){return e},t.maybeConvertFromClassFunctionExpression=function(e){return e},t.rename=function(){var e=this.binding,t=this.oldName,r=this.newName,a=e.scope,n=e.path,s=n.find((function(e){return e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()}));s&&s.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(s),_W(arguments[0]||a.block,gj(Jj),a,this,a.path,{discriminant:!0}),arguments[0]||(a.removeOwnBinding(t),a.bindings[r]=e,this.binding.identifier.name=r),s&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))},p(e)}(),$j=function(){function e(e){var t=e.identifier,r=e.scope,a=e.path,n=e.kind;this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=a,this.kind=n,"var"!==n&&"hoisted"!==n||!Zj(a)||this.reassign(a),this.clearValue()}var t=e.prototype;return t.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},t.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},t.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},t.reassign=function(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)},t.reference=function(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,this.references++,this.referencePaths.push(e))},t.dereference=function(){this.references--,this.referenced=!!this.references},p(e)}();function Zj(e){for(var t=e.parentPath,r=e.key;t;t=(a=t).parentPath,r=a.key,a){var a;if(t.isFunctionParent())return!1;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&"body"===r)return!0}return!1}var e_,t_,r_={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}};function a_(){return t_?e_:(t_=1,e_=r_)}function n_(e){return null!=e&&e&&"false"!==e&&"0"!==e}var s_=(n_(di.env.BABEL_8_BREAKING),a_()),i_=po,o_=Pd,d_=nv,c_=Ox,l_=Wd,u_=O,p_=bn,f_=q,g_=Vn,h_=Oe,m_=Le,y_=Be,b_=Me,v_=Ue,x_=ee,R_=re,E_=qe,T_=Bn,w_=ue,S_=Un,A_=Yn,j_=oe,__=ge,C_=Gn,k_=Dn,P_=ce,I_=$e,D_=Ze,N_=tt,O_=Te,F_=Ae,L_=_e,B_=hs,M_=Zd,U_=Yd,H_=yx,G_=mc,q_=yc,W_=Jr,V_=Qr,z_=me,K_=ea,Y_=Ye,X_=ft,J_=Kn,Q_=ev;function $_(e,t){switch(null==e?void 0:e.type){default:var r;if(E_(e)||J_(e))if((y_(e)||v_(e)||E_(e))&&e.source)$_(e.source,t);else if((v_(e)||E_(e))&&null!=(r=e.specifiers)&&r.length)for(var a,n=k(e.specifiers);!(a=n()).done;)$_(a.value,t);else(b_(e)||v_(e))&&e.declaration&&$_(e.declaration,t);else A_(e)?$_(e.local,t):!T_(e)||j_(e)||P_(e)||N_(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":$_(e.object,t),$_(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":$_(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(var s,i=k(e.properties);!(s=i()).done;)$_(s.value,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":$_(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":$_(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),$_(e.argument,t);break;case"AwaitExpression":t.push("await"),$_(e.argument,t);break;case"AssignmentExpression":$_(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":$_(e.id,t);break;case"ParenthesizedExpression":$_(e.expression,t);break;case"MetaProperty":$_(e.meta,t),$_(e.property,t);break;case"JSXElement":$_(e.openingElement,t);break;case"JSXOpeningElement":$_(e.name,t);break;case"JSXFragment":$_(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":$_(e.namespace,t),$_(e.name,t)}}var Z_={ForStatement:function(e){var t=e.get("init");if(t.isVar()){var r=e.scope;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration:function(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration:function(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){var a=e.scope;(a.getFunctionParent()||a.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit:function(e){var t=e.node,r=e.scope;if(!y_(t)){var a=t.declaration;if(m_(a)||x_(a)){var n=a.id;if(!n)return;var s=r.getBinding(n.name);null==s||s.reference(e)}else if(L_(a))for(var i,o=k(a.declarations);!(i=o()).done;)for(var d=i.value,c=0,l=Object.keys(c_(d));c1&&(r+=t),"_"+r},t.generateUidBasedOnNode=function(e,t){var r=[];$_(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return l_(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(O_(e)||I_(e)||K_(e))return!0;if(R_(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),d_(r))},t.checkBlockScopedCollisions=function(e,t,r,a){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.hub.buildError(a,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new Qj(r,e,t).rename(arguments[2]))},t._renameFromMap=function(e,t,r,a){e[t]&&(e[r]=a,e[t]=null)},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,a=Object.keys(t.bindings);r0)&&this.isPure(e.body,t);if(h_(e)){for(var i,o=k(e.body);!(i=o()).done;){var d=i.value;if(!this.isPure(d,t))return!1}return!0}if(p_(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(u_(e)||V_(e)){for(var c,l=k(e.elements);!(c=l()).done;){var u=c.value;if(null!==u&&!this.isPure(u,t))return!1}return!0}if(__(e)||W_(e)){for(var p,f=k(e.properties);!(p=f()).done;){var g=p.value;if(!this.isPure(g,t))return!1}return!0}if(S_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(C_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((z_(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(F_(e))return this.isPure(e.argument,t);if(N_(e)){for(var h,m=k(e.expressions);!(h=m()).done;){var y=h.value;if(!this.isPure(y,t))return!1}return!0}return D_(e)?B_(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):w_(e)?!e.computed&&R_(e.object)&&"Symbol"===e.object.name&&R_(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):f_(e)?B_(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&se(e.arguments[0]):k_(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this.getProgramParent();if(!t.crawling){var r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&fj(Z_)){for(var a,n=k(Z_.enter);!(a=n()).done;)a.value.call(r,e,r);var s=Z_[e.type];if(s)for(var i,o=k(s.enter);!(i=o()).done;)i.value.call(r,e,r)}e.traverse(Z_,r),this.crawling=!1;for(var d,c=k(r.assignments);!(d=c()).done;){for(var l=d.value,u=l.getBindingIdentifiers(),p=0,f=Object.keys(u);p0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[o-2]?2:"="===e[o-1]?1:0,i=new dC(3*o/4-s),a=s>0?o-4:o;var d=0;for(t=0,r=0;t>16&255,i[d++]=n>>8&255,i[d++]=255&n;return 2===s?(n=oC[e.charCodeAt(t)]<<2|oC[e.charCodeAt(t+1)]>>4,i[d++]=255&n):1===s&&(n=oC[e.charCodeAt(t)]<<10|oC[e.charCodeAt(t+1)]<<4|oC[e.charCodeAt(t+2)]>>2,i[d++]=n>>8&255,i[d++]=255&n),i}function pC(e){return iC[e>>18&63]+iC[e>>12&63]+iC[e>>6&63]+iC[63&e]}function fC(e,t,r){for(var a,n=[],s=t;sd?d:o+i));return 1===a?(t=e[r-1],n+=iC[t>>2],n+=iC[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=iC[t>>10],n+=iC[t>>4&63],n+=iC[t<<2&63],n+="="),s.push(n),s.join("")}function hC(e,t,r,a,n){var s,i,o=8*n-a-1,d=(1<>1,l=-7,u=r?n-1:0,p=r?-1:1,f=e[t+u];for(u+=p,s=f&(1<<-l)-1,f>>=-l,l+=o;l>0;s=256*s+e[t+u],u+=p,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=a;l>0;i=256*i+e[t+u],u+=p,l-=8);if(0===s)s=1-c;else{if(s===d)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,a),s-=c}return(f?-1:1)*i*Math.pow(2,s-a)}function mC(e,t,r,a,n,s){var i,o,d,c=8*s-n-1,l=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:s-1,g=a?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-i))<1&&(i--,d*=2),(t+=i+u>=1?p/d:p*Math.pow(2,1-u))*d>=2&&(i++,d/=2),i+u>=l?(o=0,i=l):i+u>=1?(o=(t*d-1)*Math.pow(2,n),i+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),i=0));n>=8;e[r+f]=255&o,f+=g,o/=256,n-=8);for(i=i<0;e[r+f]=255&i,f+=g,i/=256,c-=8);e[r+f-g]|=128*h}var yC={}.toString,bC=Array.isArray||function(e){return"[object Array]"==yC.call(e)},vC=50;function xC(){return EC.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function RC(e,t){if(xC()=xC())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+xC().toString(16)+" bytes");return 0|e}function IC(e){return!(null==e||!e._isBuffer)}function DC(e,t){if(IC(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ck(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return pk(e).length;default:if(a)return ck(e).length;t=(""+t).toLowerCase(),a=!0}}function NC(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return JC(this,t,r);case"utf8":case"utf-8":return VC(this,t,r);case"ascii":return YC(this,t,r);case"latin1":case"binary":return XC(this,t,r);case"base64":return WC(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return QC(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function OC(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function FC(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=EC.from(t,a)),IC(t))return 0===t.length?-1:LC(e,t,r,a,n);if("number"===typeof t)return t&=255,EC.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):LC(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function LC(e,t,r,a,n){var s,i=1,o=e.length,d=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;i=2,o/=2,d/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var l=-1;for(s=r;so&&(r=o-d),s=r;s>=0;s--){for(var u=!0,p=0;pn&&(a=n):a=n;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var i=0;i239?4:c>223?3:c>191?2:1;if(n+u<=r)switch(u){case 1:c<128&&(l=c);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&c)<<6|63&s)>127&&(l=d);break;case 3:s=e[n+1],i=e[n+2],128===(192&s)&&128===(192&i)&&(d=(15&c)<<12|(63&s)<<6|63&i)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[n+1],i=e[n+2],o=e[n+3],128===(192&s)&&128===(192&i)&&128===(192&o)&&(d=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&o)>65535&&d<1114112&&(l=d)}null===l?(l=65533,u=1):l>65535&&(l-=65536,a.push(l>>>10&1023|55296),l=56320|1023&l),a.push(l),n+=u}return KC(a)}EC.TYPED_ARRAY_SUPPORT=void 0===vs.TYPED_ARRAY_SUPPORT||vs.TYPED_ARRAY_SUPPORT,xC(),EC.poolSize=8192,EC._augment=function(e){return e.__proto__=EC.prototype,e},EC.from=function(e,t,r){return TC(null,e,t,r)},EC.TYPED_ARRAY_SUPPORT&&(EC.prototype.__proto__=Uint8Array.prototype,EC.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&EC[Symbol.species]),EC.alloc=function(e,t,r){return SC(null,e,t,r)},EC.allocUnsafe=function(e){return AC(null,e)},EC.allocUnsafeSlow=function(e){return AC(null,e)},EC.isBuffer=hk,EC.compare=function(e,t){if(!IC(e)||!IC(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},EC.prototype.compare=function(e,t,r,a,n){if(!IC(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(a>>>=0),i=(r>>>=0)-(t>>>=0),o=Math.min(s,i),d=this.slice(a,n),c=e.slice(t,r),l=0;ln)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return BC(this,e,t,r);case"utf8":case"utf-8":return MC(this,e,t,r);case"ascii":return UC(this,e,t,r);case"latin1":case"binary":return HC(this,e,t,r);case"base64":return GC(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qC(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},EC.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var zC=4096;function KC(e){var t=e.length;if(t<=zC)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var n="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function ZC(e,t,r,a,n,s){if(!IC(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function ek(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function tk(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function rk(e,t,r,a,n,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ak(e,t,r,a,n){return n||rk(e,t,r,4),mC(e,t,r,a,23,4),r+4}function nk(e,t,r,a,n){return n||rk(e,t,r,8),mC(e,t,r,a,52,8),r+8}EC.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},EC.prototype.readUInt8=function(e,t){return t||$C(e,1,this.length),this[e]},EC.prototype.readUInt16LE=function(e,t){return t||$C(e,2,this.length),this[e]|this[e+1]<<8},EC.prototype.readUInt16BE=function(e,t){return t||$C(e,2,this.length),this[e]<<8|this[e+1]},EC.prototype.readUInt32LE=function(e,t){return t||$C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},EC.prototype.readUInt32BE=function(e,t){return t||$C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},EC.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||$C(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},EC.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||$C(e,t,this.length);for(var a=t,n=1,s=this[e+--a];a>0&&(n*=256);)s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},EC.prototype.readInt8=function(e,t){return t||$C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},EC.prototype.readInt16LE=function(e,t){t||$C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},EC.prototype.readInt16BE=function(e,t){t||$C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},EC.prototype.readInt32LE=function(e,t){return t||$C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},EC.prototype.readInt32BE=function(e,t){return t||$C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},EC.prototype.readFloatLE=function(e,t){return t||$C(e,4,this.length),hC(this,e,!0,23,4)},EC.prototype.readFloatBE=function(e,t){return t||$C(e,4,this.length),hC(this,e,!1,23,4)},EC.prototype.readDoubleLE=function(e,t){return t||$C(e,8,this.length),hC(this,e,!0,52,8)},EC.prototype.readDoubleBE=function(e,t){return t||$C(e,8,this.length),hC(this,e,!1,52,8)},EC.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||ZC(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+r},EC.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,1,255,0),EC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},EC.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,2,65535,0),EC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ek(this,e,t,!0),t+2},EC.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,2,65535,0),EC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ek(this,e,t,!1),t+2},EC.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,4,4294967295,0),EC.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):tk(this,e,t,!0),t+4},EC.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,4,4294967295,0),EC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tk(this,e,t,!1),t+4},EC.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);ZC(this,e,t,r,n-1,-n)}var s=0,i=1,o=0;for(this[t]=255&e;++s=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i|0)-o&255;return t+r},EC.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,1,127,-128),EC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},EC.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,2,32767,-32768),EC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ek(this,e,t,!0),t+2},EC.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,2,32767,-32768),EC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ek(this,e,t,!1),t+2},EC.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,4,2147483647,-2147483648),EC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):tk(this,e,t,!0),t+4},EC.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||ZC(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),EC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):tk(this,e,t,!1),t+4},EC.prototype.writeFloatLE=function(e,t,r){return ak(this,e,t,!0,r)},EC.prototype.writeFloatBE=function(e,t,r){return ak(this,e,t,!1,r)},EC.prototype.writeDoubleLE=function(e,t,r){return nk(this,e,t,!0,r)},EC.prototype.writeDoubleBE=function(e,t,r){return nk(this,e,t,!1,r)},EC.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(s<1e3||!EC.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function lk(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function pk(e){return uC(ik(e))}function fk(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function gk(e){return e!==e}function hk(e){return null!=e&&(!!e._isBuffer||mk(e)||yk(e))}function mk(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function yk(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&mk(e.slice(0,0))}var bk,vk={exports:{}};function xk(){return bk||(bk=1,function(e,t){!function(e,r){r(t)}(0,(function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),s=new Uint8Array(128),i=0;i>>=1,c&&(n=-2147483648|-n),r[a]+=n,t}function p(e,r,a){return!(r>=a)&&e.charCodeAt(r)!==t}function f(e){e.sort(g)}function g(e,t){return e[0]-t[0]}function h(e){for(var a=new Int32Array(5),n=16384,s=n-36,i=new Uint8Array(n),o=i.subarray(0,s),c=0,l="",u=0;u0&&(c===n&&(l+=d.decode(i),c=0),i[c++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(l+=d.decode(o),i.copyWithin(0,s,c),c-=s),f>0&&(i[c++]=t),c=m(i,c,a,g,0),1!==g.length&&(c=m(i,c,a,g,1),c=m(i,c,a,g,2),c=m(i,c,a,g,3),4!==g.length&&(c=m(i,c,a,g,4)))}}}return l+d.decode(i.subarray(0,c))}function m(e,t,r,a,s){var i=a[s],o=i-r[s];r[s]=i,o=o<0?-o<<1|1:o<<1;do{var d=31&o;(o>>>=5)>0&&(d|=32),e[t++]=n[d]}while(o>0);return t}e.decode=c,e.encode=h,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,vk.exports)),vk.exports}var Rk,Ek={exports:{}},Tk={exports:{}};function wk(){return Rk||(Rk=1,e=Tk,function(t,r){e.exports=r()}(0,(function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(t){return e.test(t)}function n(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function o(e){return/^[.?#]/.test(e)}function d(e){var r=t.exec(e);return l(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function c(e){var t=r.exec(e),a=t[2];return l("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function l(e,t,r,a,n,s,i){return{scheme:e,user:t,host:r,port:a,path:n,query:s,hash:i,type:7}}function u(e){if(n(e)){var t=d("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){var r=d("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(i(e))return c(e);if(a(e))return d(e);var o=d("http://foo.com/"+e);return o.scheme="",o.host="",o.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,o}function p(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){g(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function g(e,t){for(var r=t<=4,a=e.path.split("/"),n=1,s=0,i=!1,o=1;oa&&(a=s)}g(r,a);var i=r.query+r.hash;switch(a){case 2:case 3:return i;case 4:var d=r.path.slice(1);return d?o(t||e)&&!o(d)?"./"+d+i:d+i:i||".";case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return h}))),Tk.exports;var e}!function(e,t){!function(e,r){r(t,xk(),wk())}(0,(function(e,t,r){function a(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function n(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}var s=0,i=1,o=2,d=3,c=4,l=1,u=2;function f(e,t){var r=g(e,0);if(r===e.length)return e;t||(e=e.slice());for(var a=r;a>1),i=e[n][s]-t;if(0===i)return b=!0,n;i<0?r=n+1:a=n-1}return b=!1,r-1}function x(e,t,r){for(var a=r+1;a=0&&e[a][s]===t;r=a--);return r}function E(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function T(e,t,r,a){var n=r.lastKey,i=r.lastNeedle,o=r.lastIndex,d=0,c=e.length-1;if(a===n){if(t===i)return b=-1!==o&&e[o][s]===t,o;t>=i?d=-1===o?0:o:c=o}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,c)}function w(e,t){for(var r=t.map(A),a=0;at;a--)e[a]=e[a-1];e[t]=r}function A(){return{__proto__:null}}var j=function(e,t){var r=_(e);if(!("sections"in r))return new L(r,t);var a=[],n=[],s=[],i=[],o=[];return C(r,t,a,n,s,i,o,0,0,1/0,1/0),X({version:3,file:r.file,names:i,sources:n,sourcesContent:s,mappings:a,ignoreList:o})};function _(e){return"string"===typeof e?JSON.parse(e):e}function C(e,t,r,a,n,s,i,o,d,c,l){for(var u=e.sections,p=0;pg)return;for(var k=I(r,j),D=0===A?f:0,N=x[A],O=0;O=h)return;if(1!==F.length){var M=b+F[i],H=F[o],G=F[d];k.push(4===F.length?[B,M,H,G]:[B,M,H,G,v+F[c]])}else k.push([B])}}}function P(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,B(e)._decodedMemo,t,r,F);return-1===s?null:n[s]}function G(e,t){var r=t.line,a=t.column,n=t.bias;if(--r<0)throw new Error(D);if(a<0)throw new Error(N);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var l=s[r],u=te(l,B(e)._decodedMemo,r,a,n||F);if(-1===u)return Z(null,null,null,null);var p=l[u];if(1===p.length)return Z(null,null,null,null);var f=e.names;return Z(e.resolvedSources[p[i]],p[o]+1,p[d],5===p.length?f[p[c]]:null)}function q(e,t){return ae(e,t.source,t.line,t.column,t.bias||F,!1)}function W(e,t){return ae(e,t.source,t.line,t.column,t.bias||O,!0)}function V(e,t){for(var r=U(e),a=e.names,n=e.resolvedSources,s=0;s=0&&!(t>=e[a][n]);r=a--);return r}function A(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function j(e){for(var t=e.length,r=t,a=r-1;a>=0&&!(e[a].length>0);r=a,a--);r1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)},t._append=function(e,t,r){var a=e.length,n=this._position;if(this._last=e.charCodeAt(a-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var s=t.column,i=t.identifierName,o=t.identifierNamePos,d=t.filename,c=t.line;null==i&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var l=e.indexOf("\n"),u=0;for(0!==l&&this._mark(c,s,i,o,d);-1!==l;)n.line++,n.column=0,(u=l+1)=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t},t.endsWithCharAndNewline=function(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}},t.hasContent=function(){return 0!==this._queueCursor||!!this._last},t.exactSource=function(e,t){if(this._map){this.source("start",e);var r=e.identifierName,a=this._sourcePosition;r&&(this._canMarkIdName=!1,a.identifierName=r),t(),r&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",e)}else t()},t.source=function(e,t){this._map&&this._normalizePosition(e,t,0)},t.sourceWithOffset=function(e,t,r){this._map&&this._normalizePosition(e,t,r)},t.withSource=function(e,t,r){this._map&&this.source(e,t),r()},t._normalizePosition=function(e,t,r){var a=t[e],n=this._sourcePosition;a&&(n.line=a.line,n.column=Math.max(a.column+r,0),n.filename=t.filename)},t.getCurrentColumn=function(){for(var e=this._queue,t=this._queueCursor,r=-1,a=0,n=0;n",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function iP(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var oP=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},dP=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function cP(e,t){return Yk(t)}function lP(e,t,r){if(!(r.length<3)){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||"TypeAnnotation"===a&&Xk(r[r.length-3])}}function uP(e,t){return dP(e,t)||oP(e,t)}function pP(e,t,r){return DP(r,3)}function fP(e,t,r){return!e.async&&DP(r,1)}function gP(e,t){var r=t.type;if("**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(oP(e,t))return!0;if(dP(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;if("BinaryExpression"===r||"LogicalExpression"===r){var a=sP.get(t.operator),n=sP.get(e.operator);if(a===n&&t.right===e&&"LogicalExpression"!==r||a>n)return!0}}function hP(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function mP(e,t){return eP(t)&&t.objectType===e}function yP(){return!0}function bP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSUnionType"===r||"TSRestType"===r}function vP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function xP(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function RP(e,t){if("in"===e.operator){var r=t.type;return"VariableDeclarator"===r||"ForStatement"===r||"ForInStatement"===r||"ForOfStatement"===r}return!1}function EP(e,t){var r=t.type;return!("ForStatement"===r||"ThrowStatement"===r||"ReturnStatement"===r||"IfStatement"===r&&t.test===e||"WhileStatement"===r&&t.test===e||"ForInStatement"===r&&t.right===e||"SwitchStatement"===r&&t.discriminant===e||"ExpressionStatement"===r&&t.expression===e)}function TP(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||dP(e,t)||"AwaitExpression"===r&&nP(e)||"ConditionalExpression"===r&&e===t.test||oP(e,t)}function wP(e,t,r){return DP(r,5)}function SP(e,t){return dP(e,t)||Jk(t)&&"**"===t.operator&&t.left===e||oP(e,t)}function AP(e,t,r){return DP(r,5)}function jP(e,t){return $k(t)||_P(e,t)}function _P(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||iP(r))||SP(e,t)}function CP(e,t){return Qk(t)&&t.callee===e||tP(t)&&t.object===e}function kP(e,t){return!!rP(e.left)||_P(e,t)}function PP(e,t){var r=t.type;if(iP(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}}function IP(e,t,r){var a,n=t.type;if(null!=(a=e.extra)&&a.parenthesized&&"AssignmentExpression"===n&&t.left===e){var s=t.right.type;if(("FunctionExpression"===s||"ClassExpression"===s)&&null==t.right.id)return!0}return"let"===e.name?DP(r,tP(t,{object:e,computed:!0})||aP(t,{object:e,computed:!0,optional:!1})?57:32):"async"===e.name&&Zk(t)&&e===t.left}function DP(e,t){var r=1&t,a=2&t,n=4&t,s=8&t,i=16&t,o=32&t,d=e.length-1;if(!(d<=0)){for(var c=e[d],l=e[--d];d>=0;){var u=l.type;if(r&&"ExpressionStatement"===u&&l.expression===c||n&&"ExportDefaultDeclaration"===u&&c===l.declaration||a&&"ArrowFunctionExpression"===u&&l.body===c||s&&"ForStatement"===u&&l.init===c||i&&"ForInStatement"===u&&l.left===c||o&&"ForOfStatement"===u&&l.left===c)return!0;if(!(d>0&&(dP(c,l)&&"NewExpression"!==u||"SequenceExpression"===u&&l.expressions[0]===c||"UpdateExpression"===u&&!l.prefix||"ConditionalExpression"===u&&l.test===c||("BinaryExpression"===u||"LogicalExpression"===u)&&l.left===c||"AssignmentExpression"===u&&l.left===c)))return!1;c=l,l=e[--d]}return!1}}var NP=ho,OP=q,FP=ue,LP=pe;function BP(e){var t=new Map;function r(e,r){var a=t.get(e);t.set(e,a?function(e,t,n){var s;return null!=(s=a(e,t,n))?s:r(e,t,n)}:r)}for(var a=0,n=Object.keys(e);a1}),wI(t))if(SI(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function XI(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))}var JI=Me,QI=Ue;function $I(e,t){(JI(t)||QI(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)}function ZI(e){this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e))}function eD(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function tD(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function rD(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function aD(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function nD(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function sD(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function iD(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))}var oD=re;function dD(e,t,r){this.print(e.typeParameters,e);var a=yD.call(this,t,r);a&&this.sourceIdentifierName(a.name,a.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);var n="ArrowFunctionExpression"===e.type;this.print(e.returnType,e,n),this._noLineTerminator=n}function cD(e,t){for(var r=e.length,a=0;a"),this.space(),this.print(e.body,e)}function mD(e,t){var r,a;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(r=t.leadingComments)&&r.length||null!=(a=t.trailingComments)&&a.length)}function yD(e,t){var r=e;if(!r&&t){var a=t.type;"VariableDeclarator"===a?r=t.id:"AssignmentExpression"===a||"AssignmentPattern"===a?r=t.left:"ObjectProperty"===a||"ClassProperty"===a?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==a&&"ClassAccessorProperty"!==a||(r=t.key)}if(r){var n,s,i;if("Identifier"===r.type)n={pos:null==(s=r.loc)?void 0:s.start,name:(null==(i=r.loc)?void 0:i.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var d;n={pos:null==(d=r.loc)?void 0:d.start,name:r.value}}return n}}var bD=Le,vD=Xr,xD=it,RD=We,ED=Ve,TD=En;function wD(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))}function SD(e){this.print(e.local,e)}function AD(e){this.print(e.exported,e)}function jD(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))}function _D(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)}var CD,kD,PD=!1;function ID(e){var t=this.format.importAttributesKeyword,r=e.attributes,a=e.assertions;!r||t||PD||(PD=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var n="assert"===t||!t&&a;this.word(n?"assert":"with"),this.space(),n||"with"===t?(this.tokenChar(123),this.space(),this.printList(r||a,e),this.space(),this.tokenChar(125)):this.printList(r||a,e)}function DD(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function ND(e,t){bD(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}function OD(e){if(ND(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t,e),TD(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r,a,n=e.specifiers.slice(0),s=!1;;){var i=n[0];if(!vD(i)&&!xD(i))break;s=!0,this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space())}(n.length||!n.length&&!s)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(r=e.attributes)&&r.length||null!=(a=e.assertions)&&a.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)),this.semicolon()}}function FD(e){ND(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();var t=e.declaration;this.print(t,e),TD(t)||this.semicolon()}function LD(e){var t,r;this.word("import"),this.space();var a="type"===e.importKind||"typeof"===e.importKind;a?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var n=e.specifiers.slice(0),s=!!n.length;s;){var i=n[0];if(!RD(i)&&!ED(i))break;this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space())}n.length?(this.tokenChar(123),this.space(),this.printList(n,e),this.space(),this.tokenChar(125)):a&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function BD(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function MD(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)}function UD(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41)}function HD(){if(kD)return CD;kD=1;var e={},t=e.hasOwnProperty,r=function(e,r){for(var a in e)t.call(e,a)&&r(a,e[a])},a=function(e,t){return t?(r(t,(function(t,r){e[t]=r})),e):e},n=function(e,t){for(var r=e.length,a=-1;++a=55296&&U<=56319&&B>L+1){var H=F.charCodeAt(L+1);if(H>=56320&&H<=57343){var G=(1024*(U-55296)+H-56320+65536).toString(16);w||(G=G.toUpperCase()),R+="\\u{"+G+"}",++L;continue}}}if(!s.escapeEverything){if(y.test(M)){R+=M;continue}if('"'==M){R+=E==M?'\\"':M;continue}if("`"==M){R+=E==M?"\\`":M;continue}if("'"==M){R+=E==M?"\\'":M;continue}}if("\0"!=M||x||m.test(F.charAt(L+1)))if(h.test(M))R+=g[M];else{var q=M.charCodeAt(0);if(s.minimal&&8232!=q&&8233!=q)R+=M;else{var W=q.toString(16);w||(W=W.toUpperCase());var V=W.length>2||x,z="\\"+(V?"u":"x")+("0000"+W).slice(V?-4:-2);R+=z}}else R+="\\0"}return s.wrap&&(R=E+R+E),"`"==E&&(R=R.replace(/\$\{/g,"\\${")),s.isScriptContext?R.replace(/<\/(script|style)/gi,"<\\/$1").replace(//,"$2")||""))return;if(r){if(Dt(e,a,"pre",r))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},Nt=e=>{let{value:t=""}=e;const r=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(r).forEach((e=>{"true"===r[e]&&(r[e]=!0),"false"===r[e]&&(r[e]=!1),"string"!==typeof r[e]||/^0/.test(r[e])||isNaN(+r[e])||(r[e]=+r[e])})),r},Ot=(e,t,r)=>"string"===r?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===r?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:r=!0}=e;return e=>{H(e,"element",((e,a,n)=>{if(r&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&n&&Array.isArray(n.children)&&n.children.length>1){const r=e.children[0];if(r&&"code"===r.tagName&&"number"===typeof a){const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(n.children,a);if(s){const a=Nt(s);Object.keys(a).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},r.properties=Ot(r.properties,a,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&n&&Array.isArray(n.children)&&"number"===typeof a){const s=Dt(n.children,a,"",r);if(s){const r=Nt(s);Object.keys(r).length>0&&(e.properties=Ot(e.properties,r,t))}}}))}},Bt="object"===typeof self?self:globalThis,Lt=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),a=n=>{if(e.has(n))return e.get(n);const[s,i]=t[n];switch(s){case 0:case-1:return r(i,n);case 1:{const e=r([],n);for(const t of i)e.push(a(t));return e}case 2:{const e=r({},n);for(const[t,r]of i)e[a(t)]=a(r);return e}case 3:return r(new Date(i),n);case 4:{const{source:e,flags:t}=i;return r(new RegExp(e,t),n)}case 5:{const e=r(new Map,n);for(const[t,r]of i)e.set(a(t),a(r));return e}case 6:{const e=r(new Set,n);for(const t of i)e.add(a(t));return e}case 7:{const{name:e,message:t}=i;return r(new Bt[e](t),n)}case 8:return r(BigInt(i),n);case"BigInt":return r(Object(BigInt(i)),n)}return r(new Bt[s](i),n)};return a})(new Map,e)(0),Mt="",{toString:Ut}={},{keys:Ht}=Object,Gt=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=Ut.call(e).slice(8,-1);switch(r){case"Array":return[1,Mt];case"Object":return[2,Mt];case"Date":return[3,Mt];case"RegExp":return[4,Mt];case"Map":return[5,Mt];case"Set":return[6,Mt]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},qt=e=>{let[t,r]=e;return 0===t&&("function"===r||"symbol"===r)},Wt=function(e){let{json:t,lossy:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=[];return((e,t,r,a)=>{const n=(e,t)=>{const n=a.push(e)-1;return r.set(t,n),n},s=a=>{if(r.has(a))return r.get(a);let[i,o]=Gt(a);switch(i){case 0:{let t=a;switch(o){case"bigint":i=8,t=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return n([-1],a)}return n([i,t],a)}case 1:{if(o)return n([o,[...a]],a);const e=[],t=n([i,e],a);for(const r of a)e.push(s(r));return t}case 2:{if(o)switch(o){case"BigInt":return n([o,a.toString()],a);case"Boolean":case"Number":case"String":return n([o,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const r=[],d=n([i,r],a);for(const t of Ht(a))!e&&qt(Gt(a[t]))||r.push([s(t),s(a[t])]);return d}case 3:return n([i,a.toISOString()],a);case 4:{const{source:e,flags:t}=a;return n([i,{source:e,flags:t}],a)}case 5:{const t=[],r=n([i,t],a);for(const[n,i]of a)(e||!qt(Gt(n))&&!qt(Gt(i)))&&t.push([s(n),s(i)]);return r}case 6:{const t=[],r=n([i,t],a);for(const n of a)!e&&qt(Gt(n))||t.push(s(n));return r}}const{message:d}=a;return n([i,{name:o,message:d}],a)};return s})(!(t||r),!!t,new Map,a)(e),a},Vt="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Lt(Wt(e,t)):structuredClone(e):(e,t)=>Lt(Wt(e,t)),zt=/[#.]/g;var Kt=r(1141);const Yt=new Set(["button","menu","reset","submit"]),Xt={}.hasOwnProperty;function Jt(e,t,r){const a=r&&function(e){const t={};let r=-1;for(;++r2?o-2:0),c=2;c1?r[e.line-2]:0)+e.column-1;if(a-1&&e<=t.length){let a=0;for(;;){let n=r[a];if(void 0===n){const e=rr(t,r[a-1]);n=-1===e?t.length+1:e+1,r[a]=n}if(n>e)return{line:a+1,column:e-(a>0?r[a-1]:0)+1,offset:e};a++}}}}}(t),n=a.toPoint(0),s=a.toPoint(t.length);r.position={start:n,end:s}}return r}case"#documentType":return r={type:"doctype"},dr(e,t,r),r;case"#text":{const a=t;return r={type:"text",value:a.value},dr(e,a,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===ar.svg?re.JW:re.qy;let a=-1;const n={};for(;++a=55296&&e<=57343}function Cr(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function kr(e){return e>=64976&&e<=65007||vr.has(e)}var Pr;!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"}(Pr=Pr||(Pr={}));class Ir{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:r,offset:a}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Rr.EOF;return this._err(Pr.surrogateInInputStream),e}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(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Rr.EOF;const r=this.html.charCodeAt(t);return r===Rr.CARRIAGE_RETURN?Rr.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,Rr.EOF;let e=this.html.charCodeAt(this.pos);if(e===Rr.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,Rr.LINE_FEED;if(e===Rr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,_r(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===Rr.LINE_FEED||e===Rr.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Cr(e)?this._err(Pr.controlCharacterInInputStream):kr(e)&&this._err(Pr.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}!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"}(Dr=Dr||(Dr={}));const Or=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c'.split("").map((e=>e.charCodeAt(0)))),Fr=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((e=>e.charCodeAt(0))));var Br;const Lr=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]]),Mr=null!==(Br=String.fromCodePoint)&&void 0!==Br?Br:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function Ur(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Lr.get(e))&&void 0!==t?t:e}var Hr;!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"}(Hr||(Hr={}));var Gr,qr,Wr;function Vr(e){return e>=Hr.ZERO&&e<=Hr.NINE}function zr(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_F||e>=Hr.LOWER_A&&e<=Hr.LOWER_F}function Kr(e){return e===Hr.EQUALS||function(e){return e>=Hr.UPPER_A&&e<=Hr.UPPER_Z||e>=Hr.LOWER_A&&e<=Hr.LOWER_Z||Vr(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Gr||(Gr={})),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"}(qr||(qr={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Wr||(Wr={}));class Yr{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=qr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wr.Strict}startEntity(e){this.decodeMode=e,this.state=qr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case qr.EntityStart:return e.charCodeAt(t)===Hr.NUM?(this.state=qr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=qr.NamedEntity,this.stateNamedEntity(e,t));case qr.NumericStart:return this.stateNumericStart(e,t);case qr.NumericDecimal:return this.stateNumericDecimal(e,t);case qr.NumericHex:return this.stateNumericHex(e,t);case qr.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Hr.LOWER_X?(this.state=qr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=qr.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,a){if(t!==r){const n=r-t;this.result=this.result*Math.pow(a,n)+parseInt(e.substr(t,n),a),this.consumed+=n}}stateNumericHex(e,t){const r=t;for(;t>14;for(;t>14,0!==n){if(s===Hr.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==Wr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,a=(r[t]&Gr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,a,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:a}=this;return this.emitCodePoint(1===t?a[e]&~Gr.VALUE_LENGTH:a[e+1],r),3===t&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case qr.NamedEntity:return 0===this.result||this.decodeMode===Wr.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case qr.NumericDecimal:return this.emitNumericEntity(0,2);case qr.NumericHex:return this.emitNumericEntity(0,3);case qr.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qr.EntityStart:return 0}}}function Xr(e){let t="";const r=new Yr(e,(e=>t+=Mr(e)));return function(e,a){let n=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(n,s),r.startEntity(a);const i=r.write(e,s+1);if(i<0){n=s+r.end();break}n=s+i,s=0===i?n+1:n}const i=t+e.slice(n);return t="",i}}function Jr(e,t,r,a){const n=(t&Gr.BRANCH_LENGTH)>>7,s=t&Gr.JUMP_TABLE;if(0===n)return 0!==s&&a===s?r:-1;if(s){const t=a-s;return t<0||t>=n?-1:e[r+t]-1}let i=r,o=i+n-1;for(;i<=o;){const t=i+o>>>1,r=e[t];if(ra))return e[t+n];o=t-1}}return-1}Xr(Or),Xr(Fr);var Qr,$r,Zr,ea,ta;!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/"}(Qr=Qr||(Qr={})),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"}($r=$r||($r={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Zr=Zr||(Zr={})),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.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"}(ea=ea||(ea={})),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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(ta=ta||(ta={}));const ra=new Map([[ea.A,ta.A],[ea.ADDRESS,ta.ADDRESS],[ea.ANNOTATION_XML,ta.ANNOTATION_XML],[ea.APPLET,ta.APPLET],[ea.AREA,ta.AREA],[ea.ARTICLE,ta.ARTICLE],[ea.ASIDE,ta.ASIDE],[ea.B,ta.B],[ea.BASE,ta.BASE],[ea.BASEFONT,ta.BASEFONT],[ea.BGSOUND,ta.BGSOUND],[ea.BIG,ta.BIG],[ea.BLOCKQUOTE,ta.BLOCKQUOTE],[ea.BODY,ta.BODY],[ea.BR,ta.BR],[ea.BUTTON,ta.BUTTON],[ea.CAPTION,ta.CAPTION],[ea.CENTER,ta.CENTER],[ea.CODE,ta.CODE],[ea.COL,ta.COL],[ea.COLGROUP,ta.COLGROUP],[ea.DD,ta.DD],[ea.DESC,ta.DESC],[ea.DETAILS,ta.DETAILS],[ea.DIALOG,ta.DIALOG],[ea.DIR,ta.DIR],[ea.DIV,ta.DIV],[ea.DL,ta.DL],[ea.DT,ta.DT],[ea.EM,ta.EM],[ea.EMBED,ta.EMBED],[ea.FIELDSET,ta.FIELDSET],[ea.FIGCAPTION,ta.FIGCAPTION],[ea.FIGURE,ta.FIGURE],[ea.FONT,ta.FONT],[ea.FOOTER,ta.FOOTER],[ea.FOREIGN_OBJECT,ta.FOREIGN_OBJECT],[ea.FORM,ta.FORM],[ea.FRAME,ta.FRAME],[ea.FRAMESET,ta.FRAMESET],[ea.H1,ta.H1],[ea.H2,ta.H2],[ea.H3,ta.H3],[ea.H4,ta.H4],[ea.H5,ta.H5],[ea.H6,ta.H6],[ea.HEAD,ta.HEAD],[ea.HEADER,ta.HEADER],[ea.HGROUP,ta.HGROUP],[ea.HR,ta.HR],[ea.HTML,ta.HTML],[ea.I,ta.I],[ea.IMG,ta.IMG],[ea.IMAGE,ta.IMAGE],[ea.INPUT,ta.INPUT],[ea.IFRAME,ta.IFRAME],[ea.KEYGEN,ta.KEYGEN],[ea.LABEL,ta.LABEL],[ea.LI,ta.LI],[ea.LINK,ta.LINK],[ea.LISTING,ta.LISTING],[ea.MAIN,ta.MAIN],[ea.MALIGNMARK,ta.MALIGNMARK],[ea.MARQUEE,ta.MARQUEE],[ea.MATH,ta.MATH],[ea.MENU,ta.MENU],[ea.META,ta.META],[ea.MGLYPH,ta.MGLYPH],[ea.MI,ta.MI],[ea.MO,ta.MO],[ea.MN,ta.MN],[ea.MS,ta.MS],[ea.MTEXT,ta.MTEXT],[ea.NAV,ta.NAV],[ea.NOBR,ta.NOBR],[ea.NOFRAMES,ta.NOFRAMES],[ea.NOEMBED,ta.NOEMBED],[ea.NOSCRIPT,ta.NOSCRIPT],[ea.OBJECT,ta.OBJECT],[ea.OL,ta.OL],[ea.OPTGROUP,ta.OPTGROUP],[ea.OPTION,ta.OPTION],[ea.P,ta.P],[ea.PARAM,ta.PARAM],[ea.PLAINTEXT,ta.PLAINTEXT],[ea.PRE,ta.PRE],[ea.RB,ta.RB],[ea.RP,ta.RP],[ea.RT,ta.RT],[ea.RTC,ta.RTC],[ea.RUBY,ta.RUBY],[ea.S,ta.S],[ea.SCRIPT,ta.SCRIPT],[ea.SECTION,ta.SECTION],[ea.SELECT,ta.SELECT],[ea.SOURCE,ta.SOURCE],[ea.SMALL,ta.SMALL],[ea.SPAN,ta.SPAN],[ea.STRIKE,ta.STRIKE],[ea.STRONG,ta.STRONG],[ea.STYLE,ta.STYLE],[ea.SUB,ta.SUB],[ea.SUMMARY,ta.SUMMARY],[ea.SUP,ta.SUP],[ea.TABLE,ta.TABLE],[ea.TBODY,ta.TBODY],[ea.TEMPLATE,ta.TEMPLATE],[ea.TEXTAREA,ta.TEXTAREA],[ea.TFOOT,ta.TFOOT],[ea.TD,ta.TD],[ea.TH,ta.TH],[ea.THEAD,ta.THEAD],[ea.TITLE,ta.TITLE],[ea.TR,ta.TR],[ea.TRACK,ta.TRACK],[ea.TT,ta.TT],[ea.U,ta.U],[ea.UL,ta.UL],[ea.SVG,ta.SVG],[ea.VAR,ta.VAR],[ea.WBR,ta.WBR],[ea.XMP,ta.XMP]]);function aa(e){var t;return null!==(t=ra.get(e))&&void 0!==t?t:ta.UNKNOWN}const na=ta,sa={[Qr.HTML]:new Set([na.ADDRESS,na.APPLET,na.AREA,na.ARTICLE,na.ASIDE,na.BASE,na.BASEFONT,na.BGSOUND,na.BLOCKQUOTE,na.BODY,na.BR,na.BUTTON,na.CAPTION,na.CENTER,na.COL,na.COLGROUP,na.DD,na.DETAILS,na.DIR,na.DIV,na.DL,na.DT,na.EMBED,na.FIELDSET,na.FIGCAPTION,na.FIGURE,na.FOOTER,na.FORM,na.FRAME,na.FRAMESET,na.H1,na.H2,na.H3,na.H4,na.H5,na.H6,na.HEAD,na.HEADER,na.HGROUP,na.HR,na.HTML,na.IFRAME,na.IMG,na.INPUT,na.LI,na.LINK,na.LISTING,na.MAIN,na.MARQUEE,na.MENU,na.META,na.NAV,na.NOEMBED,na.NOFRAMES,na.NOSCRIPT,na.OBJECT,na.OL,na.P,na.PARAM,na.PLAINTEXT,na.PRE,na.SCRIPT,na.SECTION,na.SELECT,na.SOURCE,na.STYLE,na.SUMMARY,na.TABLE,na.TBODY,na.TD,na.TEMPLATE,na.TEXTAREA,na.TFOOT,na.TH,na.THEAD,na.TITLE,na.TR,na.TRACK,na.UL,na.WBR,na.XMP]),[Qr.MATHML]:new Set([na.MI,na.MO,na.MN,na.MS,na.MTEXT,na.ANNOTATION_XML]),[Qr.SVG]:new Set([na.TITLE,na.FOREIGN_OBJECT,na.DESC]),[Qr.XLINK]:new Set,[Qr.XML]:new Set,[Qr.XMLNS]:new Set};function ia(e){return e===na.H1||e===na.H2||e===na.H3||e===na.H4||e===na.H5||e===na.H6}new Set([ea.STYLE,ea.SCRIPT,ea.XMP,ea.IFRAME,ea.NOEMBED,ea.NOFRAMES,ea.PLAINTEXT]);const oa=new Map([[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]]);var da;!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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(da||(da={}));const ca={DATA:da.DATA,RCDATA:da.RCDATA,RAWTEXT:da.RAWTEXT,SCRIPT_DATA:da.SCRIPT_DATA,PLAINTEXT:da.PLAINTEXT,CDATA_SECTION:da.CDATA_SECTION};function la(e){return e>=Rr.DIGIT_0&&e<=Rr.DIGIT_9}function ua(e){return e>=Rr.LATIN_CAPITAL_A&&e<=Rr.LATIN_CAPITAL_Z}function pa(e){return function(e){return e>=Rr.LATIN_SMALL_A&&e<=Rr.LATIN_SMALL_Z}(e)||ua(e)}function fa(e){return pa(e)||la(e)}function ga(e){return e>=Rr.LATIN_CAPITAL_A&&e<=Rr.LATIN_CAPITAL_F}function ha(e){return e>=Rr.LATIN_SMALL_A&&e<=Rr.LATIN_SMALL_F}function ma(e){return e+32}function ya(e){return e===Rr.SPACE||e===Rr.LINE_FEED||e===Rr.TABULATION||e===Rr.FORM_FEED}function ba(e){return ya(e)||e===Rr.SOLIDUS||e===Rr.GREATER_THAN_SIGN}class va{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=da.DATA,this.returnState=da.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ir(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null===e||void 0===e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null===r||void 0===r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(Pr.endTagWithAttributes),e.selfClosing&&this._err(Pr.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Dr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Dr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Dr.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Dr.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=ya(e)?Dr.WHITESPACE_CHARACTER:e===Rr.NULL?Dr.NULL_CHARACTER:Dr.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Dr.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,a=!1;for(let s=0,i=Or[0];s>=0&&(s=Jr(Or,i,s+1,e),!(s<0));e=this._consume()){r+=1,i=Or[s];const o=i&Gr.VALUE_LENGTH;if(o){const i=(o>>14)-1;if(e!==Rr.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((n=this.preprocessor.peek(1))===Rr.EQUALS_SIGN||fa(n))?(t=[Rr.AMPERSAND],s+=i):(t=0===i?[Or[s]&~Gr.VALUE_LENGTH]:1===i?[Or[++s]]:[Or[++s],Or[++s]],r=0,a=e!==Rr.SEMICOLON),0===i){this._consume();break}}}var n;return this._unconsume(r),a&&!this.preprocessor.endOfChunkHit&&this._err(Pr.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===da.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===da.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===da.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case da.DATA:this._stateData(e);break;case da.RCDATA:this._stateRcdata(e);break;case da.RAWTEXT:this._stateRawtext(e);break;case da.SCRIPT_DATA:this._stateScriptData(e);break;case da.PLAINTEXT:this._statePlaintext(e);break;case da.TAG_OPEN:this._stateTagOpen(e);break;case da.END_TAG_OPEN:this._stateEndTagOpen(e);break;case da.TAG_NAME:this._stateTagName(e);break;case da.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case da.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case da.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case da.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case da.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case da.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case da.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case da.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case da.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case da.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case da.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case da.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case da.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case da.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case da.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case da.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case da.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case da.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case da.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case da.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case da.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case da.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case da.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case da.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case da.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case da.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case da.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case da.BOGUS_COMMENT:this._stateBogusComment(e);break;case da.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case da.COMMENT_START:this._stateCommentStart(e);break;case da.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case da.COMMENT:this._stateComment(e);break;case da.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case da.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case da.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case da.COMMENT_END:this._stateCommentEnd(e);break;case da.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case da.DOCTYPE:this._stateDoctype(e);break;case da.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case da.DOCTYPE_NAME:this._stateDoctypeName(e);break;case da.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case da.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case da.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case da.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case da.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case da.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case da.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case da.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case da.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case da.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case da.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case da.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case da.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case da.CDATA_SECTION:this._stateCdataSection(e);break;case da.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case da.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case da.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case da.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case da.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case da.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case da.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case da.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case da.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case da.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.TAG_OPEN;break;case Rr.AMPERSAND:this.returnState=da.DATA,this.state=da.CHARACTER_REFERENCE;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitCodePoint(e);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Rr.AMPERSAND:this.returnState=da.RCDATA,this.state=da.CHARACTER_REFERENCE;break;case Rr.LESS_THAN_SIGN:this.state=da.RCDATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.RAWTEXT_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Rr.LESS_THAN_SIGN:this.state=da.SCRIPT_DATA_LESS_THAN_SIGN;break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this._emitChars(xr);break;case Rr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(pa(e))this._createStartTagToken(),this.state=da.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.EXCLAMATION_MARK:this.state=da.MARKUP_DECLARATION_OPEN;break;case Rr.SOLIDUS:this.state=da.END_TAG_OPEN;break;case Rr.QUESTION_MARK:this._err(Pr.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=da.BOGUS_COMMENT,this._stateBogusComment(e);break;case Rr.EOF:this._err(Pr.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Pr.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=da.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(pa(e))this._createEndTagToken(),this.state=da.TAG_NAME,this._stateTagName(e);else switch(e){case Rr.GREATER_THAN_SIGN:this._err(Pr.missingEndTagName),this.state=da.DATA;break;case Rr.EOF:this._err(Pr.eofBeforeTagName),this._emitChars("");break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this.state=da.SCRIPT_DATA_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(Pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=da.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Rr.SOLIDUS?this.state=da.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:pa(e)?(this._emitChars("<"),this.state=da.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=da.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){pa(e)?(this.state=da.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case Rr.NULL:this._err(Pr.unexpectedNullCharacter),this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xr);break;case Rr.EOF:this._err(Pr.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Rr.SOLIDUS?(this.state=da.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=da.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Sr,!1)&&ba(this.preprocessor.peek(Sr.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(Pr.characterReferenceOutsideUnicodeRange),this.charRefCode=Rr.REPLACEMENT_CHARACTER;else if(_r(this.charRefCode))this._err(Pr.surrogateCharacterReference),this.charRefCode=Rr.REPLACEMENT_CHARACTER;else if(kr(this.charRefCode))this._err(Pr.noncharacterCharacterReference);else if(Cr(this.charRefCode)||this.charRefCode===Rr.CARRIAGE_RETURN){this._err(Pr.controlCharacterReference);const e=oa.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const xa=new Set([ta.DD,ta.DT,ta.LI,ta.OPTGROUP,ta.OPTION,ta.P,ta.RB,ta.RP,ta.RT,ta.RTC]),Ra=new Set([...xa,ta.CAPTION,ta.COLGROUP,ta.TBODY,ta.TD,ta.TFOOT,ta.TH,ta.THEAD,ta.TR]),Ea=new Map([[ta.APPLET,Qr.HTML],[ta.CAPTION,Qr.HTML],[ta.HTML,Qr.HTML],[ta.MARQUEE,Qr.HTML],[ta.OBJECT,Qr.HTML],[ta.TABLE,Qr.HTML],[ta.TD,Qr.HTML],[ta.TEMPLATE,Qr.HTML],[ta.TH,Qr.HTML],[ta.ANNOTATION_XML,Qr.MATHML],[ta.MI,Qr.MATHML],[ta.MN,Qr.MATHML],[ta.MO,Qr.MATHML],[ta.MS,Qr.MATHML],[ta.MTEXT,Qr.MATHML],[ta.DESC,Qr.SVG],[ta.FOREIGN_OBJECT,Qr.SVG],[ta.TITLE,Qr.SVG]]),Ta=[ta.H1,ta.H2,ta.H3,ta.H4,ta.H5,ta.H6],wa=[ta.TR,ta.TEMPLATE,ta.HTML],Sa=[ta.TBODY,ta.TFOOT,ta.THEAD,ta.TEMPLATE,ta.HTML],Aa=[ta.TABLE,ta.TEMPLATE,ta.HTML],ja=[ta.TD,ta.TH];class _a{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=ta.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===ta.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Qr.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){const a=this._indexOf(e)+1;this.items.splice(a,0,t),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Qr.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Aa,Qr.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Sa,Qr.HTML)}clearBackToTableRowContext(){this.clearBackTo(wa,Qr.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===ta.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===ta.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if(Ea.get(r)===a)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(ia(t)&&r===Qr.HTML)return!0;if(Ea.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if((r===ta.UL||r===ta.OL)&&a===Qr.HTML||Ea.get(r)===a)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t],a=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&a===Qr.HTML)return!0;if(r===ta.BUTTON&&a===Qr.HTML||Ea.get(r)===a)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML){if(r===e)return!0;if(r===ta.TABLE||r===ta.TEMPLATE||r===ta.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===Qr.HTML){if(t===ta.TBODY||t===ta.THEAD||t===ta.TFOOT)return!0;if(t===ta.TABLE||t===ta.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Qr.HTML){if(r===e)return!0;if(r!==ta.OPTION&&r!==ta.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;xa.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ra.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Ra.has(this.currentTagId);)this.pop()}}var Ca;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Ca=Ca||(Ca={}));const ka={type:Ca.Marker};class Pa{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],a=t.length,n=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let i=0;i[e.name,e.value])));let n=0;for(let s=0;sa.get(e.name)===e.value))&&(n+=1,n>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(ka)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ca.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ca.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(ka);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Ca.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Ca.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Ca.Element&&t.element===e))}}function Ia(e){return{nodeName:"#text",value:e,parentNode:null}}const Da={createDocument:()=>({nodeName:"#document",mode:Zr.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const a=e.childNodes.indexOf(r);e.childNodes.splice(a,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,a){const n=e.childNodes.find((e=>"#documentType"===e.nodeName));if(n)n.name=t,n.publicId=r,n.systemId=a;else{const n={nodeName:"#documentType",name:t,publicId:r,systemId:a,parentNode:null};Da.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>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 r=e.childNodes[e.childNodes.length-1];if(Da.isTextNode(r))return void(r.value+=t)}Da.appendChild(e,Ia(t))},insertTextBefore(e,t,r){const a=e.childNodes[e.childNodes.indexOf(r)-1];a&&Da.isTextNode(a)?a.value+=t:Da.insertBefore(e,Ia(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map((e=>e.name)));for(let a=0;ae.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Na="html",Oa="about:legacy-compat",Fa="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ba=["+//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//"],La=[...Ba,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ma=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ua=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ha=[...Ua,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ga(e,t){return t.some((t=>e.startsWith(t)))}const qa={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wa="definitionurl",Va="definitionURL",za=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]))),Ka=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Qr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Qr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Qr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Qr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Qr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Qr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Qr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Qr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Qr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Qr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Qr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Qr.XMLNS}]]),Ya=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]))),Xa=new Set([ta.B,ta.BIG,ta.BLOCKQUOTE,ta.BODY,ta.BR,ta.CENTER,ta.CODE,ta.DD,ta.DIV,ta.DL,ta.DT,ta.EM,ta.EMBED,ta.H1,ta.H2,ta.H3,ta.H4,ta.H5,ta.H6,ta.HEAD,ta.HR,ta.I,ta.IMG,ta.LI,ta.LISTING,ta.MENU,ta.META,ta.NOBR,ta.OL,ta.P,ta.PRE,ta.RUBY,ta.S,ta.SMALL,ta.SPAN,ta.STRONG,ta.STRIKE,ta.SUB,ta.SUP,ta.TABLE,ta.TT,ta.U,ta.UL,ta.VAR]);function Ja(e){for(let t=0;t2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=an.INITIAL,this.originalInsertionMode=an.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={...on,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!==t&&void 0!==t?t:this.treeAdapter.createDocument(),this.tokenizer=new va(this.options,this),this.activeFormattingElements=new Pa(this.treeAdapter),this.fragmentContextID=r?aa(this.treeAdapter.getTagName(r)):ta.UNKNOWN,this._setContextModes(null!==r&&void 0!==r?r:this.document,this.fragmentContextID),this.openElements=new _a(this.document,this.treeAdapter,this)}static parse(e,t){const r=new this(t);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,t){const r={...on,...t};null!==e&&void 0!==e||(e=r.treeAdapter.createElement(ea.TEMPLATE,Qr.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Qr.HTML,[]),n=new this(r,a,e);return n.fragmentContextID===ta.TEMPLATE&&n.tmplInsertionModeStack.unshift(an.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var a;if(!this.onParseError)return;const n=null!==(a=e.location)&&void 0!==a?a:nn,s={code:t,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:r?n.startLine:n.endLine,endCol:r?n.startCol:n.endCol,endOffset:r?n.startOffset:n.endOffset};this.onParseError(s)}onItemPush(e,t,r){var a,n;null===(n=(a=this.treeAdapter).onItemPush)||void 0===n||n.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(a=(r=this.treeAdapter).onItemPop)||void 0===a||a.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const r=e===this.document||this.treeAdapter.getNamespaceURI(e)===Qr.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Qr.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=an.TEXT}switchToPlaintextParsing(){this.insertionMode=an.TEXT,this.originalInsertionMode=an.IN_BODY,this.tokenizer.state=ca.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===ea.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Qr.HTML)switch(this.fragmentContextID){case ta.TITLE:case ta.TEXTAREA:this.tokenizer.state=ca.RCDATA;break;case ta.STYLE:case ta.XMP:case ta.IFRAME:case ta.NOEMBED:case ta.NOFRAMES:case ta.NOSCRIPT:this.tokenizer.state=ca.RAWTEXT;break;case ta.SCRIPT:this.tokenizer.state=ca.SCRIPT_DATA;break;case ta.PLAINTEXT:this.tokenizer.state=ca.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,a),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const r=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){const r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){const r=this.treeAdapter.createElement(e,Qr.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Qr.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(ea.HTML,Qr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,ta.HTML)}_appendCommentNode(e,t){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:r}=this._findFosterParentingLocation()),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(t),n=r?a.lastIndexOf(r):a.length,s=a[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:r,endOffset:a}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:a})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const r=t.location,a=this.treeAdapter.getTagName(e),n=t.type===Dr.END_TAG&&a===t.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,n)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):({current:t,currentTagId:r}=this.openElements),(e.tagID!==ta.SVG||this.treeAdapter.getTagName(t)!==ea.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Qr.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===ta.MGLYPH||e.tagID===ta.MALIGNMARK)&&!this._isIntegrationPoint(r,t,Qr.HTML))}_processToken(e){switch(e.type){case Dr.CHARACTER:this.onCharacter(e);break;case Dr.NULL_CHARACTER:this.onNullCharacter(e);break;case Dr.COMMENT:this.onComment(e);break;case Dr.DOCTYPE:this.onDoctype(e);break;case Dr.START_TAG:this._processStartTag(e);break;case Dr.END_TAG:this.onEndTag(e);break;case Dr.EOF:this.onEof(e);break;case Dr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return Za(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Ca.Marker||this.openElements.contains(e.element)));for(let r=t<0?e-1:t-1;r>=0;r--){const e=this.activeFormattingElements.entries[r];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=an.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ta.P),this.openElements.popUntilTagNamePopped(ta.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case ta.TR:return void(this.insertionMode=an.IN_ROW);case ta.TBODY:case ta.THEAD:case ta.TFOOT:return void(this.insertionMode=an.IN_TABLE_BODY);case ta.CAPTION:return void(this.insertionMode=an.IN_CAPTION);case ta.COLGROUP:return void(this.insertionMode=an.IN_COLUMN_GROUP);case ta.TABLE:return void(this.insertionMode=an.IN_TABLE);case ta.BODY:return void(this.insertionMode=an.IN_BODY);case ta.FRAMESET:return void(this.insertionMode=an.IN_FRAMESET);case ta.SELECT:return void this._resetInsertionModeForSelect(e);case ta.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case ta.HTML:return void(this.insertionMode=this.headElement?an.AFTER_HEAD:an.BEFORE_HEAD);case ta.TD:case ta.TH:if(e>0)return void(this.insertionMode=an.IN_CELL);break;case ta.HEAD:if(e>0)return void(this.insertionMode=an.IN_HEAD)}this.insertionMode=an.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===ta.TEMPLATE)break;if(e===ta.TABLE)return void(this.insertionMode=an.IN_SELECT_IN_TABLE)}this.insertionMode=an.IN_SELECT}_isElementCausesFosterParenting(e){return sn.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case ta.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Qr.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case ta.TABLE:{const r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const r=this.treeAdapter.getNamespaceURI(e);return sa[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.IN_BODY:case an.IN_CAPTION:case an.IN_CELL:case an.IN_TEMPLATE:_n(this,e);break;case an.TEXT:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Bn(this,e);break;case an.IN_TABLE_TEXT:Gn(this,e);break;case an.IN_COLUMN_GROUP:zn(this,e);break;case an.AFTER_BODY:ts(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=xr,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.TEXT:this._insertCharacters(e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Bn(this,e);break;case an.IN_COLUMN_GROUP:zn(this,e);break;case an.AFTER_BODY:ts(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)mn(this,e);else switch(this.insertionMode){case an.INITIAL:case an.BEFORE_HTML:case an.BEFORE_HEAD:case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:case an.IN_BODY:case an.IN_TABLE:case an.IN_CAPTION:case an.IN_COLUMN_GROUP:case an.IN_TABLE_BODY:case an.IN_ROW:case an.IN_CELL:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:case an.IN_TEMPLATE:case an.IN_FRAMESET:case an.AFTER_FRAMESET:mn(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case an.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Zr.QUIRKS:function(e){if(e.name!==Na)return Zr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Fa)return Zr.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Ma.has(r))return Zr.QUIRKS;let e=null===t?La:Ba;if(Ga(r,e))return Zr.QUIRKS;if(e=null===t?Ua:Ha,Ga(r,e))return Zr.LIMITED_QUIRKS}return Zr.NO_QUIRKS}(t);(function(e){return e.name===Na&&null===e.publicId&&(null===e.systemId||e.systemId===Oa)})(t)||e._err(t,Pr.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=an.BEFORE_HTML}(this,e);break;case an.BEFORE_HEAD:case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:this._err(e,Pr.misplacedDoctype);break;case an.IN_TABLE_TEXT:qn(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Pr.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===ta.FONT&&e.attrs.some((e=>{let{name:t}=e;return t===$r.COLOR||t===$r.SIZE||t===$r.FACE}))||Xa.has(t)}(t))as(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(r);a===Qr.MATHML?Ja(t):a===Qr.SVG&&(!function(e){const t=Ya.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=aa(e.tagName))}(t),Qa(t)),$a(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:!function(e,t){t.tagID===ta.HTML?(e._insertElement(t,Qr.HTML),e.insertionMode=an.BEFORE_HEAD):vn(e,t)}(this,e);break;case an.BEFORE_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.HEAD:e._insertElement(t,Qr.HTML),e.headElement=e.openElements.current,e.insertionMode=an.IN_HEAD;break;default:xn(e,t)}}(this,e);break;case an.IN_HEAD:Rn(this,e);break;case an.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BASEFONT:case ta.BGSOUND:case ta.HEAD:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.STYLE:Rn(e,t);break;case ta.NOSCRIPT:e._err(t,Pr.nestedNoscriptInHead);break;default:wn(e,t)}}(this,e);break;case an.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BODY:e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=an.IN_BODY;break;case ta.FRAMESET:e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_FRAMESET;break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:e._err(t,Pr.abandonedHeadElementChild),e.openElements.push(e.headElement,ta.HEAD),Rn(e,t),e.openElements.remove(e.headElement);break;case ta.HEAD:e._err(t,Pr.misplacedStartTagForHeadElement);break;default:Sn(e,t)}}(this,e);break;case an.IN_BODY:Dn(this,e);break;case an.IN_TABLE:Ln(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_CAPTION:!function(e,t){const r=t.tagID;Wn.has(r)?e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_TABLE,Ln(e,t)):Dn(e,t)}(this,e);break;case an.IN_COLUMN_GROUP:Vn(this,e);break;case an.IN_TABLE_BODY:Kn(this,e);break;case an.IN_ROW:Xn(this,e);break;case an.IN_CELL:!function(e,t){const r=t.tagID;Wn.has(r)?(e.openElements.hasInTableScope(ta.TD)||e.openElements.hasInTableScope(ta.TH))&&(e._closeTableCell(),Xn(e,t)):Dn(e,t)}(this,e);break;case an.IN_SELECT:Qn(this,e);break;case an.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Qn(e,t)}(this,e);break;case an.IN_TEMPLATE:!function(e,t){switch(t.tagID){case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:case ta.NOFRAMES:case ta.SCRIPT:case ta.STYLE:case ta.TEMPLATE:case ta.TITLE:Rn(e,t);break;case ta.CAPTION:case ta.COLGROUP:case ta.TBODY:case ta.TFOOT:case ta.THEAD:e.tmplInsertionModeStack[0]=an.IN_TABLE,e.insertionMode=an.IN_TABLE,Ln(e,t);break;case ta.COL:e.tmplInsertionModeStack[0]=an.IN_COLUMN_GROUP,e.insertionMode=an.IN_COLUMN_GROUP,Vn(e,t);break;case ta.TR:e.tmplInsertionModeStack[0]=an.IN_TABLE_BODY,e.insertionMode=an.IN_TABLE_BODY,Kn(e,t);break;case ta.TD:case ta.TH:e.tmplInsertionModeStack[0]=an.IN_ROW,e.insertionMode=an.IN_ROW,Xn(e,t);break;default:e.tmplInsertionModeStack[0]=an.IN_BODY,e.insertionMode=an.IN_BODY,Dn(e,t)}}(this,e);break;case an.AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Dn(e,t):ts(e,t)}(this,e);break;case an.IN_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.FRAMESET:e._insertElement(t,Qr.HTML);break;case ta.FRAME:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.NOFRAMES:Rn(e,t)}}(this,e);break;case an.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.NOFRAMES:Rn(e,t)}}(this,e);break;case an.AFTER_AFTER_BODY:!function(e,t){t.tagID===ta.HTML?Dn(e,t):rs(e,t)}(this,e);break;case an.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.NOFRAMES:Rn(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===ta.P||t.tagID===ta.BR)return as(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const a=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(a)===Qr.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(a);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==ta.HTML&&r!==ta.HEAD&&r!==ta.BODY&&r!==ta.BR||vn(e,t)}(this,e);break;case an.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===ta.HEAD||r===ta.BODY||r===ta.HTML||r===ta.BR?xn(e,t):e._err(t,Pr.endTagWithoutMatchingOpenElement)}(this,e);break;case an.IN_HEAD:!function(e,t){switch(t.tagID){case ta.HEAD:e.openElements.pop(),e.insertionMode=an.AFTER_HEAD;break;case ta.BODY:case ta.BR:case ta.HTML:Tn(e,t);break;case ta.TEMPLATE:En(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case ta.NOSCRIPT:e.openElements.pop(),e.insertionMode=an.IN_HEAD;break;case ta.BR:wn(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.AFTER_HEAD:!function(e,t){switch(t.tagID){case ta.BODY:case ta.HTML:case ta.BR:Sn(e,t);break;case ta.TEMPLATE:En(e,t);break;default:e._err(t,Pr.endTagWithoutMatchingOpenElement)}}(this,e);break;case an.IN_BODY:On(this,e);break;case an.TEXT:!function(e,t){var r;t.tagID===ta.SCRIPT&&(null===(r=e.scriptHandler)||void 0===r||r.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case an.IN_TABLE:Mn(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case ta.CAPTION:case ta.TABLE:e.openElements.hasInTableScope(ta.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_TABLE,r===ta.TABLE&&Mn(e,t));break;case ta.BODY:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:On(e,t)}}(this,e);break;case an.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case ta.COLGROUP:e.openElements.currentTagId===ta.COLGROUP&&(e.openElements.pop(),e.insertionMode=an.IN_TABLE);break;case ta.TEMPLATE:En(e,t);break;case ta.COL:break;default:zn(e,t)}}(this,e);break;case an.IN_TABLE_BODY:Yn(this,e);break;case an.IN_ROW:Jn(this,e);break;case an.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case ta.TD:case ta.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=an.IN_ROW);break;case ta.TABLE:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Jn(e,t));break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:break;default:On(e,t)}}(this,e);break;case an.IN_SELECT:$n(this,e);break;case an.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===ta.CAPTION||r===ta.TABLE||r===ta.TBODY||r===ta.TFOOT||r===ta.THEAD||r===ta.TR||r===ta.TD||r===ta.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$n(e,t)}(this,e);break;case an.IN_TEMPLATE:!function(e,t){t.tagID===ta.TEMPLATE&&En(e,t)}(this,e);break;case an.AFTER_BODY:es(this,e);break;case an.IN_FRAMESET:!function(e,t){t.tagID!==ta.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===ta.FRAMESET||(e.insertionMode=an.AFTER_FRAMESET))}(this,e);break;case an.AFTER_FRAMESET:!function(e,t){t.tagID===ta.HTML&&(e.insertionMode=an.AFTER_AFTER_FRAMESET)}(this,e);break;case an.AFTER_AFTER_BODY:rs(this,e)}}onEof(e){switch(this.insertionMode){case an.INITIAL:bn(this,e);break;case an.BEFORE_HTML:vn(this,e);break;case an.BEFORE_HEAD:xn(this,e);break;case an.IN_HEAD:Tn(this,e);break;case an.IN_HEAD_NO_SCRIPT:wn(this,e);break;case an.AFTER_HEAD:Sn(this,e);break;case an.IN_BODY:case an.IN_TABLE:case an.IN_CAPTION:case an.IN_COLUMN_GROUP:case an.IN_TABLE_BODY:case an.IN_ROW:case an.IN_CELL:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:Fn(this,e);break;case an.TEXT:!function(e,t){e._err(t,Pr.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case an.IN_TABLE_TEXT:qn(this,e);break;case an.IN_TEMPLATE:Zn(this,e);break;case an.AFTER_BODY:case an.IN_FRAMESET:case an.AFTER_FRAMESET:case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:yn(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Rr.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case an.IN_HEAD:case an.IN_HEAD_NO_SCRIPT:case an.AFTER_HEAD:case an.TEXT:case an.IN_COLUMN_GROUP:case an.IN_SELECT:case an.IN_SELECT_IN_TABLE:case an.IN_FRAMESET:case an.AFTER_FRAMESET:this._insertCharacters(e);break;case an.IN_BODY:case an.IN_CAPTION:case an.IN_CELL:case an.IN_TEMPLATE:case an.AFTER_BODY:case an.AFTER_AFTER_BODY:case an.AFTER_AFTER_FRAMESET:jn(this,e);break;case an.IN_TABLE:case an.IN_TABLE_BODY:case an.IN_ROW:Bn(this,e);break;case an.IN_TABLE_TEXT:Hn(this,e)}}}function cn(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Nn(e,t),r}function ln(e,t){let r=null,a=e.openElements.stackTop;for(;a>=0;a--){const n=e.openElements.items[a];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[a])&&(r=n)}return r||(e.openElements.shortenToLength(a<0?0:a),e.activeFormattingElements.removeEntry(t)),r}function un(e,t,r){let a=t,n=e.openElements.getCommonAncestor(t);for(let s=0,i=n;i!==r;s++,i=n){n=e.openElements.getCommonAncestor(i);const r=e.activeFormattingElements.getElementEntry(i),o=r&&s>=rn;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(i)):(i=pn(e,r),a===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(i,a),a=i)}return a}function pn(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}function fn(e,t,r){const a=aa(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const n=e.treeAdapter.getNamespaceURI(t);a===ta.TEMPLATE&&n===Qr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function gn(e,t,r){const a=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,s=e.treeAdapter.createElement(n.tagName,a,n.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,n.tagID)}function hn(e,t){for(let r=0;r=r;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(r);a&&!a.endTag&&e._setEndLocation(r,t)}}}}function bn(e,t){e._err(t,Pr.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Zr.QUIRKS),e.insertionMode=an.BEFORE_HTML,e._processToken(t)}function vn(e,t){e._insertFakeRootElement(),e.insertionMode=an.BEFORE_HEAD,e._processToken(t)}function xn(e,t){e._insertFakeElement(ea.HEAD,ta.HEAD),e.headElement=e.openElements.current,e.insertionMode=an.IN_HEAD,e._processToken(t)}function Rn(e,t){switch(t.tagID){case ta.HTML:Dn(e,t);break;case ta.BASE:case ta.BASEFONT:case ta.BGSOUND:case ta.LINK:case ta.META:e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0;break;case ta.TITLE:e._switchToTextParsing(t,ca.RCDATA);break;case ta.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ca.RAWTEXT):(e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_HEAD_NO_SCRIPT);break;case ta.NOFRAMES:case ta.STYLE:e._switchToTextParsing(t,ca.RAWTEXT);break;case ta.SCRIPT:e._switchToTextParsing(t,ca.SCRIPT_DATA);break;case ta.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=an.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(an.IN_TEMPLATE);break;case ta.HEAD:e._err(t,Pr.misplacedStartTagForHeadElement);break;default:Tn(e,t)}}function En(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==ta.TEMPLATE&&e._err(t,Pr.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Pr.endTagWithoutMatchingOpenElement)}function Tn(e,t){e.openElements.pop(),e.insertionMode=an.AFTER_HEAD,e._processToken(t)}function wn(e,t){const r=t.type===Dr.EOF?Pr.openElementsLeftAfterEof:Pr.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=an.IN_HEAD,e._processToken(t)}function Sn(e,t){e._insertFakeElement(ea.BODY,ta.BODY),e.insertionMode=an.IN_BODY,An(e,t)}function An(e,t){switch(t.type){case Dr.CHARACTER:_n(e,t);break;case Dr.WHITESPACE_CHARACTER:jn(e,t);break;case Dr.COMMENT:mn(e,t);break;case Dr.START_TAG:Dn(e,t);break;case Dr.END_TAG:On(e,t);break;case Dr.EOF:Fn(e,t)}}function jn(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function _n(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Cn(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kn(e){const t=Nr(e,$r.TYPE);return null!=t&&t.toLowerCase()===en}function Pn(e,t){e._switchToTextParsing(t,ca.RAWTEXT)}function In(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}function Dn(e,t){switch(t.tagID){case ta.I:case ta.S:case ta.B:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.SMALL:case ta.STRIKE:case ta.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(ea.A);r&&(hn(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),ia(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.P:case ta.DL:case ta.OL:case ta.UL:case ta.DIV:case ta.DIR:case ta.NAV:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.DETAILS:case ta.ADDRESS:case ta.ARTICLE:case ta.SECTION:case ta.SUMMARY:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.LI:case ta.DD:case ta.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let a=e.openElements.stackTop;a>=0;a--){const t=e.openElements.tagIDs[a];if(r===ta.LI&&t===ta.LI||(r===ta.DD||r===ta.DT)&&(t===ta.DD||t===ta.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==ta.ADDRESS&&t!==ta.DIV&&t!==ta.P&&e._isSpecialElement(e.openElements.items[a],t))break}e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.BR:case ta.IMG:case ta.WBR:case ta.AREA:case ta.EMBED:case ta.KEYGEN:Cn(e,t);break;case ta.HR:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._appendElement(t,Qr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case ta.RB:case ta.RTC:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.RT:case ta.RP:!function(e,t){e.openElements.hasInScope(ta.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(ta.RTC),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.PRE:case ta.LISTING:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case ta.XMP:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ca.RAWTEXT)}(e,t);break;case ta.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Qa(t),$a(t),t.selfClosing?e._appendElement(t,Qr.SVG):e._insertElement(t,Qr.SVG),t.ackSelfClosing=!0}(e,t);break;case ta.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case ta.BASE:case ta.LINK:case ta.META:case ta.STYLE:case ta.TITLE:case ta.SCRIPT:case ta.BGSOUND:case ta.BASEFONT:case ta.TEMPLATE:Rn(e,t);break;case ta.BODY:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t);break;case ta.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case ta.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(ta.NOBR)&&(hn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Qr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case ta.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ja(t),$a(t),t.selfClosing?e._appendElement(t,Qr.MATHML):e._insertElement(t,Qr.MATHML),t.ackSelfClosing=!0}(e,t);break;case ta.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Zr.QUIRKS&&e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=an.IN_TABLE}(e,t);break;case ta.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Qr.HTML),kn(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case ta.PARAM:case ta.TRACK:case ta.SOURCE:!function(e,t){e._appendElement(t,Qr.HTML),t.ackSelfClosing=!0}(e,t);break;case ta.IMAGE:!function(e,t){t.tagName=ea.IMG,t.tagID=ta.IMG,Cn(e,t)}(e,t);break;case ta.BUTTON:!function(e,t){e.openElements.hasInScope(ta.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(ta.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1}(e,t);break;case ta.APPLET:case ta.OBJECT:case ta.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case ta.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ca.RAWTEXT)}(e,t);break;case ta.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===an.IN_TABLE||e.insertionMode===an.IN_CAPTION||e.insertionMode===an.IN_TABLE_BODY||e.insertionMode===an.IN_ROW||e.insertionMode===an.IN_CELL?an.IN_SELECT_IN_TABLE:an.IN_SELECT}(e,t);break;case ta.OPTION:case ta.OPTGROUP:!function(e,t){e.openElements.currentTagId===ta.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Qr.HTML)}(e,t);break;case ta.NOEMBED:Pn(e,t);break;case ta.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_FRAMESET)}(e,t);break;case ta.TEXTAREA:!function(e,t){e._insertElement(t,Qr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ca.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=an.TEXT}(e,t);break;case ta.NOSCRIPT:e.options.scriptingEnabled?Pn(e,t):In(e,t);break;case ta.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(ta.P)&&e._closePElement(),e._insertElement(t,Qr.HTML),e.tokenizer.state=ca.PLAINTEXT}(e,t);break;case ta.COL:case ta.TH:case ta.TD:case ta.TR:case ta.HEAD:case ta.FRAME:case ta.TBODY:case ta.TFOOT:case ta.THEAD:case ta.CAPTION:case ta.COLGROUP:break;default:In(e,t)}}function Nn(e,t){const r=t.tagName,a=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const t=e.openElements.items[n],s=e.openElements.tagIDs[n];if(a===s&&(a!==ta.UNKNOWN||e.treeAdapter.getTagName(t)===r)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(t,s))break}}function On(e,t){switch(t.tagID){case ta.A:case ta.B:case ta.I:case ta.S:case ta.U:case ta.EM:case ta.TT:case ta.BIG:case ta.CODE:case ta.FONT:case ta.NOBR:case ta.SMALL:case ta.STRIKE:case ta.STRONG:hn(e,t);break;case ta.P:!function(e){e.openElements.hasInButtonScope(ta.P)||e._insertFakeElement(ea.P,ta.P),e._closePElement()}(e);break;case ta.DL:case ta.UL:case ta.OL:case ta.DIR:case ta.DIV:case ta.NAV:case ta.PRE:case ta.MAIN:case ta.MENU:case ta.ASIDE:case ta.BUTTON:case ta.CENTER:case ta.FIGURE:case ta.FOOTER:case ta.HEADER:case ta.HGROUP:case ta.DIALOG:case ta.ADDRESS:case ta.ARTICLE:case ta.DETAILS:case ta.SECTION:case ta.SUMMARY:case ta.LISTING:case ta.FIELDSET:case ta.BLOCKQUOTE:case ta.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.LI:!function(e){e.openElements.hasInListItemScope(ta.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(ta.LI),e.openElements.popUntilTagNamePopped(ta.LI))}(e);break;case ta.DD:case ta.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case ta.H1:case ta.H2:case ta.H3:case ta.H4:case ta.H5:case ta.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case ta.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ea.BR,ta.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case ta.BODY:!function(e,t){if(e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=an.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case ta.HTML:!function(e,t){e.openElements.hasInScope(ta.BODY)&&(e.insertionMode=an.AFTER_BODY,es(e,t))}(e,t);break;case ta.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(ta.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(ta.FORM):r&&e.openElements.remove(r))}(e);break;case ta.APPLET:case ta.OBJECT:case ta.MARQUEE:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case ta.TEMPLATE:En(e,t);break;default:Nn(e,t)}}function Fn(e,t){e.tmplInsertionModeStack.length>0?Zn(e,t):yn(e,t)}function Bn(e,t){if(sn.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=an.IN_TABLE_TEXT,t.type){case Dr.CHARACTER:Gn(e,t);break;case Dr.WHITESPACE_CHARACTER:Hn(e,t)}else Un(e,t)}function Ln(e,t){switch(t.tagID){case ta.TD:case ta.TH:case ta.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.TBODY,ta.TBODY),e.insertionMode=an.IN_TABLE_BODY,Kn(e,t)}(e,t);break;case ta.STYLE:case ta.SCRIPT:case ta.TEMPLATE:Rn(e,t);break;case ta.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ea.COLGROUP,ta.COLGROUP),e.insertionMode=an.IN_COLUMN_GROUP,Vn(e,t)}(e,t);break;case ta.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Qr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case ta.TABLE:!function(e,t){e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case ta.TBODY:case ta.TFOOT:case ta.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_TABLE_BODY}(e,t);break;case ta.INPUT:!function(e,t){kn(t)?e._appendElement(t,Qr.HTML):Un(e,t),t.ackSelfClosing=!0}(e,t);break;case ta.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_CAPTION}(e,t);break;case ta.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Qr.HTML),e.insertionMode=an.IN_COLUMN_GROUP}(e,t);break;default:Un(e,t)}}function Mn(e,t){switch(t.tagID){case ta.TABLE:e.openElements.hasInTableScope(ta.TABLE)&&(e.openElements.popUntilTagNamePopped(ta.TABLE),e._resetInsertionMode());break;case ta.TEMPLATE:En(e,t);break;case ta.BODY:case ta.CAPTION:case ta.COL:case ta.COLGROUP:case ta.HTML:case ta.TBODY:case ta.TD:case ta.TFOOT:case ta.TH:case ta.THEAD:case ta.TR:break;default:Un(e,t)}}function Un(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,An(e,t),e.fosterParentingEnabled=r}function Hn(e,t){e.pendingCharacterTokens.push(t)}function Gn(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function qn(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&e.openElements.currentTagId===ta.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===ta.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===ta.OPTGROUP&&e.openElements.pop();break;case ta.OPTION:e.openElements.currentTagId===ta.OPTION&&e.openElements.pop();break;case ta.SELECT:e.openElements.hasInSelectScope(ta.SELECT)&&(e.openElements.popUntilTagNamePopped(ta.SELECT),e._resetInsertionMode());break;case ta.TEMPLATE:En(e,t)}}function Zn(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(ta.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):yn(e,t)}function es(e,t){var r;if(t.tagID===ta.HTML){if(e.fragmentContext||(e.insertionMode=an.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===ta.HTML){e._setEndLocation(e.openElements.items[0],t);const a=e.openElements.items[1];a&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(a))||void 0===r?void 0:r.endTag)&&e._setEndLocation(a,t)}}else ts(e,t)}function ts(e,t){e.insertionMode=an.IN_BODY,An(e,t)}function rs(e,t){e.insertionMode=an.IN_BODY,An(e,t)}function as(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Qr.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const ns=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function ss(e,t){return function(r){let a,n=0,s="";for(;a=e.exec(r);)n!==a.index&&(s+=r.substring(n,a.index)),s+=t.get(a[0].charCodeAt(0)),n=a.index+1;return s+r.substring(n)}}ss(/[&<>'"]/g,ns),ss(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ss(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),new Set([ea.AREA,ea.BASE,ea.BASEFONT,ea.BGSOUND,ea.BR,ea.COL,ea.EMBED,ea.FRAME,ea.HR,ea.IMG,ea.INPUT,ea.KEYGEN,ea.LINK,ea.META,ea.PARAM,ea.SOURCE,ea.TRACK,ea.WBR]);const is=ds("end"),os=ds("start");function ds(e){return function(t){const r=t&&t.position&&t.position[e]||{};if("number"===typeof r.line&&r.line>0&&"number"===typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"===typeof r.offset&&r.offset>-1?r.offset:void 0}}}const cs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ls={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function us(e,t){const r=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),a=ft("type",{handlers:{root:fs,element:gs,text:hs,comment:bs,doctype:ms,raw:vs},unknown:xs}),n={parser:r?new dn(ls):dn.getFragmentParser(void 0,ls),handle(e){a(e,n)},stitches:!1,options:t||{}};a(e,n),Rs(n,os());const s=function(e,t){const r=t||{};return ir({file:r.file||void 0,location:!1,schema:"svg"===r.space?re.JW:re.qy,verbose:r.verbose||!1},e)}(r?n.parser.document:n.parser.getFragment(),{file:n.options.file});return n.stitches&&H(s,"comment",(function(e,t,r){const a=e;if(a.value.stitch&&r&&void 0!==t){return r.children[t]=a.value.stitch,t}})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function ps(e,t){let r=-1;if(e)for(;++r4&&(t.parser.tokenizer.state=0);const r={type:Dr.CHARACTER,chars:e.value,location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ms(e,t){const r={type:Dr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ys(e,t){t.stitches=!0;const r=function(e){return Vt("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const a=us({type:"root",children:e.children},t.options);r.children=a.children}bs({type:"comment",value:{stitch:r}},t)}function bs(e,t){const r=e.value,a={type:Dr.COMMENT,data:r,location:Ts(e)};Rs(t,os(e)),t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken)}function vs(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,Es(t,os(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function xs(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw cs.has(r.type)&&(e=". 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 `"+r.type+"` node"+e)}ys(r,t)}function Rs(e,t){Es(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=ca.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 Es(e,t){if(t&&void 0!==t.offset){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function Ts(e){const t=os(e)||{line:void 0,column:void 0,offset:void 0},r=is(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function ws(e){return function(t,r){return us(t,{...e,file:r})}}const Ss=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,As=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,js={};function _s(e,t){return((t||js).jsx?As:Ss).test(e)}const Cs={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"};var ks=r(1581);const Ps=ks.default||ks;function Is(e){return e&&"object"===typeof e?"position"in e||"type"in e?Ns(e.position):"start"in e||"end"in e?Ns(e):"line"in e||"column"in e?Ds(e):"":""}function Ds(e){return Os(e&&e.line)+":"+Os(e&&e.column)}function Ns(e){return Ds(e&&e.start)+"-"+Ds(e&&e.end)}function Os(e){return e&&"number"===typeof e?e:1}class Fs extends Error{constructor(e,t,r){super(),"string"===typeof t&&(r=t,t=void 0);let a="",n={},s=!1;if(t&&(n="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?a=e:!n.cause&&e&&(s=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"===typeof r){const e=r.indexOf(":");-1===e?n.ruleId=r:(n.source=r.slice(0,e),n.ruleId=r.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){const e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}const i=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=i?i.line:void 0,this.name=Is(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&"string"===typeof n.cause.stack?n.cause.stack:"",this.actual,this.expected,this.note,this.url}}Fs.prototype.file="",Fs.prototype.name="",Fs.prototype.reason="",Fs.prototype.message="",Fs.prototype.stack="",Fs.prototype.column=void 0,Fs.prototype.line=void 0,Fs.prototype.ancestors=void 0,Fs.prototype.cause=void 0,Fs.prototype.fatal=void 0,Fs.prototype.place=void 0,Fs.prototype.ruleId=void 0,Fs.prototype.source=void 0;const Bs={}.hasOwnProperty,Ls=new Map,Ms=/[A-Z]/g,Us=/-([a-z])/g,Hs=new Set(["table","tbody","thead","tfoot","tr"]),Gs=new Set(["td","th"]),qs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ws(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=function(e,t){return r;function r(r,a,n,s){const i=Array.isArray(n.children),o=os(r);return t(a,n,s,i,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");a=function(e,t,r){return a;function a(e,a,n,s){const i=Array.isArray(n.children)?r:t;return s?i(a,n,s):i(a,n)}}(0,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?re.JW:re.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Vs(n,e,void 0);return s&&"string"!==typeof s?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function Vs(e,t,r){return"element"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.tagName.toLowerCase()&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=Js(e,t.tagName,!1),i=function(e,t){const r={};let a,n;for(n in t.properties)if("children"!==n&&Bs.call(t.properties,n)){const s=Xs(e,n,t.properties[n]);if(s){const[n,i]=s;e.tableCellAlignToStyle&&"align"===n&&"string"===typeof i&&Gs.has(t.tagName)?a=i:r[n]=i}}if(a){(r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=a}return r}(e,t);let o=Ys(e,t);Hs.has(t.tagName)&&(o=o.filter((function(e){return"string"!==typeof e||!st(e)})));return zs(e,i,s,t),Ks(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(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)}Qs(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const a=e.schema;let n=a;"svg"===t.name&&"html"===a.space&&(n=re.JW,e.schema=n);e.ancestors.push(t);const s=null===t.name?e.Fragment:Js(e,t.name,!0),i=function(e,t){const r={};for(const a of t.attributes)if("mdxJsxExpressionAttribute"===a.type)if(a.data&&a.data.estree&&e.evaluater){const t=a.data.estree.body[0];t.type;const n=t.expression;n.type;const s=n.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Qs(e,t.position);else{const n=a.name;let s;if(a.value&&"object"===typeof a.value)if(a.value.data&&a.value.data.estree&&e.evaluater){const t=a.value.data.estree.body[0];t.type,s=e.evaluater.evaluateExpression(t.expression)}else Qs(e,t.position);else s=null===a.value||a.value;r[n]=s}return r}(e,t),o=Ys(e,t);return zs(e,i,s,t),Ks(i,o),e.ancestors.pop(),e.schema=a,e.create(t,s,i,r)}(e,t,r):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qs(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const a={};return Ks(a,Ys(e,t)),e.create(t,e.Fragment,a,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function zs(e,t,r,a){"string"!==typeof r&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Ks(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Ys(e,t){const r=[];let a=-1;const n=e.passKeys?new Map:Ls;for(;++an?0:n+t:t>n?n:t,r=r>0?r:0,a.length<1e4)s=Array.from(a),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i0?(ii(e,e.length,0,t),e):t}class di{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const a=t||0;this.setCursor(Math.trunc(e));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ci(this.left,r),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ci(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ci(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function Ci(e,t,r,a){const n=a?a-1:Number.POSITIVE_INFINITY;let s=0;return function(a){if(Si(a))return e.enter(r),i(a);return t(a)};function i(a){return Si(a)&&s++s))return;const r=t.events.length;let n,o,d=r;for(;d--;)if("exit"===t.events[d][0]&&"chunkFlow"===t.events[d][1].type){if(n){o=t.events[d][1].end;break}n=!0}for(y(i),e=r;ea;){const a=r[n];t.containerState=a[1],a[0].exit.call(t,e)}r.length=a}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}},Ii={tokenize:function(e,t,r){return Ci(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Di={tokenize:function(e,t,r){return function(t){return Si(t)?Ci(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||Ti(e)?t(e):r(e)}},partial:!0};const Ni={tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?n(t):Ti(t)?e.check(Oi,s,n)(t):(e.consume(t),a)}function n(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function s(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}},resolve:function(e){return li(e),e}},Oi={tokenize:function(e,t,r){const a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ci(e,n,"linePrefix")};function n(n){if(null===n||Ti(n))return r(n);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(n):e.interrupt(a.parser.constructs.flow,r,t)(n)}},partial:!0};const Fi={tokenize:function(e){const t=this,r=e.attempt(Di,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,a,Ci(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ni,a)),"linePrefix")));return r;function a(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}}};const Bi={resolveAll:Hi()},Li=Ui("string"),Mi=Ui("text");function Ui(e){return{tokenize:function(t){const r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){if(null===e)return!0;const t=a[e];let n=-1;if(t)for(;++n-1){const e=i[0];"string"===typeof e?i[0]=e.slice(a):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}(i,e)}function g(){const{line:e,column:t,offset:r,_index:n,_bufferIndex:s}=a;return{line:e,column:t,offset:r,_index:n,_bufferIndex:s}}function h(){let e;for(;a._index=3&&(null===s||Ti(s))?(e.exit("thematicBreak"),t(s)):r(s)}function i(t){return t===a?(e.consume(t),n++,i):(e.exit("thematicBreakSequence"),Si(t)?Ci(e,s,"whitespace")(t):s(t))}}};const zi={name:"list",tokenize:function(e,t,r){const a=this,n=a.events[a.events.length-1];let s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=0;return function(t){const n=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!a.containerState.marker||t===a.containerState.marker:xi(t)){if(a.containerState.type||(a.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(Vi,r,d)(t):d(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return r(t)};function o(t){return xi(t)&&++i<10?(e.consume(t),o):(!a.interrupt||i<2)&&(a.containerState.marker?t===a.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),d(t)):r(t)}function d(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(Di,a.interrupt?r:c,e.attempt(Ki,u,l))}function c(e){return a.containerState.initialBlankLine=!0,s++,u(e)}function l(t){return Si(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):r(t)}function u(r){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}},continuation:{tokenize:function(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(Di,n,s);function n(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ci(e,t,"listItemIndent",a.containerState.size+1)(r)}function s(r){return a.containerState.furtherBlankLines||!Si(r)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(r)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(Yi,t,i)(r))}function i(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ci(e,e.attempt(zi,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},Ki={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return!Si(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):r(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Yi={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)},partial:!0};const Xi={name:"blockQuote",tokenize:function(e,t,r){const a=this;return function(t){if(62===t){const r=a.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),n}return r(t)};function n(r){return Si(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){const a=this;return function(t){if(Si(t))return Ci(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return n(t)};function n(a){return e.attempt(Xi,t,r)(a)}}},exit:function(e){e.exit("blockQuote")}};function Ji(e,t,r,a,n,s,i,o,d){const c=d||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(a),e.enter(n),e.enter(s),e.consume(t),e.exit(s),u;if(null===t||32===t||41===t||vi(t))return r(t);return e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(t)};function u(r){return 62===r?(e.enter(s),e.consume(r),e.exit(s),e.exit(n),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),u(t)):null===t||60===t||Ti(t)?r(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(n){return l||null!==n&&41!==n&&!wi(n)?l999||null===u||91===u||93===u&&!o||94===u&&!d&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):93===u?(e.exit(s),e.enter(n),e.consume(u),e.exit(n),e.exit(a),t):Ti(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(t){return null===t||91===t||93===t||Ti(t)||d++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!Si(t)),92===t?u:l)}function u(t){return 91===t||92===t||93===t?(e.consume(t),d++,l):l(t)}}function $i(e,t,r,a,n,s){let i;return function(t){if(34===t||39===t||40===t)return e.enter(a),e.enter(n),e.consume(t),e.exit(n),i=40===t?41:t,o;return r(t)};function o(r){return r===i?(e.enter(n),e.consume(r),e.exit(n),e.exit(a),t):(e.enter(s),d(r))}function d(t){return t===i?(e.exit(s),o(i)):null===t?r(t):Ti(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ci(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||Ti(t)?(e.exit("chunkString"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Zi(e,t){let r;return function a(n){if(Ti(n))return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,a;if(Si(n))return Ci(e,a,r?"linePrefix":"lineSuffix")(n);return t(n)}}function eo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const to={name:"definition",tokenize:function(e,t,r){const a=this;let n;return function(t){return e.enter("definition"),function(t){return Qi.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return n=eo(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):r(t)}function i(t){return wi(t)?Zi(e,o)(t):o(t)}function o(t){return Ji(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function d(t){return e.attempt(ro,c,c)(t)}function c(t){return Si(t)?Ci(e,l,"whitespace")(t):l(t)}function l(s){return null===s||Ti(s)?(e.exit("definition"),a.parser.defined.push(n),t(s)):r(s)}}},ro={tokenize:function(e,t,r){return function(t){return wi(t)?Zi(e,a)(t):r(t)};function a(t){return $i(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function n(t){return Si(t)?Ci(e,s,"whitespace")(t):s(t)}function s(e){return null===e||Ti(e)?t(e):r(e)}},partial:!0};const ao={name:"codeIndented",tokenize:function(e,t,r){const a=this;return function(t){return e.enter("codeIndented"),Ci(e,n,"linePrefix",5)(t)};function n(e){const t=a.events[a.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):r(e)}function s(t){return null===t?o(t):Ti(t)?e.attempt(no,s,o)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Ti(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),i)}function o(r){return e.exit("codeIndented"),t(r)}}},no={tokenize:function(e,t,r){const a=this;return n;function n(t){return a.parser.lazy[a.now().line]?r(t):Ti(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n):Ci(e,s,"linePrefix",5)(t)}function s(e){const s=a.events[a.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):Ti(e)?n(e):r(e)}},partial:!0};const so={name:"headingAtx",tokenize:function(e,t,r){let a=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),n(t)}(t)};function n(t){return 35===t&&a++<6?(e.consume(t),n):null===t||wi(t)?(e.exit("atxHeadingSequence"),s(t)):r(t)}function s(r){return 35===r?(e.enter("atxHeadingSequence"),i(r)):null===r||Ti(r)?(e.exit("atxHeading"),t(r)):Si(r)?Ci(e,s,"whitespace")(r):(e.enter("atxHeadingText"),o(r))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||wi(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}},resolve:function(e,t){let r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},ii(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e}};const io={name:"setextUnderline",tokenize:function(e,t,r){const a=this;let n;return function(t){let i,o=a.events.length;for(;o--;)if("lineEnding"!==a.events[o][1].type&&"linePrefix"!==a.events[o][1].type&&"content"!==a.events[o][1].type){i="paragraph"===a.events[o][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||i))return e.enter("setextHeadingLine"),n=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t);return r(t)};function s(t){return t===n?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Si(t)?Ci(e,i,"lineSuffix")(t):i(t))}function i(a){return null===a||Ti(a)?(e.exit("setextHeadingLine"),t(a)):r(a)}},resolveTo:function(e,t){let r,a,n,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){r=s;break}"paragraph"===e[s][1].type&&(a=s)}else"content"===e[s][1].type&&e.splice(s,1),n||"definition"!==e[s][1].type||(n=s);const i={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",i,t]),e.splice(n+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[n][1].end)):e[r][1]=i;return e.push(["exit",i,t]),e}};const oo=["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"],co=["pre","script","style","textarea"],lo={name:"htmlFlow",tokenize:function(e,t,r){const a=this;let n,s,i,o,d;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),l):47===o?(e.consume(o),s=!0,f):63===o?(e.consume(o),n=3,a.interrupt?t:N):mi(o)?(e.consume(o),i=String.fromCharCode(o),g):r(o)}function l(s){return 45===s?(e.consume(s),n=2,u):91===s?(e.consume(s),n=5,o=0,p):mi(s)?(e.consume(s),n=4,a.interrupt?t:N):r(s)}function u(n){return 45===n?(e.consume(n),a.interrupt?t:N):r(n)}function p(n){const s="CDATA[";return n===s.charCodeAt(o++)?(e.consume(n),6===o?a.interrupt?t:A:p):r(n)}function f(t){return mi(t)?(e.consume(t),i=String.fromCharCode(t),g):r(t)}function g(o){if(null===o||47===o||62===o||wi(o)){const d=47===o,c=i.toLowerCase();return d||s||!co.includes(c)?oo.includes(i.toLowerCase())?(n=6,d?(e.consume(o),h):a.interrupt?t(o):A(o)):(n=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(o):s?m(o):y(o)):(n=1,a.interrupt?t(o):A(o))}return 45===o||yi(o)?(e.consume(o),i+=String.fromCharCode(o),g):r(o)}function h(n){return 62===n?(e.consume(n),a.interrupt?t:A):r(n)}function m(t){return Si(t)?(e.consume(t),m):w(t)}function y(t){return 47===t?(e.consume(t),w):58===t||95===t||mi(t)?(e.consume(t),b):Si(t)?(e.consume(t),y):w(t)}function b(t){return 45===t||46===t||58===t||95===t||yi(t)?(e.consume(t),b):v(t)}function v(t){return 61===t?(e.consume(t),x):Si(t)?(e.consume(t),v):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),d=t,R):Si(t)?(e.consume(t),x):E(t)}function R(t){return t===d?(e.consume(t),d=null,T):null===t||Ti(t)?r(t):(e.consume(t),R)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wi(t)?v(t):(e.consume(t),E)}function T(e){return 47===e||62===e||Si(e)?y(e):r(e)}function w(t){return 62===t?(e.consume(t),S):r(t)}function S(t){return null===t||Ti(t)?A(t):Si(t)?(e.consume(t),S):r(t)}function A(t){return 45===t&&2===n?(e.consume(t),k):60===t&&1===n?(e.consume(t),P):62===t&&4===n?(e.consume(t),O):63===t&&3===n?(e.consume(t),N):93===t&&5===n?(e.consume(t),D):!Ti(t)||6!==n&&7!==n?null===t||Ti(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(uo,F,j)(t))}function j(t){return e.check(po,_,F)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||Ti(t)?j(t):(e.enter("htmlFlowData"),A(t))}function k(t){return 45===t?(e.consume(t),N):A(t)}function P(t){return 47===t?(e.consume(t),i="",I):A(t)}function I(t){if(62===t){const r=i.toLowerCase();return co.includes(r)?(e.consume(t),O):A(t)}return mi(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),I):A(t)}function D(t){return 93===t?(e.consume(t),N):A(t)}function N(t){return 62===t?(e.consume(t),O):45===t&&2===n?(e.consume(t),N):A(t)}function O(t){return null===t||Ti(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),O)}function F(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},uo={tokenize:function(e,t,r){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Di,t,r)}},partial:!0},po={tokenize:function(e,t,r){const a=this;return function(t){if(Ti(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n;return r(t)};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}},partial:!0};const fo={tokenize:function(e,t,r){const a=this;return function(t){if(null===t)return r(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n};function n(e){return a.parser.lazy[a.now().line]?r(e):t(e)}},partial:!0},go={name:"codeFenced",tokenize:function(e,t,r){const a=this,n={tokenize:function(e,t,r){let n=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return e.enter("codeFencedFence"),Si(t)?Ci(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===s?(e.enter("codeFencedFenceSequence"),l(t)):r(t)}function l(t){return t===s?(n++,e.consume(t),l):n>=o?(e.exit("codeFencedFenceSequence"),Si(t)?Ci(e,u,"whitespace")(t):u(t)):r(t)}function u(a){return null===a||Ti(a)?(e.exit("codeFencedFence"),t(a)):r(a)}},partial:!0};let s,i=0,o=0;return function(t){return function(t){const r=a.events[a.events.length-1];return i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}(t)};function d(t){return t===s?(o++,e.consume(t),d):o<3?r(t):(e.exit("codeFencedFenceSequence"),Si(t)?Ci(e,c,"whitespace")(t):c(t))}function c(r){return null===r||Ti(r)?(e.exit("codeFencedFence"),a.interrupt?t(r):e.check(fo,f,b)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(r))}function l(t){return null===t||Ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Si(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ci(e,u,"whitespace")(t)):96===t&&t===s?r(t):(e.consume(t),l)}function u(t){return null===t||Ti(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?r(t):(e.consume(t),p)}function f(t){return e.attempt(n,b,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Si(t)?Ci(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||Ti(t)?e.check(fo,f,b)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Ti(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function b(r){return e.exit("codeFenced"),t(r)}},concrete:!0};var ho=r(7018);const mo={name:"characterReference",tokenize:function(e,t,r){const a=this;let n,s,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),n=31,s=yi,c(t))}function d(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=Ri,c):(e.enter("characterReferenceValue"),n=7,s=xi,c(t))}function c(o){if(59===o&&i){const n=e.exit("characterReferenceValue");return s!==yi||(0,ho.s)(a.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(o)}return s(o)&&i++1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const u=Object.assign({},e[r][1].end),p=Object.assign({},e[l][1].start);Ao(u,-o),Ao(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[r][1].end)},i={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:p},n={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[l][1].start)},a={type:o>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},i.end)},e[r][1].end=Object.assign({},s.start),e[l][1].start=Object.assign({},i.end),d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=oi(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=oi(d,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),d=oi(d,qi(t.parser.constructs.insideSpan.null,e.slice(r+1,l),t)),d=oi(d,[["exit",n,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[l][1].end.offset-e[l][1].start.offset?(c=2,d=oi(d,[["enter",e[l][1],t],["exit",e[l][1],t]])):c=0,ii(e,r-1,l-r+3,d),l=r+d.length-c-2;break}l=-1;for(;++l13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":String.fromCodePoint(r)}const qo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wo(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return Go(r.slice(t?2:1),t?16:10)}return(0,ho.s)(r)||e}const Vo={}.hasOwnProperty;function zo(e,t,r){return"string"!==typeof t&&(r=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:S,autolinkEmail:S,atxHeading:s(Q),blockQuote:s(z),characterEscape:S,characterReference:S,codeFenced:s(K),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:s(K,i),codeText:s(Y,i),codeTextData:S,data:S,codeFlowValue:S,definition:s(X),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:s(J),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(Z,i),htmlFlowData:S,htmlText:s(Z,i),htmlTextData:S,image:s(ee),label:i,link:s(te),listItem:s(ae),listItemValue:p,listOrdered:s(re,u),listUnordered:s(re),paragraph:s(ne),reference:M,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:s(Q),strong:s(se),thematicBreak:s(oe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:V,autolinkProtocol:W,blockQuote:d(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:G,characterReference:q,codeFenced:d(m),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:d(y),codeText:d(P),codeTextData:A,data:A,definition:d(),definitionDestinationString:x,definitionLabelString:b,definitionTitleString:v,emphasis:d(),hardBreakEscape:d(_),hardBreakTrailing:d(_),htmlFlow:d(C),htmlFlowData:A,htmlText:d(k),htmlTextData:A,image:d(D),label:O,labelText:N,lineEnding:j,link:d(I),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:U,resourceDestinationString:F,resourceTitleString:B,resource:L,setextHeading:d(w),setextHeadingLineSequence:T,setextHeadingText:E,strong:d(),thematicBreak:d()}};Yo(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(e){let a={type:"root",children:[]};const s={stack:[a],tokenStack:[],config:t,enter:o,exit:c,buffer:i,resume:l,data:r},d=[];let u=-1;for(;++u0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||Jo).call(s,void 0,e[0])}for(a.position={start:Ko(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ko(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u55295&&s<57344){const t=e.charCodeAt(r+1);s<56320&&t>56319&&t<57344?(i=String.fromCharCode(s,t),n=1):i="\ufffd"}else i=String.fromCharCode(s);i&&(t.push(e.slice(a,r),encodeURIComponent(i)),a=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(a)}function Zo(e,t){const r=[{type:"text",value:"\u21a9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ed(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function td(e,t){const r=t.referenceType;let a="]";if("collapsed"===r?a+="[]":"full"===r&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];const n=e.all(t),s=n[0];s&&"text"===s.type?s.value="["+s.value:n.unshift({type:"text",value:"["});const i=n[n.length-1];return i&&"text"===i.type?i.value+=a:n.push({type:"text",value:a}),n}function rd(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}const ad=9,nd=32;function sd(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),n=0;const s=[];for(;a;)s.push(id(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=r.exec(t);return s.push(id(t.slice(n),n>0,!1)),s.join("")}function id(e,t,r){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;t===ad||t===nd;)a++,t=e.codePointAt(a)}if(r){let t=e.codePointAt(n-1);for(;t===ad||t===nd;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}const od={blockquote:function(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)},break:function(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:"\n"}]},code:function(e,t){const r=t.value?t.value+"\n":"",a={};t.lang&&(a.className=["language-"+t.lang]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n},delete:function(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},emphasis:function(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},footnoteReference:function(e,t){const r="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),n=$o(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let i,o=e.footnoteCounts.get(a);void 0===o?(o=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=s+1,o+=1,e.footnoteCounts.set(a,o);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,d);const c={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},html:function(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}},imageReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return td(e,t);const n={src:$o(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const r={src:$o(t.url)};null!==t.alt&&void 0!==t.alt&&(r.alt=t.alt),null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return td(e,t);const n={href:$o(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const r={href:$o(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,r){const a=e.all(t),n=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=os(t.children[1]),i=is(t.children[t.children.length-1]);s&&i&&(a.position={start:s,end:i}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},tableRow:function(e,t,r){const a=r?r.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",s=r&&"table"===r.type?r.align:void 0,i=s?s.length:t.children.length;let o=-1;const d=[];for(;++o0&&r.push({type:"text",value:"\n"}),r}function hd(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function md(e,t){const r=function(e,t){const r=t||ld,a=new Map,n=new Map,s=new Map,i={...od,...r.handlers},o={all:function(e){const t=[];if("children"in e){const r=e.children;let a=-1;for(;++a0&&u.push({type:"text",value:" "});let e="string"===typeof r?r:r(d,l);"string"===typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof a?a:a(d,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=s[s.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...u)}else s.push(...u);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(n,g),o.push(g)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vt(i),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return n&&s.children.push({type:"text",value:"\n"},n),s}function yd(e,t){return e&&"run"in e?async function(r,a){const n=md(r,{file:a,...t});await e.run(n,a)}:function(r,a){return md(r,{file:a,...t||e})}}function bd(e){if(e)throw e}var vd=r(1761);function xd(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rd(){const e=[],t={run:function(){for(var t=arguments.length,r=new Array(t),a=0;a1?d-1:0),l=1;ln.length;let c;d&&n.push(s);try{c=e.apply(this,n)}catch(a){if(d&&r)throw a;return s(a)}d||(c&&c.then&&"function"===typeof c.then?c.then(i,s):c instanceof Error?s(c):i(c))}function s(e){if(!r){r=!0;for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;se.length){for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else n<0&&(r=!0,n=s+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){a=s+1;break}}else i<0&&(r=!0,i=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(n=s):(o=-1,n=i));a===n?n=i:n<0&&(n=e.length);return e.slice(a,n)},dirname:function(e){if(Td(e),0===e.length)return".";let t,r=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){r=a;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},extname:function(e){Td(e);let t,r=e.length,a=-1,n=0,s=-1,i=0;for(;r--;){const o=e.codePointAt(r);if(47!==o)a<0&&(t=!0,a=r+1),46===o?s<0?s=r:1!==i&&(i=1):s>-1&&(i=-1);else if(t){n=r+1;break}}if(s<0||a<0||0===i||1===i&&s===a-1&&s===n+1)return"";return e.slice(s,a)},join:function(){let e,t=-1;for(var r=arguments.length,a=new Array(r),n=0;n2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",s=0):(n=n.slice(0,a),s=n.length-1-n.lastIndexOf("/")),i=d,o=0;continue}}else if(n.length>0){n="",s=0,i=d,o=0;continue}t&&(n=n.length>0?n+"/..":"..",s=2)}else n.length>0?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t);0!==r.length||t||(r=".");r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/");return t?"/"+r:r}(e)},sep:"/"};function Td(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wd={cwd:function(){return"/"}};function Sd(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Ad(e){if("string"===typeof e)e=new URL(e);else if(!Sd(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let r=-1;for(;++r1?a-1:0),s=1;s0){let[a,...s]=r;const i=t[n][1];xd(i)&&xd(a)&&(a=vd(!0,i,a)),t[n]=[e,a,...s]}}}}const Od=(new Nd).freeze();function Fd(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Bd(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ld(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 Md(e){if(!xd(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ud(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hd(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new _d(e)}const Gd=[],qd={allowDangerousHtml:!0},Wd=/^(https?|ircs?|mailto|xmpp)$/i,Vd=[{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:"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 zd(e){const t=e.allowedElements,r=e.allowElement,a=e.children||"",n=e.className,s=e.components,i=e.disallowedElements,d=e.rehypePlugins||Gd,c=e.remarkPlugins||Gd,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qd}:qd,u=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||Kd,g=Od().use(Qo).use(c).use(yd,l).use(d),h=new _d;"string"===typeof a&&(h.value=a);for(const o of Vd)Object.hasOwn(e,o.from)&&(o.from,o.to&&o.to,o.id);const m=g.parse(h);let y=g.runSync(m,h);return n&&(y={type:"element",tagName:"div",properties:{className:n},children:"root"===y.type?y.children:[y]}),H(y,(function(e,a,n){if("raw"===e.type&&n&&"number"===typeof a)return u?n.children.splice(a,1):n.children[a]={type:"text",value:e.value},a;if("element"===e.type){let t;for(t in ti)if(Object.hasOwn(ti,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],a=ti[t];(null===a||a.includes(e.tagName))&&(e.properties[t]=f(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"===typeof a&&(s=!r(e,a,n)),s&&n&&"number"===typeof a)return p&&e.children?n.children.splice(a,1,...e.children):n.children.splice(a,1),a}})),Ws(y,{Fragment:o.Fragment,components:s,ignoreInvalidStyle:!0,jsx:o.jsx,jsxs:o.jsxs,passKeys:!0,passNode:!0})}function Kd(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),n=e.indexOf("/");return t<0||n>-1&&t>n||r>-1&&t>r||a>-1&&t>a||Wd.test(e.slice(0,t))?e:""}function Yd(e,t){const r=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let a=0,n=r.indexOf(t);for(;-1!==n;)a++,n=r.indexOf(t,n+t.length);return a}function Xd(e,t,r){const a=I((r||{}).ignore||[]),n=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a0?{type:"text",value:s}:void 0),!1===s?a.lastIndex=r+1:(o!==r&&l.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?l.push(...s):s&&l.push(s),o=r+u[0].length,c=!0),!a.global)break;u=a.exec(e.value)}c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],a=r.indexOf(")");const n=Yd(e,"(");let s=Yd(e,")");for(;-1!==a&&n>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}(r+a);if(!i[0])return!1;const o={type:"link",title:null,url:s+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[o,{type:"text",value:i[1]}]:o}function dc(e,t,r,a){return!(!cc(a,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function cc(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||ji(r)||Ai(r))&&(!t||47!==r)}function lc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function uc(){this.buffer()}function pc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=eo(this.sliceSerialize(e)).toLowerCase()}function fc(e){this.exit(e)}function gc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hc(){this.buffer()}function mc(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=eo(this.sliceSerialize(e)).toLowerCase()}function yc(e){this.exit(e)}function bc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteReference"),o=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),i(),s+=n.move("]"),s}function vc(e,t,r,a){const n=r.createTracker(a);let s=n.move("[^");const i=r.enter("footnoteDefinition"),o=r.enter("label");return s+=n.move(r.safe(r.associationId(e),{...n.current(),before:s,after:"]"})),o(),s+=n.move("]:"+(e.children&&e.children.length>0?" ":"")),n.shift(4),s+=n.move(r.indentLines(r.containerFlow(e,n.current()),xc)),i(),s}function xc(e,t,r){return 0===t?e:(r?"":" ")+e}bc.peek=function(){return"["};const Rc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ec(e){this.enter({type:"delete",children:[]},e)}function Tc(e){this.exit(e)}function wc(e,t,r,a){const n=r.createTracker(a),s=r.enter("strikethrough");let i=n.move("~~");return i+=r.containerPhrasing(e,{...n.current(),before:i,after:"~"}),i+=n.move("~~"),s(),i}function Sc(e){return null===e||void 0===e?"":String(e)}function Ac(e){return e.length}function jc(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _c(e,t,r){return">"+(r?"":" ")+e}function Cc(e,t,r){if("string"===typeof t&&(t=[t]),!t||0===t.length)return r;let a=-1;for(;++a",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":")",...d.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),c+=d.move(")"),i(),c}function Fc(e,t,r,a){const n=e.referenceType,s=r.enter("imageReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("![");const c=r.safe(e.alt,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Bc(e,t,r){let a=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s\u007F]/.test(e.url))}function Mc(e,t,r,a){const n=Ic(r),s='"'===n?"Quote":"Apostrophe",i=r.createTracker(a);let o,d;if(Lc(e,r)){const t=r.stack;r.stack=[],o=r.enter("autolink");let a=i.move("<");return a+=i.move(r.containerPhrasing(e,{before:a,after:">",...i.current()})),a+=i.move(">"),o(),r.stack=t,a}o=r.enter("link"),d=r.enter("label");let c=i.move("[");return c+=i.move(r.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(r.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(d=r.enter("destinationRaw"),c+=i.move(r.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),d(),e.title&&(d=r.enter(`title${s}`),c+=i.move(" "+n),c+=i.move(r.safe(e.title,{before:c,after:n,...i.current()})),c+=i.move(n),d()),c+=i.move(")"),o(),c}function Uc(e,t,r,a){const n=e.referenceType,s=r.enter("linkReference");let i=r.enter("label");const o=r.createTracker(a);let d=o.move("[");const c=r.containerPhrasing(e,{before:d,after:"]",...o.current()});d+=o.move(c+"]["),i();const l=r.stack;r.stack=[],i=r.enter("reference");const u=r.safe(r.associationId(e),{before:d,after:"]",...o.current()});return i(),r.stack=l,s(),"full"!==n&&c&&c===u?"shortcut"===n?d=d.slice(0,-1):d+=o.move("]"):d+=o.move(u+"]"),d}function Hc(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 Gc(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}wc.peek=function(){return"~"},Dc.peek=function(e,t,r){return r.options.emphasis||"*"},Nc.peek=function(){return"<"},Oc.peek=function(){return"!"},Fc.peek=function(){return"!"},Bc.peek=function(){return"`"},Mc.peek=function(e,t,r){return Lc(e,r)?"<":"["},Uc.peek=function(){return"["};const qc=I(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Wc(e,t,r,a){const n=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),s=r.enter("strong"),i=r.createTracker(a);let o=i.move(n+n);return o+=i.move(r.containerPhrasing(e,{before:o,after:n,...i.current()})),o+=i.move(n+n),s(),o}Wc.peek=function(e,t,r){return r.options.strong||"*"};const Vc={blockquote:function(e,t,r,a){const n=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const i=r.indentLines(r.containerFlow(e,s.current()),_c);return n(),i},break:kc,code:function(e,t,r,a){const n=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),s=e.value||"",i="`"===n?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,r)){const e=r.enter("codeIndented"),t=r.indentLines(s,Pc);return e(),t}const o=r.createTracker(a),d=n.repeat(Math.max(function(e,t){const r=String(e);let a=r.indexOf(t),n=a,s=0,i=0;if("string"!==typeof t)throw new TypeError("Expected substring");for(;-1!==a;)a===n?++s>i&&(i=s):s=1,n=a+t.length,a=r.indexOf(t,n);return i}(s,n)+1,3)),c=r.enter("codeFenced");let l=o.move(d);if(e.lang){const t=r.enter(`codeFencedLang${i}`);l+=o.move(r.safe(e.lang,{before:l,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${i}`);l+=o.move(" "),l+=o.move(r.safe(e.meta,{before:l,after:"\n",encode:["`"],...o.current()})),t()}return l+=o.move("\n"),s&&(l+=o.move(s+"\n")),l+=o.move(d),c(),l},definition:function(e,t,r,a){const n=Ic(r),s='"'===n?"Quote":"Apostrophe",i=r.enter("definition");let o=r.enter("label");const d=r.createTracker(a);let c=d.move("[");return c+=d.move(r.safe(r.associationId(e),{before:c,after:"]",...d.current()})),c+=d.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=d.move("<"),c+=d.move(r.safe(e.url,{before:c,after:">",...d.current()})),c+=d.move(">")):(o=r.enter("destinationRaw"),c+=d.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...d.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=d.move(" "+n),c+=d.move(r.safe(e.title,{before:c,after:n,...d.current()})),c+=d.move(n),o()),i(),c},emphasis:Dc,hardBreak:kc,heading:function(e,t,r,a){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(function(e,t){let r=!1;return H(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,L})),Boolean((!e.depth||e.depth<3)&&ai(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),a=r.enter("phrasing"),i=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return a(),t(),i+"\n"+(1===n?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(n),o=r.enter("headingAtx"),d=r.enter("phrasing");s.move(i+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?i+" "+c:i,r.options.closeAtx&&(c+=" "+i),d(),o(),c},html:Nc,image:Oc,imageReference:Fc,inlineCode:Bc,link:Mc,linkReference:Uc,list:function(e,t,r,a){const n=r.enter("list"),s=r.bulletCurrent;let i=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):Hc(r);const o=e.ordered?"."===i?")":".":function(e){const t=Hc(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r);let d=!(!t||!r.bulletLastUsed)&&i===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(d=!0),Gc(r)===i&&t){let t=-1;for(;++t-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let i=s.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const o=r.createTracker(a);o.move(s+" ".repeat(i-s.length)),o.shift(i);const d=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),(function(e,t,r){if(t)return(r?"":" ".repeat(i))+e;return(r?s:s+" ".repeat(i-s.length))+e}));return d(),c},paragraph:function(e,t,r,a){const n=r.enter("paragraph"),s=r.enter("phrasing"),i=r.containerPhrasing(e,a);return s(),n(),i},root:function(e,t,r,a){return(e.children.some((function(e){return qc(e)}))?r.containerPhrasing:r.containerFlow).call(r,e,a)},strong:Wc,text:function(e,t,r,a){return r.safe(e.value,a)},thematicBreak:function(e,t,r){const a=(Gc(r)+(r.options.ruleSpaces?" ":"")).repeat(function(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}(r));return r.options.ruleSpaces?a.slice(0,-1):a}};function zc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Kc(e){this.exit(e),this.data.inTable=void 0}function Yc(e){this.enter({type:"tableRow",children:[]},e)}function Xc(e){this.exit(e)}function Jc(e){this.enter({type:"tableCell",children:[]},e)}function Qc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$c));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function $c(e,t){return"|"===t?t:e}function Zc(e){const t=e||{},r=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let a=Vc.inlineCode(e,t,r);r.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&"));return a},table:function(e,t,r,a){return o(function(e,t,r){const a=e.children;let n=-1;const s=[],i=t.enter("table");for(;++n1&&void 0!==arguments[1]?arguments[1]:{};const r=(t.align||[]).concat(),a=t.stringLength||Ac,n=[],s=[],i=[],o=[];let d=0,c=-1;for(;++cd&&(d=e[c].length);++lo[l])&&(o[l]=e)}r.push(s)}s[c]=r,i[c]=n}let l=-1;if("object"===typeof r&&"length"in r)for(;++lo[l]&&(o[l]=s),p[l]=s),u[l]=i}s.splice(1,0,u),i.splice(1,0,p),c=-1;const f=[];for(;++c0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}ul[43]=ll,ul[45]=ll,ul[46]=ll,ul[95]=ll,ul[72]=[ll,cl],ul[104]=[ll,cl],ul[87]=[ll,dl],ul[119]=[ll,dl];const bl={tokenize:function(e,t,r){const a=this;return Ci(e,(function(e){const n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):r(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function vl(e,t,r){const a=this;let n=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i;for(;n--;){const e=a.events[n][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(n){if(!i||!i._balanced)return r(n);const o=eo(a.sliceSerialize({start:i.end,end:a.now()}));if(94!==o.codePointAt(0)||!s.includes(o.slice(1)))return r(n);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),t(n)}}function xl(e,t){let r,a=e.length;for(;a--;)if("labelImage"===e[a][1].type&&"enter"===e[a][0]){r=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},d=[e[a+1],e[a+2],["enter",n,t],e[a+3],e[a+4],["enter",s,t],["exit",s,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(a,e.length-a+1,...d),e}function Rl(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(o){if(i>999||93===o&&!s||null===o||91===o||wi(o))return r(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return n.includes(eo(a.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(o)}return wi(o)||(s=!0),i++,e.consume(o),92===o?c:d}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,d):d(t)}}function El(e,t,r){const a=this,n=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,i,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),d};function d(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(o>999||93===t&&!i||null===t||91===t||wi(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return s=eo(a.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return wi(t)||(i=!0),o++,e.consume(t),92===t?l:c}function l(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),n.includes(s)||n.push(s),Ci(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Tl(e,t,r){return e.check(Di,t,e.attempt(bl,t,r))}function wl(e){e.exit("gfmFootnoteDefinition")}function Sl(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,a){const n=this.previous,s=this.events;let i=0;return function(t){if(126===n&&"characterEscape"!==s[s.length-1][1].type)return a(t);return e.enter("strikethroughSequenceTemporary"),o(t)};function o(s){const d=wo(n);if(126===s)return i>1?a(s):(e.consume(s),i++,o);if(i<2&&!t)return a(s);const c=e.exit("strikethroughSequenceTemporary"),l=wo(s);return c._open=!l||2===l&&Boolean(d),c._close=!d||2===d&&Boolean(l),r(s)}},resolveAll:function(e,t){let r=-1;for(;++r0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push([...e]),e.length=0;let a=r.pop();for(;a;)e.push(...a),a=r.pop();this.map.length=0}}function jl(e,t){let r=!1;const a=[];for(;t-1;){const e=a.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const n=t>-1?a.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?x:o;if(s===x&&a.parser.lazy[a.now().line])return r(e);return s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return d(e);return n=!0,i+=1,d(e)}(t)}function d(t){return null===t?r(t):Ti(t)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):r(t):Si(t)?Ci(e,d,"whitespace")(t):(i+=1,n&&(n=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,d):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||wi(t)?(e.exit("data"),d(t)):(e.consume(t),92===t?l:c)}function l(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(t):(e.enter("tableDelimiterRow"),n=!1,Si(t)?Ci(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return Si(t)?Ci(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(i+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||Ti(t)?b(t):v(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):v(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Si(t)?Ci(e,b,"whitespace")(t):b(t)}function b(r){return 124===r?p(r):(null===r||Ti(r))&&n&&s===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):v(r)}function v(e){return r(e)}function x(t){return e.enter("tableRow"),R(t)}function R(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),R):null===r||Ti(r)?(e.exit("tableRow"),t(r)):Si(r)?Ci(e,R,"whitespace")(r):(e.enter("data"),E(r))}function E(t){return null===t||124===t||wi(t)?(e.exit("data"),R(t)):(e.consume(t),92===t?T:E)}function T(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Cl(e,t){let r,a,n,s=-1,i=!0,o=0,d=[0,0,0,0],c=[0,0,0,0],l=!1,u=0;const p=new Al;for(;++sr[2]+1){const t=r[2]+1,a=r[3]-r[2]-1;e.add(t,a,[])}}e.add(r[3]+1,0,[["exit",i,t]])}return void 0!==n&&(s.end=Object.assign({},Il(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Pl(e,t,r,a,n){const s=[],i=Il(t.events,r);n&&(n.end=Object.assign({},i),s.push(["exit",n,t])),a.end=Object.assign({},i),s.push(["exit",a,t]),e.add(r+1,0,s)}function Il(e,t){const r=e[t],a="enter"===r[0]?"start":"end";return r[1][a]}const Dl={name:"tasklistCheck",tokenize:function(e,t,r){const a=this;return function(t){if(null!==a.previous||!a._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n};function n(t){return wi(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):r(t)}function i(a){return Ti(a)?t(a):Si(a)?e.check({tokenize:Nl},t,r)(a):r(a)}}};function Nl(e,t,r){return Ci(e,(function(e){return null===e?r(e):t(e)}),"whitespace")}const Ol={};function Fl(e){const t=e||Ol,r=this.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),n=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(function(e){return fi([{text:ul},{document:{91:{name:"gfmFootnoteDefinition",tokenize:El,continuation:{tokenize:Tl},exit:wl}},text:{91:{name:"gfmFootnoteCall",tokenize:Rl},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vl,resolveTo:xl}}},Sl(e),{flow:{null:{name:"table",tokenize:_l,resolveAll:Cl}}},{text:{91:Dl}}])}(t)),n.push([{transforms:[ic],enter:{literalAutolink:ec,literalAutolinkEmail:tc,literalAutolinkHttp:tc,literalAutolinkWww:tc},exit:{literalAutolink:sc,literalAutolinkEmail:nc,literalAutolinkHttp:rc,literalAutolinkWww:ac}},{enter:{gfmFootnoteDefinition:lc,gfmFootnoteDefinitionLabelString:uc,gfmFootnoteCall:gc,gfmFootnoteCallString:hc},exit:{gfmFootnoteDefinition:fc,gfmFootnoteDefinitionLabelString:pc,gfmFootnoteCall:yc,gfmFootnoteCallString:mc}},{canContainEols:["delete"],enter:{strikethrough:Ec},exit:{strikethrough:Tc}},{enter:{table:zc,tableData:Jc,tableHeader:Jc,tableRow:Yc},exit:{codeText:Qc,table:Kc,tableData:Xc,tableHeader:Xc,tableRow:Xc}},{exit:{taskListCheckValueChecked:el,taskListCheckValueUnchecked:el,paragraph:tl}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$d,notInConstruct:Zd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$d,notInConstruct:Zd},{character:":",before:"[ps]",after:"\\/",inConstruct:$d,notInConstruct:Zd}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:vc,footnoteReference:bc}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rc}],handlers:{delete:wc}},Zc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rl}}]}}(t))}const Bl=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Ll=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Ml=function(){let{legacyTitle:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{H(t,"blockquote",((t,r,a)=>{let n="",s="",i=!0,o=t.children.map((t=>{if(i&&"paragraph"===t.type){const r=t.children[0],a="text"===r.type?r.value:"",o=e?Ll:Bl,d=a.match(o);if(d&&(i=!1,n=d[1].toLocaleLowerCase(),s=e&&d[2]||n.toLocaleUpperCase(),a.includes("\n")&&(t.children[0]={type:"text",value:a.replace(o,"").replace(/^\n+/,"")}),!a.includes("\n"))){const e=[];t.children.forEach(((t,r)=>{0!=r&&(1==r&&"break"===t.type||e.push(t))})),t.children=[...e]}}return t}));n&&(t.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${n}`,dir:"auto"}},o.unshift({type:"paragraph",children:[Ul(n),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),t.children=[...o]}))}};function Ul(e){return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:Hl[e]??""}},children:[]}]}}const Hl={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Gl(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Gl(t.parentElement):null}function ql(e){var t=e=>{var t=Gl(e.target);t&&(t.classList.add("active"),y()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,i.useEffect)((()=>{var r,a;return null==(r=e.current)||r.removeEventListener("click",t,!1),null==(a=e.current)||a.addEventListener("click",t,!1),()=>{var r;null==(r=e.current)||r.removeEventListener("click",t,!1)}}),[e])}var Wl=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Vl=e=>e;const zl=i.forwardRef(((e,t)=>{var{prefixCls:r="wmde-markdown wmde-markdown-color",className:a,source:d,style:c,disableCopy:l=!1,skipHtml:u=!0,onScroll:p,onMouseOver:f,pluginsFilter:g,wrapperElement:h={},warpperElement:m={},urlTransform:y}=e,b=(0,s.A)(e,Wl),v=i.useRef(null);(0,i.useImperativeHandle)(t,(()=>(0,n.A)({},e,{mdp:v})),[v,e]);var x=(r||"")+" "+(a||"");ql(v);var R=[...b.rehypePlugins||[]],E={allowElement:(e,t,r)=>b.allowElement?b.allowElement(e,t,r):/^[A-Za-z0-9]+$/.test(e.tagName)};u&&R.push(ws);var T=[Ml,...b.remarkPlugins||[],Fl],w=(0,n.A)({},m,h);return(0,o.jsx)("div",(0,n.A)({ref:v,onScroll:p,onMouseOver:f},w,{className:x,style:c,children:(0,o.jsx)(zd,(0,n.A)({},E,b,{skipHtml:u,urlTransform:y||Vl,rehypePlugins:g?g("rehype",R):R,remarkPlugins:g?g("remark",T):T,children:d||""}))}))}));var Kl=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=(0,n.A)({},e.properties,{"data-meta":String(e.data.meta)}))}))}},Yl=function(e){return void 0===e&&(e={}),e=>{H(e,(e=>{if("element"===e.type&&"code"===e.tagName&&e.properties&&e.properties.dataMeta){e.data||(e.data={});var t=e.properties.dataMeta;"string"===typeof t&&(e.data.meta=t),delete e.properties.dataMeta}}))}};const Xl=/[\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-\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FFF]|\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,Jl=Object.hasOwnProperty;function Ql(e){const t="element"===e.type?e.tagName.toLowerCase():"",r=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return r>48&&r<55?r-48:void 0}const $l={},Zl=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const r=this;let a=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(Xl,"").replace(/ /g,"-")}(e,!0===t);const n=a;for(;Jl.call(r.occurrences,a);)r.occurrences[n]++,a=n+"-"+r.occurrences[n];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}};const eu=function(e){if(null===e||void 0===e)return ru;if("string"===typeof e)return function(e){return tu(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let r=-1;for(;++r0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:r="rehype:ignore:end"}=e;return e=>{H(e,((e,a,n)=>{if("element"===e.type||"root"===e.type){let a=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let n=(e.value||"").trim();if(n=n.replace(/^/,"$1"),n===t)return a=!0,!1;if(n===r)return a=!1,!1}return!a}))}}))}};var pu={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var fu=[function(e){const t=(e||$l).prefix||"";return function(e){Zl.reset(),H(e,"element",(function(e){Ql(e)&&!e.properties.id&&(e.properties.id=t+Zl.slug(G(e)))}))}},function(e){const t=e||su;let r=t.properties;const a=t.headingProperties,n=t.behavior||"prepend",s=t.content,i=t.group,o=eu(t.test);let d;return"after"===n||"before"===n?d=function(e,t,a){if("number"!==typeof t||!a)return;const o=du(s||nu,e),d=ou(e,lu(r,e),o);let c="before"===n?[d,e]:[e,d];if(i){const t=cu(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=c,c=[t])}return a.children.splice(t,1,...c),[M,t+c.length]}:"wrap"===n?d=function(e){let t=e.children,a=[];"function"===typeof s?(t=[],a=s(e)):s&&(a=iu(s));return e.children=[ou(e,lu(r,e),Array.isArray(a)?[...t,...a]:[...t,a])],[M]}:(d=function(e){const t=du(s||nu,e);return e.children["prepend"===n?"unshift":"push"](ou(e,lu(r,e),t)),[M]},r||(r={ariaHidden:"true",tabIndex:-1})),function(e){H(e,"element",(function(e,t,r){if(Ql(e)&&e.properties.id&&o(e,t,r))return Object.assign(e.properties,lu(a,e)),d(e,t,r)}))}},uu];const gu=i.forwardRef(((e,t)=>{var r,a,s,i=[Kl,ws,Yl,...fu,[It,{rewrite:(a=null!=(r=e.disableCopy)&&r,s=e.rehypeRewrite,(e,t,r)=>{if("element"===e.type&&r&&"root"===r.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var i=e.children&&e.children[0];i&&i.properties&&"true"===i.properties.ariaHidden&&(i.properties=(0,n.A)({class:"anchor"},i.properties),i.children=[pu])}if("element"===e.type&&"pre"===e.tagName&&!a){var o=Pt(e.children);e.children.push((void 0===(d=o)&&(d=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":d},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var d;s&&s(e,null===t?void 0:t,null===r?void 0:r)})}],[Ft,{properties:"attr"}],...e.rehypePlugins||[],[te,{ignoreMissing:!0}]];return(0,o.jsx)(zl,(0,n.A)({},e,{rehypePlugins:i,ref:t}))}));var hu,mu,yu,bu=r(3235),vu=["components","data","node"],xu=["source","components","data","rehypeRewrite"],Ru=_.Preview,Eu=_.Code,Tu=_.Toolbar,wu=(0,bu.Ay)(gu)(hu||(mu=["\n margin: 0 auto;\n box-shadow:\n rgb(8 15 41 / 8%) 0.5rem 0.5rem 2rem 0px,\n rgb(8 15 41 / 8%) 0px 0px 1px 0px;\n border: 1px solid var(--color-border-default, #30363d);\n text-align: left;\n max-width: 56rem;\n overflow: auto;\n padding: 2rem;\n border-radius: 0.55rem;\n"],yu||(yu=mu.slice(0)),mu.raw=yu,hu=mu)),Su=e=>{var{components:t,data:r,node:a}=e,i=(0,s.A)(e,vu);if(a&&"element"===a.type&&"pre"===a.tagName){var d,c,l,u=a.children[0];if(!u)return(0,o.jsx)("pre",(0,n.A)({},i));var p=(null==(d=u.data)?void 0:d.meta)||(null==(c=u.properties)?void 0:c.dataMeta);if(!P(p))return(0,o.jsx)("pre",(0,n.A)({},i));var f=null==a||null==(l=a.position)?void 0:l.start.line,g=k(p)||String(f),h=t[""+g];if(g&&"function"===typeof h){var m=r[g].value||"",{title:y,boreder:b=1,checkered:v=1,code:x=1,toolbar:R=1}=C(p||"");return(0,o.jsxs)(_,{bordered:!!Number(b),disableCheckered:!Number(v),style:{marginBottom:16},children:[(0,o.jsx)(Ru,{children:(0,o.jsx)(h,{})}),!!Number(R)&&(0,o.jsx)(Tu,{text:m,visibleButton:!!Number(x),children:y||"Code Example"}),!!Number(x)&&(0,o.jsx)(Eu,{tagName:"pre",style:{marginBottom:0},className:i.className,children:i.children})]})}}return(0,o.jsx)("code",(0,n.A)({},i))};function Au(e){var{components:t,data:r}=e,a=(0,s.A)(e,xu);return(0,o.jsx)(wu,(0,n.A)({disableCopy:!0,rehypePlugins:[uu,...a.rehypePlugins||[]]},a,{source:r.source,components:(0,n.A)({},t,{pre:e=>(0,o.jsx)(Su,(0,n.A)({},e,{components:r.components,data:r.data}))})}))}},8108:(e,t)=>{"use strict";function r(e,t){return(Array.isArray(t)?t:[t]).some((function(t){return"string"===typeof t&&(t=new RegExp(t)),t.test(e||"")}))}},9050:(e,t)=>{"use strict"},144:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},1761:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},i=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var a,n=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s)return!1;for(a in e);return"undefined"===typeof a||t.call(e,a)},o=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(n)return n(e,r).value}return e[r]};e.exports=function e(){var t,r,a,n,c,l,u=arguments[0],p=1,f=arguments.length,g=!1;for("boolean"===typeof u&&(g=u,u=arguments[1]||{},p=2),(null==u||"object"!==typeof u&&"function"!==typeof u)&&(u={});p{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,d=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(d,c):c}e.exports=function(e,d){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];d=d||{};var u=1,p=1;function f(e){var t=e.match(r);t&&(u+=t.length);var a=e.lastIndexOf("\n");p=~a?e.length-a:p+e.length}function g(){var e={line:u,column:p};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:u,column:p},this.source=d.source}h.prototype.content=e;var m=[];function y(t){var r=new Error(d.source+":"+u+":"+p+": "+t);if(r.reason=t,r.filename=d.source,r.line=u,r.column=p,r.source=e,!d.silent)throw r;m.push(r)}function b(t){var r=t.exec(e);if(r){var a=r[0];return f(a),e=e.slice(a.length),r}}function v(){b(a)}function x(e){var t;for(e=e||[];t=R();)!1!==t&&e.push(t);return e}function R(){var t=g();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var a=e.slice(2,r-2);return p+=2,f(a),e=e.slice(r),p+=2,t({type:"comment",comment:a})}}function E(){var e=g(),r=b(n);if(r){if(R(),!b(s))return y("property missing ':'");var a=b(i),d=e({type:"declaration",property:l(r[0].replace(t,c)),value:a?l(a[0].replace(t,c)):c});return b(o),d}}return v(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},3670:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9386:(e,t)=>{function r(e){let t,r=[];for(let a of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(a))r.push(parseInt(a,10));else if(t=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,a,n,s]=t;if(a&&s){a=parseInt(a),s=parseInt(s);const e=a{"use strict";e.exports=function(e){var t=this;this.Compiler=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}};var a=r(7503)},4014:e=>{"use strict";e.exports=function(e,t){var r,a,n=0,s=0;if("string"!==typeof t||1!==t.length)throw new Error("Expected character");e=String(e),a=e.indexOf(t),r=a;for(;-1!==a;)n++,a===r?n>s&&(s=n):n=1,r=a+1,a=e.indexOf(t,r);return s}},7503:(e,t,r)=>{e.exports=r(4127)},3927:e=>{e.exports=function e(t,r){var a,n=-1;if(r.extensions)for(;++n{e.exports=function(e,t,r){var i=r.enter("blockquote"),o=n(a(e,r),s);return i(),o};var a=r(9960),n=r(6242);function s(e,t,r){return">"+(r?"":" ")+e}},5301:(e,t,r)=>{e.exports=function(e,t,r,n){var s=-1;for(;++s{e.exports=function(e,t,r){var l,u,p,f,g=i(r),h=e.value||"",m="`"===g?"GraveAccent":"Tilde";s(e,r)?(p=r.enter("codeIndented"),l=o(h,c)):(u=a(g,Math.max(n(h,g)+1,3)),p=r.enter("codeFenced"),l=u,e.lang&&(f=r.enter("codeFencedLang"+m),l+=d(r,e.lang,{before:"`",after:" ",encode:["`"]}),f()),e.lang&&e.meta&&(f=r.enter("codeFencedMeta"+m),l+=" "+d(r,e.meta,{before:" ",after:"\n",encode:["`"]}),f()),l+="\n",h&&(l+=h+"\n"),l+=u);return p(),l};var a=r(6040),n=r(4014),s=r(3342),i=r(7156),o=r(6242),d=r(8671);function c(e,t,r){return(r?"":" ")+e}},6141:(e,t,r)=>{e.exports=function(e,t,r){var i=n(r),o='"'===i?"Quote":"Apostrophe",d=r.enter("definition"),c=r.enter("label"),l="["+s(r,a(e),{before:"[",after:"]"})+"]: ";c(),!e.url||/[ \t\r\n]/.test(e.url)?(c=r.enter("destinationLiteral"),l+="<"+s(r,e.url,{before:"<",after:">"})+">"):(c=r.enter("destinationRaw"),l+=s(r,e.url,{before:" ",after:" "}));c(),e.title&&(c=r.enter("title"+o),l+=" "+i+s(r,e.title,{before:i,after:i})+i,c());return d(),l};var a=r(6755),n=r(1989),s=r(8671)},6490:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.emphasis||"*"};var a=r(6451),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("emphasis"),o=n(e,r,{before:s,after:s});return i(),s+o+s}},1384:(e,t,r)=>{e.exports=function(e,t,r){var i,o,d,c,l=Math.max(Math.min(6,e.depth||1),1);if(n(e,r))return i=r.enter("headingSetext"),o=r.enter("phrasing"),d=s(e,r,{before:"\n",after:"\n"}),o(),i(),d+"\n"+a(1===l?"=":"-",d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf("\n"))+1));c=a("#",l),i=r.enter("headingAtx"),o=r.enter("phrasing"),d=(d=s(e,r,{before:"# ",after:"\n"}))?c+" "+d:c,r.options.closeAtx&&(d+=" "+c);return o(),i(),d};var a=r(6040),n=r(723),s=r(4046)},3437:e=>{function t(e){return e.value||""}e.exports=t,t.peek=function(){return"<"}},6951:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(6755),n=r(8671);function s(e,t,r){var s,i,o=e.referenceType,d=r.enter("imageReference"),c=r.enter("label"),l=n(r,e.alt,{before:"[",after:"]"}),u="!["+l+"]";return c(),i=r.stack,r.stack=[],c=r.enter("reference"),s=n(r,a(e),{before:"[",after:"]"}),c(),r.stack=i,d(),"full"!==o&&l&&l===s?"shortcut"!==o&&(u+="[]"):u+="["+s+"]",u}},3179:(e,t,r)=>{e.exports=s,s.peek=function(){return"!"};var a=r(1989),n=r(8671);function s(e,t,r){var s=a(r),i='"'===s?"Quote":"Apostrophe",o=r.enter("image"),d=r.enter("label"),c="!["+n(r,e.alt,{before:"[",after:"]"})+"](";return d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+n(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=n(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+i),c+=" "+s+n(r,e.title,{before:s,after:s})+s,d()),c+=")",o(),c}},6438:(e,t,r)=>{t.blockquote=r(2939),t.break=r(5301),t.code=r(1873),t.definition=r(6141),t.emphasis=r(6490),t.hardBreak=r(5301),t.heading=r(1384),t.html=r(3437),t.image=r(3179),t.imageReference=r(6951),t.inlineCode=r(1951),t.link=r(6296),t.linkReference=r(1220),t.list=r(8948),t.listItem=r(4246),t.paragraph=r(8336),t.root=r(4368),t.strong=r(2855),t.text=r(6847),t.thematicBreak=r(6749)},1951:(e,t,r)=>{e.exports=n,n.peek=function(){return"`"};var a=r(4186);function n(e,t,r){for(var n,s,i,o,d=e.value||"",c="`",l=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(d);)c+="`";for(/[^ \r\n]/.test(d)&&(/[ \r\n`]/.test(d.charAt(0))||/[ \r\n`]/.test(d.charAt(d.length-1)))&&(d=" "+d+" ");++l{e.exports=i,i.peek=function(){return"["};var a=r(6755),n=r(4046),s=r(8671);function i(e,t,r){var i,o,d=e.referenceType,c=r.enter("linkReference"),l=r.enter("label"),u=n(e,r,{before:"[",after:"]"}),p="["+u+"]";return l(),o=r.stack,r.stack=[],l=r.enter("reference"),i=s(r,a(e),{before:"[",after:"]"}),l(),r.stack=o,c(),"full"!==d&&u&&u===i?"shortcut"!==d&&(p+="[]"):p+="["+i+"]",p}},6296:(e,t,r)=>{e.exports=o,o.peek=function(e,t,r){return n(e,r)?"<":"["};var a=r(1989),n=r(1455),s=r(4046),i=r(8671);function o(e,t,r){var o,d,c,l,u=a(r),p='"'===u?"Quote":"Apostrophe";return n(e,r)?(l=r.stack,r.stack=[],o=r.enter("autolink"),c="<"+s(e,r,{before:"<",after:">"})+">",o(),r.stack=l,c):(o=r.enter("link"),d=r.enter("label"),c="["+s(e,r,{before:"[",after:"]"})+"](",d(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(d=r.enter("destinationLiteral"),c+="<"+i(r,e.url,{before:"<",after:">"})+">"):(d=r.enter("destinationRaw"),c+=i(r,e.url,{before:"(",after:e.title?" ":")"})),d(),e.title&&(d=r.enter("title"+p),c+=" "+u+i(r,e.title,{before:u,after:u})+u,d()),c+=")",o(),c)}},4246:(e,t,r)=>{e.exports=function(e,t,r){var d,c,l,u=n(r),p=s(r);t&&t.ordered&&(u=(t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+".");d=u.length+1,("tab"===p||"mixed"===p&&(t&&t.spread||e.spread))&&(d=4*Math.ceil(d/4));return l=r.enter("listItem"),c=o(i(e,r),(function(e,t,r){if(t)return(r?"":a(" ",d))+e;return(r?u:u+a(" ",d-u.length))+e})),l(),c};var a=r(6040),n=r(6261),s=r(9972),i=r(9960),o=r(6242)},8948:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("list"),s=a(e,r);return n(),s};var a=r(9960)},8336:(e,t,r)=>{e.exports=function(e,t,r){var n=r.enter("paragraph"),s=r.enter("phrasing"),i=a(e,r,{before:"\n",after:"\n"});return s(),n(),i};var a=r(4046)},4368:(e,t,r)=>{e.exports=function(e,t,r){return a(e,r)};var a=r(9960)},2855:(e,t,r)=>{e.exports=s,s.peek=function(e,t,r){return r.options.strong||"*"};var a=r(3298),n=r(4046);function s(e,t,r){var s=a(r),i=r.enter("strong"),o=n(e,r,{before:s,after:s});return i(),s+s+o+s+s}},6847:(e,t,r)=>{e.exports=function(e,t,r,n){return a(r,e.value,n)};var a=r(8671)},6749:(e,t,r)=>{e.exports=function(e,t,r){var i=a(s(r)+(r.options.ruleSpaces?" ":""),n(r));return r.options.ruleSpaces?i.slice(0,-1):i};var a=r(6040),n=r(3516),s=r(2647)},4127:(e,t,r)=>{e.exports=function(e,t){var r,u=t||{},p={enter:function(e){return p.stack.push(e),t;function t(){p.stack.pop()}},stack:[],unsafe:[],join:[],handlers:{},options:{}};n(p,{unsafe:o,join:i,handlers:s}),n(p,u),p.options.tightDefinitions&&(p.join=[l].concat(p.join));p.handle=a("type",{invalid:d,unknown:c,handlers:p.handlers}),(r=p.handle(e,null,p,{before:"\n",after:"\n"}))&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n");return r};var a=r(5040),n=r(3927),s=r(6438),i=r(1131),o=r(341);function d(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function c(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function l(e,t){if("definition"===e.type&&e.type===t.type)return 0}},1131:(e,t,r)=>{e.exports=[function(e,t,r,s){if("list"===t.type&&t.type===e.type&&Boolean(e.ordered)===Boolean(t.ordered)||"code"===t.type&&a(t,s)&&("list"===e.type||e.type===t.type&&a(e,s)))return!1;if("boolean"===typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&n(t,s)))return;return r.spread?1:0}}];var a=r(3342),n=r(723)},341:e=>{e.exports=[{character:"\t",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]},6755:(e,t,r)=>{e.exports=function(e){if(e.label||!e.identifier)return e.label||"";return e.identifier.replace(n,"$1").replace(s,i)};var a=r(8976),n=/\\([!-/:-@[-`{-~])/g,s=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i(e,t){return a(t)||e}},6261:e=>{e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},6451:e=>{e.exports=function(e){var t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}},7156:e=>{e.exports=function(e){var t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}},9972:e=>{e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},1989:e=>{e.exports=function(e){var t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}},3516:e=>{e.exports=function(e){var 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}},2647:e=>{e.exports=function(e){var t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}},3298:e=>{e.exports=function(e){var t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}},9960:(e,t,r)=>{e.exports=function(e,t){var r,n=e.children||[],s=[],i=-1;for(;++i{e.exports=function(e,t,r){var a,n,s,i=e.children||[],o=[],d=-1,c=r.before;for(;++d0&&("\r"===c||"\n"===c)&&"html"===s.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),c=" "),o.push(t.handle(s,e,t,{before:c,after:a})),c=o[o.length-1].slice(-1);return o.join("")}},3342:e=>{e.exports=function(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}},723:(e,t,r)=>{e.exports=function(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&a(e)};var a=r(6619)},1455:(e,t,r)=>{e.exports=function(e,t){var r=a(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)};var a=r(6619)},6242:e=>{e.exports=function(e,r){var a,n=[],s=0,i=0;for(;a=t.exec(e);)o(e.slice(s,a.index)),n.push(a[0]),s=a.index+a[0].length,i++;return o(e.slice(s)),n.join("");function o(e){n.push(r(e,i,!e))}};var t=/\r?\n|\r/g},4186:e=>{e.exports=function(e){var t,r;e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g"));return e._compiled}},9753:e=>{function t(e,t,r){var a;if(!t)return r;for("string"===typeof t&&(t=[t]),a=-1;++a{e.exports=function(e,t,r){var o,d,c,l,u,p,f,g,h=(r.before||"")+(t||"")+(r.after||""),m=[],y=[],b={},v=-1;for(;++v=g||c+1{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},5040:e=>{"use strict";e.exports=function(e,a){var n=a||{};function s(a){var n=s.invalid,i=s.handlers;return a&&r.call(a,e)&&(n=r.call(i,a[e])?i[a[e]]:s.unknown),(n||t).apply(this,arguments)}return s.handlers=n.handlers||{},s.invalid=n.invalid,s.unknown=n.unknown,s};var t=Function.prototype,r={}.hasOwnProperty},3521:(e,t,r)=>{"use strict";var a=r(8617),n=r(2155),s=r(4957);e.exports=a().use(n).use(s).freeze()},6157:e=>{"use strict";e.exports=function(e){if(e)throw e}},9580:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},5117:(e,t,r)=>{"use strict";e.exports=function(e,t,r){"string"!==typeof t&&(r=t,t=void 0);return function(e){var t=e||{},r=function(e,t){var r=-1;for(;++r-1&&(B.call(this,e),L.call(this,e))}function U(){g("atHardBreak",!0)}function H(){var e=this.resume();this.stack[this.stack.length-1].value=e}function G(){var e=this.resume();this.stack[this.stack.length-1].value=e}function q(){var e=this.resume();this.stack[this.stack.length-1].value=e}function W(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function V(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),g("referenceType")}function z(e){this.stack[this.stack.length-2].identifier=i(this.sliceSerialize(e)).toLowerCase()}function K(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,g("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t}function Y(){var e=this.resume();this.stack[this.stack.length-1].url=e}function X(){var e=this.resume();this.stack[this.stack.length-1].title=e}function J(){g("inReference")}function Q(){g("referenceType","collapsed")}function $(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=i(this.sliceSerialize(e)).toLowerCase(),g("referenceType","full")}function Z(e){g("characterReferenceType",e.type)}function ee(e){var t,r,a=this.sliceSerialize(e),n=h("characterReferenceType");n?(t=o(a,"characterReferenceMarkerNumeric"===n?10:16),g("characterReferenceType")):t=u(a),(r=this.stack.pop()).value+=t,r.position.end=m(e.end)}function te(e){L.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function re(e){L.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function ae(){return{type:"blockquote",children:[]}}function ne(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function oe(){return{type:"emphasis",children:[]}}function de(){return{type:"heading",depth:void 0,children:[]}}function ce(){return{type:"break"}}function le(){return{type:"html",value:""}}function ue(){return{type:"image",title:null,url:"",alt:null}}function pe(){return{type:"link",title:null,url:"",children:[]}}function fe(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ge(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function me(){return{type:"strong",children:[]}}function ye(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}(r)(l(d(r).document().write(c()(e,t,!0))))};var a=r(439),n=r(3175),s=r(4915),i=r(8419),o=r(7012),d=r(1140),c=r(2961),l=r(1188),u=r(1580),p=r(3215);function f(e,t){var r,a;for(r in t)a=s.call(e,r)?e[r]:e[r]={},"canContainEols"===r||"transforms"===r?e[r]=[].concat(a,t[r]):Object.assign(a,t[r])}},1900:(e,t,r)=>{"use strict";e.exports=r(5117)},439:e=>{"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&r(e.children)||"length"in e&&r(e))||""}function r(e){for(var r=[],a=-1;++a{"use strict";var a=r(2726)(/[A-Za-z]/);e.exports=a},9510:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Za-z]/);e.exports=a},5205:(e,t,r)=>{"use strict";var a=r(2726)(/[#-'*+\--9=?A-Z^-~]/);e.exports=a},9116:e=>{"use strict";e.exports=function(e){return e<32||127===e}},9236:(e,t,r)=>{"use strict";var a=r(2726)(/\d/);e.exports=a},9252:(e,t,r)=>{"use strict";var a=r(2726)(/[\dA-Fa-f]/);e.exports=a},8401:(e,t,r)=>{"use strict";var a=r(2726)(/[!-/:-@[-`{-~]/);e.exports=a},7748:e=>{"use strict";e.exports=function(e){return e<0||32===e}},8581:e=>{"use strict";e.exports=function(e){return e<-2}},773:e=>{"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},5297:(e,t,r)=>{"use strict";var a=r(4008),n=r(2726)(a);e.exports=n},1976:(e,t,r)=>{"use strict";var a=r(2726)(/\s/);e.exports=a},3175:e=>{"use strict";var t=Object.assign;e.exports=t},9097:e=>{"use strict";var t=String.fromCharCode;e.exports=t},4915:e=>{"use strict";var t={}.hasOwnProperty;e.exports=t},4546:e=>{"use strict";e.exports=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},9569:e=>{"use strict";e.exports=["pre","script","style","textarea"]},7322:e=>{"use strict";var t=[].splice;e.exports=t},4008:e=>{"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/},6853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(4435),n=r(7803),s=r(6086),i=r(1825),o=r(7100),d=r(9410),c=r(1446),l=r(2770),u=r(2994),p=r(708),f=r(5256),g=r(841),h=r(5473),m=r(5074),y=r(1135),b=r(2818),v=r(6387),x=r(1847),R=r(6677),E=r(355),T=r(1492),w={42:R,43:R,45:R,48:R,49:R,50:R,51:R,52:R,53:R,54:R,55:R,56:R,57:R,62:i},S={91:p},A={"-2":l,"-1":l,32:l},j={35:g,42:T,45:[E,T],60:h,61:E,95:T,96:c,126:c},_={38:d,92:o},C={"-5":x,"-4":x,"-3":x,33:b,38:d,42:n,60:[s,m],91:v,92:[f,o],93:y,95:n,96:u},k={null:[n,a.resolver]};t.contentInitial=S,t.disable={null:[]},t.document=w,t.flow=j,t.flowInitial=A,t.insideSpan=k,t.string=_,t.text=C},9635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=function(e){var t,r=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,r,"linePrefix")}),(function(t){return e.enter("paragraph"),s(t)}));return r;function s(r){var a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,i(r)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):a(t)?(e.consume(t),e.exit("chunkText"),s):(e.consume(t),i)}};t.tokenize=s},393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(8581),n=r(7376),s=r(1666),i=function(e){var t,r,n,i=this,c=[],l=0,u={tokenize:function(e,a){var n=0;return t={},l;function l(a){return nt;)i.containerState=c[s][1],c[s][0].exit.call(i,e);c.length=t}},o={tokenize:function(e,t,r){return n(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},d={tokenize:function(e,t,r){return n(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=i},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(1372),n=r(7376),s=r(1666),i=function(e){var t=this,r=e.attempt(s,(function(a){if(null===a)return void e.consume(a);return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}),e.attempt(this.parser.constructs.flowInitial,i,n(e,e.attempt(this.parser.constructs.flow,i,e.attempt(a,i)),"linePrefix")));return r;function i(a){if(null!==a)return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(a)}};t.tokenize=i},4435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(3175),n=r(9380),s=d("text"),i=d("string"),o={resolveAll:c()};function d(e){return{tokenize:function(t){var r=this,a=this.parser.constructs[e],n=t.attempt(a,s,i);return s;function s(e){return d(e)?n(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return d(e)?(t.exit("data"),n(e)):(t.consume(e),o)}function d(e){var t=a[e],n=-1;if(null===e)return!0;if(t)for(;++n{"use strict";var a=r(9635),n=r(393),s=r(7756),i=r(4435),o=r(620),d=r(3674),c=r(1306),l=r(6853);e.exports=function(e){var t={defined:[],constructs:o([l].concat(c((e||{}).extensions))),content:r(a),document:r(n),flow:r(s),string:r(i.string),text:r(i.text)};return t;function r(e){return function(r){return d(t,e,r)}}}},1188:(e,t,r)=>{"use strict";var a=r(6015);e.exports=function(e){for(;!a(e););return e}},2961:e=>{"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,r=!0,a=1,n="";return function(s,i,o){var d,c,l,u,p,f=[];s=n+s.toString(i),l=0,n="",r&&(65279===s.charCodeAt(0)&&l++,r=void 0);for(;l{"use strict";var a=r(9977),n=r(8857),s=r(6454),i=r(8196),o=r(2870),d=r(9380),c={name:"attention",tokenize:function(e,t){var r,a=s(this.previous);return function(t){return e.enter("attentionSequence"),r=t,n(t)};function n(i){var o,d,c,l;return i===r?(e.consume(i),n):(o=e.exit("attentionSequence"),c=!(d=s(i))||2===d&&a,l=!a||2===a&&d,o._open=42===r?c:c&&(a||!l),o._close=42===r?l:l&&(d||!c),t(i))}},resolveAll:function(e,t){var r,s,c,l,u,p,f,g,h=-1;for(;++h1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:i(d(e[r][1].end),-p),end:d(e[r][1].end)},u={type:p>1?"strongSequence":"emphasisSequence",start:d(e[h][1].start),end:i(d(e[h][1].start),p)},c={type:p>1?"strongText":"emphasisText",start:d(e[r][1].end),end:d(e[h][1].start)},s={type:p>1?"strong":"emphasis",start:d(l.start),end:d(u.end)},e[r][1].end=d(l.start),e[h][1].start=d(u.end),f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=a(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=a(f,[["enter",s,t],["enter",l,t],["exit",l,t],["enter",c,t]]),f=a(f,o(t.parser.constructs.insideSpan.null,e.slice(r+1,h),t)),f=a(f,[["exit",c,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[h][1].end.offset-e[h][1].start.offset?(g=2,f=a(f,[["enter",e[h][1],t],["exit",e[h][1],t]])):g=0,n(e,r-1,h-r+3,f),h=r+f.length-g-2;break}h=-1;for(;++h{"use strict";var a=r(5573),n=r(9510),s=r(5205),i=r(9116),o={name:"autolink",tokenize:function(e,t,r){var o=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),d};function d(t){return a(t)?(e.consume(t),c):s(t)?p(t):r(t)}function c(e){return 43===e||45===e||46===e||n(e)?l(e):p(e)}function l(t){return 58===t?(e.consume(t),u):(43===t||45===t||46===t||n(t))&&o++<32?(e.consume(t),l):p(t)}function u(t){return 62===t?(e.exit("autolinkProtocol"),m(t)):32===t||60===t||i(t)?r(t):(e.consume(t),u)}function p(t){return 64===t?(e.consume(t),o=0,f):s(t)?(e.consume(t),p):r(t)}function f(e){return n(e)?g(e):r(e)}function g(t){return 46===t?(e.consume(t),o=0,f):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",m(t)):h(t)}function h(t){return(45===t||n(t))&&o++<63?(e.consume(t),45===t?h:g):r(t)}function m(r){return e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=o},1825:(e,t,r)=>{"use strict";var a=r(773),n=r(7376),s={name:"blockQuote",tokenize:function(e,t,r){var n=this;return function(t){if(62===t)return n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),s;return r(t)};function s(r){return a(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}},continuation:{tokenize:function(e,t,r){return n(e,e.attempt(s,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=s},7100:(e,t,r)=>{"use strict";var a=r(8401),n={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return a(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};e.exports=n},9410:(e,t,r)=>{"use strict";var a=r(1580),n=r(9510),s=r(9236),i=r(9252);function o(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var d=o(a),c={name:"characterReference",tokenize:function(e,t,r){var a,o,c=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),u};function u(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,o=n,f(t))}function p(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=i,f):(e.enter("characterReferenceValue"),a=7,o=s,f(t))}function f(s){var i;return 59===s&&l?(i=e.exit("characterReferenceValue"),o!==n||d.default(c.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)):o(s)&&l++{"use strict";var a=r(8581),n=r(7748),s=r(3970),i=r(7376),o={name:"codeFenced",tokenize:function(e,t,r){var o,d=this,c={tokenize:function(e,t,r){var n=0;return i(e,s,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function s(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(t)}function d(t){return t===o?(e.consume(t),n++,d):n{"use strict";var a=r(8581),n=r(8857),s=r(3970),i=r(7376),o={name:"codeIndented",tokenize:function(e,t,r){return e.attempt(d,n,r);function n(r){return null===r?t(r):a(r)?e.attempt(d,n,t)(r):(e.enter("codeFlowValue"),s(r))}function s(t){return null===t||a(t)?(e.exit("codeFlowValue"),n(t)):(e.consume(t),s)}},resolve:function(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return n(e,0,0,[["enter",r,t]]),n(e,e.length,0,[["exit",r,t]]),e}},d={tokenize:function(e,t,r){var n=this;return i(e,(function o(d){if(a(d))return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),i(e,o,"linePrefix",5);return s(n.events,"linePrefix")<4?r(d):t(d)}),"linePrefix",5)},partial:!0};e.exports=o},2994:(e,t,r)=>{"use strict";var a=r(8581),n={name:"codeText",tokenize:function(e,t,r){var n,s,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),d(t))}function d(t){return null===t?r(t):96===t?(s=e.enter("codeTextSequence"),n=0,l(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),d):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||a(t)?(e.exit("codeTextData"),d(t)):(e.consume(t),c)}function l(r){return 96===r?(e.consume(r),n++,l):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(s.type="codeTextData",c(r))}},resolve:function(e){var t,r,a=e.length-4,n=3;if(("lineEnding"===e[n][1].type||"space"===e[n][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type))for(t=n;++t{"use strict";var a=r(8581),n=r(3970),s=r(6015),i=r(7376),o={tokenize:function(e,t){var r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?s(t):a(t)?e.check(d,i,s)(t):(e.consume(t),n)}function s(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function i(t){return e.consume(t),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),n}},resolve:function(e){return s(e),e},interruptible:!0,lazy:!0},d={tokenize:function(e,t,r){var s=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i(e,o,"linePrefix")};function o(i){return null===i||a(i)?r(i):s.parser.constructs.disable.null.indexOf("codeIndented")>-1||n(s.events,"linePrefix")<4?e.interrupt(s.parser.constructs.flow,r,t)(i):t(i)}},partial:!0};e.exports=o},708:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(8419),i=r(4006),o=r(8340),d=r(7376),c=r(6185),l=r(4668),u={name:"definition",tokenize:function(e,t,r){var n,l=this;return function(t){return e.enter("definition"),o.call(l,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function u(t){return n=s(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,i(e,e.attempt(p,d(e,f,"whitespace"),d(e,f,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(t)}function f(s){return null===s||a(s)?(e.exit("definition"),l.parser.defined.indexOf(n)<0&&l.parser.defined.push(n),t(s)):r(s)}}},p={tokenize:function(e,t,r){return function(t){return n(t)?c(e,s)(t):r(t)};function s(t){return 34===t||39===t||40===t?l(e,d(e,i,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):r(t)}function i(e){return null===e||a(e)?t(e):r(e)}},partial:!0};e.exports=u},4006:(e,t,r)=>{"use strict";var a=r(9116),n=r(7748),s=r(8581);e.exports=function(e,t,r,i,o,d,c,l,u){var p=u||1/0,f=0;return function(t){if(60===t)return e.enter(i),e.enter(o),e.enter(d),e.consume(t),e.exit(d),g;if(a(t)||41===t)return r(t);return e.enter(i),e.enter(c),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(t)};function g(r){return 62===r?(e.enter(d),e.consume(r),e.exit(d),e.exit(o),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(l),g(t)):null===t||60===t||s(t)?r(t):(e.consume(t),92===t?m:h)}function m(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function y(s){return 40===s?++f>p?r(s):(e.consume(s),y):41===s?f--?(e.consume(s),y):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):null===s||n(s)?f?r(s):(e.exit("chunkString"),e.exit(l),e.exit(c),e.exit(i),t(s)):a(s)?r(s):(e.consume(s),92===s?b:y)}function b(t){return 40===t||41===t||92===t?(e.consume(t),y):y(t)}}},8340:(e,t,r)=>{"use strict";var a=r(8581),n=r(773);e.exports=function(e,t,r,s,i,o){var d,c=this,l=0;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(n){return null===n||91===n||93===n&&!d||94===n&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs||l>999?r(n):93===n?(e.exit(o),e.enter(i),e.consume(n),e.exit(i),e.exit(s),t):a(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return null===t||91===t||93===t||a(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),d=d||!n(t),92===t?f:p)}function f(t){return 91===t||92===t||93===t?(e.consume(t),l++,p):p(t)}}},7376:(e,t,r)=>{"use strict";var a=r(773);e.exports=function(e,t,r,n){var s=n?n-1:1/0,i=0;return function(n){if(a(n))return e.enter(r),o(n);return t(n)};function o(n){return a(n)&&i++{"use strict";var a=r(8581),n=r(7376);e.exports=function(e,t,r,s,i,o){var d;return function(t){return e.enter(s),e.enter(i),e.consume(t),e.exit(i),d=40===t?41:t,c};function c(r){return r===d?(e.enter(i),e.consume(r),e.exit(i),e.exit(s),t):(e.enter(o),l(r))}function l(t){return t===d?(e.exit(o),c(d)):null===t?r(t):a(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===d||null===t||a(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?p:u)}function p(t){return t===d||92===t?(e.consume(t),u):u(t)}}},6185:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376);e.exports=function(e,t){var r;return function i(o){if(a(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i;if(n(o))return s(e,i,r?"linePrefix":"lineSuffix")(o);return t(o)}}},5256:(e,t,r)=>{"use strict";var a=r(8581),n={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),n};function n(n){return a(n)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(n)):r(n)}}};e.exports=n},841:(e,t,r)=>{"use strict";var a=r(8581),n=r(7748),s=r(773),i=r(8857),o=r(7376),d={name:"headingAtx",tokenize:function(e,t,r){var i=this,d=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(a){return 35===a&&d++<6?(e.consume(a),c):null===a||n(a)?(e.exit("atxHeadingSequence"),i.interrupt?t(a):l(a)):r(a)}function l(r){return 35===r?(e.enter("atxHeadingSequence"),u(r)):null===r||a(r)?(e.exit("atxHeading"),t(r)):s(r)?o(e,l,"whitespace")(r):(e.enter("atxHeadingText"),p(r))}function u(t){return 35===t?(e.consume(t),u):(e.exit("atxHeadingSequence"),l(t))}function p(t){return null===t||35===t||n(t)?(e.exit("atxHeadingText"),l(t)):(e.consume(t),p)}},resolve:function(e,t){var r,a,n=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);n-2>s&&"whitespace"===e[n][1].type&&(n-=2);"atxHeadingSequence"===e[n][1].type&&(s===n-1||n-4>s&&"whitespace"===e[n-2][1].type)&&(n-=s+1===n?2:4);n>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[n][1].end},a={type:"chunkText",start:e[s][1].start,end:e[n][1].end,contentType:"text"},i(e,s,n-s+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]]));return e}};e.exports=d},5473:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(9097),c=r(4546),l=r(9569),u=r(1666),p={name:"htmlFlow",tokenize:function(e,t,r){var u,p,g,h,m,y=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),b};function b(n){return 33===n?(e.consume(n),v):47===n?(e.consume(n),E):63===n?(e.consume(n),u=3,y.interrupt?t:G):a(n)?(e.consume(n),g=d(n),p=!0,T):r(n)}function v(n){return 45===n?(e.consume(n),u=2,x):91===n?(e.consume(n),u=5,g="CDATA[",h=0,R):a(n)?(e.consume(n),u=4,y.interrupt?t:G):r(n)}function x(a){return 45===a?(e.consume(a),y.interrupt?t:G):r(a)}function R(a){return a===g.charCodeAt(h++)?(e.consume(a),h===g.length?y.interrupt?t:O:R):r(a)}function E(t){return a(t)?(e.consume(t),g=d(t),T):r(t)}function T(a){return null===a||47===a||62===a||i(a)?47!==a&&p&&l.indexOf(g.toLowerCase())>-1?(u=1,y.interrupt?t(a):O(a)):c.indexOf(g.toLowerCase())>-1?(u=6,47===a?(e.consume(a),w):y.interrupt?t(a):O(a)):(u=7,y.interrupt?r(a):p?A(a):S(a)):45===a||n(a)?(e.consume(a),g+=d(a),T):r(a)}function w(a){return 62===a?(e.consume(a),y.interrupt?t:O):r(a)}function S(t){return o(t)?(e.consume(t),S):D(t)}function A(t){return 47===t?(e.consume(t),D):58===t||95===t||a(t)?(e.consume(t),j):o(t)?(e.consume(t),A):D(t)}function j(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),j):_(t)}function _(t){return 61===t?(e.consume(t),C):o(t)?(e.consume(t),_):A(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),m=t,k):o(t)?(e.consume(t),C):(m=void 0,P(t))}function k(t){return t===m?(e.consume(t),I):null===t||s(t)?r(t):(e.consume(t),k)}function P(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||i(t)?_(t):(e.consume(t),P)}function I(e){return 47===e||62===e||o(e)?A(e):r(e)}function D(t){return 62===t?(e.consume(t),N):r(t)}function N(t){return o(t)?(e.consume(t),N):null===t||s(t)?O(t):r(t)}function O(t){return 45===t&&2===u?(e.consume(t),L):60===t&&1===u?(e.consume(t),M):62===t&&4===u?(e.consume(t),q):63===t&&3===u?(e.consume(t),G):93===t&&5===u?(e.consume(t),H):!s(t)||6!==u&&7!==u?null===t||s(t)?F(t):(e.consume(t),O):e.check(f,q,F)(t)}function F(t){return e.exit("htmlFlowData"),B(t)}function B(t){return null===t?W(t):s(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),B):(e.enter("htmlFlowData"),O(t))}function L(t){return 45===t?(e.consume(t),G):O(t)}function M(t){return 47===t?(e.consume(t),g="",U):O(t)}function U(t){return 62===t&&l.indexOf(g.toLowerCase())>-1?(e.consume(t),q):a(t)&&g.length<8?(e.consume(t),g+=d(t),U):O(t)}function H(t){return 93===t?(e.consume(t),G):O(t)}function G(t){return 62===t?(e.consume(t),q):O(t)}function q(t){return null===t||s(t)?(e.exit("htmlFlowData"),W(t)):(e.consume(t),q)}function W(r){return e.exit("htmlFlow"),t(r)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},f={tokenize:function(e,t,r){return function(a){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),e.attempt(u,t,r)}},partial:!0};e.exports=p},5074:(e,t,r)=>{"use strict";var a=r(5573),n=r(9510),s=r(8581),i=r(7748),o=r(773),d=r(7376),c={name:"htmlText",tokenize:function(e,t,r){var c,l,u,p,f=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),g};function g(t){return 33===t?(e.consume(t),h):47===t?(e.consume(t),_):63===t?(e.consume(t),A):a(t)?(e.consume(t),P):r(t)}function h(t){return 45===t?(e.consume(t),m):91===t?(e.consume(t),l="CDATA[",u=0,R):a(t)?(e.consume(t),S):r(t)}function m(t){return 45===t?(e.consume(t),y):r(t)}function y(t){return null===t||62===t?r(t):45===t?(e.consume(t),b):v(t)}function b(e){return null===e||62===e?r(e):v(e)}function v(t){return null===t?r(t):45===t?(e.consume(t),x):s(t)?(p=v,M(t)):(e.consume(t),v)}function x(t){return 45===t?(e.consume(t),H):v(t)}function R(t){return t===l.charCodeAt(u++)?(e.consume(t),u===l.length?E:R):r(t)}function E(t){return null===t?r(t):93===t?(e.consume(t),T):s(t)?(p=E,M(t)):(e.consume(t),E)}function T(t){return 93===t?(e.consume(t),w):E(t)}function w(t){return 62===t?H(t):93===t?(e.consume(t),w):E(t)}function S(t){return null===t||62===t?H(t):s(t)?(p=S,M(t)):(e.consume(t),S)}function A(t){return null===t?r(t):63===t?(e.consume(t),j):s(t)?(p=A,M(t)):(e.consume(t),A)}function j(e){return 62===e?H(e):A(e)}function _(t){return a(t)?(e.consume(t),C):r(t)}function C(t){return 45===t||n(t)?(e.consume(t),C):k(t)}function k(t){return s(t)?(p=k,M(t)):o(t)?(e.consume(t),k):H(t)}function P(t){return 45===t||n(t)?(e.consume(t),P):47===t||62===t||i(t)?I(t):r(t)}function I(t){return 47===t?(e.consume(t),H):58===t||95===t||a(t)?(e.consume(t),D):s(t)?(p=I,M(t)):o(t)?(e.consume(t),I):H(t)}function D(t){return 45===t||46===t||58===t||95===t||n(t)?(e.consume(t),D):N(t)}function N(t){return 61===t?(e.consume(t),O):s(t)?(p=N,M(t)):o(t)?(e.consume(t),N):I(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),c=t,F):s(t)?(p=O,M(t)):o(t)?(e.consume(t),O):(e.consume(t),c=void 0,L)}function F(t){return t===c?(e.consume(t),B):null===t?r(t):s(t)?(p=F,M(t)):(e.consume(t),F)}function B(e){return 62===e||47===e||i(e)?I(e):r(e)}function L(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):62===t||i(t)?I(t):(e.consume(t),L)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d(e,U,"linePrefix",f.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function U(t){return e.enter("htmlTextData"),p(t)}function H(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):r(a)}}};e.exports=c},1135:(e,t,r)=>{"use strict";var a=r(7748),n=r(9977),s=r(8857),i=r(8419),o=r(2870),d=r(9380),c=r(4006),l=r(8340),u=r(4668),p=r(6185),f={name:"labelEnd",tokenize:function(e,t,r){var a,n,s=this,o=s.events.length;for(;o--;)if(("labelImage"===s.events[o][1].type||"labelLink"===s.events[o][1].type)&&!s.events[o][1]._balanced){a=s.events[o][1];break}return function(t){if(!a)return r(t);return a._inactive?c(t):(n=s.parser.defined.indexOf(i(s.sliceSerialize({start:a.end,end:s.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),d)};function d(r){return 40===r?e.attempt(g,t,n?t:c)(r):91===r?e.attempt(h,t,n?e.attempt(m,t,c):c)(r):n?t(r):c(r)}function c(e){return a._balanced=!0,r(e)}},resolveTo:function(e,t){var r,a,i,c,l,u,p,f=e.length,g=0;for(;f--;)if(c=e[f][1],l){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[f][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(u){if("enter"===e[f][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(l=f,"labelLink"!==c.type)){g=2;break}}else"labelEnd"===c.type&&(u=f);return r={type:"labelLink"===e[l][1].type?"link":"image",start:d(e[l][1].start),end:d(e[e.length-1][1].end)},a={type:"label",start:d(e[l][1].start),end:d(e[u][1].end)},i={type:"labelText",start:d(e[l+g+2][1].end),end:d(e[u-2][1].start)},p=n(p=[["enter",r,t],["enter",a,t]],e.slice(l+1,l+g+3)),p=n(p,[["enter",i,t]]),p=n(p,o(t.parser.constructs.insideSpan.null,e.slice(l+g+4,u-3),t)),p=n(p,[["exit",i,t],e[u-2],e[u-1],["exit",a,t]]),p=n(p,e.slice(u+1)),p=n(p,[["exit",r,t]]),s(e,l,e.length,p),e},resolveAll:function(e){var t,r=-1;for(;++r{"use strict";var a={name:"labelStartImage",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),n};function n(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):r(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},6387:(e,t,r)=>{"use strict";var a={name:"labelStartLink",tokenize:function(e,t,r){var a=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),n};function n(e){return 94===e&&"_hiddenFootnoteSupport"in a.parser.constructs?r(e):t(e)}},resolveAll:r(1135).resolveAll};e.exports=a},1847:(e,t,r)=>{"use strict";var a=r(7376),n={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a(e,t,"linePrefix")}}};e.exports=n},6677:(e,t,r)=>{"use strict";var a=r(9236),n=r(773),s=r(3970),i=r(2078),o=r(7376),d=r(1666),c=r(1492),l={name:"list",tokenize:function(e,t,r){var o=this,l=s(o.events,"linePrefix"),p=0;return function(t){var n=o.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!o.containerState.marker||t===o.containerState.marker:a(t)){if(o.containerState.type||(o.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,r,g)(t):g(t);if(!o.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(t)}return r(t)};function f(t){return a(t)&&++p<10?(e.consume(t),f):(!o.interrupt||p<2)&&(o.containerState.marker?t===o.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),g(t)):r(t)}function g(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||t,e.check(d,o.interrupt?r:h,e.attempt(u,y,m))}function h(e){return o.containerState.initialBlankLine=!0,l++,y(e)}function m(t){return n(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),y):r(t)}function y(r){return o.containerState.size=l+i(o.sliceStream(e.exit("listItemPrefix"))),t(r)}},continuation:{tokenize:function(e,t,r){var a=this;return a.containerState._closeFlow=void 0,e.check(d,(function(r){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,o(e,t,"listItemIndent",a.containerState.size+1)(r)}),(function(r){if(a.containerState.furtherBlankLines||!n(r))return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,s(r);return a.containerState.furtherBlankLines=a.containerState.initialBlankLine=void 0,e.attempt(p,t,s)(r)}));function s(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,o(e,e.attempt(l,t,r),"linePrefix",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)}},u={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return n(e)||!s(a.events,"listItemPrefixWhitespace")?r(e):t(e)}),"listItemPrefixWhitespace",a.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},p={tokenize:function(e,t,r){var a=this;return o(e,(function(e){return s(a.events,"listItemIndent")===a.containerState.size?t(e):r(e)}),"listItemIndent",a.containerState.size+1)},partial:!0};e.exports=l},1666:(e,t,r)=>{"use strict";var a=r(8581),n=r(7376),s={tokenize:function(e,t,r){return n(e,(function(e){return null===e||a(e)?t(e):r(e)}),"linePrefix")},partial:!0};e.exports=s},355:(e,t,r)=>{"use strict";var a=r(8581),n=r(9380),s=r(7376),i={name:"setextUnderline",tokenize:function(e,t,r){var n,i,o=this,d=o.events.length;for(;d--;)if("lineEnding"!==o.events[d][1].type&&"linePrefix"!==o.events[d][1].type&&"content"!==o.events[d][1].type){i="paragraph"===o.events[d][1].type;break}return function(t){if(!o.lazy&&(o.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),n=t,c(t);return r(t)};function c(t){return t===n?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),s(e,l,"lineSuffix")(t))}function l(n){return null===n||a(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}},resolveTo:function(e,t){var r,a,s,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){r=o;break}"paragraph"===e[o][1].type&&(a=o)}else"content"===e[o][1].type&&e.splice(o,1),s||"definition"!==e[o][1].type||(s=o);i={type:"setextHeading",start:n(e[a][1].start),end:n(e[e.length-1][1].end)},e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=n(e[s][1].end)):e[r][1]=i;return e.push(["exit",i,t]),e}};e.exports=i},1492:(e,t,r)=>{"use strict";var a=r(8581),n=r(773),s=r(7376),i={name:"thematicBreak",tokenize:function(e,t,r){var i,o=0;return function(t){return e.enter("thematicBreak"),i=t,d(t)};function d(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):n(l)?s(e,d,"whitespace")(l):o<3||null!==l&&!a(l)?r(l):(e.exit("thematicBreak"),t(l))}function c(t){return t===i?(e.consume(t),o++,c):(e.exit("thematicBreakSequence"),d(t))}}};e.exports=i},9977:(e,t,r)=>{"use strict";var a=r(8857);e.exports=function(e,t){return e.length?(a(e,e.length,0,t),e):t}},8857:(e,t,r)=>{"use strict";var a=r(7322);e.exports=function(e,t,r,n){var s,i=e.length,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)(s=Array.from(n)).unshift(t,r),a.apply(e,s);else for(r&&a.apply(e,[t,r]);o{"use strict";var a=r(7748),n=r(5297),s=r(1976);e.exports=function(e){return null===e||a(e)||s(e)?1:n(e)?2:void 0}},620:(e,t,r)=>{"use strict";var a=r(4915),n=r(8857),s=r(1306);function i(e,t){var r,n,i,d;for(r in t)for(d in n=a.call(e,r)?e[r]:e[r]={},i=t[r])n[d]=o(s(i[d]),a.call(n,d)?n[d]:[])}function o(e,t){for(var r=-1,a=[];++r{"use strict";var a=r(3175),n=r(8581),s=r(9977),i=r(8857),o=r(1306),d=r(2870),c=r(2773),l=r(9380),u=r(8645);e.exports=function(e,t,r){var p=r?l(r):{line:1,column:1,offset:0},f={},g=[],h=[],m=[],y={consume:function(e){n(e)?(p.line++,p.column=1,p.offset+=-3===e?2:1,j()):-1!==e&&(p.column++,p.offset++);p._bufferIndex<0?p._index++:(p._bufferIndex++,p._bufferIndex===h[p._index].length&&(p._bufferIndex=-1,p._index++));b.previous=e},enter:function(e,t){var r=t||{};return r.type=e,r.start=R(),b.events.push(["enter",r,b]),m.push(r),r},exit:function(e){var t=m.pop();return t.end=R(),b.events.push(["exit",t,b]),t},attempt:S((function(e,t){A(e,t.from)})),check:S(w),interrupt:S(w,{interrupt:!0}),lazy:S(w,{lazy:!0})},b={previous:null,events:[],parser:e,sliceStream:x,sliceSerialize:function(e){return c(x(e))},now:R,defineSkip:function(e){f[e.line]=e.column,j()},write:function(e){if(h=s(h,e),E(),null!==h[h.length-1])return[];return A(t,0),b.events=d(g,b.events,b),b.events}},v=t.tokenize.call(b,y);return t.resolveAll&&g.push(t),p._index=0,p._bufferIndex=-1,b;function x(e){return u(h,e)}function R(){return l(p)}function E(){for(var e,t;p._index-1)return h();return e.tokenize.call(t?a({},b,t):b,y,g,h)(r)}}function g(t){return e(c,l),n}function h(e){return l.restore(),++d{"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},8196:e=>{"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},8419:e=>{"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},3970:(e,t,r)=>{"use strict";var a=r(2078);e.exports=function(e,t){var r=e[e.length-1];return r&&r[1].type===t?a(r[2].sliceStream(r[1])):0}},2726:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){return function(t){return e.test(a(t))}}},2870:e=>{"use strict";e.exports=function(e,t,r){for(var a,n=[],s=-1;++s{"use strict";var a=r(9097);e.exports=function(e,t){var r=parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||65535===(65535&r)||65534===(65535&r)||r>1114111?"\ufffd":a(r)}},2773:(e,t,r)=>{"use strict";var a=r(9097);e.exports=function(e){for(var t,r,n,s=-1,i=[];++s{"use strict";var a=r(3175);e.exports=function(e){return a({},e)}},2078:e=>{"use strict";e.exports=function(e){for(var t=-1,r=0;++t{"use strict";e.exports=function(e,t){var r,a=t.start._index,n=t.start._bufferIndex,s=t.end._index,i=t.end._bufferIndex;return a===s?r=[e[a].slice(n,i)]:(r=e.slice(a,s),n>-1&&(r[0]=r[0].slice(n)),i>0&&r.push(e[s].slice(0,i))),r}},6015:(e,t,r)=>{"use strict";var a=r(3175),n=r(8857),s=r(9380);function i(e,t){for(var r,a,s,i,o,d,c=e[t][1],l=e[t][2],u=t-1,p=[],f=c._tokenizer||l.parser[c.contentType](c.start),g=f.events,h=[],m={};c;){for(;e[++u][1]!==c;);p.push(u),c._tokenizer||(r=l.sliceStream(c),c.next||r.push(null),a&&f.defineSkip(c.start),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(r),c.isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),a=c,c=c.next}for(c=a,s=g.length;s--;)"enter"===g[s][0]?i=!0:i&&g[s][1].type===g[s-1][1].type&&g[s][1].start.line!==g[s][1].end.line&&(y(g.slice(s+1,o)),c._tokenizer=c.next=void 0,c=c.previous,o=s+1);for(f.events=c._tokenizer=c.next=void 0,y(g.slice(0,o)),s=-1,d=0;++s{"use strict";var t;e.exports=function(e){var r,a="&"+e+";";if((t=t||document.createElement("i")).innerHTML=a,59===(r=t.textContent).charCodeAt(r.length-1)&&"semi"!==e)return!1;return r!==a&&r}},2155:(e,t,r)=>{"use strict";e.exports=function(e){var t=this;this.Parser=function(r){return a(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var a=r(1900)},8952:(e,t,r)=>{"use strict";var a=r(7222);e.exports=s,s.wrap=a;var n=[].slice;function s(){var e=[],t={run:function(){var t=-1,r=n.call(arguments,0,-1),s=arguments[arguments.length-1];if("function"!==typeof s)throw new Error("Expected function as last argument, not "+s);(function i(o){var d=e[++t],c=n.call(arguments,0).slice(1),l=r.length,u=-1;if(o)s(o);else{for(;++u{"use strict";var t=[].slice;e.exports=function(e,r){var a;return function(){var r,i=t.call(arguments,0),o=e.length>i.length;o&&i.push(n);try{r=e.apply(null,i)}catch(d){if(o&&a)throw d;return n(d)}o||(r&&"function"===typeof r.then?r.then(s,n):r instanceof Error?n(r):s(r))};function n(){a||(a=!0,r.apply(null,arguments))}function s(e){n(null,e)}}},8617:(e,t,r)=>{"use strict";var a=r(6157),n=r(3670),s=r(1761),i=r(9580),o=r(8952),d=r(2063);e.exports=function e(){var t,r=[],n=o(),b={},v=-1;return x.data=function(e,r){if("string"===typeof e)return 2===arguments.length?(h("data",t),b[e]=r,x):l.call(b,e)&&b[e]||null;if(e)return h("data",t),b=e,x;return b},x.freeze=R,x.attachers=r,x.use=function(e){var a;if(h("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?d(e):n(e)}a&&(b.settings=s(b.settings||{},a));return x;function n(e){d(e.plugins),e.settings&&(a=s(a||{},e.settings))}function o(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):n(e)}}function d(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t{"use strict";var t={}.hasOwnProperty;function r(e){return e&&"object"===typeof e||(e={}),n(e.line)+":"+n(e.column)}function a(e){return e&&"object"===typeof e||(e={}),r(e.start)+"-"+r(e.end)}function n(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return a(e.position);if(t.call(e,"start")||t.call(e,"end"))return a(e);if(t.call(e,"line")||t.call(e,"column"))return r(e);return""}},4449:(e,t,r)=>{"use strict";var a=r(3215);function n(){}e.exports=i,n.prototype=Error.prototype,i.prototype=new n;var s=i.prototype;function i(e,t,r){var n,s,i;"string"===typeof t&&(r=t,t=null),n=function(e){var t,r=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));return r}(r),s=a(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=s,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}s.file="",s.name="",s.reason="",s.message="",s.stack="",s.fatal=null,s.column=null,s.line=null},2063:(e,t,r)=>{"use strict";e.exports=r(207)},2088:(e,t,r)=>{"use strict";var a=r(7986),n=r(5657),s=r(3670);e.exports=d;var i={}.hasOwnProperty,o=["history","path","basename","stem","extname","dirname"];function d(e){var t,r;if(e){if("string"===typeof e||s(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof d))return new d(e);for(this.data={},this.messages=[],this.history=[],this.cwd=n.cwd(),r=-1;++r-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+a.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}d.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(d.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(d.prototype,"dirname",{get:function(){return"string"===typeof this.path?a.dirname(this.path):void 0},set:function(e){u(this.path,"dirname"),this.path=a.join(e||"",this.basename)}}),Object.defineProperty(d.prototype,"basename",{get:function(){return"string"===typeof this.path?a.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=a.join(this.dirname||"",e)}}),Object.defineProperty(d.prototype,"extname",{get:function(){return"string"===typeof this.path?a.extname(this.path):void 0},set:function(e){if(c(e,"extname"),u(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=a.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(d.prototype,"stem",{get:function(){return"string"===typeof this.path?a.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=a.join(this.dirname||"",e+(this.extname||""))}})},207:(e,t,r)=>{"use strict";var a=r(4449),n=r(2088);e.exports=n,n.prototype.message=function(e,t,r){var n=new a(e,t,r);this.path&&(n.name=this.path+":"+n.name,n.file=this.path);return n.fatal=!1,this.messages.push(n),n},n.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},n.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},7986:(e,t)=>{"use strict";function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var a,n,s,i,o=0,d=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),a=e.length,void 0===t||!t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else d<0&&(s=!0,d=a+1);return d<0?"":e.slice(o,d)}if(t===e)return"";n=-1,i=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(s){o=a+1;break}}else n<0&&(s=!0,n=a+1),i>-1&&(e.charCodeAt(a)===t.charCodeAt(i--)?i<0&&(d=a):(i=-1,d=n));o===d?d=n:d<0&&(d=e.length);return e.slice(o,d)},t.dirname=function(e){var t,a,n;if(r(e),!e.length)return".";t=-1,n=e.length;for(;--n;)if(47===e.charCodeAt(n)){if(a){t=n;break}}else a||(a=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,a,n,s=-1,i=0,o=-1,d=0;r(e),n=e.length;for(;n--;)if(47!==(a=e.charCodeAt(n)))o<0&&(t=!0,o=n+1),46===a?s<0?s=n:1!==d&&(d=1):s>-1&&(d=-1);else if(t){i=n+1;break}if(s<0||o<0||0===d||1===d&&s===o-1&&s===i+1)return"";return e.slice(s,o)},t.join=function(){var e,t=-1;for(;++t2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",s=0):s=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),i=d,o=0;continue}}else if(n.length){n="",s=0,i=d,o=0;continue}t&&(n=n.length?n+"/..":"..",s=2)}else n.length?n+="/"+e.slice(i+1,d):n=e.slice(i+1,d),s=d-i-1;i=d,o=0}else 46===r&&o>-1?o++:o=-1}return n}(e,!t),a.length||t||(a=".");a.length&&47===e.charCodeAt(e.length-1)&&(a+="/");return t?"/"+a:a}(e)},t.sep="/"},5657:(e,t)=>{"use strict";t.cwd=function(){return"/"}},6040:e=>{"use strict";var t,r="";e.exports=function(e,a){if("string"!==typeof e)throw new TypeError("expected a string");if(1===a)return e;if(2===a)return e+e;var n=e.length*a;if(t!==e||"undefined"===typeof t)t=e,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&a>1;)1&a&&(r+=e),a>>=1,e+=e;return r=(r+=e).substr(0,n)}},1581:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=null;if(!e||"string"!==typeof e)return r;var a=(0,n.default)(e),s="function"===typeof t;return a.forEach((function(e){if("declaration"===e.type){var a=e.property,n=e.value;s?t(a,n,e):n&&((r=r||{})[a]=n)}})),r};var n=a(r(2524))},3132:function(e,t,r){!function(e){"use strict";var t=Object.freeze({__proto__:null,get DEFAULT_EXTENSIONS(){return W2},get File(){return oY},get buildExternalHelpers(){return DY},get createConfigItem(){return N0},get createConfigItemAsync(){return I0},get createConfigItemSync(){return D0},get getEnv(){return JY},get loadOptions(){return k0},get loadOptionsAsync(){return _0},get loadOptionsSync(){return C0},get loadPartialConfig(){return S0},get loadPartialConfigAsync(){return T0},get loadPartialConfigSync(){return w0},get parse(){return U2},get parseAsync(){return G2},get parseSync(){return H2},get resolvePlugin(){return zY},get resolvePreset(){return KY},get template(){return GS},get tokTypes(){return xw},get transform(){return C2},get transformAsync(){return P2},get transformFile(){return I2},get transformFileAsync(){return N2},get transformFileSync(){return D2},get transformFromAst(){return F2},get transformFromAstAsync(){return L2},get transformFromAstSync(){return B2},get transformSync(){return k2},get traverse(){return bW},get types(){return rR},get version(){return q2}});function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}function g(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,s,i,o=[],d=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;d=!1}else for(;!(d=(a=s.call(r)).done)&&(o.push(a.value),o.length!==t);d=!0);}catch(e){c=!0,n=e}finally{try{if(!d&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return o}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(null==e)return{};var r,a,n=R(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0;--s){var i=this.tryEntries[s],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var d=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(d&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;k(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,r,a){return this.delegate={iterator:I(t),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=e),m}},t}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function w(e,t){return n(e)||y(e,t)||C(e,t)||b()}function S(e,t){return t||(t=e.slice(0)),e.raw=t,e}function A(e){return s(e)||m(e)||C(e)||v()}function j(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _(e){var t=j(e,"string");return"symbol"==typeof t?t:t+""}function C(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function k(e){var t="function"==typeof Map?new Map:void 0;return k=function(e){if(null===e||!g(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),T(r,e)},k(e)}function P(e,t){for(var r=0,a=Object.keys(t);rn.length)return!1;for(var i=0,o=s.length-1;i1)for(var r=1;re)return!1;if((r+=t[a+1])>=e)return!0}return!1}function wi(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&vi.test(String.fromCharCode(e)):Ti(e,Ri)))}function Si(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&xi.test(String.fromCharCode(e)):Ti(e,Ri)||Ti(e,Ei))))}function Ai(e){for(var t=!0,r=0;r=48&&e<=57},Li={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Mi={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function Ui(e,t,r,a,n,s){for(var i=r,o=a,d=n,c="",l=null,u=r,p=t.length;;){if(r>=p){s.unterminated(i,o,d),c+=t.slice(u,r);break}var f=t.charCodeAt(r);if(Hi(e,f,t,r)){c+=t.slice(u,r);break}if(92===f){c+=t.slice(u,r);var g=Gi(t,r,a,n,"template"===e,s);null!==g.ch||l?c+=g.ch:l={pos:r,lineStart:a,curLine:n},r=g.pos,a=g.lineStart,n=g.curLine,u=r}else 8232===f||8233===f?(++n,a=++r):10===f||13===f?"template"===e?(c+=t.slice(u,r)+"\n",++r,13===f&&10===t.charCodeAt(r)&&++r,++n,u=a=r):s.unterminated(i,o,d):++r}return{pos:r,str:c,firstInvalidLoc:l,lineStart:a,curLine:n,containsInvalid:!!l}}function Hi(e,t,r,a){return"template"===e?96===t||36===t&&123===r.charCodeAt(a+1):t===("double"===e?34:39)}function Gi(e,t,r,a,n,s){var i=!n;t++;var o=function(e){return{pos:t,ch:e,lineStart:r,curLine:a}},d=e.charCodeAt(t++);switch(d){case 110:return o("\n");case 114:return o("\r");case 120:var c,l=qi(e,t,r,a,2,!1,i,s);return c=l.code,t=l.pos,o(null===c?null:String.fromCharCode(c));case 117:var u,p=Vi(e,t,r,a,i,s);return u=p.code,t=p.pos,o(null===u?null:String.fromCodePoint(u));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++a;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,a);default:if(d>=48&&d<=55){var f=t-1,g=/^[0-7]+/.exec(e.slice(f,t+2))[0],h=parseInt(g,8);h>255&&(g=g.slice(0,-1),h=parseInt(g,8)),t+=g.length-1;var m=e.charCodeAt(t);if("0"!==g||56===m||57===m){if(n)return o(null);s.strictNumericEscape(f,r,a)}return o(String.fromCharCode(h))}return o(String.fromCharCode(d))}}function qi(e,t,r,a,n,s,i,o){var d,c=t,l=Wi(e,t,r,a,16,n,s,!1,o,!i);return d=l.n,t=l.pos,null===d&&(i?o.invalidEscapeSequence(c,r,a):t=c-1),{code:d,pos:t}}function Wi(e,t,r,a,n,s,i,o,d,c){for(var l=t,u=16===n?Li.hex:Li.decBinOct,p=16===n?Mi.hex:10===n?Mi.dec:8===n?Mi.oct:Mi.bin,f=!1,g=0,h=0,m=null==s?1/0:s;h=97?y-97+10:y>=65?y-65+10:Bi(y)?y-48:1/0)>=n){if(b<=9&&c)return{n:null,pos:t};if(b<=9&&d.invalidDigit(t,r,a,n))b=0;else{if(!i)break;b=0,f=!0}}++t,g=g*n+b}else{var v=e.charCodeAt(t-1),x=e.charCodeAt(t+1);if(o){if(Number.isNaN(x)||!p(x)||u.has(v)||u.has(x)){if(c)return{n:null,pos:t};d.unexpectedNumericSeparator(t,r,a)}}else{if(c)return{n:null,pos:t};d.numericSeparatorInEscapeSequence(t,r,a)}++t}}return t===l||null!=s&&t-l!==s||f?{n:null,pos:t}:{n:g,pos:t}}function Vi(e,t,r,a,n,s){var i;if(123===e.charCodeAt(t)){var o=qi(e,++t,r,a,e.indexOf("}",t)-t,!0,n,s);if(i=o.code,t=o.pos,++t,null!==i&&i>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,a)}}else{var d=qi(e,t,r,a,4,!1,n,s);i=d.code,t=d.pos}return{code:i,pos:t}}var zi=["consequent","body","alternate"],Ki=["body","expressions"],Yi=["left","init"],Xi=["leadingComments","trailingComments","innerComments"],Ji=["||","&&","??"],Qi=["++","--"],$i=[">","<",">=","<="],Zi=["==","===","!=","!=="],eo=[].concat(Zi,["in","instanceof"]),to=[].concat(A(eo),$i),ro=["-","/","%","*","**","&","|",">>",">>>","<<","^"],ao=["+"].concat(ro,A(to),["|>"]),no=["=","+="].concat(A(ro.map((function(e){return e+"="}))),A(Ji.map((function(e){return e+"="})))),so=["delete","!"],io=["+","-","~"],oo=["typeof"],co=["void","throw"].concat(so,io,oo),lo={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},uo=Symbol.for("var used to be block scoped"),po=Symbol.for("should not be considered a local binding"),fo={},go={},ho={},mo={},yo={},bo={},vo={};function xo(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function Ro(e){return{validate:e}}function Eo(e){return"string"===typeof e?Po(e):Po.apply(void 0,A(e))}function To(e){return Ro(Eo(e))}function wo(e){return{validate:e,optional:!0}}function So(e){return{validate:Eo(e),optional:!0}}function Ao(e){return Fo(Do("array"),Co(e))}function jo(e){return Ao(Eo(e))}function _o(e){return Ro(jo(e))}function Co(e){function t(t,r,a){if(Array.isArray(a))for(var n=0;n=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return a}var Bo=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],Lo=["default","optional","deprecated","validate"],Mo={};function Uo(){for(var e=arguments.length,t=new Array(e),r=0;r0:d&&"object"===typeof d)throw new Error("field defaults can only be primitives or empty arrays currently");a[i]={default:Array.isArray(d)?[]:d,optional:o.optional,deprecated:o.deprecated,validate:o.validate}}for(var c=t.visitor||r.visitor||[],l=t.aliases||r.aliases||[],p=t.builder||r.builder||t.visitor||[],f=0,g=Object.keys(t);f+s+1)throw new TypeError("RestElement must be last element of "+n)}}}),Go("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Po("Expression"),optional:!0}}}),Go("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:Fo(Do("array"),Co(Po("Expression")))}},aliases:["Expression"]}),Go("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:Po("Expression")}}}),Go("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:Po("Expression"),optional:!0},consequent:{validate:Fo(Do("array"),Co(Po("Statement")))}}}),Go("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:Po("Expression")},cases:{validate:Fo(Do("array"),Co(Po("SwitchCase")))}}}),Go("ThisExpression",{aliases:["Expression"]}),Go("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:Po("Expression")}}}),Go("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:Fo(Po("BlockStatement"),Object.assign((function(e){if(di.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:Po("CatchClause")},finalizer:{optional:!0,validate:Po("BlockStatement")}}}),Go("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:Po("Expression")},operator:{validate:ko.apply(void 0,A(co))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Go("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:di.env.BABEL_TYPES_8_BREAKING?Po("Identifier","MemberExpression"):Po("Expression")},operator:{validate:ko.apply(void 0,A(Qi))}},visitor:["argument"],aliases:["Expression"]}),Go("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Do("boolean"),optional:!0},kind:{validate:ko("var","let","const","using","await using")},declarations:{validate:Fo(Do("array"),Co(Po("VariableDeclarator")))}},validate:function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&mi("ForXStatement",e,{left:r})&&1!==r.declarations.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+e.type)}}),Go("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!di.env.BABEL_TYPES_8_BREAKING)return Po("LVal");var e=Po("Identifier","ArrayPattern","ObjectPattern"),t=Po("Identifier");return function(r,a,n){(r.init?e:t)(r,a,n)}}()},definite:{optional:!0,validate:Do("boolean")},init:{optional:!0,validate:Po("Expression")}}}),Go("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:Po("Expression")},body:{validate:Po("Statement")}}}),Go("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:Po("Expression")},body:{validate:Po("Statement")}}}),Go("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{left:{validate:Po("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:Po("Expression")},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0}})}),Go("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{elements:{validate:Fo(Do("array"),Co(Io("null","PatternLike","LVal")))}})}),Go("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},qo(),Wo(),{expression:{validate:Do("boolean")},body:{validate:Po("BlockStatement","Expression")},predicate:{validate:Po("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Go("ClassBody",{visitor:["body"],fields:{body:{validate:Fo(Do("array"),Co(Po("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),Go("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:Po("Identifier"),optional:!0},typeParameters:{validate:Po("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Po("ClassBody")},superClass:{optional:!0,validate:Po("Expression")},superTypeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:Fo(Do("array"),Co(Po("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},mixins:{validate:Po("InterfaceExtends"),optional:!0}}}),Go("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:Po("Identifier"),optional:!0},typeParameters:{validate:Po("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:Po("ClassBody")},superClass:{optional:!0,validate:Po("Expression")},superTypeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:Fo(Do("array"),Co(Po("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},mixins:{validate:Po("InterfaceExtends"),optional:!0},declare:{validate:Do("boolean"),optional:!0},abstract:{validate:Do("boolean"),optional:!0}},validate:function(){var e=Po("Identifier");return function(t,r,a){di.env.BABEL_TYPES_8_BREAKING&&(mi("ExportDefaultDeclaration",t)||e(a,"id",a.id))}}()}),Go("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:Po("StringLiteral")},exportKind:wo(ko("type","value")),attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))}}}),Go("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:Po("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:wo(ko("value"))}}),Go("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:Fo(Po("Declaration"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}),{oneOfNodeTypes:["Declaration"]}),(function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")}))},attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},specifiers:{default:[],validate:Fo(Do("array"),Co(function(){var e=Po("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=Po("ExportSpecifier");return di.env.BABEL_TYPES_8_BREAKING?function(r,a,n){(r.source?e:t)(r,a,n)}:e}()))},source:{validate:Po("StringLiteral"),optional:!0},exportKind:wo(ko("type","value"))}}),Go("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")},exported:{validate:Po("Identifier","StringLiteral")},exportKind:{validate:ko("type","value"),optional:!0}}}),Go("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!di.env.BABEL_TYPES_8_BREAKING)return Po("VariableDeclaration","LVal");var e=Po("VariableDeclaration"),t=Po("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,a,n){mi("VariableDeclaration",n)?e(r,a,n):t(r,a,n)}}()},right:{validate:Po("Expression")},body:{validate:Po("Statement")},await:{default:!1}}}),Go("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},assertions:{optional:!0,validate:Fo(Do("array"),Co(Po("ImportAttribute")))},module:{optional:!0,validate:Do("boolean")},phase:{default:null,validate:ko("source","defer")},specifiers:{validate:Fo(Do("array"),Co(Po("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:Po("StringLiteral")},importKind:{validate:ko("type","typeof","value"),optional:!0}}}),Go("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")}}}),Go("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")}}}),Go("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:Po("Identifier")},imported:{validate:Po("Identifier","StringLiteral")},importKind:{validate:ko("type","typeof","value"),optional:!0}}}),Go("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:ko("source","defer")},source:{validate:Po("Expression")},options:{validate:Po("Expression"),optional:!0}}}),Go("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:Fo(Po("Identifier"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING){var a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta"}if(!mi("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]}))},property:{validate:Po("Identifier")}}});var Ko=function(){return{abstract:{validate:Do("boolean"),optional:!0},accessibility:{validate:ko("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Do("boolean"),optional:!0},key:{validate:Fo(function(){var e=Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=Po("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},Yo=function(){return Object.assign({},qo(),Ko(),{params:{validate:Fo(Do("array"),Co(Po("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:ko("get","set","method","constructor"),default:"method"},access:{validate:Fo(Do("string"),ko("public","private","protected")),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0}})};Go("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Yo(),Wo(),{body:{validate:Po("BlockStatement")}})}),Go("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},zo(),{properties:{validate:Fo(Do("array"),Co(Po("RestElement","ObjectProperty")))}})}),Go("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:Po("Expression")}}}),Go("Super",{aliases:["Expression"]}),Go("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:Po("Expression")},quasi:{validate:Po("TemplateLiteral")},typeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Go("TemplateElement",{builder:["value","tail"],fields:{value:{validate:Fo(No({raw:{validate:Do("string")},cooked:{validate:Do("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,a=function(){throw new Error("Internal @babel/types error.")},n=Ui("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:a,invalidEscapeSequence:a,numericSeparatorInEscapeSequence:a,unexpectedNumericSeparator:a,invalidDigit:a,invalidCodePoint:a}),s=n.str,i=n.firstInvalidLoc;if(!r)throw new Error("Invalid raw");e.value.cooked=i?null:s}))},tail:{default:!1}}}),Go("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:Fo(Do("array"),Co(Po("TemplateElement")))},expressions:{validate:Fo(Do("array"),Co(Po("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of "+e.type+" quasis should be exactly one more than the number of expressions.\nExpected "+(r.length+1)+" quasis but got "+e.quasis.length)}))}}}),Go("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:Fo(Do("boolean"),Object.assign((function(e,t,r){if(di.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})),default:!1},argument:{optional:!0,validate:Po("Expression")}}}),Go("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:Po("Expression")}}}),Go("Import",{aliases:["Expression"]}),Go("BigIntLiteral",{builder:["value"],fields:{value:{validate:Do("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Go("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:Po("Identifier")}}}),Go("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:Po("Expression")},property:{validate:function(){var e=Po("Identifier"),t=Po("Expression"),r=Object.assign((function(r,a,n){(r.computed?t:e)(r,a,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:di.env.BABEL_TYPES_8_BREAKING?Fo(Do("boolean"),Oo()):Do("boolean")}}}),Go("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:Po("Expression")},arguments:{validate:Fo(Do("array"),Co(Po("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:di.env.BABEL_TYPES_8_BREAKING?Fo(Do("boolean"),Oo()):Do("boolean")},typeArguments:{validate:Po("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:Po("TSTypeParameterInstantiation"),optional:!0}}}),Go("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ko(),{value:{validate:Po("Expression"),optional:!0},definite:{validate:Do("boolean"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},readonly:{validate:Do("boolean"),optional:!0},declare:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}})}),Go("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ko(),{key:{validate:Fo(function(){var e=Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=Po("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),Po("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:Po("Expression"),optional:!0},definite:{validate:Do("boolean"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},readonly:{validate:Do("boolean"),optional:!0},declare:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}})}),Go("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:Po("PrivateName")},value:{validate:Po("Expression"),optional:!0},typeAnnotation:{validate:Po("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:Fo(Do("array"),Co(Po("Decorator"))),optional:!0},static:{validate:Do("boolean"),default:!1},readonly:{validate:Do("boolean"),optional:!0},definite:{validate:Do("boolean"),optional:!0},variance:{validate:Po("Variance"),optional:!0}}}),Go("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Yo(),Wo(),{kind:{validate:ko("get","set","method"),default:"method"},key:{validate:Po("PrivateName")},body:{validate:Po("BlockStatement")}})}),Go("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:Po("Identifier")}}}),Go("StaticBlock",{visitor:["body"],fields:{body:{validate:Fo(Do("array"),Co(Po("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});var Xo=Uo("Flow"),Jo=function(e){var t="DeclareClass"===e;Xo(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(A(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),extends:wo(jo("InterfaceExtends"))},t?{mixins:wo(jo("InterfaceExtends")),implements:wo(jo("ClassImplements"))}:{},{body:To("ObjectTypeAnnotation")})})};Xo("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:To("FlowType")}}),Xo("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("boolean"))}}),Xo("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ClassImplements",{visitor:["id","typeParameters"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterInstantiation")}}),Jo("DeclareClass"),Xo("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),predicate:So("DeclaredPredicate")}}),Jo("DeclareInterface"),Xo("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To(["Identifier","StringLiteral"]),body:To("BlockStatement"),kind:wo(ko("CommonJS","ES"))}}),Xo("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:To("TypeAnnotation")}}),Xo("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),right:To("FlowType")}}),Xo("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),supertype:So("FlowType"),impltype:So("FlowType")}}),Xo("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier")}}),Xo("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:So("Flow"),specifiers:wo(jo(["ExportSpecifier","ExportNamespaceSpecifier"])),source:So("StringLiteral"),default:wo(Do("boolean"))}}),Xo("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:To("StringLiteral"),exportKind:wo(ko("type","value"))}}),Xo("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:To("Flow")}}),Xo("ExistsTypeAnnotation",{aliases:["FlowType"]}),Xo("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:So("TypeParameterDeclaration"),params:Ro(jo("FunctionTypeParam")),rest:So("FunctionTypeParam"),this:So("FunctionTypeParam"),returnType:To("FlowType")}}),Xo("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:So("Identifier"),typeAnnotation:To("FlowType"),optional:wo(Do("boolean"))}}),Xo("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:To(["Identifier","QualifiedTypeIdentifier"]),typeParameters:So("TypeParameterInstantiation")}}),Xo("InferredPredicate",{aliases:["FlowPredicate"]}),Xo("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:To(["Identifier","QualifiedTypeIdentifier"]),typeParameters:So("TypeParameterInstantiation")}}),Jo("InterfaceDeclaration"),Xo("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:wo(jo("InterfaceExtends")),body:To("ObjectTypeAnnotation")}}),Xo("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:To("FlowType")}}),Xo("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("number"))}}),Xo("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:Ro(jo(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:jo("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:jo("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:jo("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Do("boolean"),default:!1},inexact:wo(Do("boolean"))}}),Xo("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:To("Identifier"),value:To("FlowType"),optional:Ro(Do("boolean")),static:Ro(Do("boolean")),method:Ro(Do("boolean"))}}),Xo("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:To("FlowType"),static:Ro(Do("boolean"))}}),Xo("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:So("Identifier"),key:To("FlowType"),value:To("FlowType"),static:Ro(Do("boolean")),variance:So("Variance")}}),Xo("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:To(["Identifier","StringLiteral"]),value:To("FlowType"),kind:Ro(ko("init","get","set")),static:Ro(Do("boolean")),proto:Ro(Do("boolean")),optional:Ro(Do("boolean")),variance:So("Variance"),method:Ro(Do("boolean"))}}),Xo("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:To("FlowType")}}),Xo("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),supertype:So("FlowType"),impltype:To("FlowType")}}),Xo("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:To("Identifier"),qualification:To(["Identifier","QualifiedTypeIdentifier"])}}),Xo("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:Ro(Do("string"))}}),Xo("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:To("FlowType")}}),Xo("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:To("Identifier"),typeParameters:So("TypeParameterDeclaration"),right:To("FlowType")}}),Xo("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:To("FlowType")}}),Xo("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:To("Expression"),typeAnnotation:To("TypeAnnotation")}}),Xo("TypeParameter",{visitor:["bound","default","variance"],fields:{name:Ro(Do("string")),bound:So("TypeAnnotation"),default:So("FlowType"),variance:So("Variance")}}),Xo("TypeParameterDeclaration",{visitor:["params"],fields:{params:Ro(jo("TypeParameter"))}}),Xo("TypeParameterInstantiation",{visitor:["params"],fields:{params:Ro(jo("FlowType"))}}),Xo("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:Ro(jo("FlowType"))}}),Xo("Variance",{builder:["kind"],fields:{kind:Ro(ko("minus","plus"))}}),Xo("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),Xo("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:To("Identifier"),body:To(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),Xo("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o("EnumBooleanMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o("EnumNumberMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:Ro(Do("boolean")),members:_o(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:_o("EnumDefaultedMember"),hasUnknownMembers:Ro(Do("boolean"))}}),Xo("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:To("Identifier"),init:To("BooleanLiteral")}}),Xo("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:To("Identifier"),init:To("NumericLiteral")}}),Xo("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:To("Identifier"),init:To("StringLiteral")}}),Xo("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:To("Identifier")}}),Xo("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:To("FlowType"),indexType:To("FlowType")}}),Xo("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:To("FlowType"),indexType:To("FlowType"),optional:Ro(Do("boolean"))}});var Qo=Uo("JSX");Qo("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:Po("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),Qo("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),Qo("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:Po("JSXOpeningElement")},closingElement:{optional:!0,validate:Po("JSXClosingElement")},children:{validate:Fo(Do("array"),Co(Po("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:Do("boolean"),optional:!0}})}),Qo("JSXEmptyExpression",{}),Qo("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Po("Expression","JSXEmptyExpression")}}}),Qo("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:Po("Expression")}}}),Qo("JSXIdentifier",{builder:["name"],fields:{name:{validate:Do("string")}}}),Qo("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:Po("JSXMemberExpression","JSXIdentifier")},property:{validate:Po("JSXIdentifier")}}}),Qo("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:Po("JSXIdentifier")},name:{validate:Po("JSXIdentifier")}}}),Qo("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:Po("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:Fo(Do("array"),Co(Po("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:Po("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Qo("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:Po("Expression")}}}),Qo("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Do("string")}}}),Qo("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:Po("JSXOpeningFragment")},closingFragment:{validate:Po("JSXClosingFragment")},children:{validate:Fo(Do("array"),Co(Po("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),Qo("JSXOpeningFragment",{aliases:["Immutable"]}),Qo("JSXClosingFragment",{aliases:["Immutable"]});for(var $o=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Zo={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},ed=0,td=$o;ed=Number.MAX_SAFE_INTEGER?Ax.uid=0:Ax.uid++};var _x=Function.call.bind(Object.prototype.toString);function Cx(e){return"[object RegExp]"===_x(e)}function kx(e){if("object"!==typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Px(e){if(void 0===e)return Wd("undefined");if(!0===e||!1===e)return Jd(e);if(null===e)return Xd();if("string"===typeof e)return Kd(e);var t;if("number"===typeof e)return t=Number.isFinite(e)?Yd(Math.abs(e)):Sd("/",Number.isNaN(e)?Yd(0):Yd(1),Yd(0)),(e<0||Object.is(e,-0))&&(t=gc("-",t)),t;if(Cx(e))return Qd(e.source,/\/([a-z]*)$/.exec(e.toString())[1]);if(Array.isArray(e))return Td(e.map(Px));if(kx(e)){for(var r=[],a=0,n=Object.keys(e);a1?e:e[0]})),iR=nR((function(e){return e})),oR=nR((function(e){if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]})),dR={code:function(e){return"(\n"+e+"\n)"},validate:function(e){if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===dR.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:function(e){var t=w(e.program.body,1)[0];return aR(t),t.expression}},cR={code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}},lR=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function uR(e,t){var r=t.placeholderWhitelist,a=void 0===r?e.placeholderWhitelist:r,n=t.placeholderPattern,s=void 0===n?e.placeholderPattern:n,i=t.preserveComments,o=void 0===i?e.preserveComments:i,d=t.syntacticPlaceholders,c=void 0===d?e.syntacticPlaceholders:d;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:a,placeholderPattern:s,preserveComments:o,syntacticPlaceholders:c}}function pR(e){if(null!=e&&"object"!==typeof e)throw new Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,a=t.placeholderPattern,n=t.preserveComments,s=t.syntacticPlaceholders,i=R(t,lR);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=a&&!(a instanceof RegExp)&&!1!==a)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!==typeof n)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!==typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=a))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:i,placeholderWhitelist:r||void 0,placeholderPattern:null==a?void 0:a,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==s?void 0:s}}function fR(e){if(Array.isArray(e))return e.reduce((function(e,t,r){return e["$"+r]=t,e}),{});if("object"===typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var gR=l((function(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r})),hR=l((function(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}));function mR(e,t){var r=e.line,a=e.column,n=e.index;return new gR(r,a+t,n+t)}var yR,bR="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",vR={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:bR},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:bR}},xR={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},RR=function(e){return"UpdateExpression"===e.type?xR.UpdateExpression[""+e.prefix]:xR[e.type]},ER={AccessorIsGenerator:function(e){return"A "+e.kind+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){return"Missing initializer in "+e.kind+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){return"`"+e.exportName+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){return"'import."+e.phase+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+e.localName+"' as '"+e.exportName+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){return"'"+("ForInStatement"===e.type?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){return"Unsyntactic "+("BreakStatement"===e.type?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(e){return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+e.importName+'" as foo }`?'},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(e){return"`import()` requires exactly "+(1===e.maxArgumentCount?"one argument":"one or two arguments")+"."},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){return"Expected number in radix "+e.radix+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){return"Escape sequence in keyword "+e.reservedWord+"."},InvalidIdentifier:function(e){return"Invalid identifier "+e.identifierName+"."},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in "+RR(t)+"."},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in "+RR(t)+"."},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of "+RR(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){return"Unexpected character '"+e.unexpected+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){return"Private name #"+e.identifierName+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){return"Label '"+e.labelName+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){return"This experimental syntax requires enabling the parser plugin: "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingOneOfPlugins:function(e){return"This experimental syntax requires enabling one of the following parser plugin(s): "+e.missingPlugin.map((function(e){return JSON.stringify(e)})).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){return'Duplicate key "'+e.key+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(e){return"An export name cannot include a lone surrogate, found '\\u"+e.surrogateCharCode.toString(16)+"'."},ModuleExportUndefined:function(e){return"Export '"+e.localName+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(e){return"Duplicate private name #"+e.identifierName+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){return"Unexpected keyword '"+e.keyword+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){return"Unexpected reserved word '"+e.reservedWord+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token"+(r?" '"+r+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target;return"The only valid meta property for "+t+" is "+t+"."+e.onlyValidPropertyName+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){return"Identifier '"+e.identifierName+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},TR={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){return"Assigning to '"+e.referenceName+"' in strict mode."},StrictEvalArgumentsBinding:function(e){return"Binding '"+e.bindingName+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},wR=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),SR={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized "+RR({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},AR=["message"];function jR(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function _R(e){var t=e.toMessage,r=e.code,a=e.reasonCode,n=e.syntaxPlugin,s="MissingPlugin"===a||"MissingOneOfPlugins"===a;return function e(i,o){var d=new SyntaxError;return d.code=r,d.reasonCode=a,d.loc=i,d.pos=i.index,d.syntaxPlugin=n,s&&(d.missingPlugin=o.missingPlugin),jR(d,"clone",(function(t){var r;void 0===t&&(t={});var a=null!=(r=t.loc)?r:i,n=a.line,s=a.column,d=a.index;return e(new gR(n,s,d),Object.assign({},o,t.details))})),jR(d,"details",o),Object.defineProperty(d,"message",{configurable:!0,get:function(){var e=t(o)+" ("+i.line+":"+i.column+")";return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),d}}function CR(e,t){if(Array.isArray(e))return function(t){return CR(t,e[0])};for(var r={},a=function(){var a=s[n],i=e[a],o="string"===typeof i?{message:function(){return i}}:"function"===typeof i?{message:i}:i,d=o.message,c=R(o,AR),l="string"===typeof d?function(){return d}:d;r[a]=_R(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},c))},n=0,s=Object.keys(e);n0&&i.start===n.start&&this.resetStartLocation(n,a)}return n},r.parseSubscript=function(t,r,a,n){var s=e.prototype.parseSubscript.call(this,t,r,a,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==s.type&&"OptionalCallExpression"!==s.type||(s.type=s.type.substring(8)),n.stop){var i=this.startNodeAtNode(s);return i.expression=s,this.finishNode(i,"ChainExpression")}}else"MemberExpression"!==s.type&&"CallExpression"!==s.type||(s.optional=!1);return s},r.isOptionalMemberExpression=function(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:e.prototype.isOptionalMemberExpression.call(this,t)},r.hasPropertyAsPrivateName=function(t){return"ChainExpression"===t.type&&(t=t.expression),e.prototype.hasPropertyAsPrivateName.call(this,t)},r.isObjectProperty=function(e){return"Property"===e.type&&"init"===e.kind&&!e.method},r.isObjectMethod=function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)},r.finishNodeAt=function(t,r,a){return DR(e.prototype.finishNodeAt.call(this,t,r,a))},r.resetStartLocation=function(t,r){e.prototype.resetStartLocation.call(this,t,r),DR(t)},r.resetEndLocation=function(t,r){void 0===r&&(r=this.state.lastTokEndLoc),e.prototype.resetEndLocation.call(this,t,r),DR(t)},l(t)}(e)},OR=l((function(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t})),FR={brace:new OR("{"),j_oTag:new OR("...",!0)};FR.template=new OR("`",!0);var BR=!0,LR=!0,MR=!0,UR=!0,HR=!0,GR=!0,qR=l((function(e,t){void 0===t&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null})),WR=new Map;function VR(e,t){void 0===t&&(t={}),t.keyword=e;var r=eE(e,t);return WR.set(e,r),r}function zR(e,t){return eE(e,{beforeExpr:BR,binop:t})}var KR=-1,YR=[],XR=[],JR=[],QR=[],$R=[],ZR=[];function eE(e,t){var r,a,n,s;return void 0===t&&(t={}),++KR,XR.push(e),JR.push(null!=(r=t.binop)?r:-1),QR.push(null!=(a=t.beforeExpr)&&a),$R.push(null!=(n=t.startsExpr)&&n),ZR.push(null!=(s=t.prefix)&&s),YR.push(new qR(e,t)),KR}function tE(e,t){var r,a,n,s;return void 0===t&&(t={}),++KR,WR.set(e,KR),XR.push(e),JR.push(null!=(r=t.binop)?r:-1),QR.push(null!=(a=t.beforeExpr)&&a),$R.push(null!=(n=t.startsExpr)&&n),ZR.push(null!=(s=t.prefix)&&s),YR.push(new qR("name",t)),KR}var rE={bracketL:eE("[",{beforeExpr:BR,startsExpr:LR}),bracketHashL:eE("#[",{beforeExpr:BR,startsExpr:LR}),bracketBarL:eE("[|",{beforeExpr:BR,startsExpr:LR}),bracketR:eE("]"),bracketBarR:eE("|]"),braceL:eE("{",{beforeExpr:BR,startsExpr:LR}),braceBarL:eE("{|",{beforeExpr:BR,startsExpr:LR}),braceHashL:eE("#{",{beforeExpr:BR,startsExpr:LR}),braceR:eE("}"),braceBarR:eE("|}"),parenL:eE("(",{beforeExpr:BR,startsExpr:LR}),parenR:eE(")"),comma:eE(",",{beforeExpr:BR}),semi:eE(";",{beforeExpr:BR}),colon:eE(":",{beforeExpr:BR}),doubleColon:eE("::",{beforeExpr:BR}),dot:eE("."),question:eE("?",{beforeExpr:BR}),questionDot:eE("?."),arrow:eE("=>",{beforeExpr:BR}),template:eE("template"),ellipsis:eE("...",{beforeExpr:BR}),backQuote:eE("`",{startsExpr:LR}),dollarBraceL:eE("${",{beforeExpr:BR,startsExpr:LR}),templateTail:eE("...`",{startsExpr:LR}),templateNonTail:eE("...${",{beforeExpr:BR,startsExpr:LR}),at:eE("@"),hash:eE("#",{startsExpr:LR}),interpreterDirective:eE("#!..."),eq:eE("=",{beforeExpr:BR,isAssign:UR}),assign:eE("_=",{beforeExpr:BR,isAssign:UR}),slashAssign:eE("_=",{beforeExpr:BR,isAssign:UR}),xorAssign:eE("_=",{beforeExpr:BR,isAssign:UR}),moduloAssign:eE("_=",{beforeExpr:BR,isAssign:UR}),incDec:eE("++/--",{prefix:HR,postfix:GR,startsExpr:LR}),bang:eE("!",{beforeExpr:BR,prefix:HR,startsExpr:LR}),tilde:eE("~",{beforeExpr:BR,prefix:HR,startsExpr:LR}),doubleCaret:eE("^^",{startsExpr:LR}),doubleAt:eE("@@",{startsExpr:LR}),pipeline:zR("|>",0),nullishCoalescing:zR("??",1),logicalOR:zR("||",1),logicalAND:zR("&&",2),bitwiseOR:zR("|",3),bitwiseXOR:zR("^",4),bitwiseAND:zR("&",5),equality:zR("==/!=/===/!==",6),lt:zR("/<=/>=",7),gt:zR("/<=/>=",7),relational:zR("/<=/>=",7),bitShift:zR("<>/>>>",8),bitShiftL:zR("<>/>>>",8),bitShiftR:zR("<>/>>>",8),plusMin:eE("+/-",{beforeExpr:BR,binop:9,prefix:HR,startsExpr:LR}),modulo:eE("%",{binop:10,startsExpr:LR}),star:eE("*",{binop:10}),slash:zR("/",10),exponent:eE("**",{beforeExpr:BR,binop:11,rightAssociative:!0}),_in:VR("in",{beforeExpr:BR,binop:7}),_instanceof:VR("instanceof",{beforeExpr:BR,binop:7}),_break:VR("break"),_case:VR("case",{beforeExpr:BR}),_catch:VR("catch"),_continue:VR("continue"),_debugger:VR("debugger"),_default:VR("default",{beforeExpr:BR}),_else:VR("else",{beforeExpr:BR}),_finally:VR("finally"),_function:VR("function",{startsExpr:LR}),_if:VR("if"),_return:VR("return",{beforeExpr:BR}),_switch:VR("switch"),_throw:VR("throw",{beforeExpr:BR,prefix:HR,startsExpr:LR}),_try:VR("try"),_var:VR("var"),_const:VR("const"),_with:VR("with"),_new:VR("new",{beforeExpr:BR,startsExpr:LR}),_this:VR("this",{startsExpr:LR}),_super:VR("super",{startsExpr:LR}),_class:VR("class",{startsExpr:LR}),_extends:VR("extends",{beforeExpr:BR}),_export:VR("export"),_import:VR("import",{startsExpr:LR}),_null:VR("null",{startsExpr:LR}),_true:VR("true",{startsExpr:LR}),_false:VR("false",{startsExpr:LR}),_typeof:VR("typeof",{beforeExpr:BR,prefix:HR,startsExpr:LR}),_void:VR("void",{beforeExpr:BR,prefix:HR,startsExpr:LR}),_delete:VR("delete",{beforeExpr:BR,prefix:HR,startsExpr:LR}),_do:VR("do",{isLoop:MR,beforeExpr:BR}),_for:VR("for",{isLoop:MR}),_while:VR("while",{isLoop:MR}),_as:tE("as",{startsExpr:LR}),_assert:tE("assert",{startsExpr:LR}),_async:tE("async",{startsExpr:LR}),_await:tE("await",{startsExpr:LR}),_defer:tE("defer",{startsExpr:LR}),_from:tE("from",{startsExpr:LR}),_get:tE("get",{startsExpr:LR}),_let:tE("let",{startsExpr:LR}),_meta:tE("meta",{startsExpr:LR}),_of:tE("of",{startsExpr:LR}),_sent:tE("sent",{startsExpr:LR}),_set:tE("set",{startsExpr:LR}),_source:tE("source",{startsExpr:LR}),_static:tE("static",{startsExpr:LR}),_using:tE("using",{startsExpr:LR}),_yield:tE("yield",{startsExpr:LR}),_asserts:tE("asserts",{startsExpr:LR}),_checks:tE("checks",{startsExpr:LR}),_exports:tE("exports",{startsExpr:LR}),_global:tE("global",{startsExpr:LR}),_implements:tE("implements",{startsExpr:LR}),_intrinsic:tE("intrinsic",{startsExpr:LR}),_infer:tE("infer",{startsExpr:LR}),_is:tE("is",{startsExpr:LR}),_mixins:tE("mixins",{startsExpr:LR}),_proto:tE("proto",{startsExpr:LR}),_require:tE("require",{startsExpr:LR}),_satisfies:tE("satisfies",{startsExpr:LR}),_keyof:tE("keyof",{startsExpr:LR}),_readonly:tE("readonly",{startsExpr:LR}),_unique:tE("unique",{startsExpr:LR}),_abstract:tE("abstract",{startsExpr:LR}),_declare:tE("declare",{startsExpr:LR}),_enum:tE("enum",{startsExpr:LR}),_module:tE("module",{startsExpr:LR}),_namespace:tE("namespace",{startsExpr:LR}),_interface:tE("interface",{startsExpr:LR}),_type:tE("type",{startsExpr:LR}),_opaque:tE("opaque",{startsExpr:LR}),name:eE("name",{startsExpr:LR}),string:eE("string",{startsExpr:LR}),num:eE("num",{startsExpr:LR}),bigint:eE("bigint",{startsExpr:LR}),decimal:eE("decimal",{startsExpr:LR}),regexp:eE("regexp",{startsExpr:LR}),privateName:eE("#name",{startsExpr:LR}),eof:eE("eof"),jsxName:eE("jsxName"),jsxText:eE("jsxText",{beforeExpr:!0}),jsxTagStart:eE("jsxTagStart",{startsExpr:!0}),jsxTagEnd:eE("jsxTagEnd"),placeholder:eE("%%",{startsExpr:!0})};function aE(e){return e>=93&&e<=132}function nE(e){return e<=92}function sE(e){return e>=58&&e<=132}function iE(e){return e>=58&&e<=136}function oE(e){return QR[e]}function dE(e){return $R[e]}function cE(e){return e>=29&&e<=33}function lE(e){return e>=129&&e<=131}function uE(e){return e>=90&&e<=92}function pE(e){return e>=58&&e<=92}function fE(e){return e>=39&&e<=59}function gE(e){return 34===e}function hE(e){return ZR[e]}function mE(e){return e>=121&&e<=123}function yE(e){return e>=124&&e<=130}function bE(e){return XR[e]}function vE(e){return JR[e]}function xE(e){return 57===e}function RE(e){return e>=24&&e<=25}function EE(e){return YR[e]}function TE(e,t,r){return 64===e&&64===t&&wi(r)}YR[8].updateContext=function(e){e.pop()},YR[5].updateContext=YR[7].updateContext=YR[23].updateContext=function(e){e.push(FR.brace)},YR[22].updateContext=function(e){e[e.length-1]===FR.template?e.pop():e.push(FR.template)},YR[142].updateContext=function(e){e.push(FR.j_expr,FR.j_oTag)};var wE=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function SE(e){return wE.has(e)}var AE={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},jE={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},_E={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},CE={Var:1,Lexical:2,Function:4},kE=l((function(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e})),PE=function(){function e(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}var t=e.prototype;return t.createScope=function(e){return new kE(e)},t.enter=function(e){this.scopeStack.push(this.createScope(e))},t.exit=function(){return this.scopeStack.pop().flags},t.treatFunctionsAsVarInScope=function(e){return!!(e.flags&(AE.FUNCTION|AE.STATIC_BLOCK)||!this.parser.inModule&&e.flags&AE.PROGRAM)},t.declareName=function(e,t,r){var a=this.currentScope();if(t&jE.SCOPE_LEXICAL||t&jE.SCOPE_FUNCTION){this.checkRedeclarationInScope(a,e,t,r);var n=a.names.get(e)||0;t&jE.SCOPE_FUNCTION?n|=CE.Function:(a.firstLexicalName||(a.firstLexicalName=e),n|=CE.Lexical),a.names.set(e,n),t&jE.SCOPE_LEXICAL&&this.maybeExportDefined(a,e)}else if(t&jE.SCOPE_VAR)for(var s=this.scopeStack.length-1;s>=0&&(a=this.scopeStack[s],this.checkRedeclarationInScope(a,e,t,r),a.names.set(e,(a.names.get(e)||0)|CE.Var),this.maybeExportDefined(a,e),!(a.flags&AE.VAR));--s);this.parser.inModule&&a.flags&AE.PROGRAM&&this.undefinedExports.delete(e)},t.maybeExportDefined=function(e,t){this.parser.inModule&&e.flags&AE.PROGRAM&&this.undefinedExports.delete(t)},t.checkRedeclarationInScope=function(e,t,r,a){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(kR.VarRedeclaration,a,{identifierName:t})},t.isRedeclaredInScope=function(e,t,r){if(!(r&jE.KIND_VALUE))return!1;if(r&jE.SCOPE_LEXICAL)return e.names.has(t);var a=e.names.get(t);return r&jE.SCOPE_FUNCTION?(a&CE.Lexical)>0||!this.treatFunctionsAsVarInScope(e)&&(a&CE.Var)>0:(a&CE.Lexical)>0&&!(e.flags&AE.SIMPLE_CATCH&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(a&CE.Function)>0},t.checkLocalExport=function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)},t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t.currentVarScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&AE.VAR)return t}},t.currentThisScopeFlags=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&(AE.VAR|AE.CLASS)&&!(t&AE.ARROW))return t}},l(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&AE.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&AE.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&AE.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&AE.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&AE.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(e&AE.CLASS)>0&&0===(e&AE.FUNCTION)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(t&AE.STATIC_BLOCK)return!0;if(t&(AE.VAR|AE.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&AE.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),IE=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0||(n&CE.Lexical)>0}return!1},r.checkLocalExport=function(t){this.scopeStack[0].declareFunctions.has(t.name)||e.prototype.checkLocalExport.call(this,t)},l(t)}(PE);function NE(e,t){var r;void 0===e.trailingComments?e.trailingComments=t:(r=e.trailingComments).unshift.apply(r,t)}function OE(e,t){var r;void 0===e.leadingComments?e.leadingComments=t:(r=e.leadingComments).unshift.apply(r,t)}function FE(e,t){var r;void 0===e.innerComments?e.innerComments=t:(r=e.innerComments).unshift.apply(r,t)}function BE(e,t,r){for(var a=null,n=t.length;null===a&&n>0;)a=t[--n];null===a||a.start>r.start?FE(e,r.comments):NE(a,r.comments)}var LE=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.addComment=function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++},r.processComment=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=r-1,n=t[a];n.start===e.end&&(n.leadingNode=e,a--);for(var s=e.start;a>=0;a--){var i=t[a],o=i.end;if(!(o>s)){o===s&&(i.trailingNode=e);break}i.containingNode=e,this.finalizeComment(i),t.splice(a,1)}}},r.finalizeComment=function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&NE(e.leadingNode,t),null!==e.trailingNode&&OE(e.trailingNode,t);else{var r=e.containingNode,a=e.start;if(44===this.input.charCodeAt(a-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":BE(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":BE(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":BE(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":BE(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":BE(r,r.specifiers,e);break;default:FE(r,t)}else FE(r,t)}},r.finalizeRemainingComments=function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]},r.resetPreviousNodeTrailingComments=function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var a=t[r-1];a.leadingNode===e&&(a.leadingNode=null)}},r.resetPreviousIdentifierLeadingComments=function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))},r.takeSurroundingComments=function(e,t,r){var a=this.state.commentStack,n=a.length;if(0!==n)for(var s=n-1;s>=0;s--){var i=a[s],o=i.end;if(i.start===r)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(4096&this.flags)>0},set:function(e){e?this.flags|=4096:this.flags&=-4097}}])}();function KE(e,t,r){return new gR(r,e-t,e)}var YE=new Set([103,109,115,105,121,117,100,118]),XE=l((function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new hR(e.startLoc,e.endLoc)})),JE=function(e){function t(t,r){var a;return(a=e.call(this)||this).isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(e,t,r,n){return!!a.options.errorRecovery&&(a.raise(kR.InvalidDigit,KE(e,t,r),{radix:n}),!0)},numericSeparatorInEscapeSequence:a.errorBuilder(kR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(kR.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(kR.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(kR.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){a.recordStrictModeErrors(kR.StrictNumericEscape,KE(e,t,r))},unterminated:function(e,t,r){throw a.raise(kR.UnterminatedString,KE(e-1,t,r))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(kR.StrictNumericEscape),unterminated:function(e,t,r){throw a.raise(kR.UnterminatedTemplate,KE(e,t,r))}}),a.state=new zE,a.state.init(t),a.input=r,a.length=r.length,a.comments=[],a.isLookahead=!1,a}f(t,e);var r=t.prototype;return r.pushToken=function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength},r.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new XE(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},r.eat=function(e){return!!this.match(e)&&(this.next(),!0)},r.match=function(e){return this.state.type===e},r.createLookaheadState=function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}},r.lookahead=function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t},r.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},r.nextTokenStartSince=function(e){return GE.lastIndex=e,GE.test(this.input)?GE.lastIndex:e},r.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},r.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},r.nextTokenInLineStartSince=function(e){return qE.lastIndex=e,qE.test(this.input)?qE.lastIndex:e},r.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},r.codePointAtPos=function(e){var t=this.input.charCodeAt(e);if(55296===(64512&t)&&++e=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))},r.skipBlockComment=function(e){var t;this.isLookahead||(t=this.state.curPosition());var r=this.state.pos,a=this.input.indexOf(e,r+2);if(-1===a)throw this.raise(kR.UnterminatedComment,this.state.curPosition());for(this.state.pos=a+e.length,ME.lastIndex=r+2;ME.test(this.input)&&ME.lastIndex<=a;)++this.state.curLine,this.state.lineStart=ME.lastIndex;if(!this.isLookahead){var n={type:"CommentBlock",value:this.input.slice(r+2,a),start:r,end:a+e.length,loc:new hR(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}},r.skipLineComment=function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var a=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var i=this.skipLineComment(3);void 0!==i&&(this.addComment(i),this.options.attachComment&&t.push(i))}else{if(60!==r||this.inModule||!this.options.annexB)break e;var o=this.state.pos;if(33!==this.input.charCodeAt(o+1)||45!==this.input.charCodeAt(o+2)||45!==this.input.charCodeAt(o+3))break e;var d=this.skipLineComment(4);void 0!==d&&(this.addComment(d),this.options.attachComment&&t.push(d))}}}if(t.length>0){var c={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}},r.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)},r.replaceToken=function(e){this.state.type=e,this.updateContext()},r.readToken_numberSign=function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(kR.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?kR.RecordExpressionHashIncorrectStartSyntaxType:kR.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else wi(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}},r.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},r.readToken_slash=function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)},r.readToken_interpreter=function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!UE(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))},r.getTokenFromCode=function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(kR.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(kR.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(wi(e))return void this.readWord(e)}throw this.raise(kR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})},r.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)},r.readRegexp=function(){for(var e,t,r=this.state.startLoc,a=this.state.start+1,n=this.state.pos;;++n){if(n>=this.length)throw this.raise(kR.UnterminatedRegExp,mR(r,1));var s=this.input.charCodeAt(n);if(UE(s))throw this.raise(kR.UnterminatedRegExp,mR(r,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var i=this.input.slice(a,n);++n;for(var o="",d=function(){return mR(r,n+2-a)};n=2&&48===this.input.charCodeAt(t);if(d){var c=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(kR.StrictOctalLiteral,r),!this.state.strict){var l=c.indexOf("_");l>0&&this.raise(kR.ZeroDigitNumericSeparator,mR(r,l))}o=d&&!/[89]/.test(c)}var u=this.input.charCodeAt(this.state.pos);if(46!==u||o||(++this.state.pos,this.readInt(10),a=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||o||(43!==(u=this.input.charCodeAt(++this.state.pos))&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(kR.InvalidOrMissingExponent,r),a=!0,i=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((a||d)&&this.raise(kR.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===u&&(this.expectPlugin("decimal",this.state.curPosition()),(i||d)&&this.raise(kR.InvalidDecimal,r),++this.state.pos,s=!0),wi(this.codePointAtPos(this.state.pos)))throw this.raise(kR.NumberIdentifier,this.state.curPosition());var p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)this.finishToken(135,p);else if(s)this.finishToken(136,p);else{var f=o?parseInt(p,8):parseFloat(p);this.finishToken(134,f)}},r.readCodePoint=function(e){var t=Vi(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,a=t.pos;return this.state.pos=a,r},r.readString=function(e){var t=Ui(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,a=t.pos,n=t.curLine,s=t.lineStart;this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(133,r)},r.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},r.readTemplateToken=function(){var e=this.input[this.state.pos],t=Ui("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,a=t.firstInvalidLoc,n=t.pos,s=t.curLine,i=t.lineStart;this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new gR(a.curLine,a.pos-a.lineStart,a.pos)),96===this.input.codePointAt(n)?this.finishToken(24,a?null:e+r+"`"):(this.state.pos++,this.finishToken(25,a?null:e+r+"${"))},r.recordStrictModeErrors=function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])},r.readWord1=function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,a=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;i--){var o=s[i];if(o.loc.index===n)return s[i]=e(a,r);if(o.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&iT.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&iT.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&iT.PARAM_IN)>0}}])}();function dT(e,t){return(e?iT.PARAM_AWAIT:0)|(t?iT.PARAM_YIELD:0)}var cT=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.addExtra=function(e,t,r,a){if(void 0===a&&(a=!0),e){var n=e.extra;null==n&&(n={},e.extra=n),a?n[t]=r:Object.defineProperty(n,t,{enumerable:a,value:r})}},r.isContextual=function(e){return this.state.type===e&&!this.state.containsEsc},r.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var a=this.input.charCodeAt(r);return!(Si(a)||55296===(64512&a))}return!1},r.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},r.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},r.expectContextual=function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}},r.canInsertSemicolon=function(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()},r.hasPrecedingLineBreak=function(){return HE(this.input,this.state.lastTokEndLoc.index,this.state.start)},r.hasFollowingLineBreak=function(){return HE(this.input,this.state.end,this.nextTokenStart())},r.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},r.semicolon=function(e){void 0===e&&(e=!0),(e?this.isLineTerminator():this.eat(13))||this.raise(kR.MissingSemicolon,this.state.lastTokEndLoc)},r.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},r.tryParse=function(e,t){void 0===t&&(t=this.state.clone());var r={node:null};try{var a=e((function(e){throw void 0===e&&(e=null),r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:a,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:a,error:null,thrown:!1,aborted:!1,failState:null}}catch(uJ){var s=this.state;if(this.state=t,uJ instanceof SyntaxError)return{node:null,error:uJ,thrown:!0,aborted:!1,failState:s};if(uJ===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw uJ}},r.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,a=e.doubleProtoLoc,n=e.privateKeyLoc,s=e.optionalParametersLoc;if(!t)return!!r||!!a||!!s||!!n;null!=r&&this.raise(kR.InvalidCoverInitializedName,r),null!=a&&this.raise(kR.DuplicateProto,a),null!=n&&this.raise(kR.UnexpectedPrivateField,n),null!=s&&this.unexpected(s)},r.isLiteralPropertyName=function(){return iE(this.state.type)},r.isPrivateName=function(e){return"PrivateName"===e.type},r.getPrivateNameSV=function(e){return e.id.name},r.hasPropertyAsPrivateName=function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)},r.isObjectProperty=function(e){return"ObjectProperty"===e.type},r.isObjectMethod=function(e){return"ObjectMethod"===e.type},r.initializeScopes=function(e){var t=this;void 0===e&&(e="module"===this.options.sourceType);var r=this.state.labels;this.state.labels=[];var a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var n=this.inModule;this.inModule=e;var s=this.scope,i=this.getScopeHandler();this.scope=new i(this,e);var o=this.prodParam;this.prodParam=new oT;var d=this.classScope;this.classScope=new $E(this);var c=this.expressionScope;return this.expressionScope=new tT(this),function(){t.state.labels=r,t.exportedIdentifiers=a,t.inModule=n,t.scope=s,t.prodParam=o,t.classScope=d,t.expressionScope=c}},r.enterInitialScopes=function(){var e=iT.PARAM;this.inModule&&(e|=iT.PARAM_AWAIT),this.scope.enter(AE.PROGRAM),this.prodParam.enter(e)},r.checkDestructuringPrivate=function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)},l(t)}(JE),lT=l((function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null})),uT=l((function(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new hR(r),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)})),pT=uT.prototype;function fT(e){return gT(e)}function gT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra,o=e.name,d=Object.create(pT);return d.type=t,d.start=r,d.end=a,d.loc=n,d.range=s,d.extra=i,d.name=o,"Placeholder"===t&&(d.expectedNode=e.expectedNode),d}function hT(e){var t=e.type,r=e.start,a=e.end,n=e.loc,s=e.range,i=e.extra;if("Placeholder"===t)return fT(e);var o=Object.create(pT);return o.type=t,o.start=r,o.end=a,o.loc=n,o.range=s,void 0!==e.raw?o.raw=e.raw:o.extra=i,o.value=e.value,o}pT.__clone=function(){for(var e=new uT(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,a=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){return"`declare export "+e.unsupportedExportKind+"` is not supported. Use `"+e.suggestion+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function xT(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}function RT(e){return"type"===e.importKind||"typeof"===e.importKind}var ET={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function TT(e,t){for(var r=[],a=[],n=0;nr.index+1&&this.raise(vT.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=e.prototype.parseExpression.call(this),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")},r.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]},r.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},r.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11);var s=this.flowParseTypeAndPredicateInitialiser();return r.returnType=s[0],e.predicate=s[1],a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,jE.TYPE_FLOW_DECLARE_FN,e.id.loc.start),this.finishNode(e,"DeclareFunction")},r.flowParseDeclare=function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(vT.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()},r.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,jE.TYPE_VAR,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")},r.flowParseDeclareModule=function(t){var r=this;this.scope.enter(AE.OTHER),this.match(133)?t.id=e.prototype.parseExprAtom.call(this):t.id=this.parseIdentifier();var a=t.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){var s=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(vT.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),e.prototype.parseImport.call(this,s)):(this.expectContextual(125,vT.UnsupportedStatementInDeclareModule),s=this.flowParseDeclare(s,!0)),n.push(s)}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");var i=null,o=!1;return n.forEach((function(e){xT(e)?("CommonJS"===i&&r.raise(vT.AmbiguousDeclareModuleKind,e),i="ES"):"DeclareModuleExports"===e.type&&(o&&r.raise(vT.DuplicateDeclareModuleExports,e),"ES"===i&&r.raise(vT.AmbiguousDeclareModuleKind,e),i="CommonJS",o=!0)})),t.kind=i||"CommonJS",this.finishNode(t,"DeclareModule")},r.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(vT.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:ET[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()},r.flowParseDeclareModuleExports=function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},r.flowParseDeclareTypeAlias=function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t},r.flowParseDeclareOpaqueType=function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t},r.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")},r.flowParseInterfaceish=function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?jE.TYPE_FUNCTION:jE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},r.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},r.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},r.checkNotUnderscore=function(e){"_"===e&&this.raise(vT.UnexpectedReservedUnderscore,this.state.startLoc)},r.checkReservedType=function(e,t,r){bT.has(e)&&this.raise(r?vT.AssignReservedType:vT.UnexpectedReservedType,t,{reservedType:e})},r.flowParseRestrictedIdentifier=function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)},r.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,jE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")},r.flowParseOpaqueType=function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,jE.TYPE_LEXICAL,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")},r.flowParseTypeParameter=function(e){void 0===e&&(e=!1);var t=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(vT.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")},r.flowParseTypeParameterDeclaration=function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(r);t.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")},r.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},r.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},r.flowParseObjectPropertyKey=function(){return this.match(134)||this.match(133)?e.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},r.flowParseObjectTypeIndexer=function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")},r.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},r.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},r.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")},r.flowParseObjectType=function(e){var t=e.allowStatic,r=e.allowExact,a=e.allowSpread,n=e.allowProto,s=e.allowInexact,i=this.state.inType;this.state.inType=!0;var o,d,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var l=!1;for(r&&this.match(6)?(this.expect(6),o=9,d=!0):(this.expect(5),o=8,d=!1),c.exact=d;!this.match(o);){var u=!1,p=null,f=null,g=this.startNode();if(n&&this.isContextual(118)){var h=this.lookahead();14!==h.type&&17!==h.type&&(this.next(),p=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),u=!0)}var y=this.flowParseVariance();if(this.eat(0))null!=p&&this.unexpected(p),this.eat(0)?(y&&this.unexpected(y.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(g,u))):c.indexers.push(this.flowParseObjectTypeIndexer(g,u,y));else if(this.match(10)||this.match(47))null!=p&&this.unexpected(p),y&&this.unexpected(y.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(g,u));else{var b="init";(this.isContextual(99)||this.isContextual(104))&&iE(this.lookahead().type)&&(b=this.state.value,this.next());var v=this.flowParseObjectTypeProperty(g,u,p,y,b,a,null!=s?s:!d);null===v?(l=!0,f=this.state.lastTokStartLoc):c.properties.push(v)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(vT.UnexpectedExplicitInexactInObject,f)}this.expect(o),a&&(c.inexact=l);var x=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=i,x},r.flowParseObjectTypeProperty=function(e,t,r,a,n,s,i){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?i||this.raise(vT.InexactInsideExact,this.state.lastTokStartLoc):this.raise(vT.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(vT.InexactVariance,a),null):(s||this.raise(vT.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),a&&this.raise(vT.SpreadVariance,a),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),a&&this.unexpected(a.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(vT.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=a),e.optional=o,this.finishNode(e,"ObjectTypeProperty")},r.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?vT.GetterMayNotHaveThisParam:vT.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?kR.BadGetterArity:kR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(kR.BadSetterRestParameter,e)},r.flowObjectTypeSemicolon=function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()},r.flowParseQualifiedTypeIdentifier=function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var a=this.startNodeAt(e);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},r.flowParseGenericType=function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},r.flowParseTypeofType=function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},r.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0){var g=[].concat(i);if(f.length>0){this.state=s,this.state.noArrowAt=g;for(var h=0;h1&&this.raise(vT.AmbiguousConditionalArrow,s.startLoc),l&&1===p.length){this.state=s,g.push(p[0].start),this.state.noArrowAt=g;var b=this.tryParseConditionalConsequent();c=b.consequent,l=b.failed}}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=c,o.alternate=this.forwardNoArrowParamsConversionAt(o,(function(){return a.parseMaybeAssign(void 0,void 0)})),this.finishNode(o,"ConditionalExpression")},r.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},r.getArrowLikeExpressions=function(e,t){for(var r=this,a=[e],n=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type&&"BlockStatement"!==s.body.type?(s.typeParameters||!s.returnType?this.finishArrowValidation(s):n.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}return t?(n.forEach((function(e){return r.finishArrowValidation(e)})),[n,[]]):TT(n,(function(e){return e.params.every((function(e){return r.isAssignable(e,!0)}))}))},r.finishArrowValidation=function(t){var r;this.toAssignableList(t.params,null==(r=t.extra)?void 0:r.trailingCommaLoc,!1),this.scope.enter(AE.FUNCTION|AE.ARROW),e.prototype.checkParams.call(this,t,!1,!0),this.scope.exit()},r.forwardNoArrowParamsConversionAt=function(e,t){var r;return this.state.noArrowParamsConversionAt.includes(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r},r.parseParenItem=function(t,r){var a=e.prototype.parseParenItem.call(this,t,r);if(this.eat(17)&&(a.optional=!0,this.resetEndLocation(t)),this.match(14)){var n=this.startNodeAt(r);return n.expression=a,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return a},r.assertModuleNodeAllowed=function(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||e.prototype.assertModuleNodeAllowed.call(this,t)},r.parseExportDeclaration=function(t){if(this.isContextual(130)){t.exportKind="type";var r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),e.prototype.parseExportFrom.call(this,t),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){t.exportKind="type";var a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}if(this.isContextual(129)){t.exportKind="type";var n=this.startNode();return this.next(),this.flowParseInterface(n)}if(this.shouldParseEnums()&&this.isContextual(126)){t.exportKind="value";var s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return e.prototype.parseExportDeclaration.call(this,t)},r.eatExportStar=function(t){return!!e.prototype.eatExportStar.call(this,t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)},r.maybeParseExportNamespaceSpecifier=function(t){var r=this.state.startLoc,a=e.prototype.maybeParseExportNamespaceSpecifier.call(this,t);return a&&"type"===t.exportKind&&this.unexpected(r),a},r.parseClassId=function(t,r,a){e.prototype.parseClassId.call(this,t,r,a),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())},r.parseClassMember=function(t,r,a){var n=this.state.startLoc;if(this.isContextual(125)){if(e.prototype.parseClassMemberFromModifier.call(this,t,r))return;r.declare=!0}e.prototype.parseClassMember.call(this,t,r,a),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(vT.DeclareClassElement,n):r.value&&this.raise(vT.DeclareClassFieldInitializer,r.value))},r.isIterator=function(e){return"iterator"===e||"asyncIterator"===e},r.readIterator=function(){var t=e.prototype.readWord1.call(this),r="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(kR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)},r.getTokenFromCode=function(t){var r=this.input.charCodeAt(this.state.pos+1);123===t&&124===r?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===r?this.finishOp(18,2):this.finishOp(17,1):TE(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):e.prototype.getTokenFromCode.call(this,t):this.finishOp(62===t?48:47,1)},r.isAssignable=function(t,r){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,r):e.prototype.isAssignable.call(this,t,r)},r.toAssignable=function(t,r){void 0===r&&(r=!1),r||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r)},r.toAssignableList=function(t,r,a){for(var n=0;n1)&&t||this.raise(vT.TypeCastInPattern,n.typeAnnotation)}return e},r.parseArrayLike=function(t,r,a,n){var s=e.prototype.parseArrayLike.call(this,t,r,a,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s},r.isValidLVal=function(t,r,a){return"TypeCastExpression"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.parseClassProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},r.parseClassPrivateProperty=function(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},r.isClassMethod=function(){return this.match(47)||e.prototype.isClassMethod.call(this)},r.isClassProperty=function(){return this.match(14)||e.prototype.isClassProperty.call(this)},r.isNonstaticConstructor=function(t){return!this.match(14)&&e.prototype.isNonstaticConstructor.call(this,t)},r.pushClassMethod=function(t,r,a,n,s,i){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassMethod.call(this,t,r,a,n,s,i),r.params&&s){var o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(vT.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&s&&r.value.params){var d=r.value.params;d.length>0&&this.isThisParam(d[0])&&this.raise(vT.ThisParamBannedInConstructor,r)}},r.pushClassPrivateMethod=function(t,r,a,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,r,a,n)},r.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=t.implements=[];do{var a=this.startNode();a.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,r.push(this.finishNode(a,"ClassImplements"))}while(this.eat(12))}},r.checkGetterSetterParams=function(t){e.prototype.checkGetterSetterParams.call(this,t);var r=this.getObjectOrClassMethodParams(t);if(r.length>0){var a=r[0];this.isThisParam(a)&&"get"===t.kind?this.raise(vT.GetterMayNotHaveThisParam,a):this.isThisParam(a)&&this.raise(vT.SetterMayNotHaveThisParam,a)}},r.parsePropertyNamePrefixOperator=function(e){e.variance=this.flowParseVariance()},r.parseObjPropValue=function(t,r,a,n,s,i,o){var d;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!i&&(d=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=e.prototype.parseObjPropValue.call(this,t,r,a,n,s,i,o);return d&&((c.value||c).typeParameters=d),c},r.parseAssignableListItemTypes=function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(vT.PatternIsOptional,e),this.isThisParam(e)&&this.raise(vT.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(vT.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(vT.ThisParamNoDefault,e),this.resetEndLocation(e),e},r.parseMaybeDefault=function(t,r){var a=e.prototype.parseMaybeDefault.call(this,t,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start0&&this.raise(vT.ThisParamMustBeFirst,t.params[s]);e.prototype.checkParams.call(this,t,r,a,n)}},r.parseParenAndDistinguishExpression=function(t){return e.prototype.parseParenAndDistinguishExpression.call(this,t&&!this.state.noArrowAt.includes(this.state.start))},r.parseSubscripts=function(t,r,a){var n=this;if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(r.index)){this.next();var s=this.startNodeAt(r);s.callee=t,s.arguments=e.prototype.parseCallExpressionArguments.call(this,11,!1),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){var i=this.state.clone(),o=this.tryParse((function(e){return n.parseAsyncArrowWithTypeParameters(r)||e()}),i);if(!o.error&&!o.aborted)return o.node;var d=this.tryParse((function(){return e.prototype.parseSubscripts.call(n,t,r,a)}),i);if(d.node&&!d.error)return d.node;if(o.node)return this.state=o.failState,o.node;if(d.node)return this.state=d.failState,d.node;throw o.error||d.error}return e.prototype.parseSubscripts.call(this,t,r,a)},r.parseSubscript=function(t,r,a,n){var s=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,a)return n.stop=!0,t;this.next();var i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!a&&this.shouldParseTypes()&&this.match(47)){var o=this.startNodeAt(r);o.callee=t;var d=this.tryParse((function(){return o.typeArguments=s.flowParseTypeParameterInstantiationCallOrNew(),s.expect(10),o.arguments=e.prototype.parseCallExpressionArguments.call(s,11,!1),n.optionalChainMember&&(o.optional=!1),s.finishCallExpression(o,n.optionalChainMember)}));if(d.node)return d.error&&(this.state=d.failState),d.node}return e.prototype.parseSubscript.call(this,t,r,a,n)},r.parseNewCallee=function(t){var r=this;e.prototype.parseNewCallee.call(this,t);var a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse((function(){return r.flowParseTypeParameterInstantiationCallOrNew()})).node),t.typeArguments=a},r.parseAsyncArrowWithTypeParameters=function(t){var r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return e.prototype.parseArrowExpression.call(this,r,void 0,!0)},r.readToken_mult_modulo=function(t){var r=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===r&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();e.prototype.readToken_mult_modulo.call(this,t)},r.readToken_pipe_amp=function(t){var r=this.input.charCodeAt(this.state.pos+1);124!==t||125!==r?e.prototype.readToken_pipe_amp.call(this,t):this.finishOp(9,2)},r.parseTopLevel=function(t,r){var a=e.prototype.parseTopLevel.call(this,t,r);return this.state.hasFlowComment&&this.raise(vT.UnterminatedFlowComment,this.state.curPosition()),a},r.skipBlockComment=function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return e.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(vT.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)},r.skipFlowComment=function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),a=this.input.charCodeAt(t+e+1);return 58===r&&58===a?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==a&&t},r.hasFlowCommentCompletion=function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(kR.UnterminatedComment,this.state.curPosition())},r.flowEnumErrorBooleanMemberNotInitialized=function(e,t){var r=t.enumName,a=t.memberName;this.raise(vT.EnumBooleanMemberNotInitialized,e,{memberName:a,enumName:r})},r.flowEnumErrorInvalidMemberInitializer=function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?vT.EnumInvalidMemberInitializerSymbolType:vT.EnumInvalidMemberInitializerPrimaryType:vT.EnumInvalidMemberInitializerUnknownType,e,t)},r.flowEnumErrorNumberMemberNotInitialized=function(e,t){this.raise(vT.EnumNumberMemberNotInitialized,e,t)},r.flowEnumErrorStringMemberInconsistentlyInitialized=function(e,t){this.raise(vT.EnumStringMemberInconsistentlyInitialized,e,t)},r.flowEnumMemberInit=function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 134:var a=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:a.loc.start,value:a}:{type:"invalid",loc:t};case 133:var n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t};case 85:case 86:var s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}},r.flowEnumMemberRaw=function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}},r.flowEnumCheckExplicitTypeMismatch=function(e,t,r){var a=t.explicitType;null!==a&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)},r.flowEnumMembers=function(e){for(var t=e.enumName,r=e.explicitType,a=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},s=!1;!this.match(8);){if(this.eat(21)){s=!0;break}var i=this.startNode(),o=this.flowEnumMemberRaw(),d=o.id,c=o.init,l=d.name;if(""!==l){/^[a-z]/.test(l)&&this.raise(vT.EnumInvalidMemberName,d,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),a.has(l)&&this.raise(vT.EnumDuplicateMemberName,d,{memberName:l,enumName:t}),a.add(l);var u={enumName:t,explicitType:r,memberName:l};switch(i.id=d,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"boolean"),i.init=c.value,n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"number"),i.init=c.value,n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.loc,u,"string"),i.init=c.value,n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,u);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,u);break;default:n.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:s}},r.flowEnumStringMembers=function(e,t,r){var a=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n=0;n=f){for(var g=0,h=o.defaultedMembers;g=f){for(var y=0,b=o.defaultedMembers;y",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},_T=CR(wT||(wT=S(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){return"Expected corresponding JSX closing tag for <"+e.openingTagName+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected;return"Unexpected token `"+t+"`. Did you mean `"+e.HTMLEntity+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function CT(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function kT(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return kT(e.object)+"."+kT(e.property);throw new Error("Node had unexpected type: "+e.type)}var PT,IT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.jsxReadToken=function(){for(var t="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(_T.UnterminatedJsxContent,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);switch(a){case 60:case 123:return this.state.pos===this.state.start?void(60===a&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):e.prototype.getTokenFromCode.call(this,a)):(t+=this.input.slice(r,this.state.pos),void this.finishToken(141,t));case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;default:UE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}},r.jsxReadNewLine=function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t},r.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(kR.UnterminatedString,this.state.startLoc);var a=this.input.charCodeAt(this.state.pos);if(a===e)break;38===a?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):UE(a)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(133,t)},r.jsxReadEntity=function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var a=0,n=!1;a++<10&&this.state.pos1)for(var a=0;a0?!(a&jE.FLAG_TS_ENUM)||!!(a&jE.FLAG_TS_CONST_ENUM)!==(4&n)>0:a&jE.FLAG_CLASS&&(8&n)>0?!!(t.names.get(r)&CE.Lexical)&&!!(a&jE.KIND_VALUE):!!(a&jE.KIND_TYPE&&(1&n)>0)||e.prototype.isRedeclaredInScope.call(this,t,r,a)},r.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var a=this.scopeStack.length-1;a>=0;a--){var n=this.scopeStack[a].tsNames.get(r);if((1&n)>0||(16&n)>0)return}e.prototype.checkLocalExport.call(this,t)}},l(t)}(PE),OT=function(e){return"ParenthesizedExpression"===e.type?OT(e.expression):e},FT={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},BT=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.toAssignable=function(e,t){var r,a;void 0===t&&(t=!1);var n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(n=OT(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(kR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(kR.InvalidParenthesizedAssignment,e):this.raise(kR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var s=0,i=e.properties.length,o=i-1;s() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."}});function HT(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function GT(e){return"private"===e||"public"===e||"protected"===e}function qT(e){return"in"===e||"out"===e}var WT,VT=function(e){return function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n0&&(this.raise(kR.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(UT.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===a.kind){if(1!==a[n].length)this.raise(kR.BadSetterArity,this.state.curPosition());else{var i=a[n][0];this.isThisParam(i)&&this.raise(UT.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===i.type&&i.optional&&this.raise(UT.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===i.type&&this.raise(UT.SetAccesorCannotHaveRestParameter,this.state.curPosition())}a[s]&&this.raise(UT.SetAccesorCannotHaveReturnType,a[s])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}var o=r;t&&(o.readonly=!0);var d=this.tsTryParseTypeAnnotation();return d&&(o.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(o,"TSPropertySignature")},r.tsParseTypeMember=function(){var t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){var r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);var a=this.tsTryParseIndexSignature(t);return a||(e.prototype.parsePropertyName.call(this,t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,e.prototype.parsePropertyName.call(this,t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))},r.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},r.tsParseObjectTypeMembers=function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e},r.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))},r.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")},r.tsParseMappedType=function(){var e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")},r.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach((function(t){var a=t.type;!r||"TSRestType"===a||"TSOptionalType"===a||"TSNamedTupleMember"===a&&t.optional||e.raise(UT.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===a&&t.optional||"TSOptionalType"===a)})),this.finishNode(t,"TSTupleType")},r.tsParseTupleElementType=function(){var e,t,r,a,n,s=this.state.startLoc,i=this.eat(21),o=sE(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){r=!0;var d=this.state.startLoc,c=this.state.value,l=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(d),c),this.expect(17),this.expect(14),a=this.tsParseType()):(e=!1,a=l,this.expect(17))}else a=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAtNode(t)).optional=r,n.label=t,n.elementType=a,this.eat(17)&&(n.optional=!0,this.raise(UT.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAtNode(a)).optional=r,this.raise(UT.InvalidTupleMemberLabel,a),n.label=a,n.elementType=this.tsParseType()),a=this.finishNode(n,"TSNamedTupleMember");else if(r){var u=this.startNodeAtNode(a);u.typeAnnotation=a,a=this.finishNode(u,"TSOptionalType")}if(i){var p=this.startNodeAt(s);p.typeAnnotation=a,a=this.finishNode(p,"TSRestType")}return a},r.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")},r.tsParseFunctionOrConstructorType=function(e,t){var r=this,a=this.startNode();return"TSConstructorType"===e&&(a.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((function(){return r.tsFillSignature(19,a)})),this.finishNode(a,e)},r.tsParseLiteralTypeNode=function(){var t=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:t.literal=e.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")},r.tsParseTemplateLiteralType=function(){var t=this.startNode();return t.literal=e.prototype.parseTemplate.call(this,!1),this.finishNode(t,"TSLiteralType")},r.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():e.prototype.parseTemplateSubstitution.call(this)},r.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},r.tsParseNonArrayType=function(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var r=this.state.type;if(aE(r)||88===r||84===r){var a=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":HT(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}this.unexpected()},r.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e},r.tsParseTypeOperator=function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},r.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(UT.UnexpectedReadonly,e)}},r.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse((function(){return e.tsParseConstraintForInferType()})),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},r.tsParseConstraintForInferType=function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseType()}));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}},r.tsParseTypeOperatorOrHigher=function(){var e=this;return mE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},r.tsParseUnionOrIntersectionType=function(e,t,r){var a=this.startNode(),n=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||n?(a.types=s,this.finishNode(a,e)):s[0]},r.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},r.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},r.tsIsStartOfFunctionType=function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},r.tsSkipParameterStart=function(){if(aE(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(s){return!1}}if(this.match(0)){this.next();var a=this.state.errors,n=a.length;try{return e.prototype.parseBindingList.call(this,3,93,FT.ALLOW_EMPTY),a.length===n}catch(i){return!1}}return!1},r.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1},r.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType((function(){var r=t.startNode();t.expect(e);var a=t.startNode(),n=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(n&&t.match(78)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(a.parameterName=s,a.asserts=!0,a.typeAnnotation=null,s=t.finishNode(a,"TSTypePredicate")):(t.resetStartLocationFromNode(s,a),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var i=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!i)return n?(a.parameterName=t.parseIdentifier(),a.asserts=n,a.typeAnnotation=null,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return a.parameterName=i,a.typeAnnotation=o,a.asserts=n,r.typeAnnotation=t.finishNode(a,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")}))},r.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},r.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},r.tsTryParseType=function(){return this.tsEatThenParseType(14)},r.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e},r.tsParseTypePredicateAsserts=function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!aE(this.state.type)&&!this.match(78))&&(e&&this.raise(kR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},r.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType((function(){e&&r.expect(14),t.typeAnnotation=r.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")},r.tsParseType=function(){var e=this;MT(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(r,"TSConditionalType")},r.isAbstractConstructorSignature=function(){return this.isContextual(124)&&77===this.lookahead().type},r.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},r.tsParseTypeAssertion=function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(UT.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType((function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()})),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},r.tsParseHeritageClause=function(e){var t=this,r=this.state.startLoc,a=this.tsParseDelimitedList("HeritageClauseElement",(function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")}));return a.length||this.raise(UT.EmptyHeritageClauseType,r,{token:e}),a},r.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),aE(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,jE.TYPE_TS_INTERFACE)):(e.id=null,this.raise(UT.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},r.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,jE.TYPE_TS_TYPE),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},r.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},r.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},r.tsInDisallowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsInAllowConditionalTypesContext=function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}},r.tsEatThenParseType=function(e){if(this.match(e))return this.tsNextThenParseType()},r.tsExpectThenParseType=function(e){var t=this;return this.tsInType((function(){return t.expect(e),t.tsParseType()}))},r.tsNextThenParseType=function(){var e=this;return this.tsInType((function(){return e.next(),e.tsParseType()}))},r.tsParseEnumMember=function(){var t=this.startNode();return t.id=this.match(133)?e.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=e.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(t,"TSEnumMember")},r.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?jE.TYPE_TS_CONST_ENUM:jE.TYPE_TS_ENUM),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")},r.tsParseModuleBlock=function(){var t=this.startNode();return this.scope.enter(AE.OTHER),this.expect(5),e.prototype.parseBlockOrModuleBlockBody.call(this,t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")},r.tsParseModuleOrNamespaceDeclaration=function(e,t){if(void 0===t&&(t=!1),e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,jE.TYPE_TS_NAMESPACE),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(AE.TS_MODULE),this.prodParam.enter(iT.PARAM),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")},r.tsParseAmbientExternalModuleDeclaration=function(t){return this.isContextual(112)?(t.global=!0,t.id=this.parseIdentifier()):this.match(133)?t.id=e.prototype.parseStringLiteral.call(this,this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(AE.TS_MODULE),this.prodParam.enter(iT.PARAM),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")},r.tsParseImportEqualsDeclaration=function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,jE.TYPE_TS_VALUE_IMPORT),this.expect(29);var a=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==a.type&&this.raise(UT.ImportAliasHasImportType,a),e.moduleReference=a,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},r.tsIsExternalModuleReference=function(){return this.isContextual(119)&&40===this.lookaheadCharCode()},r.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},r.tsParseExternalModuleReference=function(){var t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),t.expression=e.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")},r.tsLookAhead=function(e){var t=this.state.clone(),r=e();return this.state=t,r},r.tsTryParseAndCatch=function(e){var t=this.tryParse((function(t){return e()||t()}));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node},r.tsTryParse=function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t},r.tsTryParseDeclare=function(t){var r=this;if(!this.isLineTerminator()){var a,n=this.state.type;return this.isContextual(100)&&(n=74,a="let"),this.tsInAmbientContext((function(){switch(n){case 68:return t.declare=!0,e.prototype.parseFunctionStatement.call(r,t,!1,!1);case 80:return t.declare=!0,r.parseClass(t,!0,!1);case 126:return r.tsParseEnumDeclaration(t,{declare:!0});case 112:return r.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return r.match(75)&&r.isLookaheadContextual("enum")?(r.expect(75),r.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,r.parseVarStatement(t,a||r.state.value,!0));case 129:var s=r.tsParseInterfaceDeclaration(t,{declare:!0});if(s)return s;default:if(aE(n))return r.tsParseDeclaration(t,r.state.value,!0,null)}}))}},r.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},r.tsParseExpressionStatement=function(e,t,r){switch(t.name){case"declare":var a=this.tsTryParseDeclare(e);return a&&(a.declare=!0),a;case"global":if(this.match(5)){this.scope.enter(AE.TS_MODULE),this.prodParam.enter(iT.PARAM);var n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}},r.tsParseDeclaration=function(e,t,r,a){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||aE(this.state.type)))return this.tsParseAbstractDeclaration(e,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(aE(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&aE(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&aE(this.state.type))return this.tsParseTypeAliasDeclaration(e)}},r.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},r.tsTryParseGenericAsyncArrowFunction=function(t){var r=this;if(this.match(47)){var a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var n=this.tsTryParseAndCatch((function(){var a=r.startNodeAt(t);return a.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),a}));if(this.state.maybeInArrowParameters=a,n)return e.prototype.parseArrowExpression.call(this,n,null,!0)}},r.tsParseTypeArgumentsInExpression=function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()},r.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType((function(){return e.tsInNoContext((function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))}))})),0===t.params.length?this.raise(UT.EmptyTypeArguments,t):this.state.inType||this.curContext()!==FR.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")},r.tsIsDeclarationStart=function(){return yE(this.state.type)},r.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},r.parseAssignableListItem=function(e,t){var r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);var n=a.accessibility,s=a.override,i=a.readonly;e&FT.IS_CONSTRUCTOR_PARAMS||!(n||i||s)||this.raise(UT.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);var d=this.parseMaybeDefault(o.loc.start,o);if(n||i||s){var c=this.startNodeAt(r);return t.length&&(c.decorators=t),n&&(c.accessibility=n),i&&(c.readonly=i),s&&(c.override=s),"Identifier"!==d.type&&"AssignmentPattern"!==d.type&&this.raise(UT.UnsupportedParameterPropertyKind,c),c.parameter=d,this.finishNode(c,"TSParameterProperty")}return t.length&&(o.decorators=t),d},r.isSimpleParameter=function(t){return"TSParameterProperty"===t.type&&e.prototype.isSimpleParameter.call(this,t.parameter)||e.prototype.isSimpleParameter.call(this,t)},r.tsDisallowOptionalPattern=function(e){for(var t=0,r=e.params;ta&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){var i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType((function(){return s.next(),s.match(75)?(n&&s.raise(kR.UnexpectedKeyword,s.state.startLoc,{keyword:"const"}),s.tsParseTypeReference()):s.tsParseType()})),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,a)}return e.prototype.parseExprOp.call(this,t,r,a)},r.checkReservedWord=function(t,r,a,n){this.state.isAmbientContext||e.prototype.checkReservedWord.call(this,t,r,a,n)},r.checkImportReflection=function(t){e.prototype.checkImportReflection.call(this,t),t.module&&"value"!==t.importKind&&this.raise(UT.ImportReflectionHasImportType,t.specifiers[0].loc.start)},r.checkDuplicateExports=function(){},r.isPotentialImportPhase=function(t){if(e.prototype.isPotentialImportPhase.call(this,t))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return t?123===r||42===r:61!==r}return!t&&this.isContextual(87)},r.applyImportPhase=function(t,r,a,n){e.prototype.applyImportPhase.call(this,t,r,a,n),r?t.exportKind="type"===a?"type":"value":t.importKind="type"===a||"typeof"===a?a:"value"},r.parseImport=function(t){if(this.match(133))return t.importKind="value",e.prototype.parseImport.call(this,t);var r;if(aE(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){var a=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,a);r=e.prototype.parseImportSpecifiersAndAfter.call(this,t,a)}else r=e.prototype.parseImport.call(this,t);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(UT.TypeImportCannotSpecifyDefaultAndNamed,r),r},r.parseExport=function(t,r){if(this.match(83)){this.next();var a=t,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(a,!1):a.importKind="value",this.tsParseImportEqualsDeclaration(a,n,!0)}if(this.eat(29)){var s=t;return s.expression=e.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}if(this.eatContextual(93)){var i=t;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t,r)},r.isAbstractClass=function(){return this.isContextual(124)&&80===this.lookahead().type},r.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultExpression.call(this)},r.parseVarStatement=function(t,r,a){void 0===a&&(a=!1);var n=this.state.isAmbientContext,s=e.prototype.parseVarStatement.call(this,t,r,a||n);if(!n)return s;for(var i=0,o=s.declarations;i0))&&JT(e.object)}function KT(e,t){var r,a=e.type;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===a){var n=e.value;if("string"===typeof n||"boolean"===typeof n)return!0}}else if("StringLiteral"===a||"BooleanLiteral"===a)return!0;return!(!YT(e,t)&&!XT(e,t))||"TemplateLiteral"===a&&0===e.expressions.length||!!zT(e)}function YT(e,t){return t?"Literal"===e.type&&("number"===typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function XT(e,t){if("UnaryExpression"===e.type){var r=e.operator,a=e.argument;if("-"===r&&YT(a,t))return!0}return!1}function JT(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&JT(e.object)}var QT=CR(WT||(WT=S(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),$T=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.parsePlaceholder=function(t){if(this.match(144)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=e.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(r,t)}},r.finishPlaceholder=function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r},r.getTokenFromCode=function(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):e.prototype.getTokenFromCode.call(this,t)},r.parseExprAtom=function(t){return this.parsePlaceholder("Expression")||e.prototype.parseExprAtom.call(this,t)},r.parseIdentifier=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseIdentifier.call(this,t)},r.checkReservedWord=function(t,r,a,n){void 0!==t&&e.prototype.checkReservedWord.call(this,t,r,a,n)},r.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||e.prototype.parseBindingAtom.call(this)},r.isValidLVal=function(t,r,a){return"Placeholder"===t||e.prototype.isValidLVal.call(this,t,r,a)},r.toAssignable=function(t,r){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":e.prototype.toAssignable.call(this,t,r)},r.chStartsBindingIdentifier=function(t,r){return!!e.prototype.chStartsBindingIdentifier.call(this,t,r)||144===this.lookahead().type},r.verifyBreakContinue=function(t,r){t.label&&"Placeholder"===t.label.type||e.prototype.verifyBreakContinue.call(this,t,r)},r.parseExpressionStatement=function(t,r){var a;if("Placeholder"!==r.type||null!=(a=r.extra)&&a.parenthesized)return e.prototype.parseExpressionStatement.call(this,t,r);if(this.match(14)){var n=t;return n.label=this.finishPlaceholder(r,"Identifier"),this.next(),n.body=e.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(n,"LabeledStatement")}this.semicolon();var s=t;return s.name=r.name,this.finishPlaceholder(s,"Statement")},r.parseBlock=function(t,r,a){return this.parsePlaceholder("BlockStatement")||e.prototype.parseBlock.call(this,t,r,a)},r.parseFunctionId=function(t){return this.parsePlaceholder("Identifier")||e.prototype.parseFunctionId.call(this,t)},r.parseClass=function(t,r,a){var n=r?"ClassDeclaration":"ClassExpression";this.next();var s=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(a||!r)return t.id=null,t.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(t,n);throw this.raise(QT.ClassNameIsRequired,this.state.startLoc)}t.id=i}else this.parseClassId(t,r,a);return e.prototype.parseClassSuper.call(this,t),t.body=this.parsePlaceholder("ClassBody")||e.prototype.parseClassBody.call(this,!!t.superClass,s),this.finishNode(t,n)},r.parseExport=function(t,r){var a=this.parsePlaceholder("Identifier");if(!a)return e.prototype.parseExport.call(this,t,r);var n=t;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(a,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var s=this.startNode();return s.exported=a,n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],e.prototype.parseExport.call(this,n,r)},r.isExportDefaultSpecifier=function(){if(this.match(65)){var t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(bE(144),this.nextTokenStartSince(t+4)))return!0}return e.prototype.isExportDefaultSpecifier.call(this)},r.maybeParseExportDefaultSpecifier=function(t,r){var a;return!(null==(a=t.specifiers)||!a.length)||e.prototype.maybeParseExportDefaultSpecifier.call(this,t,r)},r.checkExport=function(t){var r=t.specifiers;null!=r&&r.length&&(t.specifiers=r.filter((function(e){return"Placeholder"===e.exported.type}))),e.prototype.checkExport.call(this,t),t.specifiers=r},r.parseImport=function(t){var r=this.parsePlaceholder("Identifier");if(!r)return e.prototype.parseImport.call(this,t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");var a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishNode(a,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")},r.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||e.prototype.parseImportSource.call(this)},r.assertNoSpace=function(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(QT.UnexpectedSpace,this.state.lastTokEndLoc)},l(t)}(e)},ZT=function(e){return function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var r=t.prototype;return r.parseV8Intrinsic=function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),aE(this.state.type)){var r=this.parseIdentifierName(),a=this.createIdentifier(t,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(e)}},r.parseExprAtom=function(t){return this.parseV8Intrinsic()||e.prototype.parseExprAtom.call(this,t)},l(t)}(e)},ew=["minimal","fsharp","hack","smart"],tw=["^^","@@","^","%","#"];function rw(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!==typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!==typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var a,n=e.get("pipelineOperator").proposal;if(!ew.includes(n)){var s=ew.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+s+".")}var i="hash"===(null==(a=e.get("recordAndTuple"))?void 0:a.syntaxType);if("hack"===n){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var o=e.get("pipelineOperator").topicToken;if(!tw.includes(o)){var d=tw.map((function(e){return'"'+e+'"'})).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+d+".")}if("#"===o&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}else if("smart"===n&&i)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAttributes")&&e.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){var c=e.get("recordAndTuple").syntaxType;if(null!=c){var l=["hash","bar"];if(!l.includes(c))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+l.map((function(e){return"'"+e+"'"})).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var u=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw u.missingPlugins="doExpressions",u}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var aw={estree:NR,jsx:IT,flow:AT,typescript:VT,v8intrinsic:ZT,placeholders:$T},nw=Object.keys(aw),sw={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function iw(e){if(null==e)return Object.assign({},sw);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var t={},r=0,a=Object.keys(sw);r=c&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else o.left=i;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(i,this.finishNode(o,"AssignmentExpression")),o}return r&&this.checkExpressionErrors(e,!0),i},r.parseMaybeConditional=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprOps(e);return this.shouldExitDescending(a,r)?a:this.parseConditional(a,t,e)},r.parseConditional=function(e,t,r){if(this.eat(17)){var a=this.startNodeAt(t);return a.test=e,a.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),a.alternate=this.parseMaybeAssign(),this.finishNode(a,"ConditionalExpression")}return e},r.parseMaybeUnaryOrPrivate=function(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)},r.parseExprOps=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(a,r)?a:this.parseExprOp(a,t,-1)},r.parseExprOp=function(e,t,r){if(this.isPrivateName(e)){var a=this.getPrivateNameSV(e);(r>=vE(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(kR.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}var n=this.state.type;if(fE(n)&&(this.prodParam.hasIn||!this.match(58))){var s=vE(n);if(s>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var i=this.startNodeAt(t);i.left=e,i.operator=this.state.value;var o=41===n||42===n,d=40===n;if(d&&(s=vE(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(kR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);var c=this.finishNode(i,o||d?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(d&&(41===l||42===l)||o&&40===l)throw this.raise(kR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e},r.parseExprOpRightExpr=function(e,t){var r=this,a=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((function(){return r.parseHackPipeBody()}));case"smart":return this.withTopicBindingContext((function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(kR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),a)}));case"fsharp":return this.withSoloAwaitPermittingContext((function(){return r.parseFSharpPipelineBody(t)}))}return this.parseExprOpBaseRightExpr(e,t)},r.parseExprOpBaseRightExpr=function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,xE(e)?t-1:t)},r.parseHackPipeBody=function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!wR.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(kR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(kR.PipeTopicUnused,t),r},r.checkExponentialAfterUnary=function(e){this.match(57)&&this.raise(kR.UnexpectedTokenUnaryExponentiation,e.argument)},r.parseMaybeUnary=function(e,t){var r=this.state.startLoc,a=this.isContextual(96);if(a&&this.recordAwaitIfAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var s=this.match(34),i=this.startNode();if(hE(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var o=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){var d=i.argument;"Identifier"===d.type?this.raise(kR.StrictDelete,i):this.hasPropertyAsPrivateName(d)&&this.raise(kR.DeletePrivateField,i)}if(!s)return t||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var c=this.parseUpdate(i,s,e);if(a){var l=this.state.type;if((this.hasPlugin("v8intrinsic")?dE(l):dE(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(kR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return c},r.parseUpdate=function(e,t,r){if(t){var a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}var n=this.state.startLoc,s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return s;for(;gE(this.state.type)&&!this.canInsertSemicolon();){var i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(i,"UpdateExpression"))}return s},r.parseExprSubscripts=function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return this.shouldExitDescending(a,r)?a:this.parseSubscripts(a,t)},r.parseSubscripts=function(e,t,r){var a={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,a),a.maybeAsyncArrow=!1}while(!a.stop);return e},r.parseSubscript=function(e,t,r,a){var n=this.state.type;if(!r&&15===n)return this.parseBind(e,t,r,a);if(RE(n))return this.parseTaggedTemplateExpression(e,t,a);var s=!1;if(18===n){if(r&&(this.raise(kR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return a.stop=!0,e;a.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,a,s);var i=this.eat(0);return i||s||this.eat(16)?this.parseMember(e,t,a,i,s):(a.stop=!0,e)},r.parseMember=function(e,t,r,a,n){var s=this.startNodeAt(t);return s.object=e,s.computed=a,a?(s.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(kR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")},r.parseBind=function(e,t,r,a){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)},r.parseCoverCallAndAsyncArrowHead=function(e,t,r,a){var n=this.state.maybeInArrowParameters,s=null;this.state.maybeInArrowParameters=!0,this.next();var i=this.startNodeAt(t);i.callee=e;var o=r.maybeAsyncArrow,d=r.optionalChainMember;o&&(this.expressionScope.enter(nT()),s=new lT),d&&(i.optional=a),i.arguments=a?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,i,s);var c=this.finishCallExpression(i,d);return o&&this.shouldParseAsyncArrow()&&!a?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c},r.toReferencedArguments=function(e,t){this.toReferencedListDeep(e.arguments,t)},r.parseTaggedTemplateExpression=function(e,t,r){var a=this.startNodeAt(t);return a.tag=e,a.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(kR.OptionalChainingNoTemplate,t),this.finishNode(a,"TaggedTemplateExpression")},r.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt},r.expectImportAttributesPlugin=function(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")},r.finishCallExpression=function(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(kR.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(var r=0,a=e.arguments;r1?((t=this.startNodeAt(o)).expressions=d,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,p)):t=d[0],this.wrapParenthesis(r,t))},r.wrapParenthesis=function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")},r.shouldParseArrow=function(e){return!this.canInsertSemicolon()},r.parseArrow=function(e){if(this.eat(19))return e},r.parseParenItem=function(e,t){return e},r.parseNewOrNewTarget=function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(kR.UnexpectedNewTarget,r),r}return this.parseNew(e)},r.parseNew=function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")},r.parseNewCallee=function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(kR.ImportCallNotNewExpression,r)},r.parseTemplateElement=function(e){var t=this.state,r=t.start,a=t.startLoc,n=t.end,s=t.value,i=r+1,o=this.startNodeAt(mR(a,1));null===s&&(e||this.raise(kR.InvalidEscapeSequenceTemplate,mR(this.state.firstInvalidTemplateEscapePos,1)));var d=this.match(24),c=d?-1:-2,l=n+c;o.value={raw:this.input.slice(i,l).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},o.tail=d,this.next();var u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,mR(this.state.lastTokEndLoc,c)),u},r.parseTemplate=function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),a=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),a.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=a,this.finishNode(t,"TemplateLiteral")},r.parseTemplateSubstitution=function(){return this.parseExpression()},r.parseObjectLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=Object.create(null),i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(i)i=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var d=void 0;t?d=this.parseBindingProperty():(d=this.parsePropertyDefinition(a),this.checkProto(d,r,s,a)),r&&!this.isObjectProperty(d)&&"SpreadElement"!==d.type&&this.raise(kR.InvalidRecordProperty,d),d.shorthand&&this.addExtra(d,"shorthand",!0),o.properties.push(d)}this.next(),this.state.inFSharpPipelineDirectBody=n;var c="ObjectExpression";return t?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)},r.addTrailingCommaExtraToNode=function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},r.maybeAsyncOrAccessorProp=function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},r.parsePropertyDefinition=function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(kR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,a=this.startNode(),n=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(a.decorators=t,t=[]),a.method=!1,e&&(r=this.state.startLoc);var i=this.eat(55);this.parsePropertyNamePrefixOperator(a);var o=this.state.containsEsc;if(this.parsePropertyName(a,e),!i&&!o&&this.maybeAsyncOrAccessorProp(a)){var d=a.key,c=d.name;"async"!==c||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(d),i=this.eat(55),this.parsePropertyName(a)),"get"!==c&&"set"!==c||(s=!0,this.resetPreviousNodeTrailingComments(d),a.kind=c,this.match(55)&&(i=!0,this.raise(kR.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,r,i,n,!1,s,e)},r.getGetterSetterExpectedParamCount=function(e){return"get"===e.kind?0:1},r.getObjectOrClassMethodParams=function(e){return e.params},r.checkGetterSetterParams=function(e){var t,r=this.getGetterSetterExpectedParamCount(e),a=this.getObjectOrClassMethodParams(e);a.length!==r&&this.raise("get"===e.kind?kR.BadGetterArity:kR.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=a[a.length-1])?void 0:t.type)&&this.raise(kR.BadSetterRestParameter,e)},r.parseObjectMethod=function(e,t,r,a,n){if(n){var s=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(s),s}if(r||t||this.match(10))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")},r.parseObjectProperty=function(e,t,r,a){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(a),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,gT(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=a?null===a.shorthandAssignLoc&&(a.shorthandAssignLoc=n):this.raise(kR.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,gT(e.key))}else e.value=gT(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}},r.parseObjPropValue=function(e,t,r,a,n,s,i){var o=this.parseObjectMethod(e,r,a,n,s)||this.parseObjectProperty(e,t,n,i);return o||this.unexpected(),o},r.parsePropertyName=function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,a=this.state,n=a.type,s=a.value;if(sE(n))r=this.parseIdentifier(!0);else switch(n){case 134:r=this.parseNumericLiteral(s);break;case 133:r=this.parseStringLiteral(s);break;case 135:r=this.parseBigIntLiteral(s);break;case 136:r=this.parseDecimalLiteral(s);break;case 138:var i=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=i):this.raise(kR.UnexpectedPrivateField,i),r=this.parsePrivateName();break;default:this.unexpected()}e.key=r,138!==n&&(e.computed=!1)}},r.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=t},r.parseMethod=function(e,t,r,a,n,s,i){void 0===i&&(i=!1),this.initFunction(e,r),e.generator=t,this.scope.enter(AE.FUNCTION|AE.SUPER|(i?AE.CLASS:0)|(n?AE.DIRECT_SUPER:0)),this.prodParam.enter(dT(r,e.generator)),this.parseFunctionParams(e,a);var o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o},r.parseArrayLike=function(e,t,r,a){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")},r.parseArrowExpression=function(e,t,r,a){this.scope.enter(AE.FUNCTION|AE.ARROW);var n=dT(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=iT.PARAM_IN),this.prodParam.enter(n),this.initFunction(e,r);var s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,a)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")},r.setArrowFunctionParameters=function(e,t,r){this.toAssignableList(t,r,!1),e.params=t},r.parseFunctionBodyAndFinish=function(e,t,r){return void 0===r&&(r=!1),this.parseFunctionBody(e,!1,r),this.finishNode(e,t)},r.parseFunctionBody=function(e,t,r){var a=this;void 0===r&&(r=!1);var n=t&&!this.match(5);if(this.expressionScope.enter(sT()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|iT.PARAM_RETURN),e.body=this.parseBlock(!0,!1,(function(n){var i=!a.isSimpleParamList(e.params);n&&i&&a.raise(kR.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var o=!s&&a.state.strict;a.checkParams(e,!a.state.strict&&!t&&!r&&!i,t,o),a.state.strict&&e.id&&a.checkIdentifier(e.id,jE.TYPE_OUTSIDE,o)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()},r.isSimpleParameter=function(e){return"Identifier"===e.type},r.isSimpleParamList=function(e){for(var t=0,r=e.length;t10)&&SE(e))if(r&&Oi(e))this.raise(kR.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?a?Ni:Ii:Pi)(e,this.inModule))this.raise(kR.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(kR.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(kR.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(kR.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(kR.ArgumentsInClass,t)},r.recordAwaitIfAllowed=function(){var e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e},r.parseAwait=function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(kR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(kR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")},r.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||RE(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e},r.parseYield=function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(kR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")},r.parseImportCall=function(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")},r.checkPipelineAtInfixOperator=function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(kR.PipelineHeadSequenceExpression,t)},r.parseSmartPipelineBodyInStyle=function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var a=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),a.expression=e,this.finishNode(a,"PipelineTopicExpression")},r.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},r.checkSmartPipeTopicBodyEarlyErrors=function(e){if(this.match(19))throw this.raise(kR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(kR.PipelineTopicUnused,e)},r.withTopicBindingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSmartMixTopicForbiddingContext=function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},r.withSoloAwaitPermittingContext=function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}},r.allowInAnd=function(e){var t=this.prodParam.currentFlags();if(iT.PARAM_IN&~t){this.prodParam.enter(t|iT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.disallowInAnd=function(e){var t=this.prodParam.currentFlags();if(iT.PARAM_IN&t){this.prodParam.enter(t&~iT.PARAM_IN);try{return e()}finally{this.prodParam.exit()}}return e()},r.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},r.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},r.topicReferenceWasUsedInCurrentContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},r.parseFSharpPipelineBody=function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var a=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,a},r.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")},r.parsePropertyNamePrefixOperator=function(e){},l(t)}(BT),dw={kind:VE.Loop},cw={kind:VE.Switch},lw={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},uw={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},pw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,fw=new RegExp("in(?:stanceof)?","y");function gw(e,t){for(var r=0;r0)for(var a=0,n=Array.from(this.scope.undefinedExports);a0?("boolean"!==typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(kR.DecoratorsBeforeAfterExport,t.decorators[0]),(a=t.decorators).unshift.apply(a,e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t},r.canHaveLeadingDecorator=function(){return this.match(80)},r.parseDecorators=function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(kR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(kR.UnexpectedLeadingDecorator,this.state.startLoc);return t},r.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var a=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(a,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(kR.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var s=this.startNodeAt(r);s.object=t,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,t=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")},r.parseMaybeDecoratorArguments=function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e},r.parseBreakContinueStatement=function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},r.verifyBreakContinue=function(e,t){var r;for(r=0;r=0;o--){var d=this.state.labels[o];if(d.statementStart!==e.start)break;d.statementStart=this.state.start,d.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=a&uw.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},r.parseExpressionStatement=function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},r.parseBlock=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!0);var a=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(AE.OTHER),this.parseBlockBody(a,e,!1,8,r),t&&this.scope.exit(),this.finishNode(a,"BlockStatement")},r.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},r.parseBlockBody=function(e,t,r,a,n){var s=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?i:void 0,r,a,n)},r.parseBlockOrModuleBlockBody=function(e,t,r,a,n){for(var s=this.state.strict,i=!1,o=!1;!this.match(a);){var d=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(d)){var c=this.stmtToDirective(d);t.push(c),i||"use strict"!==c.value.value||(i=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(d)}null==n||n.call(this,i),s||this.setStrict(!1),this.next()},r.parseFor=function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return r.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")},r.parseForIn=function(e,t,r){var a=this,n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(kR.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(kR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((function(){return a.parseStatement()})),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},r.parseVar=function(e,t,r,a){void 0===a&&(a=!1);var n=e.declarations=[];for(e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),s.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==s.init||a||("Identifier"===s.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(kR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(kR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(s,"VariableDeclarator")),!this.eat(12))break}return e},r.parseVarId=function(e,t){var r=this.parseBindingAtom();"using"!==t&&"await using"!==t||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(kR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?jE.TYPE_VAR:jE.TYPE_LEXICAL),e.id=r},r.parseAsyncFunctionExpression=function(e){return this.parseFunction(e,lw.Async)},r.parseFunction=function(e,t){var r=this;void 0===t&&(t=lw.Expression);var a=t&lw.HangingDeclaration,n=!!(t&lw.Declaration),s=n&&!(t&lw.NullableId),i=!!(t&lw.Async);this.initFunction(e,i),this.match(55)&&(a&&this.raise(kR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(s));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(AE.FUNCTION),this.prodParam.enter(dT(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((function(){r.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e},r.parseFunctionId=function(e){return e||aE(this.state.type)?this.parseIdentifier():null},r.parseFunctionParams=function(e,t){this.expect(10),this.expressionScope.enter(rT()),e.params=this.parseBindingList(11,41,FT.IS_FUNCTION_PARAMS|(t?FT.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},r.registerFunctionStatementId=function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?jE.TYPE_VAR:jE.TYPE_LEXICAL:jE.TYPE_FUNCTION,e.id.loc.start)},r.parseClass=function(e,t,r){this.next();var a=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,a),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},r.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},r.isClassMethod=function(){return this.match(10)},r.nameIsConstructor=function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value},r.isNonstaticConstructor=function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)},r.parseClassBody=function(e,t){var r=this;this.classScope.enter();var a={hadConstructor:!1,hadSuperClass:e},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((function(){for(;!r.match(8);)if(r.eat(13)){if(n.length>0)throw r.raise(kR.DecoratorSemicolon,r.state.lastTokEndLoc)}else if(r.match(26))n.push(r.parseDecorator());else{var e=r.startNode();n.length&&(e.decorators=n,r.resetStartLocationFromNode(e,n[0]),n=[]),r.parseClassMember(s,e,a),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(kR.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),n.length)throw this.raise(kR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")},r.parseClassMemberFromModifier=function(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var a=t;return a.kind="method",a.computed=!1,a.key=r,a.static=!1,this.pushClassMethod(e,a,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1},r.parseClassMember=function(e,t,r){var a=this.isContextual(106);if(a){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,a)},r.parseClassMemberWithIsStatic=function(e,t,r,a){var n=t,s=t,i=t,o=t,d=t,c=n,l=n;if(t.static=a,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";var u=this.match(138);return this.parseClassElementName(c),u?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(kR.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var p=!this.state.containsEsc&&aE(this.state.type),f=this.parseClassElementName(t),g=p?f.name:null,h=this.isPrivateName(f),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",h)return void this.pushClassPrivateMethod(e,s,!1,!1);var y=this.isNonstaticConstructor(n),b=!1;y&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(kR.DuplicateConstructor,f),y&&this.hasPlugin("typescript")&&t.override&&this.raise(kR.OverrideOnConstructor,f),r.hadConstructor=!0,b=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,y,b)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i);else if("async"!==g||this.isLineTerminator())if("get"!==g&&"set"!==g||this.match(55)&&this.isLineTerminator())if("accessor"!==g||this.isLineTerminator())this.isLineTerminator()?h?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,i):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);var v=this.match(138);this.parseClassElementName(i),this.pushClassAccessorProperty(e,d,v)}else{this.resetPreviousNodeTrailingComments(f),c.kind=g;var x=this.match(138);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(kR.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(f);var R=this.eat(55);l.optional&&this.unexpected(m),c.kind="method";var E=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),E?this.pushClassPrivateMethod(e,s,R,!0):(this.isNonstaticConstructor(n)&&this.raise(kR.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,R,!0,!1,!1))}},r.parseClassElementName=function(e){var t=this.state,r=t.type,a=t.value;if(132!==r&&133!==r||!e.static||"prototype"!==a||this.raise(kR.StaticPrototype,this.state.startLoc),138===r){"constructor"===a&&this.raise(kR.ConstructorClassPrivateField,this.state.startLoc);var n=this.parsePrivateName();return e.key=n,n}return this.parsePropertyName(e),e.key},r.parseClassStaticBlock=function(e,t){var r;this.scope.enter(AE.CLASS|AE.STATIC_BLOCK|AE.SUPER);var a=this.state.labels;this.state.labels=[],this.prodParam.enter(iT.PARAM);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=a,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(kR.DecoratorStaticBlock,t)},r.pushClassProperty=function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(kR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))},r.pushClassPrivateProperty=function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),_E.OTHER,r.key.loc.start)},r.pushClassAccessorProperty=function(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(kR.ConstructorClassField,t.key);var a=this.parseClassAccessorProperty(t);e.body.push(a),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),_E.OTHER,a.key.loc.start)},r.pushClassMethod=function(e,t,r,a,n,s){e.body.push(this.parseMethod(t,r,a,n,s,"ClassMethod",!0))},r.pushClassPrivateMethod=function(e,t,r,a){var n=this.parseMethod(t,r,a,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var s="get"===n.kind?n.static?_E.STATIC_GETTER:_E.INSTANCE_GETTER:"set"===n.kind?n.static?_E.STATIC_SETTER:_E.INSTANCE_SETTER:_E.OTHER;this.declareClassPrivateMethodInScope(n,s)},r.declareClassPrivateMethodInScope=function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)},r.parsePostMemberNameModifiers=function(e){},r.parseClassPrivateProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")},r.parseClassProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")},r.parseClassAccessorProperty=function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")},r.parseInitializer=function(e){this.scope.enter(AE.CLASS|AE.SUPER),this.expressionScope.enter(sT()),this.prodParam.enter(iT.PARAM),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},r.parseClassId=function(e,t,r,a){if(void 0===a&&(a=jE.TYPE_CLASS),aE(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,a);else{if(!r&&t)throw this.raise(kR.MissingClassName,this.state.startLoc);e.id=null}},r.parseClassSuper=function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null},r.parseExport=function(e,t){var r=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,r),n=!a||this.eat(12),s=n&&this.eatExportStar(e),i=s&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!i||this.eat(12)),d=a||s;if(s&&!i){if(a&&this.unexpected(),t)throw this.raise(kR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var c,l=this.maybeParseExportNamedSpecifiers(e);if(a&&n&&!s&&!l&&this.unexpected(null,5),i&&o&&this.unexpected(null,98),d||l){if(c=!1,t)throw this.raise(kR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,d)}else c=this.maybeParseExportDeclaration(e);if(d||l||c){var u,p=e;if(this.checkExport(p,!0,!1,!!p.source),"ClassDeclaration"===(null==(u=p.declaration)?void 0:u.type))this.maybeTakeDecorators(t,p.declaration,p);else if(t)throw this.raise(kR.UnsupportedDecoratorExport,e);return this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){var f=e,g=this.parseExportDefaultExpression();if(f.declaration=g,"ClassDeclaration"===g.type)this.maybeTakeDecorators(t,g,f);else if(t)throw this.raise(kR.UnsupportedDecoratorExport,e);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)},r.eatExportStar=function(e){return this.eat(55)},r.maybeParseExportDefaultSpecifier=function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),a=this.startNodeAtNode(r);return a.exported=r,e.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],!0}return!1},r.maybeParseExportNamespaceSpecifier=function(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1},r.maybeParseExportNamedSpecifiers=function(e){if(this.match(5)){var t,r=e;r.specifiers||(r.specifiers=[]);var a="type"===r.exportKind;return(t=r.specifiers).push.apply(t,this.parseExportSpecifiers(a)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1},r.maybeParseExportDeclaration=function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)},r.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")},r.parseExportDefaultExpression=function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,lw.Declaration|lw.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,lw.Declaration|lw.NullableId|lw.Async);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(kR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(kR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t},r.parseExportDeclaration=function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()},r.isExportDefaultSpecifier=function(){var e=this.state.type;if(aE(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(aE(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||aE(this.state.type)&&a)return!0;if(this.match(65)&&a){var n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===n||39===n}return!1},r.parseExportFrom=function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()},r.shouldParseExportDeclaration=function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(kR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(kR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()},r.checkExport=function(e,t,r,a){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s,i=e.declaration;"Identifier"!==i.type||"from"!==i.name||i.end-i.start!==4||null!=(s=i.extra)&&s.parenthesized||this.raise(kR.ExportDefaultFromAsIdentifier,i)}}else if(null!=(n=e.specifiers)&&n.length)for(var o=0,d=e.specifiers;o0&&this.raise(kR.ImportReflectionHasAssertion,t[0].loc.start)}},r.checkJSONModuleImport=function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find((function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(kR.ImportJSONBindingNotDefault,r.loc.start)}}},r.isPotentialImportPhase=function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))},r.applyImportPhase=function(e,t,r,a){t||("module"===r?(this.expectPlugin("importReflection",a),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",a),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",a),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))},r.parseMaybeImportPhase=function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),a=this.state.type;return(sE(a)?98!==a||102===this.lookaheadCharCode():12!==a)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)},r.isPrecedingIdImportPhase=function(e){var t=this.state.type;return aE(t)?98!==t||102===this.lookaheadCharCode():12!==t},r.parseImport=function(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))},r.parseImportSpecifiersAndAfter=function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)},r.parseImportSourceAndAttributes=function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")},r.parseImportSource=function(){return this.match(133)||this.unexpected(),this.parseExprAtom()},r.parseImportSpecifierLocal=function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))},r.finishImportSpecifier=function(e,t,r){return void 0===r&&(r=jE.TYPE_LEXICAL),this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)},r.parseImportAttributes=function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),a=this.state.value;if(t.has(a)&&this.raise(kR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:a}),t.add(a),this.match(133)?r.key=this.parseStringLiteral(a):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(kR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e},r.parseModuleAttributes=function(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(kR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(kR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(kR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e},r.maybeParseImportAttributes=function(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(kR.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t},r.maybeParseDefaultImportSpecifier=function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!sE(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)},r.maybeParseStarImportSpecifier=function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1},r.parseNamedImportSpecifiers=function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(kR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),a=this.match(133),n=this.isContextual(130);r.imported=this.parseModuleExportName();var s=this.parseImportSpecifier(r,a,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}},r.parseImportSpecifier=function(e,t,r,a,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var s=e.imported;if(t)throw this.raise(kR.ImportBindingIsString,e,{importName:s.value});this.checkReservedWord(s.name,e.loc.start,!0,!0),e.local||(e.local=gT(s))}return this.finishImportSpecifier(e,"ImportSpecifier",n)},r.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},l(t)}(ow),mw=function(e){function t(t,r,a){var n;return t=iw(t),(n=e.call(this,t,r)||this).options=t,n.initializeScopes(),n.plugins=a,n.filename=t.sourceFilename,n}f(t,e);var r=t.prototype;return r.getScopeHandler=function(){return PE},r.parse=function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e},l(t)}(hw);function yw(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Rw(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var a=Rw(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",Rw(t,e).parse()}catch(s){}else n.program.sourceType="script";return n}catch(i){try{return t.sourceType="script",Rw(t,e).parse()}catch(o){}throw i}}function bw(e,t){var r=Rw(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function vw(e){for(var t={},r=0,a=Object.keys(e);r!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Aw.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Aw}function _w(e){return null!=e&&e&&"false"!==e&&"0"!==e}var Cw=(_w(di.env.BABEL_8_BREAKING),jw()),kw={exports:{}},Pw=String,Iw=function(){return{isColorSupported:!1,reset:Pw,bold:Pw,dim:Pw,italic:Pw,underline:Pw,inverse:Pw,hidden:Pw,strikethrough:Pw,black:Pw,red:Pw,green:Pw,yellow:Pw,blue:Pw,magenta:Pw,cyan:Pw,white:Pw,gray:Pw,bgBlack:Pw,bgRed:Pw,bgGreen:Pw,bgYellow:Pw,bgBlue:Pw,bgMagenta:Pw,bgCyan:Pw,bgWhite:Pw}};kw.exports=Iw();var Dw=kw.exports.createColors=Iw,Nw=kw.exports,Ow="object"!==typeof di||"0"!==di.env.FORCE_COLOR&&"false"!==di.env.FORCE_COLOR?Nw:Dw(!1),Fw=function(e,t){return function(r){return e(t(r))}},Bw=new Set(["as","async","from","get","of","set"]);function Lw(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Fw(Fw(e.white,e.bgRed),e.bold)}}var Mw,Uw=/\r\n|[\n\r\u2028\u2029]/,Hw=/^[()[\]{}]$/,Gw=/^[a-z][\w-]*$/i,qw=function(e,t,r){if("name"===e.type){if(Oi(e.value)||Ii(e.value,!0)||Bw.has(e.value))return"keyword";if(Gw.test(e.value)&&("<"===r[t-1]||""),i(s.gutter,n),e.length>0?" "+e:"",u].join("")}return" "+i(s.gutter,n)+(e.length>0?" "+e:"")})).join("\n");return r.message&&!u&&(f=""+" ".repeat(p+1)+r.message+"\n"+f),a?n.reset(f):f}var aS=q,nS=J,sS=Pn,iS=re,oS=Ir,dS=pe,cS=Gr,lS=En,uS=se,pS=Sx,fS=Gx,gS=/^[_$A-Z0-9]+$/;function hS(e,t,r){var a=r.placeholderWhitelist,n=r.placeholderPattern,s=r.preserveComments,i=r.syntacticPlaceholders,o=bS(t,r.parser,i);pS(o,{preserveComments:s}),e.validate(o);var d={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:n,syntacticPlaceholders:i};return fS(o,mS,d),Object.assign({ast:o},d.syntactic.placeholders.length?d.syntactic:d.legacy)}function mS(e,t,r){var a,n,s=r.syntactic.placeholders.length>0;if(cS(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(iS(e)||oS(e))n=e.name;else{if(!uS(e))return;n=e.value}}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||gS).test(n)||null!=(a=r.placeholderWhitelist)&&a.has(n)){var i,o=(t=t.slice())[t.length-1],d=o.node,c=o.key;uS(e)||cS(e,{expectedNode:"StringLiteral"})?i="string":dS(d)&&"arguments"===c||aS(d)&&"arguments"===c||sS(d)&&"params"===c?i="param":nS(d)&&!cS(e)?(i="statement",t=t.slice(0,-1)):i=lS(e)&&cS(e)?"statement":"other";var l=s?r.syntactic:r.legacy,u=l.placeholders,p=l.placeholderNames;u.push({name:n,type:i,resolve:function(e){return yS(e,t)},isDuplicate:p.has(n)}),p.add(n)}}function yS(e,t){for(var r=e,a=0;a1?a-1:0),i=1;i1)throw new Error("Unexpected extra params.");return FS(kS(e,t,uR(n,pR(s[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=PS(e,t,n),r.set(t,o)),FS(o(s))}if("object"===typeof t&&t){if(s.length>0)throw new Error("Unexpected extra params.");return OS(e,uR(n,pR(t)))}throw new Error("Unexpected template param "+typeof t)}),{ast:function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i1)throw new Error("Unexpected extra params.");return kS(e,t,uR(uR(n,pR(s[0])),NS))()}if(Array.isArray(t)){var o=a.get(t);return o||(o=PS(e,t,uR(n,NS)),a.set(t,o)),o(s)()}throw new Error("Unexpected template param "+typeof t)}})}function FS(e){var t="";try{throw new Error}catch(uJ){uJ.stack&&(t=uJ.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(a){throw a.stack+="\n =============\n"+t,a}}}var BS=OS(sR),LS=OS(oR),MS=OS(iR),US=OS(dR),HS=OS(cR),GS=Object.assign(BS.bind(void 0),{smart:BS,statement:LS,statements:MS,expression:US,program:HS,ast:BS.ast}),qS=Object.freeze({__proto__:null,default:GS,expression:US,program:HS,smart:BS,statement:LS,statements:MS});function WS(e,t,r){return Object.freeze({minVersion:e,ast:function(){return GS.program.ast(t,{preserveComments:!0})},metadata:r})}var VS={__proto__:null,OverloadYield:WS("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:WS("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:WS("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:WS("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:WS("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:WS("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:WS("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:WS("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:WS("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:WS("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:WS("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:WS("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:WS("7.25.0","function _superPropertyGet(t,e,r,o){var p=get(getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o?function(t){return p.apply(r,t)}:p}",{globals:[],locals:{_superPropertyGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropertyGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:WS("7.25.0","function _superPropertySet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropertySet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropertySet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:WS("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:WS("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:WS("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:WS("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:WS("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:WS("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:WS("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:WS("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:WS("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:WS("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:WS("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:WS("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:WS("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:WS("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:WS("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:WS("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:WS("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(VS,{AwaitValue:WS("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:WS("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:WS("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:WS("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:WS("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:WS("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:WS("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:WS("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:WS("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:WS("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:WS("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:WS("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:WS("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:WS("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:WS("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:WS("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:WS("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:WS("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:WS("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[n],n=a.shift();if(!(arguments.length>2))return e[n];e[n]=r}catch(ENe){throw ENe.message+=" (when accessing "+t+")",ENe}}function XS(e,t,r,a,n,s){var i=t.locals,o=t.dependencies,d=t.exportBindingAssignments,c=t.exportName,l=new Set(a||[]);r&&l.add(r);for(var p=0,f=(Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))})(i);p100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(o){var d=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(n){var s=Math.abs(n);return s>=a?Math.round(n/a)+"d":s>=r?Math.round(n/r)+"h":s>=t?Math.round(n/t)+"m":s>=e?Math.round(n/e)+"s":n+"ms"}function d(n){var s=Math.abs(n);return s>=a?c(n,s,a,"day"):s>=r?c(n,s,r,"hour"):s>=t?c(n,s,t,"minute"):s>=e?c(n,s,e,"second"):n+" ms"}function c(e,t,r,a){var n=t>=1.5*r;return Math.round(e/r)+" "+a+(n?"s":"")}return tA=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return i(e);if("number"===r&&isFinite(e))return t.long?d(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},tA}function SA(e){function t(e){for(var t=0,a=0;a=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))})),t.splice(n,0,r)}}function n(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(uJ){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(uJ){}return!e&&"undefined"!==typeof di&&"env"in di&&(e=di.env.DEBUG),e}function i(){try{return localStorage}catch(uJ){}}t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=AA(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(uJ){return"[UnexpectedJSONParseError]: "+uJ.message}}}(TA,TA.exports);var jA=TA.exports,_A=Wx,CA=zx,kA=Kn,PA=yn,IA=Qn,DA=Z,NA=kn,OA=re,FA=qe,BA=ze,LA=Ir,MA=Dr,UA=ue,HA=ye,GA=Xx,qA=Jx,WA=En,VA=eR,zA=_e,KA=Ge,YA=tR.isCompatTag;function XA(e){var t=this.node,r=this.parent;if(!OA(t,e)&&!MA(r,e)){if(!LA(t,e))return!1;if(YA(t.name))return!1}return GA(t,r,this.parentPath.parent)}function JA(){var e=this.node,t=this.parent;return UA(e)&&GA(e,t)}function QA(){var e=this.node,t=this.parent,r=this.parentPath.parent;return OA(e)&&_A(e,t,r)}function $A(){var e=this.node,t=this.parent;if(WA(e)){if(zA(e)){if(NA(t,{left:e}))return!1;if(DA(t,{init:e}))return!1}return!0}return!1}function ZA(){return this.isIdentifier()?this.isReferencedIdentifier():PA(this.node)}function ej(){return qA(this.node,this.parent)}function tj(){return GA(this.node,this.parent)}function rj(){return CA(this.node)}function aj(){return VA(this.node)}function nj(){return this.node&&!!this.node.loc}function sj(){return!this.isUser()}function ij(e){return this.scope.isPure(this.node,e)}function oj(){var e=this.node;return!!IA(e)||(FA(e)?"type"===e.importKind||"typeof"===e.importKind:kA(e)?"type"===e.exportKind:!!BA(e)&&("type"===e.importKind||"typeof"===e.importKind))}function dj(){var e;return HA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())}function cj(){var e;return HA(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())}function lj(){return KA(this.node,{await:!0})}e.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},e.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var uj=Object.freeze({__proto__:null,isBindingIdentifier:QA,isBlockScoped:rj,isExpression:ZA,isFlow:oj,isForAwaitStatement:lj,isGenerated:sj,isPure:ij,isReferenced:tj,isReferencedIdentifier:XA,isReferencedMemberExpression:JA,isRestProperty:dj,isScope:ej,isSpreadProperty:cj,isStatement:$A,isUser:nj,isVar:aj}),pj=bo,fj=yd,gj=ho,hj=bd,mj=D;function yj(e){return e in EA}function bj(e){return null==e?void 0:e._exploded}function vj(e){if(bj(e))return e;e._exploded=!0;for(var t=0,r=Object.keys(e);t1&&(r+=t),"_"+r},t.generateUidBasedOnNode=function(e,t){var r=[];z_(e,r);var a=r.join("$");return a=a.replace(/^_/,"")||t||"ref",this.generateUid(a.slice(0,20))},t.generateUidIdentifierBasedOnNode=function(e,t){return r_(this.generateUidBasedOnNode(e,t))},t.isStatic=function(e){if(j_(e)||w_(e)||U_(e))return!0;if(f_(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1},t.maybeGenerateMemoised=function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),e_(r))},t.checkBlockScopedCollisions=function(e,t,r,a){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.hub.buildError(a,'Duplicate declaration "'+r+'"',TypeError)},t.rename=function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new Dj(r,e,t).rename(arguments[2]))},t._renameFromMap=function(e,t,r,a){e[t]&&(e[r]=a,e[t]=null)},t.dump=function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r=0,a=Object.keys(t.bindings);r0)&&this.isPure(e.body,t);if(o_(e)){for(var i,o=u(e.body);!(i=o()).done;){var d=i.value;if(!this.isPure(d,t))return!1}return!0}if(n_(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(a_(e)||L_(e)){for(var c,l=u(e.elements);!(c=l()).done;){var p=c.value;if(null!==p&&!this.isPure(p,t))return!1}return!0}if(x_(e)||B_(e)){for(var f,g=u(e.properties);!(f=g()).done;){var h=f.value;if(!this.isPure(h,t))return!1}return!0}if(y_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(R_(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(s=e.decorators)?void 0:s.length)>0)&&!((M_(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));if(__(e))return this.isPure(e.argument,t);if(A_(e)){for(var m,y=u(e.expressions);!(m=y()).done;){var b=m.value;if(!this.isPure(b,t))return!1}return!0}return S_(e)?P_(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):m_(e)?!e.computed&&f_(e.object)&&"Symbol"===e.object.name&&f_(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):s_(e)?P_(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&se(e.arguments[0]):E_(e)},t.setData=function(e,t){return this.data[e]=t},t.getData=function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)},t.removeData=function(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)},t.init=function(){this.inited||(this.inited=!0,this.crawl())},t.crawl=function(){var e=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var t=this.getProgramParent();if(!t.crawling){var r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&bj(K_)){for(var a,n=u(K_.enter);!(a=n()).done;)a.value.call(r,e,r);var s=K_[e.type];if(s)for(var i,o=u(s.enter);!(i=o()).done;)i.value.call(r,e,r)}e.traverse(K_,r),this.crawling=!1;for(var d,c=u(r.assignments);!(d=c()).done;){for(var l=d.value,p=l.getAssignmentIdentifiers(),f=0,g=Object.keys(p);f0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===e[o-2]?2:"="===e[o-1]?1:0,i=new rC(3*o/4-s),a=s>0?o-4:o;var d=0;for(t=0,r=0;t>16&255,i[d++]=n>>8&255,i[d++]=255&n;return 2===s?(n=tC[e.charCodeAt(t)]<<2|tC[e.charCodeAt(t+1)]>>4,i[d++]=255&n):1===s&&(n=tC[e.charCodeAt(t)]<<10|tC[e.charCodeAt(t+1)]<<4|tC[e.charCodeAt(t+2)]>>2,i[d++]=n>>8&255,i[d++]=255&n),i}function iC(e){return eC[e>>18&63]+eC[e>>12&63]+eC[e>>6&63]+eC[63&e]}function oC(e,t,r){for(var a,n=[],s=t;sd?d:o+i));return 1===a?(t=e[r-1],n+=eC[t>>2],n+=eC[t<<4&63],n+="=="):2===a&&(t=(e[r-2]<<8)+e[r-1],n+=eC[t>>10],n+=eC[t>>4&63],n+=eC[t<<2&63],n+="="),s.push(n),s.join("")}function cC(e,t,r,a,n){var s,i,o=8*n-a-1,d=(1<>1,l=-7,u=r?n-1:0,p=r?-1:1,f=e[t+u];for(u+=p,s=f&(1<<-l)-1,f>>=-l,l+=o;l>0;s=256*s+e[t+u],u+=p,l-=8);for(i=s&(1<<-l)-1,s>>=-l,l+=a;l>0;i=256*i+e[t+u],u+=p,l-=8);if(0===s)s=1-c;else{if(s===d)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,a),s-=c}return(f?-1:1)*i*Math.pow(2,s-a)}function lC(e,t,r,a,n,s){var i,o,d,c=8*s-n-1,l=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:s-1,g=a?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-i))<1&&(i--,d*=2),(t+=i+u>=1?p/d:p*Math.pow(2,1-u))*d>=2&&(i++,d/=2),i+u>=l?(o=0,i=l):i+u>=1?(o=(t*d-1)*Math.pow(2,n),i+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),i=0));n>=8;e[r+f]=255&o,f+=g,o/=256,n-=8);for(i=i<0;e[r+f]=255&i,f+=g,i/=256,c-=8);e[r+f-g]|=128*h}var uC={}.toString,pC=Array.isArray||function(e){return"[object Array]"==uC.call(e)},fC=50;function gC(){return mC.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hC(e,t){if(gC()=gC())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+gC().toString(16)+" bytes");return 0|e}function AC(e){return!(null==e||!e._isBuffer)}function jC(e,t){if(AC(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return ak(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ik(e).length;default:if(a)return ak(e).length;t=(""+t).toLowerCase(),a=!0}}function _C(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return WC(this,t,r);case"utf8":case"utf-8":return MC(this,t,r);case"ascii":return GC(this,t,r);case"latin1":case"binary":return qC(this,t,r);case"base64":return LC(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return VC(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function CC(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function kC(e,t,r,a,n){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=mC.from(t,a)),AC(t))return 0===t.length?-1:PC(e,t,r,a,n);if("number"===typeof t)return t&=255,mC.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):PC(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function PC(e,t,r,a,n){var s,i=1,o=e.length,d=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;i=2,o/=2,d/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(n){var l=-1;for(s=r;so&&(r=o-d),s=r;s>=0;s--){for(var u=!0,p=0;pn&&(a=n):a=n;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");a>s/2&&(a=s/2);for(var i=0;i239?4:c>223?3:c>191?2:1;if(n+u<=r)switch(u){case 1:c<128&&(l=c);break;case 2:128===(192&(s=e[n+1]))&&(d=(31&c)<<6|63&s)>127&&(l=d);break;case 3:s=e[n+1],i=e[n+2],128===(192&s)&&128===(192&i)&&(d=(15&c)<<12|(63&s)<<6|63&i)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[n+1],i=e[n+2],o=e[n+3],128===(192&s)&&128===(192&i)&&128===(192&o)&&(d=(15&c)<<18|(63&s)<<12|(63&i)<<6|63&o)>65535&&d<1114112&&(l=d)}null===l?(l=65533,u=1):l>65535&&(l-=65536,a.push(l>>>10&1023|55296),l=56320|1023&l),a.push(l),n+=u}return HC(a)}mC.TYPED_ARRAY_SUPPORT=void 0===vs.TYPED_ARRAY_SUPPORT||vs.TYPED_ARRAY_SUPPORT,gC(),mC.poolSize=8192,mC._augment=function(e){return e.__proto__=mC.prototype,e},mC.from=function(e,t,r){return yC(null,e,t,r)},mC.TYPED_ARRAY_SUPPORT&&(mC.prototype.__proto__=Uint8Array.prototype,mC.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&mC[Symbol.species]),mC.alloc=function(e,t,r){return vC(null,e,t,r)},mC.allocUnsafe=function(e){return xC(null,e)},mC.allocUnsafeSlow=function(e){return xC(null,e)},mC.isBuffer=ck,mC.compare=function(e,t){if(!AC(e)||!AC(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},mC.prototype.compare=function(e,t,r,a,n){if(!AC(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(n>>>=0)-(a>>>=0),i=(r>>>=0)-(t>>>=0),o=Math.min(s,i),d=this.slice(a,n),c=e.slice(t,r),l=0;ln)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return IC(this,e,t,r);case"utf8":case"utf-8":return DC(this,e,t,r);case"ascii":return NC(this,e,t,r);case"latin1":case"binary":return OC(this,e,t,r);case"base64":return FC(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BC(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},mC.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var UC=4096;function HC(e){var t=e.length;if(t<=UC)return String.fromCharCode.apply(String,e);for(var r="",a=0;aa)&&(r=a);for(var n="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function KC(e,t,r,a,n,s){if(!AC(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function YC(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,s=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function XC(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,s=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function JC(e,t,r,a,n,s){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function QC(e,t,r,a,n){return n||JC(e,t,r,4),lC(e,t,r,a,23,4),r+4}function $C(e,t,r,a,n){return n||JC(e,t,r,8),lC(e,t,r,a,52,8),r+8}mC.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},mC.prototype.readUInt8=function(e,t){return t||zC(e,1,this.length),this[e]},mC.prototype.readUInt16LE=function(e,t){return t||zC(e,2,this.length),this[e]|this[e+1]<<8},mC.prototype.readUInt16BE=function(e,t){return t||zC(e,2,this.length),this[e]<<8|this[e+1]},mC.prototype.readUInt32LE=function(e,t){return t||zC(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},mC.prototype.readUInt32BE=function(e,t){return t||zC(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},mC.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||zC(e,t,this.length);for(var a=this[e],n=1,s=0;++s=(n*=128)&&(a-=Math.pow(2,8*t)),a},mC.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||zC(e,t,this.length);for(var a=t,n=1,s=this[e+--a];a>0&&(n*=256);)s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},mC.prototype.readInt8=function(e,t){return t||zC(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},mC.prototype.readInt16LE=function(e,t){t||zC(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},mC.prototype.readInt16BE=function(e,t){t||zC(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},mC.prototype.readInt32LE=function(e,t){return t||zC(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},mC.prototype.readInt32BE=function(e,t){return t||zC(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},mC.prototype.readFloatLE=function(e,t){return t||zC(e,4,this.length),cC(this,e,!0,23,4)},mC.prototype.readFloatBE=function(e,t){return t||zC(e,4,this.length),cC(this,e,!1,23,4)},mC.prototype.readDoubleLE=function(e,t){return t||zC(e,8,this.length),cC(this,e,!0,52,8)},mC.prototype.readDoubleBE=function(e,t){return t||zC(e,8,this.length),cC(this,e,!1,52,8)},mC.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||KC(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+n]=e/s&255;return t+r},mC.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,1,255,0),mC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},mC.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,2,65535,0),mC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):YC(this,e,t,!0),t+2},mC.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,2,65535,0),mC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):YC(this,e,t,!1),t+2},mC.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,4,4294967295,0),mC.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):XC(this,e,t,!0),t+4},mC.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,4,4294967295,0),mC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):XC(this,e,t,!1),t+4},mC.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);KC(this,e,t,r,n-1,-n)}var s=0,i=1,o=0;for(this[t]=255&e;++s=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i|0)-o&255;return t+r},mC.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,1,127,-128),mC.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},mC.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,2,32767,-32768),mC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):YC(this,e,t,!0),t+2},mC.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,2,32767,-32768),mC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):YC(this,e,t,!1),t+2},mC.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,4,2147483647,-2147483648),mC.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):XC(this,e,t,!0),t+4},mC.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||KC(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),mC.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):XC(this,e,t,!1),t+4},mC.prototype.writeFloatLE=function(e,t,r){return QC(this,e,t,!0,r)},mC.prototype.writeFloatBE=function(e,t,r){return QC(this,e,t,!1,r)},mC.prototype.writeDoubleLE=function(e,t,r){return $C(this,e,t,!0,r)},mC.prototype.writeDoubleBE=function(e,t,r){return $C(this,e,t,!1,r)},mC.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(s<1e3||!mC.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(i+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function nk(e){for(var t=[],r=0;r>8,n=r%256,s.push(n),s.push(a);return s}function ik(e){return sC(ek(e))}function ok(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function dk(e){return e!==e}function ck(e){return null!=e&&(!!e._isBuffer||lk(e)||uk(e))}function lk(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function uk(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&lk(e.slice(0,0))}var pk,fk={exports:{}};function gk(){return pk||(pk=1,function(e,t){!function(e,r){r(t)}(0,(function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),s=new Uint8Array(128),i=0;i>>=1,c&&(n=-2147483648|-n),r[a]+=n,t}function p(e,r,a){return!(r>=a)&&e.charCodeAt(r)!==t}function f(e){e.sort(g)}function g(e,t){return e[0]-t[0]}function h(e){for(var a=new Int32Array(5),n=16384,s=n-36,i=new Uint8Array(n),o=i.subarray(0,s),c=0,l="",u=0;u0&&(c===n&&(l+=d.decode(i),c=0),i[c++]=r),0!==p.length){a[0]=0;for(var f=0;fs&&(l+=d.decode(o),i.copyWithin(0,s,c),c-=s),f>0&&(i[c++]=t),c=m(i,c,a,g,0),1!==g.length&&(c=m(i,c,a,g,1),c=m(i,c,a,g,2),c=m(i,c,a,g,3),4!==g.length&&(c=m(i,c,a,g,4)))}}}return l+d.decode(i.subarray(0,c))}function m(e,t,r,a,s){var i=a[s],o=i-r[s];r[s]=i,o=o<0?-o<<1|1:o<<1;do{var d=31&o;(o>>>=5)>0&&(d|=32),e[t++]=n[d]}while(o>0);return t}e.decode=c,e.encode=h,Object.defineProperty(e,"__esModule",{value:!0})}))}(0,fk.exports)),fk.exports}var hk,mk={exports:{}},yk={exports:{}};function bk(){return hk||(hk=1,e=yk,function(t,r){e.exports=r()}(0,(function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(t){return e.test(t)}function n(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function i(e){return e.startsWith("file:")}function o(e){return/^[.?#]/.test(e)}function d(e){var r=t.exec(e);return l(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function c(e){var t=r.exec(e),a=t[2];return l("file:","",t[1]||"","",s(a)?a:"/"+a,t[3]||"",t[4]||"")}function l(e,t,r,a,n,s,i){return{scheme:e,user:t,host:r,port:a,path:n,query:s,hash:i,type:7}}function u(e){if(n(e)){var t=d("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){var r=d("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(i(e))return c(e);if(a(e))return d(e);var o=d("http://foo.com/"+e);return o.scheme="",o.host="",o.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,o}function p(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function f(e,t){g(t,t.type),"/"===e.path?e.path=t.path:e.path=p(t.path)+e.path}function g(e,t){for(var r=t<=4,a=e.path.split("/"),n=1,s=0,i=!1,o=1;oa&&(a=s)}g(r,a);var i=r.query+r.hash;switch(a){case 2:case 3:return i;case 4:var d=r.path.slice(1);return d?o(t||e)&&!o(d)?"./"+d+i:d+i:i||".";case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return h}))),yk.exports;var e}!function(e,t){!function(e,r){r(t,gk(),bk())}(0,(function(e,t,r){function a(e,t){return t&&!t.endsWith("/")&&(t+="/"),r(e,t)}function n(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}var s=0,i=1,o=2,d=3,c=4,u=1,p=2;function f(e,t){var r=g(e,0);if(r===e.length)return e;t||(e=e.slice());for(var a=r;a>1),i=e[n][s]-t;if(0===i)return b=!0,n;i<0?r=n+1:a=n-1}return b=!1,r-1}function x(e,t,r){for(var a=r+1;a=0&&e[a][s]===t;r=a--);return r}function E(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function T(e,t,r,a){var n=r.lastKey,i=r.lastNeedle,o=r.lastIndex,d=0,c=e.length-1;if(a===n){if(t===i)return b=-1!==o&&e[o][s]===t,o;t>=i?d=-1===o?0:o:c=o}return r.lastKey=a,r.lastNeedle=t,r.lastIndex=v(e,t,d,c)}function w(e,t){for(var r=t.map(A),a=0;at;a--)e[a]=e[a-1];e[t]=r}function A(){return{__proto__:null}}var j=function(e,t){var r=_(e);if(!("sections"in r))return new B(r,t);var a=[],n=[],s=[],i=[],o=[];return C(r,t,a,n,s,i,o,0,0,1/0,1/0),X({version:3,file:r.file,names:i,sources:n,sourcesContent:s,mappings:a,ignoreList:o})};function _(e){return"string"===typeof e?JSON.parse(e):e}function C(e,t,r,a,n,s,i,o,d,c,l){for(var u=e.sections,p=0;pg)return;for(var k=I(r,j),D=0===A?f:0,N=x[A],O=0;O=h)return;if(1!==F.length){var M=b+F[i],H=F[o],G=F[d];k.push(4===F.length?[L,M,H,G]:[L,M,H,G,v+F[c]])}else k.push([L])}}}function P(e,t){for(var r=0;r=a.length)return null;var n=a[t],s=te(n,L(e)._decodedMemo,t,r,F);return-1===s?null:n[s]}function G(e,t){var r=t.line,a=t.column,n=t.bias;if(--r<0)throw new Error(D);if(a<0)throw new Error(N);var s=U(e);if(r>=s.length)return Z(null,null,null,null);var l=s[r],u=te(l,L(e)._decodedMemo,r,a,n||F);if(-1===u)return Z(null,null,null,null);var p=l[u];if(1===p.length)return Z(null,null,null,null);var f=e.names;return Z(e.resolvedSources[p[i]],p[o]+1,p[d],5===p.length?f[p[c]]:null)}function q(e,t){return ae(e,t.source,t.line,t.column,t.bias||F,!1)}function W(e,t){return ae(e,t.source,t.line,t.column,t.bias||O,!0)}function V(e,t){for(var r=U(e),a=e.names,n=e.resolvedSources,s=0;s=0&&!(t>=e[a][n]);r=a--);return r}function A(e,t,r){for(var a=e.length;a>t;a--)e[a]=e[a-1];e[t]=r}function j(e){for(var t=e.length,r=t,a=r-1;a>=0&&!(e[a].length>0);r=a,a--);r1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)},t._append=function(e,t,r){var a=e.length,n=this._position;if(this._last=e.charCodeAt(a-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var s=t.column,i=t.identifierName,o=t.identifierNamePos,d=t.filename,c=t.line;null==i&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var l=e.indexOf("\n"),u=0;for(0!==l&&this._mark(c,s,i,o,d);-1!==l;)n.line++,n.column=0,(u=l+1)=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t},t.endsWithCharAndNewline=function(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}},t.hasContent=function(){return 0!==this._queueCursor||!!this._last},t.exactSource=function(e,t){if(this._map){this.source("start",e);var r=e.identifierName,a=this._sourcePosition;r&&(this._canMarkIdName=!1,a.identifierName=r),t(),r&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",e)}else t()},t.source=function(e,t){this._map&&this._normalizePosition(e,t,0)},t.sourceWithOffset=function(e,t,r){this._map&&this._normalizePosition(e,t,r)},t._normalizePosition=function(e,t,r){var a=t[e],n=this._sourcePosition;a&&(n.line=a.line,n.column=Math.max(a.column+r,0),n.filename=t.filename)},t.getCurrentColumn=function(){for(var e=this._queue,t=this._queueCursor,r=-1,a=0,n=0;n",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function Zk(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?$k.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?$k.get("in"):void 0}function eP(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var tP=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},rP=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function aP(e,t){return Gk(t)}function nP(e,t,r){var a=t.type;return"UnionTypeAnnotation"===a||"IntersectionTypeAnnotation"===a||"ArrayTypeAnnotation"===a||Boolean(r&DP.arrowFlowReturnType)}function sP(e,t){return rP(e,t)||tP(e,t)}function iP(e){return Boolean(e&(DP.expressionStatement|DP.arrowBody))}function oP(e,t,r){return iP(r)}function dP(e,t,r){return!e.async&&Boolean(r&DP.expressionStatement)}function cP(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(tP(e,t))return!0;if(rP(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var a=Zk(t,r);if(null!=a){var n=Zk(e,e.type);if(a===n&&"BinaryExpression"===r&&t.right===e||a>n)return!0}}function lP(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function uP(e,t){return zk(t)&&t.objectType===e}function pP(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||cP(e,t)}function fP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSUnionType"===r||"TSRestType"===r}function gP(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r}function hP(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters}function mP(e,t,r,a){return"in"===e.operator&&a}function yP(e,t){var r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!Qk(t)))}function bP(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||rP(e,t)||"AwaitExpression"===r&&Jk(e)||"ConditionalExpression"===r&&e===t.test||tP(e,t)||eP(r)}function vP(e,t,r){return Boolean(r&(DP.expressionStatement|DP.exportDefault))}function xP(e,t){return rP(e,t)||qk(t)&&"**"===t.operator&&t.left===e||tP(e,t)}function RP(e,t,r){return Boolean(r&(DP.expressionStatement|DP.exportDefault))}function EP(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||eP(r))||xP(e,t)}function TP(e,t){return Wk(t)&&t.callee===e||Kk(t)&&t.object===e}function wP(e,t,r){return!(!iP(r)||!Yk(e.left))||EP(e,t)}function SP(e,t){var r=t.type;if(eP(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}}function AP(e,t,r){var a,n=t.type;if(null!=(a=e.extra)&&a.parenthesized&&"AssignmentExpression"===n&&t.left===e){var s=t.right.type;if(("FunctionExpression"===s||"ClassExpression"===s)&&null==t.right.id)return!0}return"let"===e.name?!!((Kk(t,{object:e,computed:!0})||Xk(t,{object:e,computed:!0,optional:!1}))&&r&(DP.expressionStatement|DP.forHead|DP.forInHead))||Boolean(r&DP.forOfHead):"async"===e.name&&Vk(t,{left:e,await:!1})}var jP=ho,_P=q,CP=Kr,kP=ue,PP=pe,IP=xe,DP={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function NP(e){var t=new Map;function r(e,r){var a=t.get(e);t.set(e,a?function(e,t,n,s){var i;return null!=(i=a(e,t,n,s))?i:r(e,t,n,s)}:r)}for(var a=0,n=Object.keys(e);a1}),vI(t))if(xI(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()}function WI(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}var VI=Me,zI=Ue;function KI(e,t){(VI(t)||zI(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body)}function YI(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=this.enterForStatementInit(!1);this.printSequence(e.body,e,{indent:!0}),t(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function XI(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function JI(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function QI(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function $I(e){this._classMethodHead(e),this.space(),this.print(e.body)}function ZI(e){this._classMethodHead(e),this.space(),this.print(e.body)}function eD(e){var t;this.printJoin(e.decorators,e);var r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function tD(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))}var rD=re;function aD(e,t,r){this.print(e.typeParameters);var a=pD.call(this,t,r);a&&this.sourceIdentifierName(a.name,a.pos),this.tokenChar(40),this._parameters(e.params),this.tokenChar(41);var n="ArrowFunctionExpression"===e.type;this.print(e.returnType,n),this._noLineTerminator=n}function nD(e){for(var t=this.enterForStatementInit(!1),r=e.length,a=0;a"),this.space(),this.tokenContext|=DP.arrowBody,this.print(e.body)}function uD(e,t){var r,a;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(r=t.leadingComments)&&r.length||null!=(a=t.trailingComments)&&a.length)}function pD(e,t){var r=e;if(!r&&t){var a=t.type;"VariableDeclarator"===a?r=t.id:"AssignmentExpression"===a||"AssignmentPattern"===a?r=t.left:"ObjectProperty"===a||"ClassProperty"===a?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==a&&"ClassAccessorProperty"!==a||(r=t.key)}if(r){var n,s,i;if("Identifier"===r.type)n={pos:null==(s=r.loc)?void 0:s.start,name:(null==(i=r.loc)?void 0:i.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var d;n={pos:null==(d=r.loc)?void 0:d.start,name:r.value}}return n}}var fD=Be,gD=Xr,hD=it,mD=We,yD=Ve,bD=En;function vD(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function xD(e){this.print(e.local)}function RD(e){this.print(e.exported)}function ED(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function TD(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var wD,SD,AD=!1;function jD(e){var t=this.format.importAttributesKeyword,r=e.attributes,a=e.assertions;!r||t||AD||(AD=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var n="assert"===t||!t&&a;this.word(n?"assert":"with"),this.space(),n||"with"===t?(this.tokenChar(123),this.space(),this.printList(r||a,e),this.space(),this.tokenChar(125)):this.printList(r||a,e)}function _D(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function CD(e,t){fD(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}function kD(e){if(CD(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),bD(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r,a,n=e.specifiers.slice(0),s=!1;;){var i=n[0];if(!gD(i)&&!hD(i))break;s=!0,this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}(n.length||!n.length&&!s)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(r=e.attributes)&&r.length||null!=(a=e.assertions)&&a.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source)),this.semicolon()}}function PD(e){CD(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=DP.exportDefault;var t=e.declaration;this.print(t),bD(t)||this.semicolon()}function ID(e){var t,r;this.word("import"),this.space();var a="type"===e.importKind||"typeof"===e.importKind;a?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var n=e.specifiers.slice(0),s=!!n.length;s;){var i=n[0];if(!mD(i)&&!yD(i))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}n.length?(this.tokenChar(123),this.space(),this.printList(n,e),this.space(),this.tokenChar(125)):a&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function DD(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function ND(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function OD(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}function FD(){if(SD)return wD;SD=1;var e={},t=e.hasOwnProperty,r=function(e,r){for(var a in e)t.call(e,a)&&r(a,e[a])},a=function(e,t){return t?(r(t,(function(t,r){e[t]=r})),e):e},n=function(e,t){for(var r=e.length,a=-1;++a=55296&&U<=56319&&L>B+1){var H=F.charCodeAt(B+1);if(H>=56320&&H<=57343){var G=(1024*(U-55296)+H-56320+65536).toString(16);w||(G=G.toUpperCase()),R+="\\u{"+G+"}",++B;continue}}}if(!t.escapeEverything){if(y.test(M)){R+=M;continue}if('"'==M){R+=E==M?'\\"':M;continue}if("`"==M){R+=E==M?"\\`":M;continue}if("'"==M){R+=E==M?"\\'":M;continue}}if("\0"!=M||x||m.test(F.charAt(B+1)))if(h.test(M))R+=g[M];else{var q=M.charCodeAt(0);if(t.minimal&&8232!=q&&8233!=q)R+=M;else{var W=q.toString(16);w||(W=W.toUpperCase());var V=W.length>2||x,z="\\"+(V?"u":"x")+("0000"+W).slice(V?-4:-2);R+=z}}else R+="\\0"}return t.wrap&&(R=E+R+E),"`"==E&&(R=R.replace(/\$\{/g,"\\${")),t.isScriptContext?R.replace(/<\/(script|style)/gi,"<\\/$1").replace(//, '$2') || '')) {\n return\n };\n if (codeBlockParames) {\n const nextNode = nextChild(data, i, 'pre', codeBlockParames)\n if (nextNode) return;\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n } else {\n element.value = (element.value || '').replace(/^(\\n|\\s)+/, '')\n return element;\n }\n }\n }\n }\n return\n}\n\n/**\n * 获取代码注视的位置\n * @param data 数据\n * @param index 当前数据所在的位置\n * @returns 返回 当前参数数据 Object,`{}`\n */\nexport const getCommentObject = ({ value = '' }: Comment): Properties => {\n const param = getURLParameters(value.replace(/^/, '$1').replace(/^rehype:/, ''));\n Object.keys(param).forEach((keyName: string) => {\n if (param[keyName] === 'true') {\n param[keyName] = true;\n }\n if (param[keyName] === 'false') {\n param[keyName] = false;\n }\n if (typeof param[keyName] === 'string' && !/^0/.test(param[keyName] as string) && !isNaN(+param[keyName])) {\n param[keyName] = +param[keyName];\n }\n })\n return param;\n}\n\nexport type DataConfig = {\n 'data-config': Properties\n}\n\nexport const propertiesHandle = (defaultAttrs?: Properties | null, attrs?: Properties, type?: RehypeAttrsOptions['properties']): Properties | DataConfig => {\n if (type === 'string') {\n return { ...defaultAttrs, 'data-config': JSON.stringify({ ...attrs, rehyp: true })}\n } else if (type === 'attr') {\n return { ...defaultAttrs, ...attrs}\n }\n return { ...defaultAttrs, 'data-config': { ...attrs, rehyp: true }}\n}","import type { Plugin } from 'unified';\nimport type { Root, Element, Comment, Properties, Literal } from 'hast';\nimport { visit } from 'unist-util-visit';\nimport { propertiesHandle, nextChild, prevChild, getCommentObject } from './utils.js';\n\nexport type RehypeAttrsOptions = {\n /**\n * ## `data`\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * \n * ## `string`\n * \n * ```markdown\n * text\n * \n * ```\n * \n * 👇👇👇👇👇\n * \n * ```html\n *

text

\n * ```\n * \n * ## attr\n * \n * ```markdown\n * text\n * \n * ```\n * 👇👇👇👇👇\n * ```html\n *

text

\n * ```\n * @default `data`\n */\n properties?: 'data' | 'string' | 'attr';\n /**\n * Code block passing parameters\n */\n codeBlockParames?: boolean;\n}\n\nconst rehypeAttrs: Plugin<[RehypeAttrsOptions?], Root> = (options = {}) => {\n const { properties = 'data', codeBlockParames = true } = options;\n return (tree) => {\n visit(tree, 'element', (node, index, parent) => {\n if (codeBlockParames && node.tagName === 'pre' && node && Array.isArray(node.children) && parent && Array.isArray(parent.children) && parent.children.length > 1) {\n const firstChild = node.children[0] as Element;\n if (firstChild && firstChild.tagName === 'code' && typeof index === 'number') {\n const child = prevChild(parent.children as Literal[], index);\n if (child) {\n const attr = getCommentObject(child);\n if (Object.keys(attr).length > 0) {\n node.properties = { ...node.properties, ...{ 'data-type': 'rehyp' } }\n firstChild.properties = propertiesHandle(firstChild.properties, attr, properties) as Properties\n }\n }\n }\n }\n\n if (/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(node.tagName) && parent && Array.isArray(parent.children) && typeof index === 'number') {\n const child = nextChild(parent.children, index, '', codeBlockParames)\n if (child) {\n const attr = getCommentObject(child as Comment)\n if (Object.keys(attr).length > 0) {\n node.properties = propertiesHandle(node.properties, attr, properties) as Properties\n }\n }\n }\n });\n }\n}\n\n\nexport default rehypeAttrs\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(new env[name](message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n }\n return as(new env[type](value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Info} Info\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef {Element | Root} Result\n * Result from a `h` (or `s`) call.\n *\n * @typedef {number | string} StyleValue\n * Value for a CSS style field.\n * @typedef {Record} Style\n * Supported value of a `style` prop.\n * @typedef {boolean | number | string | null | undefined} PrimitiveValue\n * Primitive property value.\n * @typedef {Array} ArrayValue\n * List of property values for space- or comma separated values (such as `className`).\n * @typedef {ArrayValue | PrimitiveValue} PropertyValue\n * Primitive value or list value.\n * @typedef {{[property: string]: PropertyValue | Style}} Properties\n * Acceptable value for element properties.\n *\n * @typedef {number | string | null | undefined} PrimitiveChild\n * Primitive children, either ignored (nullish), or turned into text nodes.\n * @typedef {Array} ArrayChild\n * List of children.\n * @typedef {Array} ArrayChildNested\n * List of children (deep).\n * @typedef {ArrayChild | Nodes | PrimitiveChild} Child\n * Acceptable child value.\n */\n\nimport {parse as commas} from 'comma-separated-tokens'\nimport {parseSelector} from 'hast-util-parse-selector'\nimport {find, normalize} from 'property-information'\nimport {parse as spaces} from 'space-separated-tokens'\n\nconst buttonTypes = new Set(['button', 'menu', 'reset', 'submit'])\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Schema} schema\n * Schema to use.\n * @param {string} defaultTagName\n * Default tag name.\n * @param {Array | undefined} [caseSensitive]\n * Case-sensitive tag names (default: `undefined`).\n * @returns\n * `h`.\n */\nexport function createH(schema, defaultTagName, caseSensitive) {\n const adjust = caseSensitive && createAdjustMap(caseSensitive)\n\n /**\n * Hyperscript compatible DSL for creating virtual hast trees.\n *\n * @overload\n * @param {null | undefined} [selector]\n * @param {...Child} children\n * @returns {Root}\n *\n * @overload\n * @param {string} selector\n * @param {Properties} properties\n * @param {...Child} children\n * @returns {Element}\n *\n * @overload\n * @param {string} selector\n * @param {...Child} children\n * @returns {Element}\n *\n * @param {string | null | undefined} [selector]\n * Selector.\n * @param {Child | Properties | null | undefined} [properties]\n * Properties (or first child) (default: `undefined`).\n * @param {...Child} children\n * Children.\n * @returns {Result}\n * Result.\n */\n function h(selector, properties, ...children) {\n let index = -1\n /** @type {Result} */\n let node\n\n if (selector === undefined || selector === null) {\n node = {type: 'root', children: []}\n // Properties are not supported for roots.\n const child = /** @type {Child} */ (properties)\n children.unshift(child)\n } else {\n node = parseSelector(selector, defaultTagName)\n // Normalize the name.\n node.tagName = node.tagName.toLowerCase()\n if (adjust && own.call(adjust, node.tagName)) {\n node.tagName = adjust[node.tagName]\n }\n\n // Handle props.\n if (isProperties(properties, node.tagName)) {\n /** @type {string} */\n let key\n\n for (key in properties) {\n if (own.call(properties, key)) {\n addProperty(schema, node.properties, key, properties[key])\n }\n }\n } else {\n children.unshift(properties)\n }\n }\n\n // Handle children.\n while (++index < children.length) {\n addChild(node.children, children[index])\n }\n\n if (node.type === 'element' && node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n return h\n}\n\n/**\n * Check if something is properties or a child.\n *\n * @param {Child | Properties} value\n * Value to check.\n * @param {string} name\n * Tag name.\n * @returns {value is Properties}\n * Whether `value` is a properties object.\n */\nfunction isProperties(value, name) {\n if (\n value === null ||\n value === undefined ||\n typeof value !== 'object' ||\n Array.isArray(value)\n ) {\n return false\n }\n\n if (name === 'input' || !value.type || typeof value.type !== 'string') {\n return true\n }\n\n if ('children' in value && Array.isArray(value.children)) {\n return false\n }\n\n if (name === 'button') {\n return buttonTypes.has(value.type.toLowerCase())\n }\n\n return !('value' in value)\n}\n\n/**\n * @param {Schema} schema\n * Schema.\n * @param {Properties} properties\n * Properties object.\n * @param {string} key\n * Property name.\n * @param {PropertyValue | Style} value\n * Property value.\n * @returns {undefined}\n * Nothing.\n */\nfunction addProperty(schema, properties, key, value) {\n const info = find(schema, key)\n let index = -1\n /** @type {PropertyValue} */\n let result\n\n // Ignore nullish and NaN values.\n if (value === undefined || value === null) return\n\n if (typeof value === 'number') {\n // Ignore NaN.\n if (Number.isNaN(value)) return\n\n result = value\n }\n // Booleans.\n else if (typeof value === 'boolean') {\n result = value\n }\n // Handle list values.\n else if (typeof value === 'string') {\n if (info.spaceSeparated) {\n result = spaces(value)\n } else if (info.commaSeparated) {\n result = commas(value)\n } else if (info.commaOrSpaceSeparated) {\n result = spaces(commas(value).join(' '))\n } else {\n result = parsePrimitive(info, info.property, value)\n }\n } else if (Array.isArray(value)) {\n result = value.concat()\n } else {\n result = info.property === 'style' ? style(value) : String(value)\n }\n\n if (Array.isArray(result)) {\n /** @type {Array} */\n const finalResult = []\n\n while (++index < result.length) {\n // Assume no booleans in array.\n const value = /** @type {number | string} */ (\n parsePrimitive(info, info.property, result[index])\n )\n finalResult[index] = value\n }\n\n result = finalResult\n }\n\n // Class names (which can be added both on the `selector` and here).\n if (info.property === 'className' && Array.isArray(properties.className)) {\n // Assume no booleans in `className`.\n const value = /** @type {number | string} */ (result)\n result = properties.className.concat(value)\n }\n\n properties[info.property] = result\n}\n\n/**\n * @param {Array} nodes\n * Children.\n * @param {Child} value\n * Child.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChild(nodes, value) {\n let index = -1\n\n if (value === undefined || value === null) {\n // Empty.\n } else if (typeof value === 'string' || typeof value === 'number') {\n nodes.push({type: 'text', value: String(value)})\n } else if (Array.isArray(value)) {\n while (++index < value.length) {\n addChild(nodes, value[index])\n }\n } else if (typeof value === 'object' && 'type' in value) {\n if (value.type === 'root') {\n addChild(nodes, value.children)\n } else {\n nodes.push(value)\n }\n } else {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n}\n\n/**\n * Parse a single primitives.\n *\n * @param {Info} info\n * Property information.\n * @param {string} name\n * Property name.\n * @param {PrimitiveValue} value\n * Property value.\n * @returns {PrimitiveValue}\n * Property value.\n */\nfunction parsePrimitive(info, name, value) {\n if (typeof value === 'string') {\n if (info.number && value && !Number.isNaN(Number(value))) {\n return Number(value)\n }\n\n if (\n (info.boolean || info.overloadedBoolean) &&\n (value === '' || normalize(value) === normalize(name))\n ) {\n return true\n }\n }\n\n return value\n}\n\n/**\n * Serialize a `style` object as a string.\n *\n * @param {Style} value\n * Style object.\n * @returns {string}\n * CSS string.\n */\nfunction style(value) {\n /** @type {Array} */\n const result = []\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n result.push([key, value[key]].join(': '))\n }\n }\n\n return result.join('; ')\n}\n\n/**\n * Create a map to adjust casing.\n *\n * @param {Array} values\n * List of properly cased keys.\n * @returns {Record}\n * Map of lowercase keys to uppercase keys.\n */\nfunction createAdjustMap(values) {\n /** @type {Record} */\n const result = {}\n let index = -1\n\n while (++index < values.length) {\n result[values[index].toLowerCase()] = values[index]\n }\n\n return result\n}\n","export const svgCaseSensitiveTagNames = [\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'solidColor',\n 'textArea',\n 'textPath'\n]\n","/**\n * @typedef {import('./create-h.js').Child} Child\n * Acceptable child value.\n * @typedef {import('./create-h.js').Properties} Properties\n * Acceptable value for element properties.\n * @typedef {import('./create-h.js').Result} Result\n * Result from a `h` (or `s`) call.\n */\n\n// Register the JSX namespace on `h`.\n/**\n * @typedef {import('./jsx-classic.js').Element} h.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements\n */\n\n// Register the JSX namespace on `s`.\n/**\n * @typedef {import('./jsx-classic.js').Element} s.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements\n */\n\nimport {html, svg} from 'property-information'\nimport {createH} from './create-h.js'\nimport {svgCaseSensitiveTagNames} from './svg-case-sensitive-tag-names.js'\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const h = createH(html, 'div')\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const s = createH(svg, 'g', svgCaseSensitiveTagNames)\n","/**\n * @typedef {import('vfile').VFile} VFile\n * @typedef {import('vfile').Value} Value\n * @typedef {import('unist').Point} UnistPoint\n */\n\n/**\n *\n * @typedef PointLike\n * unist point, allowed as input.\n * @property {number | null | undefined} [line]\n * Line.\n * @property {number | null | undefined} [column]\n * Column.\n * @property {number | null | undefined} [offset]\n * Offset.\n *\n * @callback ToPoint\n * Get the line/column based `Point` for `offset` in the bound indices.\n *\n * Returns `undefined` when given out of bounds input.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n * @param {number | null | undefined} [offset]\n * Something that should be an `offset.\n * @returns {UnistPoint | undefined}\n * Point, if `offset` is valid and in-bounds input.\n *\n * @callback ToOffset\n * Get the `offset` from a line/column based `Point` in the bound indices.\n * @param {PointLike | null | undefined} [point]\n * Something that should be a `point.\n * @returns {number | undefined}\n * Offset (`number`) or `undefined` for invalid or out of bounds input.\n *\n * @typedef Location\n * Accessors for index.\n * @property {ToPoint} toPoint\n * Get the line/column based `Point` for `offset` in the bound indices.\n * @property {ToOffset} toOffset\n * Get the `offset` from a line/column based `Point` in the bound indices.\n */\n\nconst search = /\\r?\\n|\\r/g\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array}\n */\n const indices = []\n\n search.lastIndex = 0\n\n while (search.test(value)) {\n indices.push(search.lastIndex)\n }\n\n indices.push(value.length + 1)\n\n return {toPoint, toOffset}\n\n /** @type {ToPoint} */\n function toPoint(offset) {\n let index = -1\n\n if (\n typeof offset === 'number' &&\n offset > -1 &&\n offset < indices[indices.length - 1]\n ) {\n while (++index < indices.length) {\n if (indices[index] > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n }\n }\n }\n\n /** @type {ToOffset} */\n function toOffset(point) {\n const line = point && point.line\n const column = point && point.column\n\n if (\n typeof line === 'number' &&\n typeof column === 'number' &&\n !Number.isNaN(line) &&\n !Number.isNaN(column) &&\n line - 1 in indices\n ) {\n const offset = (indices[line - 2] || 0) + column - 1 || 0\n\n if (offset > -1 && offset < indices[indices.length - 1]) {\n return offset\n }\n }\n }\n}\n","/**\n * Map of web namespaces.\n *\n * @type {Record}\n */\nexport const webNamespaces = {\n html: 'http://www.w3.org/1999/xhtml',\n mathml: 'http://www.w3.org/1998/Math/MathML',\n svg: 'http://www.w3.org/2000/svg',\n xlink: 'http://www.w3.org/1999/xlink',\n xml: 'http://www.w3.org/XML/1998/namespace',\n xmlns: 'http://www.w3.org/2000/xmlns/'\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementData} ElementData\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap} DefaultTreeAdapterMap\n * @typedef {import('parse5').Token.ElementLocation} P5ElementLocation\n * @typedef {import('parse5').Token.Location} P5Location\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n *\n * @typedef {import('vfile').VFile} VFile\n */\n\n/**\n * @typedef {DefaultTreeAdapterMap['document']} P5Document\n * @typedef {DefaultTreeAdapterMap['documentFragment']} P5DocumentFragment\n * @typedef {DefaultTreeAdapterMap['documentType']} P5DocumentType\n * @typedef {DefaultTreeAdapterMap['commentNode']} P5Comment\n * @typedef {DefaultTreeAdapterMap['textNode']} P5Text\n * @typedef {DefaultTreeAdapterMap['element']} P5Element\n * @typedef {DefaultTreeAdapterMap['node']} P5Node\n * @typedef {DefaultTreeAdapterMap['template']} P5Template\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n * @property {VFile | null | undefined} [file]\n * File used to add positional info to nodes (optional).\n *\n * If given, the file should represent the original HTML source.\n * @property {boolean | null | undefined} [verbose=false]\n * Whether to add extra positional info about starting tags, closing tags,\n * and attributes to elements (default: `false`).\n *\n * > 👉 **Note**: only used when `file` is given.\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {P5Node} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {P5Comment} */ (node)\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference = /** @type {P5Document | P5DocumentFragment} */ (node)\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const doc = String(state.file)\n const loc = location(doc)\n const start = loc.toPoint(0)\n const end = loc.toPoint(doc.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {P5DocumentType} */ (node)\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {P5Text} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {P5Element} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array} nodes\n * Nodes.\n * @returns {Array}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Element} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record} */\n const props = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n props[name] = attribute.value\n }\n }\n\n // Build.\n const fn = state.schema.space === 'svg' ? s : h\n const result = fn(node.tagName, props, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {P5Template} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {P5ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: .\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record} */\n const props = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n props[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = props\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {P5Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n","/**\n * @typedef {import('hast').Comment} Comment\n * @typedef {import('hast').Doctype} Doctype\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {import('parse5').DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {import('parse5').DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {import('parse5').DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {import('parse5').DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {import('parse5').DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {import('parse5').Token.Attribute} Parse5Attribute\n *\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n *\n * @typedef {Exclude} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n","/**\n * List of HTML void tag names.\n *\n * @type {Array}\n */\nexport const htmlVoidElements = [\n 'area',\n 'base',\n 'basefont',\n 'bgsound',\n 'br',\n 'col',\n 'command',\n 'embed',\n 'frame',\n 'hr',\n 'image',\n 'img',\n 'input',\n 'keygen',\n 'link',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr'\n]\n","const UNDEFINED_CODE_POINTS = new Set([\n 65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214,\n 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894,\n 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574,\n 1048575, 1114110, 1114111,\n]);\nexport const REPLACEMENT_CHARACTER = '\\uFFFD';\nexport var CODE_POINTS;\n(function (CODE_POINTS) {\n CODE_POINTS[CODE_POINTS[\"EOF\"] = -1] = \"EOF\";\n CODE_POINTS[CODE_POINTS[\"NULL\"] = 0] = \"NULL\";\n CODE_POINTS[CODE_POINTS[\"TABULATION\"] = 9] = \"TABULATION\";\n CODE_POINTS[CODE_POINTS[\"CARRIAGE_RETURN\"] = 13] = \"CARRIAGE_RETURN\";\n CODE_POINTS[CODE_POINTS[\"LINE_FEED\"] = 10] = \"LINE_FEED\";\n CODE_POINTS[CODE_POINTS[\"FORM_FEED\"] = 12] = \"FORM_FEED\";\n CODE_POINTS[CODE_POINTS[\"SPACE\"] = 32] = \"SPACE\";\n CODE_POINTS[CODE_POINTS[\"EXCLAMATION_MARK\"] = 33] = \"EXCLAMATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"QUOTATION_MARK\"] = 34] = \"QUOTATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"NUMBER_SIGN\"] = 35] = \"NUMBER_SIGN\";\n CODE_POINTS[CODE_POINTS[\"AMPERSAND\"] = 38] = \"AMPERSAND\";\n CODE_POINTS[CODE_POINTS[\"APOSTROPHE\"] = 39] = \"APOSTROPHE\";\n CODE_POINTS[CODE_POINTS[\"HYPHEN_MINUS\"] = 45] = \"HYPHEN_MINUS\";\n CODE_POINTS[CODE_POINTS[\"SOLIDUS\"] = 47] = \"SOLIDUS\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_0\"] = 48] = \"DIGIT_0\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_9\"] = 57] = \"DIGIT_9\";\n CODE_POINTS[CODE_POINTS[\"SEMICOLON\"] = 59] = \"SEMICOLON\";\n CODE_POINTS[CODE_POINTS[\"LESS_THAN_SIGN\"] = 60] = \"LESS_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"EQUALS_SIGN\"] = 61] = \"EQUALS_SIGN\";\n CODE_POINTS[CODE_POINTS[\"GREATER_THAN_SIGN\"] = 62] = \"GREATER_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"QUESTION_MARK\"] = 63] = \"QUESTION_MARK\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_A\"] = 65] = \"LATIN_CAPITAL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_F\"] = 70] = \"LATIN_CAPITAL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_X\"] = 88] = \"LATIN_CAPITAL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_Z\"] = 90] = \"LATIN_CAPITAL_Z\";\n CODE_POINTS[CODE_POINTS[\"RIGHT_SQUARE_BRACKET\"] = 93] = \"RIGHT_SQUARE_BRACKET\";\n CODE_POINTS[CODE_POINTS[\"GRAVE_ACCENT\"] = 96] = \"GRAVE_ACCENT\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_A\"] = 97] = \"LATIN_SMALL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_F\"] = 102] = \"LATIN_SMALL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_X\"] = 120] = \"LATIN_SMALL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_Z\"] = 122] = \"LATIN_SMALL_Z\";\n CODE_POINTS[CODE_POINTS[\"REPLACEMENT_CHARACTER\"] = 65533] = \"REPLACEMENT_CHARACTER\";\n})(CODE_POINTS = CODE_POINTS || (CODE_POINTS = {}));\nexport const SEQUENCES = {\n DASH_DASH: '--',\n CDATA_START: '[CDATA[',\n DOCTYPE: 'doctype',\n SCRIPT: 'script',\n PUBLIC: 'public',\n SYSTEM: 'system',\n};\n//Surrogates\nexport function isSurrogate(cp) {\n return cp >= 55296 && cp <= 57343;\n}\nexport function isSurrogatePair(cp) {\n return cp >= 56320 && cp <= 57343;\n}\nexport function getSurrogatePairCodePoint(cp1, cp2) {\n return (cp1 - 55296) * 1024 + 9216 + cp2;\n}\n//NOTE: excluding NULL and ASCII whitespace\nexport function isControlCodePoint(cp) {\n return ((cp !== 0x20 && cp !== 0x0a && cp !== 0x0d && cp !== 0x09 && cp !== 0x0c && cp >= 0x01 && cp <= 0x1f) ||\n (cp >= 0x7f && cp <= 0x9f));\n}\nexport function isUndefinedCodePoint(cp) {\n return (cp >= 64976 && cp <= 65007) || UNDEFINED_CODE_POINTS.has(cp);\n}\n//# sourceMappingURL=unicode.js.map","export var ERR;\n(function (ERR) {\n ERR[\"controlCharacterInInputStream\"] = \"control-character-in-input-stream\";\n ERR[\"noncharacterInInputStream\"] = \"noncharacter-in-input-stream\";\n ERR[\"surrogateInInputStream\"] = \"surrogate-in-input-stream\";\n ERR[\"nonVoidHtmlElementStartTagWithTrailingSolidus\"] = \"non-void-html-element-start-tag-with-trailing-solidus\";\n ERR[\"endTagWithAttributes\"] = \"end-tag-with-attributes\";\n ERR[\"endTagWithTrailingSolidus\"] = \"end-tag-with-trailing-solidus\";\n ERR[\"unexpectedSolidusInTag\"] = \"unexpected-solidus-in-tag\";\n ERR[\"unexpectedNullCharacter\"] = \"unexpected-null-character\";\n ERR[\"unexpectedQuestionMarkInsteadOfTagName\"] = \"unexpected-question-mark-instead-of-tag-name\";\n ERR[\"invalidFirstCharacterOfTagName\"] = \"invalid-first-character-of-tag-name\";\n ERR[\"unexpectedEqualsSignBeforeAttributeName\"] = \"unexpected-equals-sign-before-attribute-name\";\n ERR[\"missingEndTagName\"] = \"missing-end-tag-name\";\n ERR[\"unexpectedCharacterInAttributeName\"] = \"unexpected-character-in-attribute-name\";\n ERR[\"unknownNamedCharacterReference\"] = \"unknown-named-character-reference\";\n ERR[\"missingSemicolonAfterCharacterReference\"] = \"missing-semicolon-after-character-reference\";\n ERR[\"unexpectedCharacterAfterDoctypeSystemIdentifier\"] = \"unexpected-character-after-doctype-system-identifier\";\n ERR[\"unexpectedCharacterInUnquotedAttributeValue\"] = \"unexpected-character-in-unquoted-attribute-value\";\n ERR[\"eofBeforeTagName\"] = \"eof-before-tag-name\";\n ERR[\"eofInTag\"] = \"eof-in-tag\";\n ERR[\"missingAttributeValue\"] = \"missing-attribute-value\";\n ERR[\"missingWhitespaceBetweenAttributes\"] = \"missing-whitespace-between-attributes\";\n ERR[\"missingWhitespaceAfterDoctypePublicKeyword\"] = \"missing-whitespace-after-doctype-public-keyword\";\n ERR[\"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers\"] = \"missing-whitespace-between-doctype-public-and-system-identifiers\";\n ERR[\"missingWhitespaceAfterDoctypeSystemKeyword\"] = \"missing-whitespace-after-doctype-system-keyword\";\n ERR[\"missingQuoteBeforeDoctypePublicIdentifier\"] = \"missing-quote-before-doctype-public-identifier\";\n ERR[\"missingQuoteBeforeDoctypeSystemIdentifier\"] = \"missing-quote-before-doctype-system-identifier\";\n ERR[\"missingDoctypePublicIdentifier\"] = \"missing-doctype-public-identifier\";\n ERR[\"missingDoctypeSystemIdentifier\"] = \"missing-doctype-system-identifier\";\n ERR[\"abruptDoctypePublicIdentifier\"] = \"abrupt-doctype-public-identifier\";\n ERR[\"abruptDoctypeSystemIdentifier\"] = \"abrupt-doctype-system-identifier\";\n ERR[\"cdataInHtmlContent\"] = \"cdata-in-html-content\";\n ERR[\"incorrectlyOpenedComment\"] = \"incorrectly-opened-comment\";\n ERR[\"eofInScriptHtmlCommentLikeText\"] = \"eof-in-script-html-comment-like-text\";\n ERR[\"eofInDoctype\"] = \"eof-in-doctype\";\n ERR[\"nestedComment\"] = \"nested-comment\";\n ERR[\"abruptClosingOfEmptyComment\"] = \"abrupt-closing-of-empty-comment\";\n ERR[\"eofInComment\"] = \"eof-in-comment\";\n ERR[\"incorrectlyClosedComment\"] = \"incorrectly-closed-comment\";\n ERR[\"eofInCdata\"] = \"eof-in-cdata\";\n ERR[\"absenceOfDigitsInNumericCharacterReference\"] = \"absence-of-digits-in-numeric-character-reference\";\n ERR[\"nullCharacterReference\"] = \"null-character-reference\";\n ERR[\"surrogateCharacterReference\"] = \"surrogate-character-reference\";\n ERR[\"characterReferenceOutsideUnicodeRange\"] = \"character-reference-outside-unicode-range\";\n ERR[\"controlCharacterReference\"] = \"control-character-reference\";\n ERR[\"noncharacterCharacterReference\"] = \"noncharacter-character-reference\";\n ERR[\"missingWhitespaceBeforeDoctypeName\"] = \"missing-whitespace-before-doctype-name\";\n ERR[\"missingDoctypeName\"] = \"missing-doctype-name\";\n ERR[\"invalidCharacterSequenceAfterDoctypeName\"] = \"invalid-character-sequence-after-doctype-name\";\n ERR[\"duplicateAttribute\"] = \"duplicate-attribute\";\n ERR[\"nonConformingDoctype\"] = \"non-conforming-doctype\";\n ERR[\"missingDoctype\"] = \"missing-doctype\";\n ERR[\"misplacedDoctype\"] = \"misplaced-doctype\";\n ERR[\"endTagWithoutMatchingOpenElement\"] = \"end-tag-without-matching-open-element\";\n ERR[\"closingOfElementWithOpenChildElements\"] = \"closing-of-element-with-open-child-elements\";\n ERR[\"disallowedContentInNoscriptInHead\"] = \"disallowed-content-in-noscript-in-head\";\n ERR[\"openElementsLeftAfterEof\"] = \"open-elements-left-after-eof\";\n ERR[\"abandonedHeadElementChild\"] = \"abandoned-head-element-child\";\n ERR[\"misplacedStartTagForHeadElement\"] = \"misplaced-start-tag-for-head-element\";\n ERR[\"nestedNoscriptInHead\"] = \"nested-noscript-in-head\";\n ERR[\"eofInElementThatCanContainOnlyText\"] = \"eof-in-element-that-can-contain-only-text\";\n})(ERR = ERR || (ERR = {}));\n//# sourceMappingURL=error-codes.js.map","import { CODE_POINTS as $, getSurrogatePairCodePoint, isControlCodePoint, isSurrogate, isSurrogatePair, isUndefinedCodePoint, } from '../common/unicode.js';\nimport { ERR } from '../common/error-codes.js';\n//Const\nconst DEFAULT_BUFFER_WATERLINE = 1 << 16;\n//Preprocessor\n//NOTE: HTML input preprocessing\n//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#preprocessing-the-input-stream)\nexport class Preprocessor {\n constructor(handler) {\n this.handler = handler;\n this.html = '';\n this.pos = -1;\n // NOTE: Initial `lastGapPos` is -2, to ensure `col` on initialisation is 0\n this.lastGapPos = -2;\n this.gapStack = [];\n this.skipNextNewLine = false;\n this.lastChunkWritten = false;\n this.endOfChunkHit = false;\n this.bufferWaterline = DEFAULT_BUFFER_WATERLINE;\n this.isEol = false;\n this.lineStartPos = 0;\n this.droppedBufferSize = 0;\n this.line = 1;\n //NOTE: avoid reporting errors twice on advance/retreat\n this.lastErrOffset = -1;\n }\n /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */\n get col() {\n return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos);\n }\n get offset() {\n return this.droppedBufferSize + this.pos;\n }\n getError(code) {\n const { line, col, offset } = this;\n return {\n code,\n startLine: line,\n endLine: line,\n startCol: col,\n endCol: col,\n startOffset: offset,\n endOffset: offset,\n };\n }\n _err(code) {\n if (this.handler.onParseError && this.lastErrOffset !== this.offset) {\n this.lastErrOffset = this.offset;\n this.handler.onParseError(this.getError(code));\n }\n }\n _addGap() {\n this.gapStack.push(this.lastGapPos);\n this.lastGapPos = this.pos;\n }\n _processSurrogate(cp) {\n //NOTE: try to peek a surrogate pair\n if (this.pos !== this.html.length - 1) {\n const nextCp = this.html.charCodeAt(this.pos + 1);\n if (isSurrogatePair(nextCp)) {\n //NOTE: we have a surrogate pair. Peek pair character and recalculate code point.\n this.pos++;\n //NOTE: add a gap that should be avoided during retreat\n this._addGap();\n return getSurrogatePairCodePoint(cp, nextCp);\n }\n }\n //NOTE: we are at the end of a chunk, therefore we can't infer the surrogate pair yet.\n else if (!this.lastChunkWritten) {\n this.endOfChunkHit = true;\n return $.EOF;\n }\n //NOTE: isolated surrogate\n this._err(ERR.surrogateInInputStream);\n return cp;\n }\n willDropParsedChunk() {\n return this.pos > this.bufferWaterline;\n }\n dropParsedChunk() {\n if (this.willDropParsedChunk()) {\n this.html = this.html.substring(this.pos);\n this.lineStartPos -= this.pos;\n this.droppedBufferSize += this.pos;\n this.pos = 0;\n this.lastGapPos = -2;\n this.gapStack.length = 0;\n }\n }\n write(chunk, isLastChunk) {\n if (this.html.length > 0) {\n this.html += chunk;\n }\n else {\n this.html = chunk;\n }\n this.endOfChunkHit = false;\n this.lastChunkWritten = isLastChunk;\n }\n insertHtmlAtCurrentPos(chunk) {\n this.html = this.html.substring(0, this.pos + 1) + chunk + this.html.substring(this.pos + 1);\n this.endOfChunkHit = false;\n }\n startsWith(pattern, caseSensitive) {\n // Check if our buffer has enough characters\n if (this.pos + pattern.length > this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return false;\n }\n if (caseSensitive) {\n return this.html.startsWith(pattern, this.pos);\n }\n for (let i = 0; i < pattern.length; i++) {\n const cp = this.html.charCodeAt(this.pos + i) | 0x20;\n if (cp !== pattern.charCodeAt(i)) {\n return false;\n }\n }\n return true;\n }\n peek(offset) {\n const pos = this.pos + offset;\n if (pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n const code = this.html.charCodeAt(pos);\n return code === $.CARRIAGE_RETURN ? $.LINE_FEED : code;\n }\n advance() {\n this.pos++;\n //NOTE: LF should be in the last column of the line\n if (this.isEol) {\n this.isEol = false;\n this.line++;\n this.lineStartPos = this.pos;\n }\n if (this.pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n let cp = this.html.charCodeAt(this.pos);\n //NOTE: all U+000D CARRIAGE RETURN (CR) characters must be converted to U+000A LINE FEED (LF) characters\n if (cp === $.CARRIAGE_RETURN) {\n this.isEol = true;\n this.skipNextNewLine = true;\n return $.LINE_FEED;\n }\n //NOTE: any U+000A LINE FEED (LF) characters that immediately follow a U+000D CARRIAGE RETURN (CR) character\n //must be ignored.\n if (cp === $.LINE_FEED) {\n this.isEol = true;\n if (this.skipNextNewLine) {\n // `line` will be bumped again in the recursive call.\n this.line--;\n this.skipNextNewLine = false;\n this._addGap();\n return this.advance();\n }\n }\n this.skipNextNewLine = false;\n if (isSurrogate(cp)) {\n cp = this._processSurrogate(cp);\n }\n //OPTIMIZATION: first check if code point is in the common allowed\n //range (ASCII alphanumeric, whitespaces, big chunk of BMP)\n //before going into detailed performance cost validation.\n const isCommonValidRange = this.handler.onParseError === null ||\n (cp > 0x1f && cp < 0x7f) ||\n cp === $.LINE_FEED ||\n cp === $.CARRIAGE_RETURN ||\n (cp > 0x9f && cp < 64976);\n if (!isCommonValidRange) {\n this._checkForProblematicCharacters(cp);\n }\n return cp;\n }\n _checkForProblematicCharacters(cp) {\n if (isControlCodePoint(cp)) {\n this._err(ERR.controlCharacterInInputStream);\n }\n else if (isUndefinedCodePoint(cp)) {\n this._err(ERR.noncharacterInInputStream);\n }\n }\n retreat(count) {\n this.pos -= count;\n while (this.pos < this.lastGapPos) {\n this.lastGapPos = this.gapStack.pop();\n this.pos--;\n }\n this.isEol = false;\n }\n}\n//# sourceMappingURL=preprocessor.js.map","export var TokenType;\n(function (TokenType) {\n TokenType[TokenType[\"CHARACTER\"] = 0] = \"CHARACTER\";\n TokenType[TokenType[\"NULL_CHARACTER\"] = 1] = \"NULL_CHARACTER\";\n TokenType[TokenType[\"WHITESPACE_CHARACTER\"] = 2] = \"WHITESPACE_CHARACTER\";\n TokenType[TokenType[\"START_TAG\"] = 3] = \"START_TAG\";\n TokenType[TokenType[\"END_TAG\"] = 4] = \"END_TAG\";\n TokenType[TokenType[\"COMMENT\"] = 5] = \"COMMENT\";\n TokenType[TokenType[\"DOCTYPE\"] = 6] = \"DOCTYPE\";\n TokenType[TokenType[\"EOF\"] = 7] = \"EOF\";\n TokenType[TokenType[\"HIBERNATION\"] = 8] = \"HIBERNATION\";\n})(TokenType = TokenType || (TokenType = {}));\nexport function getTokenAttr(token, attrName) {\n for (let i = token.attrs.length - 1; i >= 0; i--) {\n if (token.attrs[i].name === attrName) {\n return token.attrs[i].value;\n }\n }\n return null;\n}\n//# sourceMappingURL=token.js.map",null,null,null,null,"/** All valid namespaces in HTML. */\nexport var NS;\n(function (NS) {\n NS[\"HTML\"] = \"http://www.w3.org/1999/xhtml\";\n NS[\"MATHML\"] = \"http://www.w3.org/1998/Math/MathML\";\n NS[\"SVG\"] = \"http://www.w3.org/2000/svg\";\n NS[\"XLINK\"] = \"http://www.w3.org/1999/xlink\";\n NS[\"XML\"] = \"http://www.w3.org/XML/1998/namespace\";\n NS[\"XMLNS\"] = \"http://www.w3.org/2000/xmlns/\";\n})(NS = NS || (NS = {}));\nexport var ATTRS;\n(function (ATTRS) {\n ATTRS[\"TYPE\"] = \"type\";\n ATTRS[\"ACTION\"] = \"action\";\n ATTRS[\"ENCODING\"] = \"encoding\";\n ATTRS[\"PROMPT\"] = \"prompt\";\n ATTRS[\"NAME\"] = \"name\";\n ATTRS[\"COLOR\"] = \"color\";\n ATTRS[\"FACE\"] = \"face\";\n ATTRS[\"SIZE\"] = \"size\";\n})(ATTRS = ATTRS || (ATTRS = {}));\n/**\n * The mode of the document.\n *\n * @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks}\n */\nexport var DOCUMENT_MODE;\n(function (DOCUMENT_MODE) {\n DOCUMENT_MODE[\"NO_QUIRKS\"] = \"no-quirks\";\n DOCUMENT_MODE[\"QUIRKS\"] = \"quirks\";\n DOCUMENT_MODE[\"LIMITED_QUIRKS\"] = \"limited-quirks\";\n})(DOCUMENT_MODE = DOCUMENT_MODE || (DOCUMENT_MODE = {}));\nexport var TAG_NAMES;\n(function (TAG_NAMES) {\n TAG_NAMES[\"A\"] = \"a\";\n TAG_NAMES[\"ADDRESS\"] = \"address\";\n TAG_NAMES[\"ANNOTATION_XML\"] = \"annotation-xml\";\n TAG_NAMES[\"APPLET\"] = \"applet\";\n TAG_NAMES[\"AREA\"] = \"area\";\n TAG_NAMES[\"ARTICLE\"] = \"article\";\n TAG_NAMES[\"ASIDE\"] = \"aside\";\n TAG_NAMES[\"B\"] = \"b\";\n TAG_NAMES[\"BASE\"] = \"base\";\n TAG_NAMES[\"BASEFONT\"] = \"basefont\";\n TAG_NAMES[\"BGSOUND\"] = \"bgsound\";\n TAG_NAMES[\"BIG\"] = \"big\";\n TAG_NAMES[\"BLOCKQUOTE\"] = \"blockquote\";\n TAG_NAMES[\"BODY\"] = \"body\";\n TAG_NAMES[\"BR\"] = \"br\";\n TAG_NAMES[\"BUTTON\"] = \"button\";\n TAG_NAMES[\"CAPTION\"] = \"caption\";\n TAG_NAMES[\"CENTER\"] = \"center\";\n TAG_NAMES[\"CODE\"] = \"code\";\n TAG_NAMES[\"COL\"] = \"col\";\n TAG_NAMES[\"COLGROUP\"] = \"colgroup\";\n TAG_NAMES[\"DD\"] = \"dd\";\n TAG_NAMES[\"DESC\"] = \"desc\";\n TAG_NAMES[\"DETAILS\"] = \"details\";\n TAG_NAMES[\"DIALOG\"] = \"dialog\";\n TAG_NAMES[\"DIR\"] = \"dir\";\n TAG_NAMES[\"DIV\"] = \"div\";\n TAG_NAMES[\"DL\"] = \"dl\";\n TAG_NAMES[\"DT\"] = \"dt\";\n TAG_NAMES[\"EM\"] = \"em\";\n TAG_NAMES[\"EMBED\"] = \"embed\";\n TAG_NAMES[\"FIELDSET\"] = \"fieldset\";\n TAG_NAMES[\"FIGCAPTION\"] = \"figcaption\";\n TAG_NAMES[\"FIGURE\"] = \"figure\";\n TAG_NAMES[\"FONT\"] = \"font\";\n TAG_NAMES[\"FOOTER\"] = \"footer\";\n TAG_NAMES[\"FOREIGN_OBJECT\"] = \"foreignObject\";\n TAG_NAMES[\"FORM\"] = \"form\";\n TAG_NAMES[\"FRAME\"] = \"frame\";\n TAG_NAMES[\"FRAMESET\"] = \"frameset\";\n TAG_NAMES[\"H1\"] = \"h1\";\n TAG_NAMES[\"H2\"] = \"h2\";\n TAG_NAMES[\"H3\"] = \"h3\";\n TAG_NAMES[\"H4\"] = \"h4\";\n TAG_NAMES[\"H5\"] = \"h5\";\n TAG_NAMES[\"H6\"] = \"h6\";\n TAG_NAMES[\"HEAD\"] = \"head\";\n TAG_NAMES[\"HEADER\"] = \"header\";\n TAG_NAMES[\"HGROUP\"] = \"hgroup\";\n TAG_NAMES[\"HR\"] = \"hr\";\n TAG_NAMES[\"HTML\"] = \"html\";\n TAG_NAMES[\"I\"] = \"i\";\n TAG_NAMES[\"IMG\"] = \"img\";\n TAG_NAMES[\"IMAGE\"] = \"image\";\n TAG_NAMES[\"INPUT\"] = \"input\";\n TAG_NAMES[\"IFRAME\"] = \"iframe\";\n TAG_NAMES[\"KEYGEN\"] = \"keygen\";\n TAG_NAMES[\"LABEL\"] = \"label\";\n TAG_NAMES[\"LI\"] = \"li\";\n TAG_NAMES[\"LINK\"] = \"link\";\n TAG_NAMES[\"LISTING\"] = \"listing\";\n TAG_NAMES[\"MAIN\"] = \"main\";\n TAG_NAMES[\"MALIGNMARK\"] = \"malignmark\";\n TAG_NAMES[\"MARQUEE\"] = \"marquee\";\n TAG_NAMES[\"MATH\"] = \"math\";\n TAG_NAMES[\"MENU\"] = \"menu\";\n TAG_NAMES[\"META\"] = \"meta\";\n TAG_NAMES[\"MGLYPH\"] = \"mglyph\";\n TAG_NAMES[\"MI\"] = \"mi\";\n TAG_NAMES[\"MO\"] = \"mo\";\n TAG_NAMES[\"MN\"] = \"mn\";\n TAG_NAMES[\"MS\"] = \"ms\";\n TAG_NAMES[\"MTEXT\"] = \"mtext\";\n TAG_NAMES[\"NAV\"] = \"nav\";\n TAG_NAMES[\"NOBR\"] = \"nobr\";\n TAG_NAMES[\"NOFRAMES\"] = \"noframes\";\n TAG_NAMES[\"NOEMBED\"] = \"noembed\";\n TAG_NAMES[\"NOSCRIPT\"] = \"noscript\";\n TAG_NAMES[\"OBJECT\"] = \"object\";\n TAG_NAMES[\"OL\"] = \"ol\";\n TAG_NAMES[\"OPTGROUP\"] = \"optgroup\";\n TAG_NAMES[\"OPTION\"] = \"option\";\n TAG_NAMES[\"P\"] = \"p\";\n TAG_NAMES[\"PARAM\"] = \"param\";\n TAG_NAMES[\"PLAINTEXT\"] = \"plaintext\";\n TAG_NAMES[\"PRE\"] = \"pre\";\n TAG_NAMES[\"RB\"] = \"rb\";\n TAG_NAMES[\"RP\"] = \"rp\";\n TAG_NAMES[\"RT\"] = \"rt\";\n TAG_NAMES[\"RTC\"] = \"rtc\";\n TAG_NAMES[\"RUBY\"] = \"ruby\";\n TAG_NAMES[\"S\"] = \"s\";\n TAG_NAMES[\"SCRIPT\"] = \"script\";\n TAG_NAMES[\"SECTION\"] = \"section\";\n TAG_NAMES[\"SELECT\"] = \"select\";\n TAG_NAMES[\"SOURCE\"] = \"source\";\n TAG_NAMES[\"SMALL\"] = \"small\";\n TAG_NAMES[\"SPAN\"] = \"span\";\n TAG_NAMES[\"STRIKE\"] = \"strike\";\n TAG_NAMES[\"STRONG\"] = \"strong\";\n TAG_NAMES[\"STYLE\"] = \"style\";\n TAG_NAMES[\"SUB\"] = \"sub\";\n TAG_NAMES[\"SUMMARY\"] = \"summary\";\n TAG_NAMES[\"SUP\"] = \"sup\";\n TAG_NAMES[\"TABLE\"] = \"table\";\n TAG_NAMES[\"TBODY\"] = \"tbody\";\n TAG_NAMES[\"TEMPLATE\"] = \"template\";\n TAG_NAMES[\"TEXTAREA\"] = \"textarea\";\n TAG_NAMES[\"TFOOT\"] = \"tfoot\";\n TAG_NAMES[\"TD\"] = \"td\";\n TAG_NAMES[\"TH\"] = \"th\";\n TAG_NAMES[\"THEAD\"] = \"thead\";\n TAG_NAMES[\"TITLE\"] = \"title\";\n TAG_NAMES[\"TR\"] = \"tr\";\n TAG_NAMES[\"TRACK\"] = \"track\";\n TAG_NAMES[\"TT\"] = \"tt\";\n TAG_NAMES[\"U\"] = \"u\";\n TAG_NAMES[\"UL\"] = \"ul\";\n TAG_NAMES[\"SVG\"] = \"svg\";\n TAG_NAMES[\"VAR\"] = \"var\";\n TAG_NAMES[\"WBR\"] = \"wbr\";\n TAG_NAMES[\"XMP\"] = \"xmp\";\n})(TAG_NAMES = TAG_NAMES || (TAG_NAMES = {}));\n/**\n * Tag IDs are numeric IDs for known tag names.\n *\n * We use tag IDs to improve the performance of tag name comparisons.\n */\nexport var TAG_ID;\n(function (TAG_ID) {\n TAG_ID[TAG_ID[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n TAG_ID[TAG_ID[\"A\"] = 1] = \"A\";\n TAG_ID[TAG_ID[\"ADDRESS\"] = 2] = \"ADDRESS\";\n TAG_ID[TAG_ID[\"ANNOTATION_XML\"] = 3] = \"ANNOTATION_XML\";\n TAG_ID[TAG_ID[\"APPLET\"] = 4] = \"APPLET\";\n TAG_ID[TAG_ID[\"AREA\"] = 5] = \"AREA\";\n TAG_ID[TAG_ID[\"ARTICLE\"] = 6] = \"ARTICLE\";\n TAG_ID[TAG_ID[\"ASIDE\"] = 7] = \"ASIDE\";\n TAG_ID[TAG_ID[\"B\"] = 8] = \"B\";\n TAG_ID[TAG_ID[\"BASE\"] = 9] = \"BASE\";\n TAG_ID[TAG_ID[\"BASEFONT\"] = 10] = \"BASEFONT\";\n TAG_ID[TAG_ID[\"BGSOUND\"] = 11] = \"BGSOUND\";\n TAG_ID[TAG_ID[\"BIG\"] = 12] = \"BIG\";\n TAG_ID[TAG_ID[\"BLOCKQUOTE\"] = 13] = \"BLOCKQUOTE\";\n TAG_ID[TAG_ID[\"BODY\"] = 14] = \"BODY\";\n TAG_ID[TAG_ID[\"BR\"] = 15] = \"BR\";\n TAG_ID[TAG_ID[\"BUTTON\"] = 16] = \"BUTTON\";\n TAG_ID[TAG_ID[\"CAPTION\"] = 17] = \"CAPTION\";\n TAG_ID[TAG_ID[\"CENTER\"] = 18] = \"CENTER\";\n TAG_ID[TAG_ID[\"CODE\"] = 19] = \"CODE\";\n TAG_ID[TAG_ID[\"COL\"] = 20] = \"COL\";\n TAG_ID[TAG_ID[\"COLGROUP\"] = 21] = \"COLGROUP\";\n TAG_ID[TAG_ID[\"DD\"] = 22] = \"DD\";\n TAG_ID[TAG_ID[\"DESC\"] = 23] = \"DESC\";\n TAG_ID[TAG_ID[\"DETAILS\"] = 24] = \"DETAILS\";\n TAG_ID[TAG_ID[\"DIALOG\"] = 25] = \"DIALOG\";\n TAG_ID[TAG_ID[\"DIR\"] = 26] = \"DIR\";\n TAG_ID[TAG_ID[\"DIV\"] = 27] = \"DIV\";\n TAG_ID[TAG_ID[\"DL\"] = 28] = \"DL\";\n TAG_ID[TAG_ID[\"DT\"] = 29] = \"DT\";\n TAG_ID[TAG_ID[\"EM\"] = 30] = \"EM\";\n TAG_ID[TAG_ID[\"EMBED\"] = 31] = \"EMBED\";\n TAG_ID[TAG_ID[\"FIELDSET\"] = 32] = \"FIELDSET\";\n TAG_ID[TAG_ID[\"FIGCAPTION\"] = 33] = \"FIGCAPTION\";\n TAG_ID[TAG_ID[\"FIGURE\"] = 34] = \"FIGURE\";\n TAG_ID[TAG_ID[\"FONT\"] = 35] = \"FONT\";\n TAG_ID[TAG_ID[\"FOOTER\"] = 36] = \"FOOTER\";\n TAG_ID[TAG_ID[\"FOREIGN_OBJECT\"] = 37] = \"FOREIGN_OBJECT\";\n TAG_ID[TAG_ID[\"FORM\"] = 38] = \"FORM\";\n TAG_ID[TAG_ID[\"FRAME\"] = 39] = \"FRAME\";\n TAG_ID[TAG_ID[\"FRAMESET\"] = 40] = \"FRAMESET\";\n TAG_ID[TAG_ID[\"H1\"] = 41] = \"H1\";\n TAG_ID[TAG_ID[\"H2\"] = 42] = \"H2\";\n TAG_ID[TAG_ID[\"H3\"] = 43] = \"H3\";\n TAG_ID[TAG_ID[\"H4\"] = 44] = \"H4\";\n TAG_ID[TAG_ID[\"H5\"] = 45] = \"H5\";\n TAG_ID[TAG_ID[\"H6\"] = 46] = \"H6\";\n TAG_ID[TAG_ID[\"HEAD\"] = 47] = \"HEAD\";\n TAG_ID[TAG_ID[\"HEADER\"] = 48] = \"HEADER\";\n TAG_ID[TAG_ID[\"HGROUP\"] = 49] = \"HGROUP\";\n TAG_ID[TAG_ID[\"HR\"] = 50] = \"HR\";\n TAG_ID[TAG_ID[\"HTML\"] = 51] = \"HTML\";\n TAG_ID[TAG_ID[\"I\"] = 52] = \"I\";\n TAG_ID[TAG_ID[\"IMG\"] = 53] = \"IMG\";\n TAG_ID[TAG_ID[\"IMAGE\"] = 54] = \"IMAGE\";\n TAG_ID[TAG_ID[\"INPUT\"] = 55] = \"INPUT\";\n TAG_ID[TAG_ID[\"IFRAME\"] = 56] = \"IFRAME\";\n TAG_ID[TAG_ID[\"KEYGEN\"] = 57] = \"KEYGEN\";\n TAG_ID[TAG_ID[\"LABEL\"] = 58] = \"LABEL\";\n TAG_ID[TAG_ID[\"LI\"] = 59] = \"LI\";\n TAG_ID[TAG_ID[\"LINK\"] = 60] = \"LINK\";\n TAG_ID[TAG_ID[\"LISTING\"] = 61] = \"LISTING\";\n TAG_ID[TAG_ID[\"MAIN\"] = 62] = \"MAIN\";\n TAG_ID[TAG_ID[\"MALIGNMARK\"] = 63] = \"MALIGNMARK\";\n TAG_ID[TAG_ID[\"MARQUEE\"] = 64] = \"MARQUEE\";\n TAG_ID[TAG_ID[\"MATH\"] = 65] = \"MATH\";\n TAG_ID[TAG_ID[\"MENU\"] = 66] = \"MENU\";\n TAG_ID[TAG_ID[\"META\"] = 67] = \"META\";\n TAG_ID[TAG_ID[\"MGLYPH\"] = 68] = \"MGLYPH\";\n TAG_ID[TAG_ID[\"MI\"] = 69] = \"MI\";\n TAG_ID[TAG_ID[\"MO\"] = 70] = \"MO\";\n TAG_ID[TAG_ID[\"MN\"] = 71] = \"MN\";\n TAG_ID[TAG_ID[\"MS\"] = 72] = \"MS\";\n TAG_ID[TAG_ID[\"MTEXT\"] = 73] = \"MTEXT\";\n TAG_ID[TAG_ID[\"NAV\"] = 74] = \"NAV\";\n TAG_ID[TAG_ID[\"NOBR\"] = 75] = \"NOBR\";\n TAG_ID[TAG_ID[\"NOFRAMES\"] = 76] = \"NOFRAMES\";\n TAG_ID[TAG_ID[\"NOEMBED\"] = 77] = \"NOEMBED\";\n TAG_ID[TAG_ID[\"NOSCRIPT\"] = 78] = \"NOSCRIPT\";\n TAG_ID[TAG_ID[\"OBJECT\"] = 79] = \"OBJECT\";\n TAG_ID[TAG_ID[\"OL\"] = 80] = \"OL\";\n TAG_ID[TAG_ID[\"OPTGROUP\"] = 81] = \"OPTGROUP\";\n TAG_ID[TAG_ID[\"OPTION\"] = 82] = \"OPTION\";\n TAG_ID[TAG_ID[\"P\"] = 83] = \"P\";\n TAG_ID[TAG_ID[\"PARAM\"] = 84] = \"PARAM\";\n TAG_ID[TAG_ID[\"PLAINTEXT\"] = 85] = \"PLAINTEXT\";\n TAG_ID[TAG_ID[\"PRE\"] = 86] = \"PRE\";\n TAG_ID[TAG_ID[\"RB\"] = 87] = \"RB\";\n TAG_ID[TAG_ID[\"RP\"] = 88] = \"RP\";\n TAG_ID[TAG_ID[\"RT\"] = 89] = \"RT\";\n TAG_ID[TAG_ID[\"RTC\"] = 90] = \"RTC\";\n TAG_ID[TAG_ID[\"RUBY\"] = 91] = \"RUBY\";\n TAG_ID[TAG_ID[\"S\"] = 92] = \"S\";\n TAG_ID[TAG_ID[\"SCRIPT\"] = 93] = \"SCRIPT\";\n TAG_ID[TAG_ID[\"SECTION\"] = 94] = \"SECTION\";\n TAG_ID[TAG_ID[\"SELECT\"] = 95] = \"SELECT\";\n TAG_ID[TAG_ID[\"SOURCE\"] = 96] = \"SOURCE\";\n TAG_ID[TAG_ID[\"SMALL\"] = 97] = \"SMALL\";\n TAG_ID[TAG_ID[\"SPAN\"] = 98] = \"SPAN\";\n TAG_ID[TAG_ID[\"STRIKE\"] = 99] = \"STRIKE\";\n TAG_ID[TAG_ID[\"STRONG\"] = 100] = \"STRONG\";\n TAG_ID[TAG_ID[\"STYLE\"] = 101] = \"STYLE\";\n TAG_ID[TAG_ID[\"SUB\"] = 102] = \"SUB\";\n TAG_ID[TAG_ID[\"SUMMARY\"] = 103] = \"SUMMARY\";\n TAG_ID[TAG_ID[\"SUP\"] = 104] = \"SUP\";\n TAG_ID[TAG_ID[\"TABLE\"] = 105] = \"TABLE\";\n TAG_ID[TAG_ID[\"TBODY\"] = 106] = \"TBODY\";\n TAG_ID[TAG_ID[\"TEMPLATE\"] = 107] = \"TEMPLATE\";\n TAG_ID[TAG_ID[\"TEXTAREA\"] = 108] = \"TEXTAREA\";\n TAG_ID[TAG_ID[\"TFOOT\"] = 109] = \"TFOOT\";\n TAG_ID[TAG_ID[\"TD\"] = 110] = \"TD\";\n TAG_ID[TAG_ID[\"TH\"] = 111] = \"TH\";\n TAG_ID[TAG_ID[\"THEAD\"] = 112] = \"THEAD\";\n TAG_ID[TAG_ID[\"TITLE\"] = 113] = \"TITLE\";\n TAG_ID[TAG_ID[\"TR\"] = 114] = \"TR\";\n TAG_ID[TAG_ID[\"TRACK\"] = 115] = \"TRACK\";\n TAG_ID[TAG_ID[\"TT\"] = 116] = \"TT\";\n TAG_ID[TAG_ID[\"U\"] = 117] = \"U\";\n TAG_ID[TAG_ID[\"UL\"] = 118] = \"UL\";\n TAG_ID[TAG_ID[\"SVG\"] = 119] = \"SVG\";\n TAG_ID[TAG_ID[\"VAR\"] = 120] = \"VAR\";\n TAG_ID[TAG_ID[\"WBR\"] = 121] = \"WBR\";\n TAG_ID[TAG_ID[\"XMP\"] = 122] = \"XMP\";\n})(TAG_ID = TAG_ID || (TAG_ID = {}));\nconst TAG_NAME_TO_ID = new Map([\n [TAG_NAMES.A, TAG_ID.A],\n [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],\n [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],\n [TAG_NAMES.APPLET, TAG_ID.APPLET],\n [TAG_NAMES.AREA, TAG_ID.AREA],\n [TAG_NAMES.ARTICLE, TAG_ID.ARTICLE],\n [TAG_NAMES.ASIDE, TAG_ID.ASIDE],\n [TAG_NAMES.B, TAG_ID.B],\n [TAG_NAMES.BASE, TAG_ID.BASE],\n [TAG_NAMES.BASEFONT, TAG_ID.BASEFONT],\n [TAG_NAMES.BGSOUND, TAG_ID.BGSOUND],\n [TAG_NAMES.BIG, TAG_ID.BIG],\n [TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE],\n [TAG_NAMES.BODY, TAG_ID.BODY],\n [TAG_NAMES.BR, TAG_ID.BR],\n [TAG_NAMES.BUTTON, TAG_ID.BUTTON],\n [TAG_NAMES.CAPTION, TAG_ID.CAPTION],\n [TAG_NAMES.CENTER, TAG_ID.CENTER],\n [TAG_NAMES.CODE, TAG_ID.CODE],\n [TAG_NAMES.COL, TAG_ID.COL],\n [TAG_NAMES.COLGROUP, TAG_ID.COLGROUP],\n [TAG_NAMES.DD, TAG_ID.DD],\n [TAG_NAMES.DESC, TAG_ID.DESC],\n [TAG_NAMES.DETAILS, TAG_ID.DETAILS],\n [TAG_NAMES.DIALOG, TAG_ID.DIALOG],\n [TAG_NAMES.DIR, TAG_ID.DIR],\n [TAG_NAMES.DIV, TAG_ID.DIV],\n [TAG_NAMES.DL, TAG_ID.DL],\n [TAG_NAMES.DT, TAG_ID.DT],\n [TAG_NAMES.EM, TAG_ID.EM],\n [TAG_NAMES.EMBED, TAG_ID.EMBED],\n [TAG_NAMES.FIELDSET, TAG_ID.FIELDSET],\n [TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION],\n [TAG_NAMES.FIGURE, TAG_ID.FIGURE],\n [TAG_NAMES.FONT, TAG_ID.FONT],\n [TAG_NAMES.FOOTER, TAG_ID.FOOTER],\n [TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT],\n [TAG_NAMES.FORM, TAG_ID.FORM],\n [TAG_NAMES.FRAME, TAG_ID.FRAME],\n [TAG_NAMES.FRAMESET, TAG_ID.FRAMESET],\n [TAG_NAMES.H1, TAG_ID.H1],\n [TAG_NAMES.H2, TAG_ID.H2],\n [TAG_NAMES.H3, TAG_ID.H3],\n [TAG_NAMES.H4, TAG_ID.H4],\n [TAG_NAMES.H5, TAG_ID.H5],\n [TAG_NAMES.H6, TAG_ID.H6],\n [TAG_NAMES.HEAD, TAG_ID.HEAD],\n [TAG_NAMES.HEADER, TAG_ID.HEADER],\n [TAG_NAMES.HGROUP, TAG_ID.HGROUP],\n [TAG_NAMES.HR, TAG_ID.HR],\n [TAG_NAMES.HTML, TAG_ID.HTML],\n [TAG_NAMES.I, TAG_ID.I],\n [TAG_NAMES.IMG, TAG_ID.IMG],\n [TAG_NAMES.IMAGE, TAG_ID.IMAGE],\n [TAG_NAMES.INPUT, TAG_ID.INPUT],\n [TAG_NAMES.IFRAME, TAG_ID.IFRAME],\n [TAG_NAMES.KEYGEN, TAG_ID.KEYGEN],\n [TAG_NAMES.LABEL, TAG_ID.LABEL],\n [TAG_NAMES.LI, TAG_ID.LI],\n [TAG_NAMES.LINK, TAG_ID.LINK],\n [TAG_NAMES.LISTING, TAG_ID.LISTING],\n [TAG_NAMES.MAIN, TAG_ID.MAIN],\n [TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK],\n [TAG_NAMES.MARQUEE, TAG_ID.MARQUEE],\n [TAG_NAMES.MATH, TAG_ID.MATH],\n [TAG_NAMES.MENU, TAG_ID.MENU],\n [TAG_NAMES.META, TAG_ID.META],\n [TAG_NAMES.MGLYPH, TAG_ID.MGLYPH],\n [TAG_NAMES.MI, TAG_ID.MI],\n [TAG_NAMES.MO, TAG_ID.MO],\n [TAG_NAMES.MN, TAG_ID.MN],\n [TAG_NAMES.MS, TAG_ID.MS],\n [TAG_NAMES.MTEXT, TAG_ID.MTEXT],\n [TAG_NAMES.NAV, TAG_ID.NAV],\n [TAG_NAMES.NOBR, TAG_ID.NOBR],\n [TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES],\n [TAG_NAMES.NOEMBED, TAG_ID.NOEMBED],\n [TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT],\n [TAG_NAMES.OBJECT, TAG_ID.OBJECT],\n [TAG_NAMES.OL, TAG_ID.OL],\n [TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP],\n [TAG_NAMES.OPTION, TAG_ID.OPTION],\n [TAG_NAMES.P, TAG_ID.P],\n [TAG_NAMES.PARAM, TAG_ID.PARAM],\n [TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT],\n [TAG_NAMES.PRE, TAG_ID.PRE],\n [TAG_NAMES.RB, TAG_ID.RB],\n [TAG_NAMES.RP, TAG_ID.RP],\n [TAG_NAMES.RT, TAG_ID.RT],\n [TAG_NAMES.RTC, TAG_ID.RTC],\n [TAG_NAMES.RUBY, TAG_ID.RUBY],\n [TAG_NAMES.S, TAG_ID.S],\n [TAG_NAMES.SCRIPT, TAG_ID.SCRIPT],\n [TAG_NAMES.SECTION, TAG_ID.SECTION],\n [TAG_NAMES.SELECT, TAG_ID.SELECT],\n [TAG_NAMES.SOURCE, TAG_ID.SOURCE],\n [TAG_NAMES.SMALL, TAG_ID.SMALL],\n [TAG_NAMES.SPAN, TAG_ID.SPAN],\n [TAG_NAMES.STRIKE, TAG_ID.STRIKE],\n [TAG_NAMES.STRONG, TAG_ID.STRONG],\n [TAG_NAMES.STYLE, TAG_ID.STYLE],\n [TAG_NAMES.SUB, TAG_ID.SUB],\n [TAG_NAMES.SUMMARY, TAG_ID.SUMMARY],\n [TAG_NAMES.SUP, TAG_ID.SUP],\n [TAG_NAMES.TABLE, TAG_ID.TABLE],\n [TAG_NAMES.TBODY, TAG_ID.TBODY],\n [TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE],\n [TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA],\n [TAG_NAMES.TFOOT, TAG_ID.TFOOT],\n [TAG_NAMES.TD, TAG_ID.TD],\n [TAG_NAMES.TH, TAG_ID.TH],\n [TAG_NAMES.THEAD, TAG_ID.THEAD],\n [TAG_NAMES.TITLE, TAG_ID.TITLE],\n [TAG_NAMES.TR, TAG_ID.TR],\n [TAG_NAMES.TRACK, TAG_ID.TRACK],\n [TAG_NAMES.TT, TAG_ID.TT],\n [TAG_NAMES.U, TAG_ID.U],\n [TAG_NAMES.UL, TAG_ID.UL],\n [TAG_NAMES.SVG, TAG_ID.SVG],\n [TAG_NAMES.VAR, TAG_ID.VAR],\n [TAG_NAMES.WBR, TAG_ID.WBR],\n [TAG_NAMES.XMP, TAG_ID.XMP],\n]);\nexport function getTagID(tagName) {\n var _a;\n return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN;\n}\nconst $ = TAG_ID;\nexport const SPECIAL_ELEMENTS = {\n [NS.HTML]: new Set([\n $.ADDRESS,\n $.APPLET,\n $.AREA,\n $.ARTICLE,\n $.ASIDE,\n $.BASE,\n $.BASEFONT,\n $.BGSOUND,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.BUTTON,\n $.CAPTION,\n $.CENTER,\n $.COL,\n $.COLGROUP,\n $.DD,\n $.DETAILS,\n $.DIR,\n $.DIV,\n $.DL,\n $.DT,\n $.EMBED,\n $.FIELDSET,\n $.FIGCAPTION,\n $.FIGURE,\n $.FOOTER,\n $.FORM,\n $.FRAME,\n $.FRAMESET,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HEADER,\n $.HGROUP,\n $.HR,\n $.HTML,\n $.IFRAME,\n $.IMG,\n $.INPUT,\n $.LI,\n $.LINK,\n $.LISTING,\n $.MAIN,\n $.MARQUEE,\n $.MENU,\n $.META,\n $.NAV,\n $.NOEMBED,\n $.NOFRAMES,\n $.NOSCRIPT,\n $.OBJECT,\n $.OL,\n $.P,\n $.PARAM,\n $.PLAINTEXT,\n $.PRE,\n $.SCRIPT,\n $.SECTION,\n $.SELECT,\n $.SOURCE,\n $.STYLE,\n $.SUMMARY,\n $.TABLE,\n $.TBODY,\n $.TD,\n $.TEMPLATE,\n $.TEXTAREA,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TITLE,\n $.TR,\n $.TRACK,\n $.UL,\n $.WBR,\n $.XMP,\n ]),\n [NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]),\n [NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]),\n [NS.XLINK]: new Set(),\n [NS.XML]: new Set(),\n [NS.XMLNS]: new Set(),\n};\nexport function isNumberedHeader(tn) {\n return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6;\n}\nconst UNESCAPED_TEXT = new Set([\n TAG_NAMES.STYLE,\n TAG_NAMES.SCRIPT,\n TAG_NAMES.XMP,\n TAG_NAMES.IFRAME,\n TAG_NAMES.NOEMBED,\n TAG_NAMES.NOFRAMES,\n TAG_NAMES.PLAINTEXT,\n]);\nexport function hasUnescapedText(tn, scriptingEnabled) {\n return UNESCAPED_TEXT.has(tn) || (scriptingEnabled && tn === TAG_NAMES.NOSCRIPT);\n}\n//# sourceMappingURL=html.js.map","import { Preprocessor } from './preprocessor.js';\nimport { CODE_POINTS as $, SEQUENCES as $$, REPLACEMENT_CHARACTER, isSurrogate, isUndefinedCodePoint, isControlCodePoint, } from '../common/unicode.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\nimport { htmlDecodeTree, BinTrieFlags, determineBranch } from 'entities/lib/decode.js';\nimport { ERR } from '../common/error-codes.js';\nimport { TAG_ID, getTagID } from '../common/html.js';\n//C1 Unicode control character reference replacements\nconst C1_CONTROLS_REFERENCE_REPLACEMENTS = new Map([\n [0x80, 8364],\n [0x82, 8218],\n [0x83, 402],\n [0x84, 8222],\n [0x85, 8230],\n [0x86, 8224],\n [0x87, 8225],\n [0x88, 710],\n [0x89, 8240],\n [0x8a, 352],\n [0x8b, 8249],\n [0x8c, 338],\n [0x8e, 381],\n [0x91, 8216],\n [0x92, 8217],\n [0x93, 8220],\n [0x94, 8221],\n [0x95, 8226],\n [0x96, 8211],\n [0x97, 8212],\n [0x98, 732],\n [0x99, 8482],\n [0x9a, 353],\n [0x9b, 8250],\n [0x9c, 339],\n [0x9e, 382],\n [0x9f, 376],\n]);\n//States\nvar State;\n(function (State) {\n State[State[\"DATA\"] = 0] = \"DATA\";\n State[State[\"RCDATA\"] = 1] = \"RCDATA\";\n State[State[\"RAWTEXT\"] = 2] = \"RAWTEXT\";\n State[State[\"SCRIPT_DATA\"] = 3] = \"SCRIPT_DATA\";\n State[State[\"PLAINTEXT\"] = 4] = \"PLAINTEXT\";\n State[State[\"TAG_OPEN\"] = 5] = \"TAG_OPEN\";\n State[State[\"END_TAG_OPEN\"] = 6] = \"END_TAG_OPEN\";\n State[State[\"TAG_NAME\"] = 7] = \"TAG_NAME\";\n State[State[\"RCDATA_LESS_THAN_SIGN\"] = 8] = \"RCDATA_LESS_THAN_SIGN\";\n State[State[\"RCDATA_END_TAG_OPEN\"] = 9] = \"RCDATA_END_TAG_OPEN\";\n State[State[\"RCDATA_END_TAG_NAME\"] = 10] = \"RCDATA_END_TAG_NAME\";\n State[State[\"RAWTEXT_LESS_THAN_SIGN\"] = 11] = \"RAWTEXT_LESS_THAN_SIGN\";\n State[State[\"RAWTEXT_END_TAG_OPEN\"] = 12] = \"RAWTEXT_END_TAG_OPEN\";\n State[State[\"RAWTEXT_END_TAG_NAME\"] = 13] = \"RAWTEXT_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_LESS_THAN_SIGN\"] = 14] = \"SCRIPT_DATA_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_END_TAG_OPEN\"] = 15] = \"SCRIPT_DATA_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_END_TAG_NAME\"] = 16] = \"SCRIPT_DATA_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_ESCAPE_START\"] = 17] = \"SCRIPT_DATA_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_ESCAPE_START_DASH\"] = 18] = \"SCRIPT_DATA_ESCAPE_START_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED\"] = 19] = \"SCRIPT_DATA_ESCAPED\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH\"] = 20] = \"SCRIPT_DATA_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH_DASH\"] = 21] = \"SCRIPT_DATA_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\"] = 22] = \"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\"] = 23] = \"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_NAME\"] = 24] = \"SCRIPT_DATA_ESCAPED_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_START\"] = 25] = \"SCRIPT_DATA_DOUBLE_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED\"] = 26] = \"SCRIPT_DATA_DOUBLE_ESCAPED\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\"] = 27] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\"] = 28] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\"] = 29] = \"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_END\"] = 30] = \"SCRIPT_DATA_DOUBLE_ESCAPE_END\";\n State[State[\"BEFORE_ATTRIBUTE_NAME\"] = 31] = \"BEFORE_ATTRIBUTE_NAME\";\n State[State[\"ATTRIBUTE_NAME\"] = 32] = \"ATTRIBUTE_NAME\";\n State[State[\"AFTER_ATTRIBUTE_NAME\"] = 33] = \"AFTER_ATTRIBUTE_NAME\";\n State[State[\"BEFORE_ATTRIBUTE_VALUE\"] = 34] = \"BEFORE_ATTRIBUTE_VALUE\";\n State[State[\"ATTRIBUTE_VALUE_DOUBLE_QUOTED\"] = 35] = \"ATTRIBUTE_VALUE_DOUBLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_SINGLE_QUOTED\"] = 36] = \"ATTRIBUTE_VALUE_SINGLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_UNQUOTED\"] = 37] = \"ATTRIBUTE_VALUE_UNQUOTED\";\n State[State[\"AFTER_ATTRIBUTE_VALUE_QUOTED\"] = 38] = \"AFTER_ATTRIBUTE_VALUE_QUOTED\";\n State[State[\"SELF_CLOSING_START_TAG\"] = 39] = \"SELF_CLOSING_START_TAG\";\n State[State[\"BOGUS_COMMENT\"] = 40] = \"BOGUS_COMMENT\";\n State[State[\"MARKUP_DECLARATION_OPEN\"] = 41] = \"MARKUP_DECLARATION_OPEN\";\n State[State[\"COMMENT_START\"] = 42] = \"COMMENT_START\";\n State[State[\"COMMENT_START_DASH\"] = 43] = \"COMMENT_START_DASH\";\n State[State[\"COMMENT\"] = 44] = \"COMMENT\";\n State[State[\"COMMENT_LESS_THAN_SIGN\"] = 45] = \"COMMENT_LESS_THAN_SIGN\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG\"] = 46] = \"COMMENT_LESS_THAN_SIGN_BANG\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH\"] = 47] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\"] = 48] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\";\n State[State[\"COMMENT_END_DASH\"] = 49] = \"COMMENT_END_DASH\";\n State[State[\"COMMENT_END\"] = 50] = \"COMMENT_END\";\n State[State[\"COMMENT_END_BANG\"] = 51] = \"COMMENT_END_BANG\";\n State[State[\"DOCTYPE\"] = 52] = \"DOCTYPE\";\n State[State[\"BEFORE_DOCTYPE_NAME\"] = 53] = \"BEFORE_DOCTYPE_NAME\";\n State[State[\"DOCTYPE_NAME\"] = 54] = \"DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_NAME\"] = 55] = \"AFTER_DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_KEYWORD\"] = 56] = \"AFTER_DOCTYPE_PUBLIC_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\"] = 57] = \"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\"] = 58] = \"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\"] = 59] = \"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\"] = 60] = \"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\"] = 61] = \"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_KEYWORD\"] = 62] = \"AFTER_DOCTYPE_SYSTEM_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\"] = 63] = \"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\"] = 64] = \"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\"] = 65] = \"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\"] = 66] = \"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"BOGUS_DOCTYPE\"] = 67] = \"BOGUS_DOCTYPE\";\n State[State[\"CDATA_SECTION\"] = 68] = \"CDATA_SECTION\";\n State[State[\"CDATA_SECTION_BRACKET\"] = 69] = \"CDATA_SECTION_BRACKET\";\n State[State[\"CDATA_SECTION_END\"] = 70] = \"CDATA_SECTION_END\";\n State[State[\"CHARACTER_REFERENCE\"] = 71] = \"CHARACTER_REFERENCE\";\n State[State[\"NAMED_CHARACTER_REFERENCE\"] = 72] = \"NAMED_CHARACTER_REFERENCE\";\n State[State[\"AMBIGUOUS_AMPERSAND\"] = 73] = \"AMBIGUOUS_AMPERSAND\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE\"] = 74] = \"NUMERIC_CHARACTER_REFERENCE\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE_START\"] = 75] = \"HEXADEMICAL_CHARACTER_REFERENCE_START\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE\"] = 76] = \"HEXADEMICAL_CHARACTER_REFERENCE\";\n State[State[\"DECIMAL_CHARACTER_REFERENCE\"] = 77] = \"DECIMAL_CHARACTER_REFERENCE\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE_END\"] = 78] = \"NUMERIC_CHARACTER_REFERENCE_END\";\n})(State || (State = {}));\n//Tokenizer initial states for different modes\nexport const TokenizerMode = {\n DATA: State.DATA,\n RCDATA: State.RCDATA,\n RAWTEXT: State.RAWTEXT,\n SCRIPT_DATA: State.SCRIPT_DATA,\n PLAINTEXT: State.PLAINTEXT,\n CDATA_SECTION: State.CDATA_SECTION,\n};\n//Utils\n//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline\n//this functions if they will be situated in another module due to context switch.\n//Always perform inlining check before modifying this functions ('node --trace-inlining').\nfunction isAsciiDigit(cp) {\n return cp >= $.DIGIT_0 && cp <= $.DIGIT_9;\n}\nfunction isAsciiUpper(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z;\n}\nfunction isAsciiLower(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z;\n}\nfunction isAsciiLetter(cp) {\n return isAsciiLower(cp) || isAsciiUpper(cp);\n}\nfunction isAsciiAlphaNumeric(cp) {\n return isAsciiLetter(cp) || isAsciiDigit(cp);\n}\nfunction isAsciiUpperHexDigit(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_F;\n}\nfunction isAsciiLowerHexDigit(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_F;\n}\nfunction isAsciiHexDigit(cp) {\n return isAsciiDigit(cp) || isAsciiUpperHexDigit(cp) || isAsciiLowerHexDigit(cp);\n}\nfunction toAsciiLower(cp) {\n return cp + 32;\n}\nfunction isWhitespace(cp) {\n return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;\n}\nfunction isEntityInAttributeInvalidEnd(nextCp) {\n return nextCp === $.EQUALS_SIGN || isAsciiAlphaNumeric(nextCp);\n}\nfunction isScriptDataDoubleEscapeSequenceEnd(cp) {\n return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;\n}\n//Tokenizer\nexport class Tokenizer {\n constructor(options, handler) {\n this.options = options;\n this.handler = handler;\n this.paused = false;\n /** Ensures that the parsing loop isn't run multiple times at once. */\n this.inLoop = false;\n /**\n * Indicates that the current adjusted node exists, is not an element in the HTML namespace,\n * and that it is not an integration point for either MathML or HTML.\n *\n * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}\n */\n this.inForeignNode = false;\n this.lastStartTagName = '';\n this.active = false;\n this.state = State.DATA;\n this.returnState = State.DATA;\n this.charRefCode = -1;\n this.consumedAfterSnapshot = -1;\n this.currentCharacterToken = null;\n this.currentToken = null;\n this.currentAttr = { name: '', value: '' };\n this.preprocessor = new Preprocessor(handler);\n this.currentLocation = this.getCurrentLocation(-1);\n }\n //Errors\n _err(code) {\n var _a, _b;\n (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code));\n }\n // NOTE: `offset` may never run across line boundaries.\n getCurrentLocation(offset) {\n if (!this.options.sourceCodeLocationInfo) {\n return null;\n }\n return {\n startLine: this.preprocessor.line,\n startCol: this.preprocessor.col - offset,\n startOffset: this.preprocessor.offset - offset,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n };\n }\n _runParsingLoop() {\n if (this.inLoop)\n return;\n this.inLoop = true;\n while (this.active && !this.paused) {\n this.consumedAfterSnapshot = 0;\n const cp = this._consume();\n if (!this._ensureHibernation()) {\n this._callState(cp);\n }\n }\n this.inLoop = false;\n }\n //API\n pause() {\n this.paused = true;\n }\n resume(writeCallback) {\n if (!this.paused) {\n throw new Error('Parser was already resumed');\n }\n this.paused = false;\n // Necessary for synchronous resume.\n if (this.inLoop)\n return;\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n write(chunk, isLastChunk, writeCallback) {\n this.active = true;\n this.preprocessor.write(chunk, isLastChunk);\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n insertHtmlAtCurrentPos(chunk) {\n this.active = true;\n this.preprocessor.insertHtmlAtCurrentPos(chunk);\n this._runParsingLoop();\n }\n //Hibernation\n _ensureHibernation() {\n if (this.preprocessor.endOfChunkHit) {\n this._unconsume(this.consumedAfterSnapshot);\n this.active = false;\n return true;\n }\n return false;\n }\n //Consumption\n _consume() {\n this.consumedAfterSnapshot++;\n return this.preprocessor.advance();\n }\n _unconsume(count) {\n this.consumedAfterSnapshot -= count;\n this.preprocessor.retreat(count);\n }\n _reconsumeInState(state, cp) {\n this.state = state;\n this._callState(cp);\n }\n _advanceBy(count) {\n this.consumedAfterSnapshot += count;\n for (let i = 0; i < count; i++) {\n this.preprocessor.advance();\n }\n }\n _consumeSequenceIfMatch(pattern, caseSensitive) {\n if (this.preprocessor.startsWith(pattern, caseSensitive)) {\n // We will already have consumed one character before calling this method.\n this._advanceBy(pattern.length - 1);\n return true;\n }\n return false;\n }\n //Token creation\n _createStartTagToken() {\n this.currentToken = {\n type: TokenType.START_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(1),\n };\n }\n _createEndTagToken() {\n this.currentToken = {\n type: TokenType.END_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(2),\n };\n }\n _createCommentToken(offset) {\n this.currentToken = {\n type: TokenType.COMMENT,\n data: '',\n location: this.getCurrentLocation(offset),\n };\n }\n _createDoctypeToken(initialName) {\n this.currentToken = {\n type: TokenType.DOCTYPE,\n name: initialName,\n forceQuirks: false,\n publicId: null,\n systemId: null,\n location: this.currentLocation,\n };\n }\n _createCharacterToken(type, chars) {\n this.currentCharacterToken = {\n type,\n chars,\n location: this.currentLocation,\n };\n }\n //Tag attributes\n _createAttr(attrNameFirstCh) {\n this.currentAttr = {\n name: attrNameFirstCh,\n value: '',\n };\n this.currentLocation = this.getCurrentLocation(0);\n }\n _leaveAttrName() {\n var _a;\n var _b;\n const token = this.currentToken;\n if (getTokenAttr(token, this.currentAttr.name) === null) {\n token.attrs.push(this.currentAttr);\n if (token.location && this.currentLocation) {\n const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));\n attrLocations[this.currentAttr.name] = this.currentLocation;\n // Set end location\n this._leaveAttrValue();\n }\n }\n else {\n this._err(ERR.duplicateAttribute);\n }\n }\n _leaveAttrValue() {\n if (this.currentLocation) {\n this.currentLocation.endLine = this.preprocessor.line;\n this.currentLocation.endCol = this.preprocessor.col;\n this.currentLocation.endOffset = this.preprocessor.offset;\n }\n }\n //Token emission\n prepareToken(ct) {\n this._emitCurrentCharacterToken(ct.location);\n this.currentToken = null;\n if (ct.location) {\n ct.location.endLine = this.preprocessor.line;\n ct.location.endCol = this.preprocessor.col + 1;\n ct.location.endOffset = this.preprocessor.offset + 1;\n }\n this.currentLocation = this.getCurrentLocation(-1);\n }\n emitCurrentTagToken() {\n const ct = this.currentToken;\n this.prepareToken(ct);\n ct.tagID = getTagID(ct.tagName);\n if (ct.type === TokenType.START_TAG) {\n this.lastStartTagName = ct.tagName;\n this.handler.onStartTag(ct);\n }\n else {\n if (ct.attrs.length > 0) {\n this._err(ERR.endTagWithAttributes);\n }\n if (ct.selfClosing) {\n this._err(ERR.endTagWithTrailingSolidus);\n }\n this.handler.onEndTag(ct);\n }\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentComment(ct) {\n this.prepareToken(ct);\n this.handler.onComment(ct);\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentDoctype(ct) {\n this.prepareToken(ct);\n this.handler.onDoctype(ct);\n this.preprocessor.dropParsedChunk();\n }\n _emitCurrentCharacterToken(nextLocation) {\n if (this.currentCharacterToken) {\n //NOTE: if we have a pending character token, make it's end location equal to the\n //current token's start location.\n if (nextLocation && this.currentCharacterToken.location) {\n this.currentCharacterToken.location.endLine = nextLocation.startLine;\n this.currentCharacterToken.location.endCol = nextLocation.startCol;\n this.currentCharacterToken.location.endOffset = nextLocation.startOffset;\n }\n switch (this.currentCharacterToken.type) {\n case TokenType.CHARACTER: {\n this.handler.onCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.NULL_CHARACTER: {\n this.handler.onNullCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.WHITESPACE_CHARACTER: {\n this.handler.onWhitespaceCharacter(this.currentCharacterToken);\n break;\n }\n }\n this.currentCharacterToken = null;\n }\n }\n _emitEOFToken() {\n const location = this.getCurrentLocation(0);\n if (location) {\n location.endLine = location.startLine;\n location.endCol = location.startCol;\n location.endOffset = location.startOffset;\n }\n this._emitCurrentCharacterToken(location);\n this.handler.onEof({ type: TokenType.EOF, location });\n this.active = false;\n }\n //Characters emission\n //OPTIMIZATION: specification uses only one type of character tokens (one token per character).\n //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.\n //If we have a sequence of characters that belong to the same group, the parser can process it\n //as a single solid character token.\n //So, there are 3 types of character tokens in parse5:\n //1)TokenType.NULL_CHARACTER - \\u0000-character sequences (e.g. '\\u0000\\u0000\\u0000')\n //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\\n \\r\\t \\f')\n //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')\n _appendCharToCurrentCharacterToken(type, ch) {\n if (this.currentCharacterToken) {\n if (this.currentCharacterToken.type !== type) {\n this.currentLocation = this.getCurrentLocation(0);\n this._emitCurrentCharacterToken(this.currentLocation);\n this.preprocessor.dropParsedChunk();\n }\n else {\n this.currentCharacterToken.chars += ch;\n return;\n }\n }\n this._createCharacterToken(type, ch);\n }\n _emitCodePoint(cp) {\n const type = isWhitespace(cp)\n ? TokenType.WHITESPACE_CHARACTER\n : cp === $.NULL\n ? TokenType.NULL_CHARACTER\n : TokenType.CHARACTER;\n this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));\n }\n //NOTE: used when we emit characters explicitly.\n //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.\n _emitChars(ch) {\n this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);\n }\n // Character reference helpers\n _matchNamedCharacterReference(cp) {\n let result = null;\n let excess = 0;\n let withoutSemicolon = false;\n for (let i = 0, current = htmlDecodeTree[0]; i >= 0; cp = this._consume()) {\n i = determineBranch(htmlDecodeTree, current, i + 1, cp);\n if (i < 0)\n break;\n excess += 1;\n current = htmlDecodeTree[i];\n const masked = current & BinTrieFlags.VALUE_LENGTH;\n // If the branch is a value, store it and continue\n if (masked) {\n // The mask is the number of bytes of the value, including the current byte.\n const valueLength = (masked >> 14) - 1;\n // Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.\n // See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state\n if (cp !== $.SEMICOLON &&\n this._isCharacterReferenceInAttribute() &&\n isEntityInAttributeInvalidEnd(this.preprocessor.peek(1))) {\n //NOTE: we don't flush all consumed code points here, and instead switch back to the original state after\n //emitting an ampersand. This is fine, as alphanumeric characters won't be parsed differently in attributes.\n result = [$.AMPERSAND];\n // Skip over the value.\n i += valueLength;\n }\n else {\n // If this is a surrogate pair, consume the next two bytes.\n result =\n valueLength === 0\n ? [htmlDecodeTree[i] & ~BinTrieFlags.VALUE_LENGTH]\n : valueLength === 1\n ? [htmlDecodeTree[++i]]\n : [htmlDecodeTree[++i], htmlDecodeTree[++i]];\n excess = 0;\n withoutSemicolon = cp !== $.SEMICOLON;\n }\n if (valueLength === 0) {\n // If the value is zero-length, we're done.\n this._consume();\n break;\n }\n }\n }\n this._unconsume(excess);\n if (withoutSemicolon && !this.preprocessor.endOfChunkHit) {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n }\n // We want to emit the error above on the code point after the entity.\n // We always consume one code point too many in the loop, and we wait to\n // unconsume it until after the error is emitted.\n this._unconsume(1);\n return result;\n }\n _isCharacterReferenceInAttribute() {\n return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);\n }\n _flushCodePointConsumedAsCharacterReference(cp) {\n if (this._isCharacterReferenceInAttribute()) {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n else {\n this._emitCodePoint(cp);\n }\n }\n // Calling states this way turns out to be much faster than any other approach.\n _callState(cp) {\n switch (this.state) {\n case State.DATA: {\n this._stateData(cp);\n break;\n }\n case State.RCDATA: {\n this._stateRcdata(cp);\n break;\n }\n case State.RAWTEXT: {\n this._stateRawtext(cp);\n break;\n }\n case State.SCRIPT_DATA: {\n this._stateScriptData(cp);\n break;\n }\n case State.PLAINTEXT: {\n this._statePlaintext(cp);\n break;\n }\n case State.TAG_OPEN: {\n this._stateTagOpen(cp);\n break;\n }\n case State.END_TAG_OPEN: {\n this._stateEndTagOpen(cp);\n break;\n }\n case State.TAG_NAME: {\n this._stateTagName(cp);\n break;\n }\n case State.RCDATA_LESS_THAN_SIGN: {\n this._stateRcdataLessThanSign(cp);\n break;\n }\n case State.RCDATA_END_TAG_OPEN: {\n this._stateRcdataEndTagOpen(cp);\n break;\n }\n case State.RCDATA_END_TAG_NAME: {\n this._stateRcdataEndTagName(cp);\n break;\n }\n case State.RAWTEXT_LESS_THAN_SIGN: {\n this._stateRawtextLessThanSign(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_OPEN: {\n this._stateRawtextEndTagOpen(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_NAME: {\n this._stateRawtextEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_LESS_THAN_SIGN: {\n this._stateScriptDataLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_OPEN: {\n this._stateScriptDataEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_NAME: {\n this._stateScriptDataEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START: {\n this._stateScriptDataEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START_DASH: {\n this._stateScriptDataEscapeStartDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED: {\n this._stateScriptDataEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH: {\n this._stateScriptDataEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {\n this._stateScriptDataEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {\n this._stateScriptDataEscapedEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {\n this._stateScriptDataEscapedEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {\n this._stateScriptDataDoubleEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED: {\n this._stateScriptDataDoubleEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {\n this._stateScriptDataDoubleEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {\n this._stateScriptDataDoubleEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataDoubleEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {\n this._stateScriptDataDoubleEscapeEnd(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_NAME: {\n this._stateBeforeAttributeName(cp);\n break;\n }\n case State.ATTRIBUTE_NAME: {\n this._stateAttributeName(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_NAME: {\n this._stateAfterAttributeName(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_VALUE: {\n this._stateBeforeAttributeValue(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {\n this._stateAttributeValueDoubleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {\n this._stateAttributeValueSingleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_UNQUOTED: {\n this._stateAttributeValueUnquoted(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {\n this._stateAfterAttributeValueQuoted(cp);\n break;\n }\n case State.SELF_CLOSING_START_TAG: {\n this._stateSelfClosingStartTag(cp);\n break;\n }\n case State.BOGUS_COMMENT: {\n this._stateBogusComment(cp);\n break;\n }\n case State.MARKUP_DECLARATION_OPEN: {\n this._stateMarkupDeclarationOpen(cp);\n break;\n }\n case State.COMMENT_START: {\n this._stateCommentStart(cp);\n break;\n }\n case State.COMMENT_START_DASH: {\n this._stateCommentStartDash(cp);\n break;\n }\n case State.COMMENT: {\n this._stateComment(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN: {\n this._stateCommentLessThanSign(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG: {\n this._stateCommentLessThanSignBang(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {\n this._stateCommentLessThanSignBangDash(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {\n this._stateCommentLessThanSignBangDashDash(cp);\n break;\n }\n case State.COMMENT_END_DASH: {\n this._stateCommentEndDash(cp);\n break;\n }\n case State.COMMENT_END: {\n this._stateCommentEnd(cp);\n break;\n }\n case State.COMMENT_END_BANG: {\n this._stateCommentEndBang(cp);\n break;\n }\n case State.DOCTYPE: {\n this._stateDoctype(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_NAME: {\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case State.DOCTYPE_NAME: {\n this._stateDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_NAME: {\n this._stateAfterDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {\n this._stateAfterDoctypePublicKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateBeforeDoctypePublicIdentifier(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypePublicIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypePublicIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateAfterDoctypePublicIdentifier(cp);\n break;\n }\n case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {\n this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {\n this._stateAfterDoctypeSystemKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateBeforeDoctypeSystemIdentifier(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypeSystemIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypeSystemIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateAfterDoctypeSystemIdentifier(cp);\n break;\n }\n case State.BOGUS_DOCTYPE: {\n this._stateBogusDoctype(cp);\n break;\n }\n case State.CDATA_SECTION: {\n this._stateCdataSection(cp);\n break;\n }\n case State.CDATA_SECTION_BRACKET: {\n this._stateCdataSectionBracket(cp);\n break;\n }\n case State.CDATA_SECTION_END: {\n this._stateCdataSectionEnd(cp);\n break;\n }\n case State.CHARACTER_REFERENCE: {\n this._stateCharacterReference(cp);\n break;\n }\n case State.NAMED_CHARACTER_REFERENCE: {\n this._stateNamedCharacterReference(cp);\n break;\n }\n case State.AMBIGUOUS_AMPERSAND: {\n this._stateAmbiguousAmpersand(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE: {\n this._stateNumericCharacterReference(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE_START: {\n this._stateHexademicalCharacterReferenceStart(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE: {\n this._stateHexademicalCharacterReference(cp);\n break;\n }\n case State.DECIMAL_CHARACTER_REFERENCE: {\n this._stateDecimalCharacterReference(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE_END: {\n this._stateNumericCharacterReferenceEnd(cp);\n break;\n }\n default: {\n throw new Error('Unknown state');\n }\n }\n }\n // State machine\n // Data state\n //------------------------------------------------------------------\n _stateData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.TAG_OPEN;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.DATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RCDATA state\n //------------------------------------------------------------------\n _stateRcdata(cp) {\n switch (cp) {\n case $.AMPERSAND: {\n this.returnState = State.RCDATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.LESS_THAN_SIGN: {\n this.state = State.RCDATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RAWTEXT state\n //------------------------------------------------------------------\n _stateRawtext(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.RAWTEXT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data state\n //------------------------------------------------------------------\n _stateScriptData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // PLAINTEXT state\n //------------------------------------------------------------------\n _statePlaintext(cp) {\n switch (cp) {\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Tag open state\n //------------------------------------------------------------------\n _stateTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createStartTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n this.state = State.MARKUP_DECLARATION_OPEN;\n break;\n }\n case $.SOLIDUS: {\n this.state = State.END_TAG_OPEN;\n break;\n }\n case $.QUESTION_MARK: {\n this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);\n this._createCommentToken(1);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('<');\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.invalidFirstCharacterOfTagName);\n this._emitChars('<');\n this.state = State.DATA;\n this._stateData(cp);\n }\n }\n }\n // End tag open state\n //------------------------------------------------------------------\n _stateEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createEndTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingEndTagName);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;\n }\n else if (isAsciiLetter(cp)) {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;\n this._stateScriptDataDoubleEscapeStart(cp);\n }\n else {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._stateScriptDataEscaped(cp);\n }\n }\n // Script data escaped end tag open state\n //------------------------------------------------------------------\n _stateScriptDataEscapedEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;\n this._stateScriptDataEscapedEndTagName(cp);\n }\n else {\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data double escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;\n this._emitChars('/');\n }\n else {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Script data double escape end state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapeEnd(cp) {\n if (this.preprocessor.startsWith($$.SCRIPT, false) &&\n isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {\n this._emitCodePoint(cp);\n for (let i = 0; i < $$.SCRIPT.length; i++) {\n this._emitCodePoint(this._consume());\n }\n this.state = State.SCRIPT_DATA_ESCAPED;\n }\n else if (!this._ensureHibernation()) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Before attribute name state\n //------------------------------------------------------------------\n _stateBeforeAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._err(ERR.unexpectedEqualsSignBeforeAttributeName);\n this._createAttr('=');\n this.state = State.ATTRIBUTE_NAME;\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Attribute name state\n //------------------------------------------------------------------\n _stateAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED:\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this._leaveAttrName();\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._leaveAttrName();\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN: {\n this._err(ERR.unexpectedCharacterInAttributeName);\n this.currentAttr.name += String.fromCodePoint(cp);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.name += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After attribute name state\n //------------------------------------------------------------------\n _stateAfterAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS: {\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.EQUALS_SIGN: {\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Before attribute value state\n //------------------------------------------------------------------\n _stateBeforeAttributeValue(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingAttributeValue);\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n default: {\n this.state = State.ATTRIBUTE_VALUE_UNQUOTED;\n this._stateAttributeValueUnquoted(cp);\n }\n }\n }\n // Attribute value (double-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueDoubleQuoted(cp) {\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (single-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueSingleQuoted(cp) {\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (unquoted) state\n //------------------------------------------------------------------\n _stateAttributeValueUnquoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_UNQUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN:\n case $.EQUALS_SIGN:\n case $.GRAVE_ACCENT: {\n this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);\n this.currentAttr.value += String.fromCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // After attribute value (quoted) state\n //------------------------------------------------------------------\n _stateAfterAttributeValueQuoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.SOLIDUS: {\n this._leaveAttrValue();\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBetweenAttributes);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Self-closing start tag state\n //------------------------------------------------------------------\n _stateSelfClosingStartTag(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n const token = this.currentToken;\n token.selfClosing = true;\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedSolidusInTag);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Bogus comment state\n //------------------------------------------------------------------\n _stateBogusComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Markup declaration open state\n //------------------------------------------------------------------\n _stateMarkupDeclarationOpen(cp) {\n if (this._consumeSequenceIfMatch($$.DASH_DASH, true)) {\n this._createCommentToken($$.DASH_DASH.length + 1);\n this.state = State.COMMENT_START;\n }\n else if (this._consumeSequenceIfMatch($$.DOCTYPE, false)) {\n // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.\n this.currentLocation = this.getCurrentLocation($$.DOCTYPE.length + 1);\n this.state = State.DOCTYPE;\n }\n else if (this._consumeSequenceIfMatch($$.CDATA_START, true)) {\n if (this.inForeignNode) {\n this.state = State.CDATA_SECTION;\n }\n else {\n this._err(ERR.cdataInHtmlContent);\n this._createCommentToken($$.CDATA_START.length + 1);\n this.currentToken.data = '[CDATA[';\n this.state = State.BOGUS_COMMENT;\n }\n }\n //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.incorrectlyOpenedComment);\n this._createCommentToken(2);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n }\n }\n // Comment start state\n //------------------------------------------------------------------\n _stateCommentStart(cp) {\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_START_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n const token = this.currentToken;\n this.emitCurrentComment(token);\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment start dash state\n //------------------------------------------------------------------\n _stateCommentStartDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment state\n //------------------------------------------------------------------\n _stateComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n this.state = State.COMMENT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Comment less-than sign state\n //------------------------------------------------------------------\n _stateCommentLessThanSign(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n token.data += '!';\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment less-than sign bang state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBang(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;\n }\n else {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n // Comment less-than sign bang dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDash(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;\n }\n else {\n this.state = State.COMMENT_END_DASH;\n this._stateCommentEndDash(cp);\n }\n }\n // Comment less-than sign bang dash dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDashDash(cp) {\n if (cp !== $.GREATER_THAN_SIGN && cp !== $.EOF) {\n this._err(ERR.nestedComment);\n }\n this.state = State.COMMENT_END;\n this._stateCommentEnd(cp);\n }\n // Comment end dash state\n //------------------------------------------------------------------\n _stateCommentEndDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end state\n //------------------------------------------------------------------\n _stateCommentEnd(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EXCLAMATION_MARK: {\n this.state = State.COMMENT_END_BANG;\n break;\n }\n case $.HYPHEN_MINUS: {\n token.data += '-';\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end bang state\n //------------------------------------------------------------------\n _stateCommentEndBang(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n token.data += '--!';\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.incorrectlyClosedComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--!';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // DOCTYPE state\n //------------------------------------------------------------------\n _stateDoctype(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBeforeDoctypeName);\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n }\n }\n }\n // Before DOCTYPE name state\n //------------------------------------------------------------------\n _stateBeforeDoctypeName(cp) {\n if (isAsciiUpper(cp)) {\n this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));\n this.state = State.DOCTYPE_NAME;\n }\n else\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._createDoctypeToken(REPLACEMENT_CHARACTER);\n this.state = State.DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeName);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createDoctypeToken(String.fromCodePoint(cp));\n this.state = State.DOCTYPE_NAME;\n }\n }\n }\n // DOCTYPE name state\n //------------------------------------------------------------------\n _stateDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.AFTER_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.name += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After DOCTYPE name state\n //------------------------------------------------------------------\n _stateAfterDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n if (this._consumeSequenceIfMatch($$.PUBLIC, false)) {\n this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;\n }\n else if (this._consumeSequenceIfMatch($$.SYSTEM, false)) {\n this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;\n }\n //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.invalidCharacterSequenceAfterDoctypeName);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n }\n // After DOCTYPE public keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE public identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE public identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Between DOCTYPE public and system identifiers state\n //------------------------------------------------------------------\n _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // After DOCTYPE system keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE system identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE system identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Bogus DOCTYPE state\n //------------------------------------------------------------------\n _stateBogusDoctype(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n break;\n }\n case $.EOF: {\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default:\n // Do nothing\n }\n }\n // CDATA section state\n //------------------------------------------------------------------\n _stateCdataSection(cp) {\n switch (cp) {\n case $.RIGHT_SQUARE_BRACKET: {\n this.state = State.CDATA_SECTION_BRACKET;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInCdata);\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // CDATA section bracket state\n //------------------------------------------------------------------\n _stateCdataSectionBracket(cp) {\n if (cp === $.RIGHT_SQUARE_BRACKET) {\n this.state = State.CDATA_SECTION_END;\n }\n else {\n this._emitChars(']');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n // CDATA section end state\n //------------------------------------------------------------------\n _stateCdataSectionEnd(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n break;\n }\n case $.RIGHT_SQUARE_BRACKET: {\n this._emitChars(']');\n break;\n }\n default: {\n this._emitChars(']]');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n }\n // Character reference state\n //------------------------------------------------------------------\n _stateCharacterReference(cp) {\n if (cp === $.NUMBER_SIGN) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE;\n }\n else if (isAsciiAlphaNumeric(cp)) {\n this.state = State.NAMED_CHARACTER_REFERENCE;\n this._stateNamedCharacterReference(cp);\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Named character reference state\n //------------------------------------------------------------------\n _stateNamedCharacterReference(cp) {\n const matchResult = this._matchNamedCharacterReference(cp);\n //NOTE: Matching can be abrupted by hibernation. In that case, match\n //results are no longer valid and we will need to start over.\n if (this._ensureHibernation()) {\n // Stay in the state, try again.\n }\n else if (matchResult) {\n for (let i = 0; i < matchResult.length; i++) {\n this._flushCodePointConsumedAsCharacterReference(matchResult[i]);\n }\n this.state = this.returnState;\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this.state = State.AMBIGUOUS_AMPERSAND;\n }\n }\n // Ambiguos ampersand state\n //------------------------------------------------------------------\n _stateAmbiguousAmpersand(cp) {\n if (isAsciiAlphaNumeric(cp)) {\n this._flushCodePointConsumedAsCharacterReference(cp);\n }\n else {\n if (cp === $.SEMICOLON) {\n this._err(ERR.unknownNamedCharacterReference);\n }\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Numeric character reference state\n //------------------------------------------------------------------\n _stateNumericCharacterReference(cp) {\n this.charRefCode = 0;\n if (cp === $.LATIN_SMALL_X || cp === $.LATIN_CAPITAL_X) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE_START;\n }\n // Inlined decimal character reference start state\n else if (isAsciiDigit(cp)) {\n this.state = State.DECIMAL_CHARACTER_REFERENCE;\n this._stateDecimalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Hexademical character reference start state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReferenceStart(cp) {\n if (isAsciiHexDigit(cp)) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE;\n this._stateHexademicalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._unconsume(2);\n this.state = this.returnState;\n }\n }\n // Hexademical character reference state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReference(cp) {\n if (isAsciiUpperHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x37;\n }\n else if (isAsciiLowerHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x57;\n }\n else if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Decimal character reference state\n //------------------------------------------------------------------\n _stateDecimalCharacterReference(cp) {\n if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 10 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Numeric character reference end state\n //------------------------------------------------------------------\n _stateNumericCharacterReferenceEnd(cp) {\n if (this.charRefCode === $.NULL) {\n this._err(ERR.nullCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (this.charRefCode > 1114111) {\n this._err(ERR.characterReferenceOutsideUnicodeRange);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isSurrogate(this.charRefCode)) {\n this._err(ERR.surrogateCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isUndefinedCodePoint(this.charRefCode)) {\n this._err(ERR.noncharacterCharacterReference);\n }\n else if (isControlCodePoint(this.charRefCode) || this.charRefCode === $.CARRIAGE_RETURN) {\n this._err(ERR.controlCharacterReference);\n const replacement = C1_CONTROLS_REFERENCE_REPLACEMENTS.get(this.charRefCode);\n if (replacement !== undefined) {\n this.charRefCode = replacement;\n }\n }\n this._flushCodePointConsumedAsCharacterReference(this.charRefCode);\n this._reconsumeInState(this.returnState, cp);\n }\n}\n//# sourceMappingURL=index.js.map","import { TAG_ID as $, NS, isNumberedHeader } from '../common/html.js';\n//Element utils\nconst IMPLICIT_END_TAG_REQUIRED = new Set([$.DD, $.DT, $.LI, $.OPTGROUP, $.OPTION, $.P, $.RB, $.RP, $.RT, $.RTC]);\nconst IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([\n ...IMPLICIT_END_TAG_REQUIRED,\n $.CAPTION,\n $.COLGROUP,\n $.TBODY,\n $.TD,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TR,\n]);\nconst SCOPING_ELEMENT_NS = new Map([\n [$.APPLET, NS.HTML],\n [$.CAPTION, NS.HTML],\n [$.HTML, NS.HTML],\n [$.MARQUEE, NS.HTML],\n [$.OBJECT, NS.HTML],\n [$.TABLE, NS.HTML],\n [$.TD, NS.HTML],\n [$.TEMPLATE, NS.HTML],\n [$.TH, NS.HTML],\n [$.ANNOTATION_XML, NS.MATHML],\n [$.MI, NS.MATHML],\n [$.MN, NS.MATHML],\n [$.MO, NS.MATHML],\n [$.MS, NS.MATHML],\n [$.MTEXT, NS.MATHML],\n [$.DESC, NS.SVG],\n [$.FOREIGN_OBJECT, NS.SVG],\n [$.TITLE, NS.SVG],\n]);\nconst NAMED_HEADERS = [$.H1, $.H2, $.H3, $.H4, $.H5, $.H6];\nconst TABLE_ROW_CONTEXT = [$.TR, $.TEMPLATE, $.HTML];\nconst TABLE_BODY_CONTEXT = [$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML];\nconst TABLE_CONTEXT = [$.TABLE, $.TEMPLATE, $.HTML];\nconst TABLE_CELLS = [$.TD, $.TH];\n//Stack of open elements\nexport class OpenElementStack {\n get currentTmplContentOrNode() {\n return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;\n }\n constructor(document, treeAdapter, handler) {\n this.treeAdapter = treeAdapter;\n this.handler = handler;\n this.items = [];\n this.tagIDs = [];\n this.stackTop = -1;\n this.tmplCount = 0;\n this.currentTagId = $.UNKNOWN;\n this.current = document;\n }\n //Index of element\n _indexOf(element) {\n return this.items.lastIndexOf(element, this.stackTop);\n }\n //Update current element\n _isInTemplate() {\n return this.currentTagId === $.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;\n }\n _updateCurrentElement() {\n this.current = this.items[this.stackTop];\n this.currentTagId = this.tagIDs[this.stackTop];\n }\n //Mutations\n push(element, tagID) {\n this.stackTop++;\n this.items[this.stackTop] = element;\n this.current = element;\n this.tagIDs[this.stackTop] = tagID;\n this.currentTagId = tagID;\n if (this._isInTemplate()) {\n this.tmplCount++;\n }\n this.handler.onItemPush(element, tagID, true);\n }\n pop() {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount--;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, true);\n }\n replace(oldElement, newElement) {\n const idx = this._indexOf(oldElement);\n this.items[idx] = newElement;\n if (idx === this.stackTop) {\n this.current = newElement;\n }\n }\n insertAfter(referenceElement, newElement, newElementID) {\n const insertionIdx = this._indexOf(referenceElement) + 1;\n this.items.splice(insertionIdx, 0, newElement);\n this.tagIDs.splice(insertionIdx, 0, newElementID);\n this.stackTop++;\n if (insertionIdx === this.stackTop) {\n this._updateCurrentElement();\n }\n this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);\n }\n popUntilTagNamePopped(tagName) {\n let targetIdx = this.stackTop + 1;\n do {\n targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);\n } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);\n this.shortenToLength(targetIdx < 0 ? 0 : targetIdx);\n }\n shortenToLength(idx) {\n while (this.stackTop >= idx) {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount -= 1;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, this.stackTop < idx);\n }\n }\n popUntilElementPopped(element) {\n const idx = this._indexOf(element);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilPopped(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilNumberedHeaderPopped() {\n this.popUntilPopped(NAMED_HEADERS, NS.HTML);\n }\n popUntilTableCellPopped() {\n this.popUntilPopped(TABLE_CELLS, NS.HTML);\n }\n popAllUpToHtmlElement() {\n //NOTE: here we assume that the root element is always first in the open element stack, so\n //we perform this fast stack clean up.\n this.tmplCount = 0;\n this.shortenToLength(1);\n }\n _indexOfTagNames(tagNames, namespace) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (tagNames.includes(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) {\n return i;\n }\n }\n return -1;\n }\n clearBackTo(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx + 1);\n }\n clearBackToTableContext() {\n this.clearBackTo(TABLE_CONTEXT, NS.HTML);\n }\n clearBackToTableBodyContext() {\n this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);\n }\n clearBackToTableRowContext() {\n this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);\n }\n remove(element) {\n const idx = this._indexOf(element);\n if (idx >= 0) {\n if (idx === this.stackTop) {\n this.pop();\n }\n else {\n this.items.splice(idx, 1);\n this.tagIDs.splice(idx, 1);\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(element, false);\n }\n }\n }\n //Search\n tryPeekProperlyNestedBodyElement() {\n //Properly nested element (should be second element in stack).\n return this.stackTop >= 1 && this.tagIDs[1] === $.BODY ? this.items[1] : null;\n }\n contains(element) {\n return this._indexOf(element) > -1;\n }\n getCommonAncestor(element) {\n const elementIdx = this._indexOf(element) - 1;\n return elementIdx >= 0 ? this.items[elementIdx] : null;\n }\n isRootHtmlElementCurrent() {\n return this.stackTop === 0 && this.tagIDs[0] === $.HTML;\n }\n //Element in scope\n hasInScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (isNumberedHeader(tn) && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInListItemScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (((tn === $.UL || tn === $.OL) && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInButtonScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if ((tn === $.BUTTON && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn === $.TABLE || tn === $.TEMPLATE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === $.TBODY || tn === $.THEAD || tn === $.TFOOT) {\n return true;\n }\n if (tn === $.TABLE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn !== $.OPTION && tn !== $.OPTGROUP) {\n return false;\n }\n }\n return true;\n }\n //Implied end tags\n generateImpliedEndTags() {\n while (IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsThoroughly() {\n while (IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsWithExclusion(exclusionId) {\n while (this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n}\n//# sourceMappingURL=open-element-stack.js.map","//Const\nconst NOAH_ARK_CAPACITY = 3;\nexport var EntryType;\n(function (EntryType) {\n EntryType[EntryType[\"Marker\"] = 0] = \"Marker\";\n EntryType[EntryType[\"Element\"] = 1] = \"Element\";\n})(EntryType = EntryType || (EntryType = {}));\nconst MARKER = { type: EntryType.Marker };\n//List of formatting elements\nexport class FormattingElementList {\n constructor(treeAdapter) {\n this.treeAdapter = treeAdapter;\n this.entries = [];\n this.bookmark = null;\n }\n //Noah Ark's condition\n //OPTIMIZATION: at first we try to find possible candidates for exclusion using\n //lightweight heuristics without thorough attributes check.\n _getNoahArkConditionCandidates(newElement, neAttrs) {\n const candidates = [];\n const neAttrsLength = neAttrs.length;\n const neTagName = this.treeAdapter.getTagName(newElement);\n const neNamespaceURI = this.treeAdapter.getNamespaceURI(newElement);\n for (let i = 0; i < this.entries.length; i++) {\n const entry = this.entries[i];\n if (entry.type === EntryType.Marker) {\n break;\n }\n const { element } = entry;\n if (this.treeAdapter.getTagName(element) === neTagName &&\n this.treeAdapter.getNamespaceURI(element) === neNamespaceURI) {\n const elementAttrs = this.treeAdapter.getAttrList(element);\n if (elementAttrs.length === neAttrsLength) {\n candidates.push({ idx: i, attrs: elementAttrs });\n }\n }\n }\n return candidates;\n }\n _ensureNoahArkCondition(newElement) {\n if (this.entries.length < NOAH_ARK_CAPACITY)\n return;\n const neAttrs = this.treeAdapter.getAttrList(newElement);\n const candidates = this._getNoahArkConditionCandidates(newElement, neAttrs);\n if (candidates.length < NOAH_ARK_CAPACITY)\n return;\n //NOTE: build attrs map for the new element, so we can perform fast lookups\n const neAttrsMap = new Map(neAttrs.map((neAttr) => [neAttr.name, neAttr.value]));\n let validCandidates = 0;\n //NOTE: remove bottommost candidates, until Noah's Ark condition will not be met\n for (let i = 0; i < candidates.length; i++) {\n const candidate = candidates[i];\n // We know that `candidate.attrs.length === neAttrs.length`\n if (candidate.attrs.every((cAttr) => neAttrsMap.get(cAttr.name) === cAttr.value)) {\n validCandidates += 1;\n if (validCandidates >= NOAH_ARK_CAPACITY) {\n this.entries.splice(candidate.idx, 1);\n }\n }\n }\n }\n //Mutations\n insertMarker() {\n this.entries.unshift(MARKER);\n }\n pushElement(element, token) {\n this._ensureNoahArkCondition(element);\n this.entries.unshift({\n type: EntryType.Element,\n element,\n token,\n });\n }\n insertElementAfterBookmark(element, token) {\n const bookmarkIdx = this.entries.indexOf(this.bookmark);\n this.entries.splice(bookmarkIdx, 0, {\n type: EntryType.Element,\n element,\n token,\n });\n }\n removeEntry(entry) {\n const entryIndex = this.entries.indexOf(entry);\n if (entryIndex >= 0) {\n this.entries.splice(entryIndex, 1);\n }\n }\n /**\n * Clears the list of formatting elements up to the last marker.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker\n */\n clearToLastMarker() {\n const markerIdx = this.entries.indexOf(MARKER);\n if (markerIdx >= 0) {\n this.entries.splice(0, markerIdx + 1);\n }\n else {\n this.entries.length = 0;\n }\n }\n //Search\n getElementEntryInScopeWithTagName(tagName) {\n const entry = this.entries.find((entry) => entry.type === EntryType.Marker || this.treeAdapter.getTagName(entry.element) === tagName);\n return entry && entry.type === EntryType.Element ? entry : null;\n }\n getElementEntry(element) {\n return this.entries.find((entry) => entry.type === EntryType.Element && entry.element === element);\n }\n}\n//# sourceMappingURL=formatting-element-list.js.map","import { DOCUMENT_MODE } from '../common/html.js';\nfunction createTextNode(value) {\n return {\n nodeName: '#text',\n value,\n parentNode: null,\n };\n}\nexport const defaultTreeAdapter = {\n //Node construction\n createDocument() {\n return {\n nodeName: '#document',\n mode: DOCUMENT_MODE.NO_QUIRKS,\n childNodes: [],\n };\n },\n createDocumentFragment() {\n return {\n nodeName: '#document-fragment',\n childNodes: [],\n };\n },\n createElement(tagName, namespaceURI, attrs) {\n return {\n nodeName: tagName,\n tagName,\n attrs,\n namespaceURI,\n childNodes: [],\n parentNode: null,\n };\n },\n createCommentNode(data) {\n return {\n nodeName: '#comment',\n data,\n parentNode: null,\n };\n },\n //Tree mutation\n appendChild(parentNode, newNode) {\n parentNode.childNodes.push(newNode);\n newNode.parentNode = parentNode;\n },\n insertBefore(parentNode, newNode, referenceNode) {\n const insertionIdx = parentNode.childNodes.indexOf(referenceNode);\n parentNode.childNodes.splice(insertionIdx, 0, newNode);\n newNode.parentNode = parentNode;\n },\n setTemplateContent(templateElement, contentElement) {\n templateElement.content = contentElement;\n },\n getTemplateContent(templateElement) {\n return templateElement.content;\n },\n setDocumentType(document, name, publicId, systemId) {\n const doctypeNode = document.childNodes.find((node) => node.nodeName === '#documentType');\n if (doctypeNode) {\n doctypeNode.name = name;\n doctypeNode.publicId = publicId;\n doctypeNode.systemId = systemId;\n }\n else {\n const node = {\n nodeName: '#documentType',\n name,\n publicId,\n systemId,\n parentNode: null,\n };\n defaultTreeAdapter.appendChild(document, node);\n }\n },\n setDocumentMode(document, mode) {\n document.mode = mode;\n },\n getDocumentMode(document) {\n return document.mode;\n },\n detachNode(node) {\n if (node.parentNode) {\n const idx = node.parentNode.childNodes.indexOf(node);\n node.parentNode.childNodes.splice(idx, 1);\n node.parentNode = null;\n }\n },\n insertText(parentNode, text) {\n if (parentNode.childNodes.length > 0) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.length - 1];\n if (defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n return;\n }\n }\n defaultTreeAdapter.appendChild(parentNode, createTextNode(text));\n },\n insertTextBefore(parentNode, text, referenceNode) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1];\n if (prevNode && defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n }\n else {\n defaultTreeAdapter.insertBefore(parentNode, createTextNode(text), referenceNode);\n }\n },\n adoptAttributes(recipient, attrs) {\n const recipientAttrsMap = new Set(recipient.attrs.map((attr) => attr.name));\n for (let j = 0; j < attrs.length; j++) {\n if (!recipientAttrsMap.has(attrs[j].name)) {\n recipient.attrs.push(attrs[j]);\n }\n }\n },\n //Tree traversing\n getFirstChild(node) {\n return node.childNodes[0];\n },\n getChildNodes(node) {\n return node.childNodes;\n },\n getParentNode(node) {\n return node.parentNode;\n },\n getAttrList(element) {\n return element.attrs;\n },\n //Node data\n getTagName(element) {\n return element.tagName;\n },\n getNamespaceURI(element) {\n return element.namespaceURI;\n },\n getTextNodeContent(textNode) {\n return textNode.value;\n },\n getCommentNodeContent(commentNode) {\n return commentNode.data;\n },\n getDocumentTypeNodeName(doctypeNode) {\n return doctypeNode.name;\n },\n getDocumentTypeNodePublicId(doctypeNode) {\n return doctypeNode.publicId;\n },\n getDocumentTypeNodeSystemId(doctypeNode) {\n return doctypeNode.systemId;\n },\n //Node types\n isTextNode(node) {\n return node.nodeName === '#text';\n },\n isCommentNode(node) {\n return node.nodeName === '#comment';\n },\n isDocumentTypeNode(node) {\n return node.nodeName === '#documentType';\n },\n isElementNode(node) {\n return Object.prototype.hasOwnProperty.call(node, 'tagName');\n },\n // Source code location\n setNodeSourceCodeLocation(node, location) {\n node.sourceCodeLocation = location;\n },\n getNodeSourceCodeLocation(node) {\n return node.sourceCodeLocation;\n },\n updateNodeSourceCodeLocation(node, endLocation) {\n node.sourceCodeLocation = { ...node.sourceCodeLocation, ...endLocation };\n },\n};\n//# sourceMappingURL=default.js.map","import { DOCUMENT_MODE } from './html.js';\n//Const\nconst VALID_DOCTYPE_NAME = 'html';\nconst VALID_SYSTEM_ID = 'about:legacy-compat';\nconst QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd';\nconst QUIRKS_MODE_PUBLIC_ID_PREFIXES = [\n '+//silmaril//dtd html pro v0r11 19970101//',\n '-//as//dtd html 3.0 aswedit + extensions//',\n '-//advasoft ltd//dtd html 3.0 aswedit + extensions//',\n '-//ietf//dtd html 2.0 level 1//',\n '-//ietf//dtd html 2.0 level 2//',\n '-//ietf//dtd html 2.0 strict level 1//',\n '-//ietf//dtd html 2.0 strict level 2//',\n '-//ietf//dtd html 2.0 strict//',\n '-//ietf//dtd html 2.0//',\n '-//ietf//dtd html 2.1e//',\n '-//ietf//dtd html 3.0//',\n '-//ietf//dtd html 3.2 final//',\n '-//ietf//dtd html 3.2//',\n '-//ietf//dtd html 3//',\n '-//ietf//dtd html level 0//',\n '-//ietf//dtd html level 1//',\n '-//ietf//dtd html level 2//',\n '-//ietf//dtd html level 3//',\n '-//ietf//dtd html strict level 0//',\n '-//ietf//dtd html strict level 1//',\n '-//ietf//dtd html strict level 2//',\n '-//ietf//dtd html strict level 3//',\n '-//ietf//dtd html strict//',\n '-//ietf//dtd html//',\n '-//metrius//dtd metrius presentational//',\n '-//microsoft//dtd internet explorer 2.0 html strict//',\n '-//microsoft//dtd internet explorer 2.0 html//',\n '-//microsoft//dtd internet explorer 2.0 tables//',\n '-//microsoft//dtd internet explorer 3.0 html strict//',\n '-//microsoft//dtd internet explorer 3.0 html//',\n '-//microsoft//dtd internet explorer 3.0 tables//',\n '-//netscape comm. corp.//dtd html//',\n '-//netscape comm. corp.//dtd strict html//',\n \"-//o'reilly and associates//dtd html 2.0//\",\n \"-//o'reilly and associates//dtd html extended 1.0//\",\n \"-//o'reilly and associates//dtd html extended relaxed 1.0//\",\n '-//sq//dtd html 2.0 hotmetal + extensions//',\n '-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//',\n '-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//',\n '-//spyglass//dtd html 2.0 extended//',\n '-//sun microsystems corp.//dtd hotjava html//',\n '-//sun microsystems corp.//dtd hotjava strict html//',\n '-//w3c//dtd html 3 1995-03-24//',\n '-//w3c//dtd html 3.2 draft//',\n '-//w3c//dtd html 3.2 final//',\n '-//w3c//dtd html 3.2//',\n '-//w3c//dtd html 3.2s draft//',\n '-//w3c//dtd html 4.0 frameset//',\n '-//w3c//dtd html 4.0 transitional//',\n '-//w3c//dtd html experimental 19960712//',\n '-//w3c//dtd html experimental 970421//',\n '-//w3c//dtd w3 html//',\n '-//w3o//dtd w3 html 3.0//',\n '-//webtechs//dtd mozilla html 2.0//',\n '-//webtechs//dtd mozilla html//',\n];\nconst QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...QUIRKS_MODE_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\nconst QUIRKS_MODE_PUBLIC_IDS = new Set([\n '-//w3o//dtd w3 html strict 3.0//en//',\n '-/w3c/dtd html 4.0 transitional/en',\n 'html',\n]);\nconst LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//'];\nconst LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\n//Utils\nfunction hasPrefix(publicId, prefixes) {\n return prefixes.some((prefix) => publicId.startsWith(prefix));\n}\n//API\nexport function isConforming(token) {\n return (token.name === VALID_DOCTYPE_NAME &&\n token.publicId === null &&\n (token.systemId === null || token.systemId === VALID_SYSTEM_ID));\n}\nexport function getDocumentMode(token) {\n if (token.name !== VALID_DOCTYPE_NAME) {\n return DOCUMENT_MODE.QUIRKS;\n }\n const { systemId } = token;\n if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let { publicId } = token;\n if (publicId !== null) {\n publicId = publicId.toLowerCase();\n if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n prefixes =\n systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.LIMITED_QUIRKS;\n }\n }\n return DOCUMENT_MODE.NO_QUIRKS;\n}\n//# sourceMappingURL=doctype.js.map","import { TAG_ID as $, NS, ATTRS, getTagID } from './html.js';\n//MIME types\nconst MIME_TYPES = {\n TEXT_HTML: 'text/html',\n APPLICATION_XML: 'application/xhtml+xml',\n};\n//Attributes\nconst DEFINITION_URL_ATTR = 'definitionurl';\nconst ADJUSTED_DEFINITION_URL_ATTR = 'definitionURL';\nconst SVG_ATTRS_ADJUSTMENT_MAP = new Map([\n 'attributeName',\n 'attributeType',\n 'baseFrequency',\n 'baseProfile',\n 'calcMode',\n 'clipPathUnits',\n 'diffuseConstant',\n 'edgeMode',\n 'filterUnits',\n 'glyphRef',\n 'gradientTransform',\n 'gradientUnits',\n 'kernelMatrix',\n 'kernelUnitLength',\n 'keyPoints',\n 'keySplines',\n 'keyTimes',\n 'lengthAdjust',\n 'limitingConeAngle',\n 'markerHeight',\n 'markerUnits',\n 'markerWidth',\n 'maskContentUnits',\n 'maskUnits',\n 'numOctaves',\n 'pathLength',\n 'patternContentUnits',\n 'patternTransform',\n 'patternUnits',\n 'pointsAtX',\n 'pointsAtY',\n 'pointsAtZ',\n 'preserveAlpha',\n 'preserveAspectRatio',\n 'primitiveUnits',\n 'refX',\n 'refY',\n 'repeatCount',\n 'repeatDur',\n 'requiredExtensions',\n 'requiredFeatures',\n 'specularConstant',\n 'specularExponent',\n 'spreadMethod',\n 'startOffset',\n 'stdDeviation',\n 'stitchTiles',\n 'surfaceScale',\n 'systemLanguage',\n 'tableValues',\n 'targetX',\n 'targetY',\n 'textLength',\n 'viewBox',\n 'viewTarget',\n 'xChannelSelector',\n 'yChannelSelector',\n 'zoomAndPan',\n].map((attr) => [attr.toLowerCase(), attr]));\nconst XML_ATTRS_ADJUSTMENT_MAP = new Map([\n ['xlink:actuate', { prefix: 'xlink', name: 'actuate', namespace: NS.XLINK }],\n ['xlink:arcrole', { prefix: 'xlink', name: 'arcrole', namespace: NS.XLINK }],\n ['xlink:href', { prefix: 'xlink', name: 'href', namespace: NS.XLINK }],\n ['xlink:role', { prefix: 'xlink', name: 'role', namespace: NS.XLINK }],\n ['xlink:show', { prefix: 'xlink', name: 'show', namespace: NS.XLINK }],\n ['xlink:title', { prefix: 'xlink', name: 'title', namespace: NS.XLINK }],\n ['xlink:type', { prefix: 'xlink', name: 'type', namespace: NS.XLINK }],\n ['xml:base', { prefix: 'xml', name: 'base', namespace: NS.XML }],\n ['xml:lang', { prefix: 'xml', name: 'lang', namespace: NS.XML }],\n ['xml:space', { prefix: 'xml', name: 'space', namespace: NS.XML }],\n ['xmlns', { prefix: '', name: 'xmlns', namespace: NS.XMLNS }],\n ['xmlns:xlink', { prefix: 'xmlns', name: 'xlink', namespace: NS.XMLNS }],\n]);\n//SVG tag names adjustment map\nexport const SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'textPath',\n].map((tn) => [tn.toLowerCase(), tn]));\n//Tags that causes exit from foreign content\nconst EXITS_FOREIGN_CONTENT = new Set([\n $.B,\n $.BIG,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.CENTER,\n $.CODE,\n $.DD,\n $.DIV,\n $.DL,\n $.DT,\n $.EM,\n $.EMBED,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HR,\n $.I,\n $.IMG,\n $.LI,\n $.LISTING,\n $.MENU,\n $.META,\n $.NOBR,\n $.OL,\n $.P,\n $.PRE,\n $.RUBY,\n $.S,\n $.SMALL,\n $.SPAN,\n $.STRONG,\n $.STRIKE,\n $.SUB,\n $.SUP,\n $.TABLE,\n $.TT,\n $.U,\n $.UL,\n $.VAR,\n]);\n//Check exit from foreign content\nexport function causesExit(startTagToken) {\n const tn = startTagToken.tagID;\n const isFontWithAttrs = tn === $.FONT &&\n startTagToken.attrs.some(({ name }) => name === ATTRS.COLOR || name === ATTRS.SIZE || name === ATTRS.FACE);\n return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn);\n}\n//Token adjustments\nexport function adjustTokenMathMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n if (token.attrs[i].name === DEFINITION_URL_ATTR) {\n token.attrs[i].name = ADJUSTED_DEFINITION_URL_ATTR;\n break;\n }\n }\n}\nexport function adjustTokenSVGAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrName = SVG_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrName != null) {\n token.attrs[i].name = adjustedAttrName;\n }\n }\n}\nexport function adjustTokenXMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrEntry = XML_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrEntry) {\n token.attrs[i].prefix = adjustedAttrEntry.prefix;\n token.attrs[i].name = adjustedAttrEntry.name;\n token.attrs[i].namespace = adjustedAttrEntry.namespace;\n }\n }\n}\nexport function adjustTokenSVGTagName(token) {\n const adjustedTagName = SVG_TAG_NAMES_ADJUSTMENT_MAP.get(token.tagName);\n if (adjustedTagName != null) {\n token.tagName = adjustedTagName;\n token.tagID = getTagID(token.tagName);\n }\n}\n//Integration points\nfunction isMathMLTextIntegrationPoint(tn, ns) {\n return ns === NS.MATHML && (tn === $.MI || tn === $.MO || tn === $.MN || tn === $.MS || tn === $.MTEXT);\n}\nfunction isHtmlIntegrationPoint(tn, ns, attrs) {\n if (ns === NS.MATHML && tn === $.ANNOTATION_XML) {\n for (let i = 0; i < attrs.length; i++) {\n if (attrs[i].name === ATTRS.ENCODING) {\n const value = attrs[i].value.toLowerCase();\n return value === MIME_TYPES.TEXT_HTML || value === MIME_TYPES.APPLICATION_XML;\n }\n }\n }\n return ns === NS.SVG && (tn === $.FOREIGN_OBJECT || tn === $.DESC || tn === $.TITLE);\n}\nexport function isIntegrationPoint(tn, ns, attrs, foreignNS) {\n return (((!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn, ns, attrs)) ||\n ((!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn, ns)));\n}\n//# sourceMappingURL=foreign-content.js.map","import { Tokenizer, TokenizerMode } from '../tokenizer/index.js';\nimport { OpenElementStack } from './open-element-stack.js';\nimport { FormattingElementList, EntryType } from './formatting-element-list.js';\nimport { defaultTreeAdapter } from '../tree-adapters/default.js';\nimport * as doctype from '../common/doctype.js';\nimport * as foreignContent from '../common/foreign-content.js';\nimport { ERR } from '../common/error-codes.js';\nimport * as unicode from '../common/unicode.js';\nimport { TAG_ID as $, TAG_NAMES as TN, NS, ATTRS, SPECIAL_ELEMENTS, DOCUMENT_MODE, isNumberedHeader, getTagID, } from '../common/html.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\n//Misc constants\nconst HIDDEN_INPUT_TYPE = 'hidden';\n//Adoption agency loops iteration count\nconst AA_OUTER_LOOP_ITER = 8;\nconst AA_INNER_LOOP_ITER = 3;\n//Insertion modes\nvar InsertionMode;\n(function (InsertionMode) {\n InsertionMode[InsertionMode[\"INITIAL\"] = 0] = \"INITIAL\";\n InsertionMode[InsertionMode[\"BEFORE_HTML\"] = 1] = \"BEFORE_HTML\";\n InsertionMode[InsertionMode[\"BEFORE_HEAD\"] = 2] = \"BEFORE_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD\"] = 3] = \"IN_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD_NO_SCRIPT\"] = 4] = \"IN_HEAD_NO_SCRIPT\";\n InsertionMode[InsertionMode[\"AFTER_HEAD\"] = 5] = \"AFTER_HEAD\";\n InsertionMode[InsertionMode[\"IN_BODY\"] = 6] = \"IN_BODY\";\n InsertionMode[InsertionMode[\"TEXT\"] = 7] = \"TEXT\";\n InsertionMode[InsertionMode[\"IN_TABLE\"] = 8] = \"IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TABLE_TEXT\"] = 9] = \"IN_TABLE_TEXT\";\n InsertionMode[InsertionMode[\"IN_CAPTION\"] = 10] = \"IN_CAPTION\";\n InsertionMode[InsertionMode[\"IN_COLUMN_GROUP\"] = 11] = \"IN_COLUMN_GROUP\";\n InsertionMode[InsertionMode[\"IN_TABLE_BODY\"] = 12] = \"IN_TABLE_BODY\";\n InsertionMode[InsertionMode[\"IN_ROW\"] = 13] = \"IN_ROW\";\n InsertionMode[InsertionMode[\"IN_CELL\"] = 14] = \"IN_CELL\";\n InsertionMode[InsertionMode[\"IN_SELECT\"] = 15] = \"IN_SELECT\";\n InsertionMode[InsertionMode[\"IN_SELECT_IN_TABLE\"] = 16] = \"IN_SELECT_IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TEMPLATE\"] = 17] = \"IN_TEMPLATE\";\n InsertionMode[InsertionMode[\"AFTER_BODY\"] = 18] = \"AFTER_BODY\";\n InsertionMode[InsertionMode[\"IN_FRAMESET\"] = 19] = \"IN_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_FRAMESET\"] = 20] = \"AFTER_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_BODY\"] = 21] = \"AFTER_AFTER_BODY\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_FRAMESET\"] = 22] = \"AFTER_AFTER_FRAMESET\";\n})(InsertionMode || (InsertionMode = {}));\nconst BASE_LOC = {\n startLine: -1,\n startCol: -1,\n startOffset: -1,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n};\nconst TABLE_STRUCTURE_TAGS = new Set([$.TABLE, $.TBODY, $.TFOOT, $.THEAD, $.TR]);\nconst defaultParserOptions = {\n scriptingEnabled: true,\n sourceCodeLocationInfo: false,\n treeAdapter: defaultTreeAdapter,\n onParseError: null,\n};\n//Parser\nexport class Parser {\n constructor(options, document, fragmentContext = null, scriptHandler = null) {\n this.fragmentContext = fragmentContext;\n this.scriptHandler = scriptHandler;\n this.currentToken = null;\n this.stopped = false;\n this.insertionMode = InsertionMode.INITIAL;\n this.originalInsertionMode = InsertionMode.INITIAL;\n this.headElement = null;\n this.formElement = null;\n /** Indicates that the current node is not an element in the HTML namespace */\n this.currentNotInHTML = false;\n /**\n * The template insertion mode stack is maintained from the left.\n * Ie. the topmost element will always have index 0.\n */\n this.tmplInsertionModeStack = [];\n this.pendingCharacterTokens = [];\n this.hasNonWhitespacePendingCharacterToken = false;\n this.framesetOk = true;\n this.skipNextNewLine = false;\n this.fosterParentingEnabled = false;\n this.options = {\n ...defaultParserOptions,\n ...options,\n };\n this.treeAdapter = this.options.treeAdapter;\n this.onParseError = this.options.onParseError;\n // Always enable location info if we report parse errors.\n if (this.onParseError) {\n this.options.sourceCodeLocationInfo = true;\n }\n this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();\n this.tokenizer = new Tokenizer(this.options, this);\n this.activeFormattingElements = new FormattingElementList(this.treeAdapter);\n this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : $.UNKNOWN;\n this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID);\n this.openElements = new OpenElementStack(this.document, this.treeAdapter, this);\n }\n // API\n static parse(html, options) {\n const parser = new this(options);\n parser.tokenizer.write(html, true);\n return parser.document;\n }\n static getFragmentParser(fragmentContext, options) {\n const opts = {\n ...defaultParserOptions,\n ...options,\n };\n //NOTE: use a