@oscloudlab/knowledge-card 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abap-BPkFlAU0.js → abap-BIhkXPS-.js} +1 -1
- package/dist/{abnf-CKiMLzCP.js → abnf-C7GHkdAc.js} +1 -1
- package/dist/{actionscript-CgAc9jDA.js → actionscript-RQzOgKWD.js} +1 -1
- package/dist/{ada-C05Bj_5b.js → ada-CeO06WDv.js} +1 -1
- package/dist/{agda-QIjnKSS4.js → agda-OzMgeEhg.js} +1 -1
- package/dist/{al-DrWPbCYI.js → al-Bqm1nyi4.js} +1 -1
- package/dist/{antlr4-DiuxDgVV.js → antlr4-Bb7CJzY7.js} +1 -1
- package/dist/{apacheconf-B621odC9.js → apacheconf-iALIC0xj.js} +1 -1
- package/dist/{apex-Cb9_UJiZ.js → apex-DVWU7fVG.js} +1 -1
- package/dist/{apl-DtGhuymF.js → apl-CADlmlIE.js} +1 -1
- package/dist/{applescript-hKCcHEfb.js → applescript-R2Uk1qls.js} +1 -1
- package/dist/{aql-D88MgTgc.js → aql-DLXIuKOu.js} +1 -1
- package/dist/{arduino-DBI-eRTK.js → arduino-kqibsBlM.js} +1 -1
- package/dist/{arff-DRjhzho-.js → arff-Cdeo2tCQ.js} +1 -1
- package/dist/{asciidoc-DOhjskzm.js → asciidoc-BwvZqhUq.js} +1 -1
- package/dist/{asm6502-TMZoHp1w.js → asm6502-BHJJWXY1.js} +1 -1
- package/dist/{asmatmel-BEXlujPk.js → asmatmel-CZ3XxZY7.js} +1 -1
- package/dist/{aspnet-B0OhbpkB.js → aspnet-B6Z3IAWm.js} +1 -1
- package/dist/{autohotkey-DGHaHp6Z.js → autohotkey-DnqredLd.js} +1 -1
- package/dist/autohotkey-DnqredLd.js.gz +0 -0
- package/dist/{autoit-Dnr-YGNX.js → autoit-CFimFKaz.js} +1 -1
- package/dist/{avisynth-B1EwaWMl.js → avisynth-LqLaUBYE.js} +1 -1
- package/dist/{avro-idl-BK_mrh6L.js → avro-idl-BOUCL-MD.js} +1 -1
- package/dist/{bash-BgDM5Cg2.js → bash-f9s3lf0b.js} +1 -1
- package/dist/{basic-uK0_FUuy.js → basic-CgsFo9UY.js} +1 -1
- package/dist/{batch-r1nvZvY2.js → batch-DyKjVSuV.js} +1 -1
- package/dist/{bbcode-BYOV1YN5.js → bbcode-DU1w6w7-.js} +1 -1
- package/dist/{bicep-Bjm6zvTO.js → bicep-ikt3pJtq.js} +1 -1
- package/dist/{birb-bYfIGhBZ.js → birb-Bhgemq9y.js} +1 -1
- package/dist/{bison-BVAds_Po.js → bison-BDagvFeI.js} +1 -1
- package/dist/{bnf-D35yyhX0.js → bnf-F81_IlZz.js} +1 -1
- package/dist/{brainfuck-CUFUFIl6.js → brainfuck-D81yzksY.js} +1 -1
- package/dist/{brightscript-oPDrZoZ7.js → brightscript-BuGD32CR.js} +1 -1
- package/dist/{bro-CPfqS3GM.js → bro-s0qLPcv9.js} +1 -1
- package/dist/{bsl-BptasqlP.js → bsl-DaLirUWM.js} +1 -1
- package/dist/{c-C8IsdKP_.js → c-BZNgMhq3.js} +1 -1
- package/dist/{cfscript-AUUNQZx8.js → cfscript-Bwbq3gyv.js} +1 -1
- package/dist/{chaiscript-sxMpHTXW.js → chaiscript-Z3N5_sQ_.js} +1 -1
- package/dist/{cil-C6fFPklA.js → cil-D2Jvwad5.js} +1 -1
- package/dist/{clike-Bz46V28g.js → clike-DOhtDm8u.js} +1 -1
- package/dist/{clojure-Ch6yC2m2.js → clojure-CVTJ9HgQ.js} +1 -1
- package/dist/{cmake-C0wuE9PY.js → cmake-dovUwooI.js} +1 -1
- package/dist/cmake-dovUwooI.js.gz +0 -0
- package/dist/{cobol-BKOE5ong.js → cobol-Bh6kCmKF.js} +1 -1
- package/dist/{coffeescript-C9GUrTXZ.js → coffeescript-C2J9lb3E.js} +1 -1
- package/dist/{concurnas-CvVxpllp.js → concurnas-DnPqdTuf.js} +1 -1
- package/dist/{coq-DXpB78gK.js → coq-HLCGBmDB.js} +1 -1
- package/dist/{core-DCLnPouG.js → core-Bc-BtkBT.js} +5 -5
- package/dist/core-Bc-BtkBT.js.gz +0 -0
- package/dist/{cpp-CARiPZfR.js → cpp-Udueb4yj.js} +1 -1
- package/dist/{crystal-7HeM8pRA.js → crystal-Bbc_3PoP.js} +1 -1
- package/dist/{csharp-qMHJIYIw.js → csharp-Dw6egGtJ.js} +1 -1
- package/dist/{cshtml-CHlkYAqc.js → cshtml-nCBIlGNr.js} +1 -1
- package/dist/{csp-BYaXEIww.js → csp-htzKvfDC.js} +1 -1
- package/dist/{css-3jcohROu.js → css-Cjubwror.js} +1 -1
- package/dist/{css-extras-Cl48sew4.js → css-extras-C_ZO0CqP.js} +1 -1
- package/dist/{csv-7JhsHgQC.js → csv-PCq18eOn.js} +1 -1
- package/dist/{cypher-FHJYZtPb.js → cypher-C6l3yYmF.js} +1 -1
- package/dist/{d-52Pfj66R.js → d--pntOkfE.js} +1 -1
- package/dist/{dart-CAsPYUgN.js → dart-n6Fno52a.js} +1 -1
- package/dist/{dataweave-2i47NLM8.js → dataweave-DlFOodlB.js} +1 -1
- package/dist/{dax-DPi6GGb4.js → dax-BdykiJD6.js} +1 -1
- package/dist/{dhall-Bpv0FmX1.js → dhall-DEOWawwO.js} +1 -1
- package/dist/{diff-uYQZS0XF.js → diff-CBE_qX_x.js} +1 -1
- package/dist/{django-DPyc-h7H.js → django-DqNzQait.js} +1 -1
- package/dist/{dns-zone-file-C6ZoayjU.js → dns-zone-file-CASbm_eF.js} +1 -1
- package/dist/{docker-DQYw3ipJ.js → docker-CXMkxKLg.js} +1 -1
- package/dist/{dot-D_l5nMjR.js → dot-5WZkuBso.js} +1 -1
- package/dist/{ebnf-D8Xuf46C.js → ebnf-PGkQzxnJ.js} +1 -1
- package/dist/{editorconfig-BDNrRrvZ.js → editorconfig-BfDqtQIq.js} +1 -1
- package/dist/{eiffel-CXozH-6q.js → eiffel-CTf4mJbl.js} +1 -1
- package/dist/{ejs-BUxlyTf6.js → ejs-C6bItAlF.js} +1 -1
- package/dist/{elixir-CPQaMVkd.js → elixir-pbcblD_i.js} +1 -1
- package/dist/{elm-DyvbOhXZ.js → elm-LGDdGXdN.js} +1 -1
- package/dist/{erb-DO69aEeK.js → erb-BwM3UElk.js} +1 -1
- package/dist/{erlang-DDNizo9X.js → erlang-CyClW1Xh.js} +1 -1
- package/dist/{etlua-COy_v19d.js → etlua-5idMJGJ8.js} +1 -1
- package/dist/{excel-formula-mdvG2UpU.js → excel-formula-Cli_gFwf.js} +1 -1
- package/dist/{factor-BReR7gaE.js → factor-BGaJYGYK.js} +1 -1
- package/dist/factor-BGaJYGYK.js.gz +0 -0
- package/dist/{false-DGBO6PjH.js → false-CbaPW9Zc.js} +1 -1
- package/dist/{firestore-security-rules-CsI_7Vae.js → firestore-security-rules-BYUDeZem.js} +1 -1
- package/dist/{flow-CesSwAla.js → flow-C_bib_E4.js} +1 -1
- package/dist/{fortran-DElVhRGV.js → fortran-DwP5XGSR.js} +1 -1
- package/dist/{fsharp-Dh_-kHKm.js → fsharp-QflBNufc.js} +1 -1
- package/dist/{ftl-G-jSOWjU.js → ftl-DnZ1y_Cu.js} +1 -1
- package/dist/{gap-Cupzxnn-.js → gap-CZ5ndrCq.js} +1 -1
- package/dist/{gcode-BulVBynj.js → gcode-BCG79Upn.js} +1 -1
- package/dist/{gdscript-D_FYdtCU.js → gdscript-DEmTaW_d.js} +1 -1
- package/dist/{gedcom-B5g3fWY7.js → gedcom-DoLcrRGz.js} +1 -1
- package/dist/{gherkin-BmS2g47h.js → gherkin-Cx1mwaDr.js} +1 -1
- package/dist/gherkin-Cx1mwaDr.js.gz +0 -0
- package/dist/{git-DOYhhBiY.js → git-DU4vPdQs.js} +1 -1
- package/dist/{glsl-C9DC9UoM.js → glsl-1Nc6EO81.js} +1 -1
- package/dist/{gml-BWPvGyT3.js → gml-Ye2eAs0M.js} +1 -1
- package/dist/{gn-CayWEg_z.js → gn-jDsKBIax.js} +1 -1
- package/dist/{go-DNee0dY2.js → go-DmJ4gW-c.js} +1 -1
- package/dist/{go-module-C5-RPm1y.js → go-module-8HFd4PJU.js} +1 -1
- package/dist/{graphql-DDAdqCAP.js → graphql-ChD94lLB.js} +1 -1
- package/dist/{groovy-4geTjdwb.js → groovy-CuuD2HKM.js} +1 -1
- package/dist/{haml---6b8QwC.js → haml-BQFWALf1.js} +1 -1
- package/dist/{handlebars-ClYfjdbF.js → handlebars-B2ZZk2L5.js} +1 -1
- package/dist/{haskell-Ddr1b3yq.js → haskell-D-39-H1p.js} +1 -1
- package/dist/{haxe-Dwayvo0o.js → haxe-DTcgqQAi.js} +1 -1
- package/dist/{hcl-BVCSMOLs.js → hcl-BCBBYrol.js} +1 -1
- package/dist/{hlsl-CthlauL9.js → hlsl-BeDKqGLT.js} +1 -1
- package/dist/{hoon-CfE8DJ0N.js → hoon-C0g1OCeN.js} +1 -1
- package/dist/{hpkp-BKX_oLbr.js → hpkp-CuaxqvsV.js} +1 -1
- package/dist/{hsts-BIoTlFyo.js → hsts-DzfdcxNN.js} +1 -1
- package/dist/{http-BB4Z7LBb.js → http-BOggbVCm.js} +1 -1
- package/dist/{ichigojam-CqtKAvTD.js → ichigojam-wfuqtJ1f.js} +1 -1
- package/dist/{icon-BmXPoHRm.js → icon-9tOguI7q.js} +1 -1
- package/dist/{icu-message-format-Cz4WrbDK.js → icu-message-format-DGkLegri.js} +1 -1
- package/dist/{idris-CnmXNXkh.js → idris-IlYjcOlf.js} +1 -1
- package/dist/{iecst-DoN_XbH-.js → iecst-RJ9SrUOy.js} +1 -1
- package/dist/{ignore-e8Ri8izs.js → ignore-CvaL5A6S.js} +1 -1
- package/dist/{index-DMNnmvGK.js → index-C5dsqafm.js} +281 -281
- package/dist/index-C5dsqafm.js.gz +0 -0
- package/dist/{inform7-D6FBWGpj.js → inform7-DoYPAfEu.js} +1 -1
- package/dist/{ini-CrWvY-yF.js → ini-B8_PyWwW.js} +1 -1
- package/dist/{io-DH8ygKtq.js → io-h_A6MrGP.js} +1 -1
- package/dist/{j-DQOG_ULi.js → j-CTt59OL8.js} +1 -1
- package/dist/{java-CoDqwfyK.js → java-BJYBbQu5.js} +1 -1
- package/dist/{javadoc-DX8Isg6X.js → javadoc-DExCvFsH.js} +1 -1
- package/dist/{javadoclike-Bg0NZWVZ.js → javadoclike-DPsW90gF.js} +1 -1
- package/dist/{javascript-20mVOgam.js → javascript-BN5hdhQ5.js} +1 -1
- package/dist/{javastacktrace-0JW2lWMM.js → javastacktrace-7K4zINtf.js} +1 -1
- package/dist/{jexl-F55_zCqf.js → jexl-BBQCJogk.js} +1 -1
- package/dist/{jolie-Bq2sWDIU.js → jolie-DiK_D9mS.js} +1 -1
- package/dist/{jq-BRVYwgMG.js → jq-CeQpFzD7.js} +1 -1
- package/dist/{js-extras-CEzXw9Ba.js → js-extras-BXPCCLYM.js} +1 -1
- package/dist/{js-templates-BaH5MLsV.js → js-templates-D3kMVV7Q.js} +1 -1
- package/dist/{jsdoc-oafcEQgd.js → jsdoc-QfLxFpH4.js} +1 -1
- package/dist/{json-BhYLl14W.js → json-DC8dtk3a.js} +1 -1
- package/dist/{json5-C9KEe_RB.js → json5-BY-MV3T7.js} +1 -1
- package/dist/{jsonp-Cj8FQlD4.js → jsonp-yYfFTIBb.js} +1 -1
- package/dist/{jsstacktrace-uTRWyyM5.js → jsstacktrace-CIOMux84.js} +1 -1
- package/dist/{jsx-nvPmFUd7.js → jsx-Ln0CsAyp.js} +1 -1
- package/dist/{julia-BYMrt6KM.js → julia-DjWT1_x5.js} +1 -1
- package/dist/{keepalived-BttLYGEy.js → keepalived-C_LTo1R7.js} +1 -1
- package/dist/{keyman-BvjU3hoo.js → keyman-Cf-hV9Hr.js} +1 -1
- package/dist/knowledge-card.es.js +1 -1
- package/dist/knowledge-card.umd.js +2 -2
- package/dist/knowledge-card.umd.js.gz +0 -0
- package/dist/{kotlin-DggkobX_.js → kotlin-DA7NYvXy.js} +1 -1
- package/dist/{kumir-CheS3sVa.js → kumir-Cgoiruoz.js} +1 -1
- package/dist/{kusto-1DSFiPR-.js → kusto-D53oiPyk.js} +1 -1
- package/dist/{latex--MMqJShO.js → latex-DkQ77Pf1.js} +1 -1
- package/dist/{latte-D4V4inBr.js → latte-Ds3vhy5U.js} +1 -1
- package/dist/{less-CsTsAEED.js → less-B_MTb7Bz.js} +1 -1
- package/dist/{lilypond-Dbke2Cru.js → lilypond-B4aD_sRH.js} +1 -1
- package/dist/{liquid-Bl8_JQqy.js → liquid-DKEAYRQ1.js} +1 -1
- package/dist/{lisp-Chdo7tVE.js → lisp-mV2UaiAd.js} +1 -1
- package/dist/{livescript-CoGqrJxO.js → livescript-BvsS5sek.js} +1 -1
- package/dist/{llvm-BAyz3lsy.js → llvm-DmW9eKSm.js} +1 -1
- package/dist/{log-zBGlhDMj.js → log-D2MaD6Pb.js} +1 -1
- package/dist/{lolcode-2WOnSp0X.js → lolcode-AGOza3Pn.js} +1 -1
- package/dist/{lua-5tFrTz2S.js → lua-CbP4oKyM.js} +1 -1
- package/dist/{magma-BuLKSivs.js → magma-CuFWBq5a.js} +1 -1
- package/dist/{makefile-DowZ8DyK.js → makefile-D-RTdSWm.js} +1 -1
- package/dist/{markdown-CEDCY5SF.js → markdown-ssKCYLNf.js} +1 -1
- package/dist/markdown-ssKCYLNf.js.gz +0 -0
- package/dist/{markup-hf-8KuSx.js → markup-BYB_dae3.js} +1 -1
- package/dist/{markup-templating-Cf6wvUck.js → markup-templating-Ce-ice9Z.js} +1 -1
- package/dist/{matlab-9tss0DOm.js → matlab-DiEcd9x9.js} +1 -1
- package/dist/{maxscript-B-qKteVF.js → maxscript-BjSQuygv.js} +1 -1
- package/dist/{mel-CmC3_GfJ.js → mel-_vUrtP1a.js} +1 -1
- package/dist/mel-_vUrtP1a.js.gz +0 -0
- package/dist/{mermaid-DVDjB57i.js → mermaid-Bv-eUwU3.js} +1 -1
- package/dist/{mizar-Bt3AQuU6.js → mizar-wKoEHy_O.js} +1 -1
- package/dist/{mongodb-B1CrnREz.js → mongodb-KWakSW9Z.js} +1 -1
- package/dist/{monkey-CiVx2v9a.js → monkey-DSz20Qnq.js} +1 -1
- package/dist/{moonscript-BqyJSGLp.js → moonscript-DFm7dotv.js} +1 -1
- package/dist/{n1ql-DLoQ1BP4.js → n1ql-DX5iejOT.js} +1 -1
- package/dist/{n4js-BfYc6gUw.js → n4js-T4TkwOYG.js} +1 -1
- package/dist/{nand2tetris-hdl-CWjkGpGT.js → nand2tetris-hdl-BA7IsVbC.js} +1 -1
- package/dist/{naniscript-CiQHPpNP.js → naniscript-CJ9_WEx5.js} +1 -1
- package/dist/{nasm-CZbXvNwx.js → nasm-CiWL4WNv.js} +1 -1
- package/dist/{neon-DQCf9yWZ.js → neon-DrMk-KuP.js} +1 -1
- package/dist/{nevod-BAT8Z7Pm.js → nevod-cbcv376J.js} +1 -1
- package/dist/{nginx-BllD6EEJ.js → nginx-VwZuzfPf.js} +1 -1
- package/dist/{nim-CgjNBhbJ.js → nim-DKGeCq0J.js} +1 -1
- package/dist/{nix-DYWS3B7C.js → nix-OnRphXLB.js} +1 -1
- package/dist/{nsis-gao95eZE.js → nsis-CuNTbTR1.js} +1 -1
- package/dist/{objectivec-CRYIkF4P.js → objectivec-DcvUju_4.js} +1 -1
- package/dist/{ocaml-tm8ym0tl.js → ocaml-D1VRdGzt.js} +1 -1
- package/dist/{opencl-UPpUoRDv.js → opencl-C1sZgBWq.js} +1 -1
- package/dist/opencl-C1sZgBWq.js.gz +0 -0
- package/dist/{openqasm-CyNPUMbv.js → openqasm-CZHJrfqJ.js} +1 -1
- package/dist/{oz-CkoL8dAz.js → oz-BrwRC81E.js} +1 -1
- package/dist/{parigp-BnvKoGn8.js → parigp-w3jSfimk.js} +1 -1
- package/dist/{parser-DjKSmnve.js → parser-Bg-8i4T5.js} +1 -1
- package/dist/{pascal-CYy5v-uH.js → pascal-DwYztXM5.js} +1 -1
- package/dist/{pascaligo-DSACeMVn.js → pascaligo-CxHFMWQ5.js} +1 -1
- package/dist/{pcaxis-AWbF7mCd.js → pcaxis-DNrb0ftr.js} +1 -1
- package/dist/{peoplecode-De9ucJyL.js → peoplecode-DDdXARDN.js} +1 -1
- package/dist/{perl-BPOXydJ9.js → perl-CJFhGJpn.js} +1 -1
- package/dist/{php-cRZ2AYLc.js → php-DoW-_D0O.js} +1 -1
- package/dist/{php-extras-BwbnjCz0.js → php-extras-BeZEjEGb.js} +1 -1
- package/dist/{phpdoc-Dg-Fi1hm.js → phpdoc-42qMgne8.js} +1 -1
- package/dist/{plsql-C9nDEYVS.js → plsql-CEAZEEkK.js} +1 -1
- package/dist/{powerquery-CnBbeLhB.js → powerquery-CxwunFIS.js} +1 -1
- package/dist/{powershell-BNY6ocN0.js → powershell-D5QH2IMp.js} +1 -1
- package/dist/{processing-uyYSuGlr.js → processing-CGWD-I-k.js} +1 -1
- package/dist/{prolog-C9SPp0S9.js → prolog-BwJ6NaJu.js} +1 -1
- package/dist/{promql-YkslOuXs.js → promql-Bpy1_ERM.js} +1 -1
- package/dist/{properties-jo1p25PD.js → properties-BoVN_npt.js} +1 -1
- package/dist/{protobuf-BCE0OzXK.js → protobuf-DC0CPoHp.js} +1 -1
- package/dist/{psl-DdD464i_.js → psl-CHW5GlZy.js} +1 -1
- package/dist/{pug-Cono4eqP.js → pug-rOTZx8Of.js} +1 -1
- package/dist/{puppet-DpbLEEGZ.js → puppet-CxUHB2qY.js} +1 -1
- package/dist/{pure-C2WMQ_2N.js → pure-CkKNurFq.js} +1 -1
- package/dist/{purebasic-BE0B4eN0.js → purebasic-yRbVTKsk.js} +1 -1
- package/dist/{purescript-DDRUf1Bq.js → purescript-Dyn1v920.js} +1 -1
- package/dist/{python-CDl2oqW3.js → python-WQMcZtjm.js} +1 -1
- package/dist/{q-Cblq-hhw.js → q-B4N3d4fo.js} +1 -1
- package/dist/{qml-Drq6tEqu.js → qml-CuLbjbAH.js} +1 -1
- package/dist/{qore-CiKU3VUR.js → qore-BGiOJYka.js} +1 -1
- package/dist/{qsharp-D9S9x_C7.js → qsharp-BzU4QF_x.js} +1 -1
- package/dist/{r-Drr-WkHR.js → r-CZiujCmr.js} +1 -1
- package/dist/{racket-CptCbV6X.js → racket-BVvatg20.js} +1 -1
- package/dist/{reason-C9l9AKVS.js → reason-CzkgtCv5.js} +1 -1
- package/dist/{regex-2oMNHya7.js → regex-DhZrd-Qd.js} +1 -1
- package/dist/{rego-BhamMuKp.js → rego-DrVBeZ2w.js} +1 -1
- package/dist/{renpy-DeVQGtS3.js → renpy-hqwX9oar.js} +1 -1
- package/dist/{rest-DnCGZ_DP.js → rest-ChtSs_Ux.js} +1 -1
- package/dist/{rip-C5Z0mHvb.js → rip-B6wxp_EH.js} +1 -1
- package/dist/{roboconf-BK6SyydA.js → roboconf-CRW6aruY.js} +1 -1
- package/dist/{robotframework-CZfhE49n.js → robotframework-geGLgPwI.js} +1 -1
- package/dist/{ruby-D_GlxM4u.js → ruby-DzfXOh-u.js} +1 -1
- package/dist/{rust-Df8LrMvg.js → rust-DpDKcfcl.js} +1 -1
- package/dist/{sas-B7o6icMe.js → sas-BtFnb_2q.js} +1 -1
- package/dist/sas-BtFnb_2q.js.gz +0 -0
- package/dist/{sass--6xGJHxR.js → sass-0jmJHMiE.js} +1 -1
- package/dist/{scala-CRr-yLA1.js → scala-CH4JhNw8.js} +1 -1
- package/dist/{scheme-CGNCHIaX.js → scheme-k8WopgRk.js} +1 -1
- package/dist/{scss-6rC4KdDl.js → scss--Xv-BmOk.js} +1 -1
- package/dist/{shell-session-CFCWdAf_.js → shell-session-Bnc-F-6h.js} +1 -1
- package/dist/{smali-BNuI78bd.js → smali-KO8RsncY.js} +1 -1
- package/dist/{smalltalk-DvO_SPAd.js → smalltalk-DRC9mAw9.js} +1 -1
- package/dist/{smarty-DSuUpUx0.js → smarty-BP2I8foJ.js} +1 -1
- package/dist/{sml-DT2HFrQ4.js → sml-d-s_0ItQ.js} +1 -1
- package/dist/{solidity-DtJRz4j1.js → solidity-DhY3-EMX.js} +1 -1
- package/dist/{solution-file-TT5heDy5.js → solution-file-CTW30RH7.js} +1 -1
- package/dist/{soy-Q3FUk52M.js → soy-DnR-Wmaz.js} +1 -1
- package/dist/{sparql-CnUbrfg6.js → sparql-BQac9mxQ.js} +1 -1
- package/dist/{splunk-spl-DK5nuMyN.js → splunk-spl-DrJtfmSD.js} +1 -1
- package/dist/{sqf-DorcrB5M.js → sqf-D4AjXWGa.js} +1 -1
- package/dist/sqf-D4AjXWGa.js.gz +0 -0
- package/dist/{sql-1H7Y5jTl.js → sql-BEGI0OQl.js} +1 -1
- package/dist/{squirrel-Cg2y9gj3.js → squirrel-BdM4i-1v.js} +1 -1
- package/dist/{stan-BYeXi6OY.js → stan-CUMyl0DB.js} +1 -1
- package/dist/{stylus-DEua6rFk.js → stylus-ByI54qPa.js} +1 -1
- package/dist/{swift-B8reOQbY.js → swift-C9NugD1W.js} +1 -1
- package/dist/{systemd-CcPcva8V.js → systemd-C7jO3faq.js} +1 -1
- package/dist/{t4-cs-mQxzOS3e.js → t4-cs-B4YsuqvL.js} +1 -1
- package/dist/{t4-templating-C20rrtW_.js → t4-templating-CmiabbLM.js} +1 -1
- package/dist/{t4-vb-DIMSdAE7.js → t4-vb-C9rC-2Vz.js} +1 -1
- package/dist/{tap-DBvervdJ.js → tap-DjLBsCQk.js} +1 -1
- package/dist/{tcl-Czv6wi9v.js → tcl-CBVPutWe.js} +1 -1
- package/dist/{textile-DgW9JG76.js → textile-5p34r595.js} +1 -1
- package/dist/textile-5p34r595.js.gz +0 -0
- package/dist/{toml-BkNLSr_V.js → toml-r3mxfGfT.js} +1 -1
- package/dist/{tremor-DRwmcC18.js → tremor-De2MvGKs.js} +1 -1
- package/dist/{tsx-CEWP9pvx.js → tsx-vL5o4xN0.js} +1 -1
- package/dist/{tt2-YNL1Va4u.js → tt2-8zzlpgva.js} +1 -1
- package/dist/{turtle-Cuk0TKjo.js → turtle-DK0LC1ax.js} +1 -1
- package/dist/{twig-DL3D3MxU.js → twig-BFSLLgoJ.js} +1 -1
- package/dist/{typescript-rOM_5SKy.js → typescript-DId8lbuK.js} +1 -1
- package/dist/{typoscript-jv8VlnrE.js → typoscript-9BFYf_sZ.js} +1 -1
- package/dist/{unrealscript-DiUyv01a.js → unrealscript-CUAsYYLf.js} +1 -1
- package/dist/{uorazor-mubUQAQ4.js → uorazor-CZvfYtXq.js} +1 -1
- package/dist/{uri-DKZHp895.js → uri-P37v7K2G.js} +1 -1
- package/dist/{v-DGznkB8W.js → v-DDIytrU6.js} +1 -1
- package/dist/{vala-BaqofXR0.js → vala-CwNlqFVK.js} +1 -1
- package/dist/{vbnet-DjmzXrtH.js → vbnet-BaPr2Rih.js} +1 -1
- package/dist/{velocity-C8CxhNhJ.js → velocity-BTk2HNtg.js} +1 -1
- package/dist/{verilog-BTbWqoPO.js → verilog-CYmJxNXT.js} +1 -1
- package/dist/{vhdl-CfBc9Jrr.js → vhdl-BiBOk0jy.js} +1 -1
- package/dist/{vim-vCGTfUKF.js → vim-CsCo-1OV.js} +1 -1
- package/dist/vim-CsCo-1OV.js.gz +0 -0
- package/dist/{visual-basic-Ch5c5cxV.js → visual-basic-Cxke_zGR.js} +1 -1
- package/dist/{warpscript-FXoreM17.js → warpscript-IYrwlcAT.js} +1 -1
- package/dist/{wasm-DPh8eDoQ.js → wasm-CbBZU4AB.js} +1 -1
- package/dist/{web-idl-B_UJAQqb.js → web-idl-eysgExeP.js} +1 -1
- package/dist/{wiki-BaIXVC_A.js → wiki-D4940kw9.js} +1 -1
- package/dist/{wolfram-3OSvKvhn.js → wolfram-B4rS5Ndb.js} +1 -1
- package/dist/{wren-C8nk2fjI.js → wren-B6pNOmUE.js} +1 -1
- package/dist/{xeora-Bs6gA0pG.js → xeora-DJQ6sZ7k.js} +1 -1
- package/dist/{xml-doc-CFf0eTIy.js → xml-doc-CUybE6EU.js} +1 -1
- package/dist/{xojo-B5PV-WDn.js → xojo-DJ8CrRI3.js} +1 -1
- package/dist/{xquery-De3iYGN-.js → xquery-BR2EUvnT.js} +1 -1
- package/dist/{yaml-DvEGro9H.js → yaml-DQOt-H-9.js} +1 -1
- package/dist/{yang-B5tE2wcg.js → yang-CGq-PqWk.js} +1 -1
- package/dist/{zig-D9fGjNnp.js → zig-Cg1rsYfU.js} +1 -1
- package/package.json +1 -1
- package/dist/autohotkey-DGHaHp6Z.js.gz +0 -0
- package/dist/cmake-C0wuE9PY.js.gz +0 -0
- package/dist/core-DCLnPouG.js.gz +0 -0
- package/dist/factor-BReR7gaE.js.gz +0 -0
- package/dist/gherkin-BmS2g47h.js.gz +0 -0
- package/dist/index-DMNnmvGK.js.gz +0 -0
- package/dist/markdown-CEDCY5SF.js.gz +0 -0
- package/dist/mel-CmC3_GfJ.js.gz +0 -0
- package/dist/opencl-UPpUoRDv.js.gz +0 -0
- package/dist/sas-B7o6icMe.js.gz +0 -0
- package/dist/sqf-DorcrB5M.js.gz +0 -0
- package/dist/textile-DgW9JG76.js.gz +0 -0
- package/dist/vim-vCGTfUKF.js.gz +0 -0
|
@@ -23,12 +23,12 @@ var E={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function re(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=re(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const ne={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ie=Math.round;function ae(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const oe=(e,t,r)=>0===r?e:e/100;function se(e,t){const r=t||255;return e>r?r:e<0?0:e}class le{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(l(this,"isValid",!0),l(this,"r",0),l(this,"g",0),l(this,"b",0),l(this,"a",1),l(this,"_h"),l(this,"_s"),l(this,"_l"),l(this,"_v"),l(this,"_max"),l(this,"_min"),l(this,"_brightness"),e)if("string"==typeof e){let t=function(e){return r.startsWith(e)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(t("rgb"))this.fromRgbString(r);else if(t("hsl"))this.fromHslString(r);else if(t("hsv")||t("hsb"))this.fromHsvString(r);else{const e=ne[r.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof le)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=se(e.r),this.g=se(e.g),this.b=se(e.b),this.a="number"==typeof e.a?se(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ie(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,i=e=>(r[e]-this[e])*n+this[e],a={r:ie(i("r")),g:ie(i("g")),b:ie(i("b")),a:ie(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>ie((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=ie(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ie(100*this.getSaturation()),r=ie(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=se(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=ie(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0;const s=e/60,l=(1-Math.abs(2*r-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,a=c):s>=1&&s<2?(i=c,a=l):s>=2&&s<3?(a=l,o=c):s>=3&&s<4?(a=c,o=l):s>=4&&s<5?(i=c,o=l):s>=5&&s<6&&(i=l,o=c);const u=r-l/2;this.r=ie(255*(i+u)),this.g=ie(255*(a+u)),this.b=ie(255*(o+u))}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;const i=ie(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,o=Math.floor(a),s=a-o,l=ie(r*(1-t)*255),c=ie(r*(1-t*s)*255),u=ie(r*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=ae(e,oe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ae(e,oe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ae(e,(e,t)=>t.includes("%")?ie(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const ce=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ue(e,t,r){let n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t,n<0?n+=360:n>=360&&(n-=360),n}function de(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,n>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100}function pe(e,t,r){let n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}const qe=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qe.primary=qe[5];const he="data-rc-order",Ve="data-rc-priority",fe=new Map;function me({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function be(e){return Array.from((fe.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function ve(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:r,prepend:n,priority:i=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),o="prependQueue"===a,s=document.createElement("style");s.setAttribute(he,a),o&&i&&s.setAttribute(Ve,`${i}`),(null==r?void 0:r.nonce)&&(s.nonce=null==r?void 0:r.nonce),s.innerHTML=e;const l=ge(t),{firstChild:c}=l;if(n){if(o){const e=(t.styles||be(l)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(he)))return!1;const t=Number(e.getAttribute(Ve)||0);return i>=t});if(e.length)return l.insertBefore(s,e[e.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ae(e){var t;return null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e)}let Se={};const ye=[];function Ee(e,t){"production"===process.env.NODE_ENV||e||void 0===console||ye.reduce((e,t)=>t(e??"","warning"),t)}function Te(e,t){"production"===process.env.NODE_ENV||e||void 0===console||ye.reduce((e,t)=>t(e??"","note"),t)}function Ce(e,t,r){t||Se[r]||(e(!1,r),Se[r]=!0)}function Ue(e,t){Ce(Ee,e,t)}function Re(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Ne(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];var i;return"class"===r?(t.className=n,delete t.class):(delete t[r],t[(i=r,i.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=n),t},{})}function ke(e,r,n){return n?t.createElement(e.tag,{key:r,...Ne(e.attrs),...n},(e.children||[]).map((t,n)=>ke(t,`${r}-${e.tag}-${n}`))):t.createElement(e.tag,{key:r,...Ne(e.attrs)},(e.children||[]).map((t,n)=>ke(t,`${r}-${e.tag}-${n}`)))}function Fe(e){return function(e,t={}){const r=[],n=new le(e),i=n.toHsv();for(let a=5;a>0;a-=1){const e=new le({h:ue(i,a,!0),s:de(i,a,!0),v:pe(i,a,!0)});r.push(e)}r.push(n);for(let a=1;a<=4;a+=1){const e=new le({h:ue(i,a),s:de(i,a),v:pe(i,a)});r.push(e)}return"dark"===t.theme?ce.map(({index:e,amount:n})=>new le(t.backgroundColor||"#141414").mix(r[e],n).toHexString()):r.map(e=>e.toHexString())}(e)[0]}function we(e){return e?Array.isArray(e)?e:[e]:[]}Ue.preMessage=e=>{ye.push(e)},Ue.resetWarned=function(){Se={}},Ue.noteOnce=function(e,t){Ce(Te,e,t)};const We={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},xe=e=>{const{icon:r,className:n,onClick:i,style:a,primaryColor:o,secondaryColor:s,...l}=e,c=d.useRef(null);let u=We;if(o&&(u={primaryColor:o,secondaryColor:s||Fe(o)}),(e=>{const{csp:r,prefixCls:n,layer:i}=t.useContext(te);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),i&&(a=`@layer ${i} {\n${a}\n}`),t.useEffect(()=>{const t=function(e){return Ae(e)instanceof ShadowRoot}(n=e.current)?Ae(n):null;var n;!function(e,t,r={}){var n,i,a;const o=ge(r),s=be(o),l={...r,styles:s};!function(e,t){const r=fe.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){const r=ve("",t),{parentNode:n}=r;fe.set(e,n),e.removeChild(r)}}(o,l);const c=function(e,t={}){let{styles:r}=t;return r||(r=be(ge(t))),r.find(r=>r.getAttribute(me(t))===e)}(t,l);if(c)return(null==(n=l.csp)?void 0:n.nonce)&&c.nonce!==(null==(i=l.csp)?void 0:i.nonce)&&(c.nonce=null==(a=l.csp)?void 0:a.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=ve(e,l);u.setAttribute(me(l),t)}(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:t})},[])})(c),Ue(Re(r),`[@ant-design/icons] icon should be icon definiton, but got ${r}`),!Re(r))return null;let p=r;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(u.primaryColor,u.secondaryColor)}),ke(p.icon,`svg-${p.name}`,{className:n,onClick:i,style:a,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};function Oe(e){const[t,r]=we(e);return xe.setTwoToneColors({primaryColor:t,secondaryColor:r})}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(this,arguments)}xe.displayName="IconReact",xe.getTwoToneColors=function(){return{...We}},xe.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){We.primaryColor=e,We.secondaryColor=t||Fe(e),We.calculated=!!t},Oe(qe.primary);const Ie=d.forwardRef((e,t)=>{const{className:r,icon:n,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:p}=d.useContext(te),q=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=re(e))&&(n&&(n+=" "),n+=t);return n}(p,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||"loading"===n.name},r);let h=o;void 0===h&&s&&(h=-1);const V=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[f,m]=we(l);return d.createElement("span",Ke({role:"img","aria-label":n.name},c,{ref:t,tabIndex:h,onClick:s,className:q}),d.createElement(xe,{icon:n,primaryColor:f,secondaryColor:m,style:V}))});Ie.getTwoToneColor=function(){const e=xe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ie.setTwoToneColor=Oe,"production"!==process.env.NODE_ENV&&(Ie.displayName="AntdIcon");var De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Le.apply(this,arguments)}const Pe=(e,t)=>d.createElement(Ie,Le({},e,{ref:t,icon:De})),Be=d.forwardRef(Pe);"production"!==process.env.NODE_ENV&&(Be.displayName="AlignLeftOutlined");var Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Me.apply(this,arguments)}const je=(e,t)=>d.createElement(Ie,Me({},e,{ref:t,icon:Xe})),Ge=d.forwardRef(je);"production"!==process.env.NODE_ENV&&(Ge.displayName="CaretRightOutlined");var He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}const Ye=(e,t)=>d.createElement(Ie,Ze({},e,{ref:t,icon:He})),ze=d.forwardRef(Ye);"production"!==process.env.NODE_ENV&&(ze.displayName="CheckCircleFilled");var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(this,arguments)}const _e=(e,t)=>d.createElement(Ie,Je({},e,{ref:t,icon:Qe})),$e=d.forwardRef(_e);"production"!==process.env.NODE_ENV&&($e.displayName="ClockCircleOutlined");var et={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}const rt=(e,t)=>d.createElement(Ie,tt({},e,{ref:t,icon:et})),nt=d.forwardRef(rt);"production"!==process.env.NODE_ENV&&(nt.displayName="CloseCircleFilled");var it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},at.apply(this,arguments)}const ot=(e,t)=>d.createElement(Ie,at({},e,{ref:t,icon:it})),st=d.forwardRef(ot);"production"!==process.env.NODE_ENV&&(st.displayName="CloudServerOutlined");var lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(this,arguments)}const ut=(e,t)=>d.createElement(Ie,ct({},e,{ref:t,icon:lt})),dt=d.forwardRef(ut);"production"!==process.env.NODE_ENV&&(dt.displayName="DesktopOutlined");var pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qt.apply(this,arguments)}const ht=(e,t)=>d.createElement(Ie,qt({},e,{ref:t,icon:pt})),Vt=d.forwardRef(ht);"production"!==process.env.NODE_ENV&&(Vt.displayName="EnterOutlined");var ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"};function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mt.apply(this,arguments)}const gt=(e,t)=>d.createElement(Ie,mt({},e,{ref:t,icon:ft})),bt=d.forwardRef(gt);"production"!==process.env.NODE_ENV&&(bt.displayName="HddOutlined");var vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},At.apply(this,arguments)}const St=(e,t)=>d.createElement(Ie,At({},e,{ref:t,icon:vt})),yt=d.forwardRef(St);"production"!==process.env.NODE_ENV&&(yt.displayName="PlayCircleFilled");var Et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tt.apply(this,arguments)}const Ct=(e,t)=>d.createElement(Ie,Tt({},e,{ref:t,icon:Et})),Ut=d.forwardRef(Ct);"production"!==process.env.NODE_ENV&&(Ut.displayName="SwapOutlined");var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nt.apply(this,arguments)}const kt=(e,t)=>d.createElement(Ie,Nt({},e,{ref:t,icon:Rt})),Ft=d.forwardRef(kt);"production"!==process.env.NODE_ENV&&(Ft.displayName="ThunderboltOutlined");var wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"}}]},name:"video-camera",theme:"filled"};function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}const xt=(e,t)=>d.createElement(Ie,Wt({},e,{ref:t,icon:wt})),Ot=d.forwardRef(xt);function Kt(){}function It(){}function Dt(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){-1===n&&(n=r.length,a=!0);const e=r.slice(i,n).trim();!e&&a||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}function Lt(e,t){const r={};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}"production"!==process.env.NODE_ENV&&(Ot.displayName="VideoCameraFilled");const Pt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xt={};function Mt(e,t){return(Xt.jsx?Bt:Pt).test(e)}const jt=/[ \t\n\f\r]/g;function Gt(e){return""===e.replace(jt,"")}let Ht=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};function Zt(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Ht(r,n,t)}function Yt(e){return e.toLowerCase()}Ht.prototype.normal={},Ht.prototype.property={},Ht.prototype.space=void 0;let zt=class{constructor(e,t){this.attribute=t,this.property=e}};zt.prototype.attribute="",zt.prototype.booleanish=!1,zt.prototype.boolean=!1,zt.prototype.commaOrSpaceSeparated=!1,zt.prototype.commaSeparated=!1,zt.prototype.defined=!1,zt.prototype.mustUseProperty=!1,zt.prototype.number=!1,zt.prototype.overloadedBoolean=!1,zt.prototype.property="",zt.prototype.spaceSeparated=!1,zt.prototype.space=void 0;let Qt=0;const Jt=ir(),_t=ir(),$t=ir(),er=ir(),tr=ir(),rr=ir(),nr=ir();function ir(){return 2**++Qt}const ar=Object.freeze(Object.defineProperty({__proto__:null,boolean:Jt,booleanish:_t,commaOrSpaceSeparated:nr,commaSeparated:rr,number:er,overloadedBoolean:$t,spaceSeparated:tr},Symbol.toStringTag,{value:"Module"})),or=Object.keys(ar);let sr=class extends zt{constructor(e,t,r,n){let i=-1;if(super(e,t),lr(this,"space",n),"number"==typeof r)for(;++i<or.length;){const e=or[i];lr(this,or[i],(r&ar[e])===ar[e])}}};function lr(e,t,r){r&&(e[t]=r)}function cr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new sr(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Yt(n)]=n,r[Yt(a.attribute)]=n}return new Ht(t,r,e.space)}sr.prototype.defined=!0;const ur=cr({properties:{ariaActiveDescendant:null,ariaAtomic:_t,ariaAutoComplete:null,ariaBusy:_t,ariaChecked:_t,ariaColCount:er,ariaColIndex:er,ariaColSpan:er,ariaControls:tr,ariaCurrent:null,ariaDescribedBy:tr,ariaDetails:null,ariaDisabled:_t,ariaDropEffect:tr,ariaErrorMessage:null,ariaExpanded:_t,ariaFlowTo:tr,ariaGrabbed:_t,ariaHasPopup:null,ariaHidden:_t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tr,ariaLevel:er,ariaLive:null,ariaModal:_t,ariaMultiLine:_t,ariaMultiSelectable:_t,ariaOrientation:null,ariaOwns:tr,ariaPlaceholder:null,ariaPosInSet:er,ariaPressed:_t,ariaReadOnly:_t,ariaRelevant:null,ariaRequired:_t,ariaRoleDescription:tr,ariaRowCount:er,ariaRowIndex:er,ariaRowSpan:er,ariaSelected:_t,ariaSetSize:er,ariaSort:null,ariaValueMax:er,ariaValueMin:er,ariaValueNow:er,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function dr(e,t){return t in e?e[t]:t}function pr(e,t){return dr(e,t.toLowerCase())}const qr=cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rr,acceptCharset:tr,accessKey:tr,action:null,allow:null,allowFullScreen:Jt,allowPaymentRequest:Jt,allowUserMedia:Jt,alt:null,as:null,async:Jt,autoCapitalize:null,autoComplete:tr,autoFocus:Jt,autoPlay:Jt,blocking:tr,capture:null,charSet:null,checked:Jt,cite:null,className:tr,cols:er,colSpan:null,content:null,contentEditable:_t,controls:Jt,controlsList:tr,coords:er|rr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Jt,defer:Jt,dir:null,dirName:null,disabled:Jt,download:$t,draggable:_t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Jt,formTarget:null,headers:tr,height:er,hidden:$t,high:er,href:null,hrefLang:null,htmlFor:tr,httpEquiv:tr,id:null,imageSizes:null,imageSrcSet:null,inert:Jt,inputMode:null,integrity:null,is:null,isMap:Jt,itemId:null,itemProp:tr,itemRef:tr,itemScope:Jt,itemType:tr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Jt,low:er,manifest:null,max:null,maxLength:er,media:null,method:null,min:null,minLength:er,multiple:Jt,muted:Jt,name:null,nonce:null,noModule:Jt,noValidate:Jt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Jt,optimum:er,pattern:null,ping:tr,placeholder:null,playsInline:Jt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Jt,referrerPolicy:null,rel:tr,required:Jt,reversed:Jt,rows:er,rowSpan:er,sandbox:tr,scope:null,scoped:Jt,seamless:Jt,selected:Jt,shadowRootClonable:Jt,shadowRootDelegatesFocus:Jt,shadowRootMode:null,shape:null,size:er,sizes:null,slot:null,span:er,spellCheck:_t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:er,step:null,style:null,tabIndex:er,target:null,title:null,translate:null,type:null,typeMustMatch:Jt,useMap:null,value:_t,width:er,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tr,axis:null,background:null,bgColor:null,border:er,borderColor:null,bottomMargin:er,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Jt,declare:Jt,event:null,face:null,frame:null,frameBorder:null,hSpace:er,leftMargin:er,link:null,longDesc:null,lowSrc:null,marginHeight:er,marginWidth:er,noResize:Jt,noHref:Jt,noShade:Jt,noWrap:Jt,object:null,profile:null,prompt:null,rev:null,rightMargin:er,rules:null,scheme:null,scrolling:_t,standby:null,summary:null,text:null,topMargin:er,valueType:null,version:null,vAlign:null,vLink:null,vSpace:er,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Jt,disableRemotePlayback:Jt,prefix:null,property:null,results:er,security:null,unselectable:null},space:"html",transform:pr}),hr=cr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nr,accentHeight:er,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:er,amplitude:er,arabicForm:null,ascent:er,attributeName:null,attributeType:null,azimuth:er,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:er,by:null,calcMode:null,capHeight:er,className:tr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:er,diffuseConstant:er,direction:null,display:null,dur:null,divisor:er,dominantBaseline:null,download:Jt,dx:null,dy:null,edgeMode:null,editable:null,elevation:er,enableBackground:null,end:null,event:null,exponent:er,externalResourcesRequired:null,fill:null,fillOpacity:er,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rr,g2:rr,glyphName:rr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:er,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:er,horizOriginX:er,horizOriginY:er,id:null,ideographic:er,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:er,k:er,k1:er,k2:er,k3:er,k4:er,kernelMatrix:nr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:er,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:er,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:er,overlineThickness:er,paintOrder:null,panose1:null,path:null,pathLength:er,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:er,pointsAtY:er,pointsAtZ:er,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nr,rev:nr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nr,requiredFeatures:nr,requiredFonts:nr,requiredFormats:nr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:er,specularExponent:er,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:er,strikethroughThickness:er,string:null,stroke:null,strokeDashArray:nr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:er,strokeOpacity:er,strokeWidth:null,style:null,surfaceScale:er,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nr,tabIndex:er,tableValues:null,target:null,targetX:er,targetY:er,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:er,underlineThickness:er,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:er,values:null,vAlphabetic:er,vMathematical:er,vectorEffect:null,vHanging:er,vIdeographic:er,version:null,vertAdvY:er,vertOriginX:er,vertOriginY:er,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:er,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),Vr=cr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),fr=cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pr}),mr=cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),gr={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"},br=/[A-Z]/g,vr=/-[a-z]/g,Ar=/^data[-\w.:]+$/i;function Sr(e,t){const r=Yt(t);let n=t,i=zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Ar.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(vr,Er);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!vr.test(e)){let r=e.replace(br,yr);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=sr}return new i(n,t)}function yr(e){return"-"+e.toLowerCase()}function Er(e){return e.charAt(1).toUpperCase()}const Tr=Zt([ur,qr,Vr,fr,mr],"html"),Cr=Zt([ur,hr,Vr,fr,mr],"svg");function Ur(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Rr(e){return e.join(" ").trim()}var Nr={},kr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fr=/\n/g,wr=/^\s*/,Wr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xr=/^:\s*/,Or=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Kr=/^[;\s]*/,Ir=/^\s+|\s+$/g,Dr="";function Lr(e){return e?e.replace(Ir,Dr):Dr}var Pr=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,Br.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:a}=e;i?t(n,a,e):a&&(r=r||{},r[n]=a)}),r};const Br=Pr(function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(e){var t=e.match(Fr);t&&(r+=t.length);var i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length}function a(){var e={line:r,column:n};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:r,column:n},this.source=t.source}function s(i){var a=new Error(t.source+":"+r+":"+n+": "+i);if(a.reason=i,a.filename=t.source,a.line=r,a.column=n,a.source=e,!t.silent)throw a}function l(t){var r=t.exec(e);if(r){var n=r[0];return i(n),e=e.slice(n.length),r}}function c(){l(wr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;Dr!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,Dr===e.charAt(r-1))return s("End of comment missing");var o=e.slice(2,r-2);return n+=2,i(o),e=e.slice(r),n+=2,t({type:"comment",comment:o})}}function p(){var e=a(),t=l(Wr);if(t){if(d(),!l(xr))return s("property missing ':'");var r=l(Or),n=e({type:"declaration",property:Lr(t[0].replace(kr,Dr)),value:r?Lr(r[0].replace(kr,Dr)):Dr});return l(Kr),n}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()});var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.camelCase=void 0;var Mr=/^--[a-zA-Z0-9_-]+$/,jr=/-([a-z])/g,Gr=/^[^-]+$/,Hr=/^-(webkit|moz|ms|o|khtml)-/,Zr=/^-(ms)-/,Yr=function(e,t){return t.toUpperCase()},zr=function(e,t){return"".concat(t,"-")};Xr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Gr.test(e)||Mr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Zr,zr):e.replace(Hr,zr)).replace(jr,Yr))};var Qr=(p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Nr),Jr=Xr;function _r(e,t){var r={};return e&&"string"==typeof e?((0,Qr.default)(e,function(e,n){e&&n&&(r[(0,Jr.camelCase)(e,t)]=n)}),r):r}_r.default=_r;const $r=q(_r),en=rn("end"),tn=rn("start");function rn(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}}}function nn(e){return e&&"object"==typeof e?"position"in e||"type"in e?on(e.position):"start"in e||"end"in e?on(e):"line"in e||"column"in e?an(e):"":""}function an(e){return sn(e&&e.line)+":"+sn(e&&e.column)}function on(e){return an(e&&e.start)+"-"+an(e&&e.end)}function sn(e){return e&&"number"==typeof e?e:1}class ln extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",i={},a=!1;if(t&&(i="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?n=e:!i.cause&&e&&(a=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=nn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ln.prototype.file="",ln.prototype.name="",ln.prototype.reason="",ln.prototype.message="",ln.prototype.stack="",ln.prototype.column=void 0,ln.prototype.line=void 0,ln.prototype.ancestors=void 0,ln.prototype.cause=void 0,ln.prototype.fatal=void 0,ln.prototype.place=void 0,ln.prototype.ruleId=void 0,ln.prototype.source=void 0;const cn={}.hasOwnProperty,un=new Map,dn=/[A-Z]/g,pn=new Set(["table","tbody","thead","tfoot","tr"]),qn=new Set(["td","th"]),hn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vn(e,t,r){return"element"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(i=Cr,e.schema=i),e.ancestors.push(t);const a=vn(e,t.tagName,!1),o=function(e,t){const r={};let n,i;for(i in t.properties)if("children"!==i&&cn.call(t.properties,i)){const a=bn(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&qn.has(t.tagName)?n=o:r[i]=o}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t);let s=gn(e,t);return pn.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Gt(t.value):Gt(t));var t})),fn(e,o,a,t),mn(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,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)}An(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.name&&"html"===n.space&&(i=Cr,e.schema=i),e.ancestors.push(t);const a=null===t.name?e.Fragment:vn(e,t.name,!0),o=function(e,t){const r={};for(const n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){const t=n.data.estree.body[0];Kt(t.type);const i=t.expression;Kt(i.type);const a=i.properties[0];Kt(a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else An(e,t.position);else{const i=n.name;let a;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){const t=n.value.data.estree.body[0];Kt(t.type),a=e.evaluater.evaluateExpression(t.expression)}else An(e,t.position);else a=null===n.value||n.value;r[i]=a}return r}(e,t),s=gn(e,t);return fn(e,o,a,t),mn(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,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);An(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const n={};return mn(n,gn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function fn(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function mn(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function gn(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:un;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=Vn(e,a,o);void 0!==s&&r.push(s)}return r}function bn(e,t,r){const n=Sr(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?Lt(r):Rr(r)),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return $r(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const t=r,n=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hn+"#cannot-parse-style-attribute",n}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let r;for(r in e)cn.call(e,r)&&(t[Sn(r)]=e[r]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?gr[n.property]||n.property:n.attribute,r]}}function vn(e,t,r){let n;if(r)if(t.includes(".")){const e=t.split(".");let r,i=-1;for(;++i<e.length;){const t=Mt(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};r=r?{type:"MemberExpression",object:r,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}n=r}else n=Mt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){const t=n.value;return cn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);An(e)}function An(e,t){const r=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hn+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Sn(e){let t=e.replace(dn,yn);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function yn(e){return"-"+e.toLowerCase()}const En={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Tn={};function Cn(e,t){return Un(e,"boolean"!=typeof Tn.includeImageAlt||Tn.includeImageAlt,"boolean"!=typeof Tn.includeHtml||Tn.includeHtml)}function Un(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rn(e.children,t,r)}return Array.isArray(e)?Rn(e,t,r):""}function Rn(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Un(e[i],t,r);return n.join("")}const Nn=document.createElement("i");function kn(e){const t="&"+e+";";Nn.innerHTML=t;const r=Nn.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}function Fn(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function wn(e,t){return e.length>0?(Fn(e,e.length,0,t),e):t}const Wn={}.hasOwnProperty;function xn(e){const t={};let r=-1;for(;++r<e.length;)On(t,e[r]);return t}function On(e,t){let r;for(r in t){const n=(Wn.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;if(i)for(a in i){Wn.call(n,a)||(n[a]=[]);const e=i[a];Kn(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Kn(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Fn(e,0,0,n)}function In(e,t){const r=Number.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&~r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ln=Jn(/[A-Za-z]/),Pn=Jn(/[\dA-Za-z]/),Bn=Jn(/[#-'*+\--9=?A-Z^-~]/);function Xn(e){return null!==e&&(e<32||127===e)}const Mn=Jn(/\d/),jn=Jn(/[\dA-Fa-f]/),Gn=Jn(/[!-/:-@[-`{-~]/);function Hn(e){return null!==e&&e<-2}function Zn(e){return null!==e&&(e<0||32===e)}function Yn(e){return-2===e||-1===e||32===e}const zn=Jn(new RegExp("\\p{P}|\\p{S}","u")),Qn=Jn(/\s/);function Jn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function _n(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(37===a&&Pn(e.charCodeAt(r+1))&&Pn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(r+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function $n(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){return Yn(n)?(e.enter(r),o(n)):t(n)};function o(n){return Yn(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}const ei={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$n(e,t,"linePrefix");e.consume(r)},function(t){return e.enter("paragraph"),n(t)});let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Hn(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}},ti={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(n)}return c(n)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}m(o);let s=r;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Fn(t.events,a+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return h(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ri,u,d)(i)}function u(e){return n&&g(),m(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,h(e)}function p(r){return t.containerState={},e.attempt(ri,q,h)(r)}function q(e){return o++,r.push([t.currentConstruct,t.containerState]),p(e)}function h(r){return null===r?(n&&g(),m(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),V(r))}function V(r){return null===r?(f(e.exit("chunkFlow"),!0),m(0),void e.consume(r)):Hn(r)?(e.consume(r),f(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),V)}function f(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(m(o),e=r;e<t.events.length;)t.events[e][1].end={...s},e++;Fn(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function m(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function g(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},ri={tokenize:function(e,t,r){return $n(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ni(e){return null===e||Zn(e)||Qn(e)?1:zn(e)?2:void 0}function ii(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const ai={name:"attention",resolveAll:function(e,t){let r,n,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[u][1].start};oi(d,-s),oi(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[u][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=wn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=wn(l,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=wn(l,ii(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=wn(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=wn(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fn(e,r-1,u-r+3,l),u=r+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=ni(n);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=ni(s),u=!c||2===c&&i||r.includes(s),d=!i||2===i&&c||r.includes(n);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function oi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const si={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ln(t)?(e.consume(t),a):64===t?r(t):l(t)}function a(e){return 43===e||45===e||46===e||Pn(e)?(n=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||Pn(t))&&n++<32?(e.consume(t),o):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Xn(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):Bn(t)?(e.consume(t),l):r(t)}function c(e){return Pn(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||Pn(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}},li={partial:!0,tokenize:function(e,t,r){return function(t){return Yn(t)?$n(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Hn(e)?t(e):r(e)}}},ci={continuation:{tokenize:function(e,t,r){const n=this;return function(t){return Yn(t)?$n(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(n){return e.attempt(ci,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return Yn(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}},ui={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 Gn(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},di={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Pn,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=jn,c):(e.enter("characterReferenceValue"),i=7,a=Mn,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Pn||kn(n.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return a(s)&&o++<i?(e.consume(s),c):r(s)}}},pi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},qi={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const n=this,i={partial:!0,tokenize:function(e,t,r){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),Yn(t)?$n(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Yn(t)?$n(e,u,"whitespace")(t):u(t)):r(t)}function u(n){return null===n||Hn(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}};let a,o=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),Yn(t)?$n(e,c,"whitespace")(t):c(t))}function c(r){return null===r||Hn(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(pi,q,g)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||Hn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Yn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$n(e,d,"whitespace")(t)):96===t&&t===a?r(t):(e.consume(t),u)}function d(t){return null===t||Hn(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Hn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?r(t):(e.consume(t),p)}function q(t){return e.attempt(i,g,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),V}function V(t){return o>0&&Yn(t)?$n(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||Hn(t)?e.check(pi,q,g)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||Hn(t)?(e.exit("codeFlowValue"),f(t)):(e.consume(t),m)}function g(r){return e.exit("codeFenced"),t(r)}}},hi={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),$n(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):Hn(t)?e.attempt(Vi,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Hn(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},Vi={partial:!0,tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):$n(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Hn(e)?i(e):r(e)}}},fi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),n=0,c(t)):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Hn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",l(r))}}};class mi{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 e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.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 n=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&gi(this.left,r),i.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),gi(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),gi(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<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);gi(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);gi(this.left,t.reverse())}}}function gi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function bi(e){const t={};let r,n,i,a,o,s,l,c=-1;const u=new mi(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,vi(u,c)),c=t[c],l=!0);else if(r[1]._container){for(i=c,n=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;n&&(r[1].end={...u.get(n)[1].start},o=u.slice(n,c),o.unshift(r),u.splice(n,c-n+1,o))}}return Fn(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function vi(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,q=r,h=0,V=0;const f=[V];for(;q;){for(;e.get(++i)[1]!==q;);a.push(i),q._tokenizer||(u=n.sliceStream(q),q.next||u.push(null),d&&o.defineSkip(q.start),q._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),q._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=q,q=q.next}for(q=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(V=p+1,f.push(V),q._tokenizer=void 0,q.previous=void 0,q=q.next);for(o.events=[],q?(q._tokenizer=void 0,q.previous=void 0):f.pop(),p=f.length;p--;){const t=s.slice(f[p],f[p+1]),r=a.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const Ai={resolve:function(e){return bi(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):Hn(t)?e.check(Si,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},Si={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,i,"linePrefix")};function i(i){if(null===i||Hn(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}};function yi(e,t,r,n,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Xn(t)?r(t):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Hn(t)?r(t):(e.consume(t),92===t?q:p)}function q(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return u||null!==i&&41!==i&&!Zn(i)?u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||Xn(i)?r(i):(e.consume(i),92===i?V:h):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i))}function V(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ei(e,t,r,n,i,a){const o=this;let s,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):Hn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Hn(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Yn(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ti(e,t,r,n,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):r(t)};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return t===o?(e.exit(a),s(o)):null===t?r(t):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Hn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ci(e,t){let r;return function n(i){return Hn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Yn(i)?$n(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Ui={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),function(t){return Ei.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Dn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):r(t)}function o(t){return Zn(t)?Ci(e,s)(t):s(t)}function s(t){return yi(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Ri,c,c)(t)}function c(t){return Yn(t)?$n(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Hn(a)?(e.exit("definition"),n.parser.defined.push(i),t(a)):r(a)}}},Ri={partial:!0,tokenize:function(e,t,r){return function(t){return Zn(t)?Ci(e,n)(t):r(t)};function n(t){return Ti(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Yn(t)?$n(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Hn(e)?t(e):r(e)}}},Ni={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Hn(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},ki={name:"headingAtx",resolve:function(e,t){let r,n,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Fn(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e},tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&n++<6?(e.consume(t),i):null===t||Zn(t)?(e.exit("atxHeadingSequence"),a(t)):r(t)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),o(r)):null===r||Hn(r)?(e.exit("atxHeading"),t(r)):Yn(r)?$n(e,a,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||Zn(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Fi=["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"],wi=["pre","script","style","textarea"],Wi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return 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)),e},tokenize:function(e,t,r){const n=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,q):63===s?(e.consume(s),i=3,n.interrupt?t:x):Ln(s)?(e.consume(s),o=String.fromCharCode(s),h):r(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Ln(a)?(e.consume(a),i=4,n.interrupt?t:x):r(a)}function d(i){return 45===i?(e.consume(i),n.interrupt?t:x):r(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?n.interrupt?t:C:p):r(i)}function q(t){return Ln(t)?(e.consume(t),o=String.fromCharCode(t),h):r(t)}function h(s){if(null===s||47===s||62===s||Zn(s)){const l=47===s,c=o.toLowerCase();return l||a||!wi.includes(c)?Fi.includes(o.toLowerCase())?(i=6,l?(e.consume(s),V):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?f(s):m(s)):(i=1,n.interrupt?t(s):C(s))}return 45===s||Pn(s)?(e.consume(s),o+=String.fromCharCode(s),h):r(s)}function V(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function f(t){return Yn(t)?(e.consume(t),f):E(t)}function m(t){return 47===t?(e.consume(t),E):58===t||95===t||Ln(t)?(e.consume(t),g):Yn(t)?(e.consume(t),m):E(t)}function g(t){return 45===t||46===t||58===t||95===t||Pn(t)?(e.consume(t),g):b(t)}function b(t){return 61===t?(e.consume(t),v):Yn(t)?(e.consume(t),b):m(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,A):Yn(t)?(e.consume(t),v):S(t)}function A(t){return t===l?(e.consume(t),l=null,y):null===t||Hn(t)?r(t):(e.consume(t),A)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Zn(t)?b(t):(e.consume(t),S)}function y(e){return 47===e||62===e||Yn(e)?m(e):r(e)}function E(t){return 62===t?(e.consume(t),T):r(t)}function T(t){return null===t||Hn(t)?C(t):Yn(t)?(e.consume(t),T):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),k):60===t&&1===i?(e.consume(t),F):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),x):93===t&&5===i?(e.consume(t),W):!Hn(t)||6!==i&&7!==i?null===t||Hn(t)?(e.exit("htmlFlowData"),U(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(xi,K,U)(t))}function U(t){return e.check(Oi,R,K)(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Hn(t)?U(t):(e.enter("htmlFlowData"),C(t))}function k(t){return 45===t?(e.consume(t),x):C(t)}function F(t){return 47===t?(e.consume(t),o="",w):C(t)}function w(t){if(62===t){const r=o.toLowerCase();return wi.includes(r)?(e.consume(t),O):C(t)}return Ln(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),w):C(t)}function W(t){return 93===t?(e.consume(t),x):C(t)}function x(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),x):C(t)}function O(t){return null===t||Hn(t)?(e.exit("htmlFlowData"),K(t)):(e.consume(t),O)}function K(r){return e.exit("htmlFlow"),t(r)}}},xi={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(li,t,r)}}},Oi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},Ki={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),g):Ln(t)?(e.consume(t),y):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,q):Ln(t)?(e.consume(t),m):r(t)}function c(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):Hn(t)?(o=u,w(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?F(e):45===e?d(e):u(e)}function q(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?h:q):r(t)}function h(t){return null===t?r(t):93===t?(e.consume(t),V):Hn(t)?(o=h,w(t)):(e.consume(t),h)}function V(t){return 93===t?(e.consume(t),f):h(t)}function f(t){return 62===t?F(t):93===t?(e.consume(t),f):h(t)}function m(t){return null===t||62===t?F(t):Hn(t)?(o=m,w(t)):(e.consume(t),m)}function g(t){return null===t?r(t):63===t?(e.consume(t),b):Hn(t)?(o=g,w(t)):(e.consume(t),g)}function b(e){return 62===e?F(e):g(e)}function v(t){return Ln(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Pn(t)?(e.consume(t),A):S(t)}function S(t){return Hn(t)?(o=S,w(t)):Yn(t)?(e.consume(t),S):F(t)}function y(t){return 45===t||Pn(t)?(e.consume(t),y):47===t||62===t||Zn(t)?E(t):r(t)}function E(t){return 47===t?(e.consume(t),F):58===t||95===t||Ln(t)?(e.consume(t),T):Hn(t)?(o=E,w(t)):Yn(t)?(e.consume(t),E):F(t)}function T(t){return 45===t||46===t||58===t||95===t||Pn(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),U):Hn(t)?(o=C,w(t)):Yn(t)?(e.consume(t),C):E(t)}function U(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,R):Hn(t)?(o=U,w(t)):Yn(t)?(e.consume(t),U):(e.consume(t),N)}function R(t){return t===i?(e.consume(t),i=void 0,k):null===t?r(t):Hn(t)?(o=R,w(t)):(e.consume(t),R)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||Zn(t)?E(t):(e.consume(t),N)}function k(e){return 47===e||62===e||Zn(e)?E(e):r(e)}function F(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function w(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),W}function W(t){return Yn(t)?$n(e,x,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):x(t)}function x(t){return e.enter("htmlTextData"),o(t)}}},Ii={name:"labelEnd",resolveAll:function(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){const e="labelImage"===n.type?4:2;n.type="data",t+=e}}return e.length!==r.length&&Fn(e,0,e.length,r),e},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[n+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=wn(a,e.slice(n+1,n+s+3)),a=wn(a,[["enter",u,t]]),a=wn(a,ii(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=wn(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=wn(a,e.slice(i+1)),a=wn(a,[["exit",l,t]]),Fn(e,n,e.length,a),e},tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=n.parser.defined.includes(Dn(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):r(t)};function s(t){return 40===t?e.attempt(Di,c,a?c:u)(t):91===t?e.attempt(Li,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Pi,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,r(e)}}},Di={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return Zn(t)?Ci(e,i)(t):i(t)}function i(t){return 41===t?c(t):yi(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Zn(t)?Ci(e,s)(t):c(t)}function o(e){return r(e)}function s(t){return 34===t||39===t||40===t?Ti(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Zn(t)?Ci(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Li={tokenize:function(e,t,r){const n=this;return function(t){return Ei.call(n,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(Dn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function a(e){return r(e)}}},Pi={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},Bi={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Xi={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Mi={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$n(e,t,"linePrefix")}}},ji={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,a(e)}(t)};function a(a){return a===n?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||Hn(a))?(e.exit("thematicBreak"),t(a)):r(a)}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),Yn(t)?$n(e,a,"whitespace")(t):a(t))}}},Gi={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(li,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,$n(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){return n.containerState.furtherBlankLines||!Yn(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Zi,t,i)(r))});function i(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,$n(e,e.attempt(Gi,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Mn(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ji,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Mn(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(li,n.interrupt?r:c,e.attempt(Hi,d,u))}function c(e){return n.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Yn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},Hi={partial:!0,tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return!Yn(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Zi={partial:!0,tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}},Yi={name:"setextUnderline",resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,r){const n=this;let i;return function(t){let o,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){o="paragraph"===n.events[s][1].type;break}return n.parser.lazy[n.now().line]||!n.interrupt&&!o?r(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Yn(t)?$n(e,o,"lineSuffix")(t):o(t))}function o(n){return null===n||Hn(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}},zi={tokenize:function(e){const t=this,r=e.attempt(li,function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r;e.consume(n)},e.attempt(this.parser.constructs.flowInitial,n,$n(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ai,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}},Qi={resolveAll:ea()},Ji=$i("string"),_i=$i("text");function $i(e){return{resolveAll:ea("text"===e?ta:void 0),tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function ea(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ta(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const i={type:r===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...i.start},n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}const ra={42:Gi,43:Gi,45:Gi,48:Gi,49:Gi,50:Gi,51:Gi,52:Gi,53:Gi,54:Gi,55:Gi,56:Gi,57:Gi,62:ci},na={91:Ui},ia={[-2]:hi,[-1]:hi,32:hi},aa={35:ki,42:ji,45:[Yi,ji],60:Wi,61:Yi,95:ji,96:qi,126:qi},oa={38:di,92:ui},sa={[-5]:Mi,[-4]:Mi,[-3]:Mi,33:Bi,38:di,42:ai,60:[si,Ki],91:Xi,92:[Ni,ui],93:Ii,95:ai,96:fi},la={null:[ai,Qi]},ca=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:na,disable:{null:[]},document:ra,flow:aa,flowInitial:ia,insideSpan:la,string:oa,text:sa},Symbol.toStringTag,{value:"Module"}));function ua(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:V(function(e,t){f(e,t.from)}),check:V(h),consume:function(e){Hn(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,m()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:V(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,m()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=wn(o,e),function(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)q(t.charCodeAt(n._bufferIndex));else q(t)}}(),null!==o[o.length-1]?[]:(f(t,0),c.events=ii(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:r,column:i,offset:a}=n;return{_bufferIndex:e,_index:t,line:r,column:i,offset:a}}function q(e){u=u(e)}function h(e,t){t.restore()}function V(e,t){return function(r,i,a){let o,u,d,q;return Array.isArray(r)?V(r):"tokenize"in r?V([r]):(h=r,function(e){const t=null!==e&&h[e],r=null!==e&&h.null;return V([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)});var h;function V(e){return o=e,u=0,0===e.length?a:f(e[u])}function f(e){return function(r){return q=function(){const e=p(),t=c.previous,r=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=i,s=a,m()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,b)(r)}}function g(t){return e(d,q),i}function b(e){return q.restore(),++u<o.length?f(o[u]):a}}}function f(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Fn(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function m(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const da=/[\0\t\n\r]/g,pa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qa(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return In(r.slice(t?2:1),t?16:10)}return kn(r)||e}const ha={}.hasOwnProperty;function Va(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:i(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(V),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(h),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(h,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(f),hardBreakTrailing:i(f),htmlFlow:i(m,a),htmlFlowData:u,htmlText:i(m,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(g),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(b),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(V),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:function(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;r?(n=In(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):n=kn(t);this.stack[this.stack.length-1].value+=n},characterReference:function(e){this.stack.pop().position.end=fa(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t},labelText:function(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=function(e){return e.replace(pa,qa)}(t),r.identifier=Dn(t).toLowerCase()},lineEnding:function(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak)return r.children[r.children.length-1].position.end=fa(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};ma(t,(e||{}).mdastExtensions||[]);const r={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:r},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=n(e,u.pop(),d));for(d=-1;++d<e.length;){const r=t[e[d][0]];ha.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||ba).call(s,void 0,e[0])}for(i.position={start:fa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function n(e,t,r){let n,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=i,e.splice(s,0,["enter",i,t[2]]),s++,r++,a=void 0,o=!0}}}return e[t][1]._spread=c,r}function i(e,t){return function(r){o.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r||void 0]),e.position={start:fa(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): it’s not open");n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||ba).call(this,e,n[0])),r.position.end=fa(e.end)}function c(){return Cn(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r={type:"text",value:""},r.position={start:fa(e.start),end:void 0},t.push(r)),this.stack.push(r)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=fa(e.end)}function p(){this.data.atHardBreak=!0}function q(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function V(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function m(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!bi(e););return e}(function(e){const t={constructs:xn([ca,...(e||{}).extensions||[]]),content:r(ei),defined:[],document:r(ti),flow:r(zi),lazy:{},string:r(Ji),text:r(_i)};return t;function r(e){return function(r){return ua(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=r+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(da.lastIndex=u,l=da.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){r=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function fa(e){return{line:e.line,column:e.column,offset:e.offset}}function ma(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ma(e,n):ga(e,n)}}function ga(e,t){let r;for(r in t)if(ha.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function ba(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function va(e){const t=this;t.parser=function(r){return Va(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Aa(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=n:i.push({type:"text",value:n}),i}function Sa(e){const t=e.spread;return null==t?e.children.length>1:t}function ya(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Ea(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Ea(t.slice(i),i>0,!1)),a.join("")}function Ea(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}const Ta={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":"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},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-",n=String(t.identifier).toUpperCase(),i=_n(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};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(),n=e.definitionById.get(r);if(!n)return Aa(e,t);const i={src:_n(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const r={src:_n(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 n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Aa(e,t);const i={href:_n(n.url||"")};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const r={href:_n(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),i=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Sa(r[n])}return t}(r):Sa(t),a={},o=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=n[n.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const r={},n=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<n.length;){const e=n[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),i.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=tn(t.children[1]),o=en(t.children[t.children.length-1]);a&&o&&(n.position={start:a,end:o}),i.push(n)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},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 n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",a=r&&"table"===r.type?r.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const r=t.children[s],n={},o=a?a[s]:void 0;o&&(n.align=o);let c={type:"element",tagName:i,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const r={type:"text",value:ya(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:Ca,yaml:Ca,definition:Ca,footnoteDefinition:Ca};function Ca(){}const Ua="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return r(o,i);case 1:{const e=r([],i);for(const t of o)e.push(n(t));return e}case 2:{const e=r({},i);for(const[t,r]of o)e[n(t)]=n(r);return e}case 3:return r(new Date(o),i);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),i)}case 5:{const e=r(new Map,i);for(const[t,r]of o)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,i);for(const t of o)e.add(n(t));return e}case 7:{const{name:e,message:t}=o;return r(new Ua[e](t),i)}case 8:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return r(new DataView(e),o)}}return r(new Ua[a](o),i)};return n})(new Map,e)(0),Na="",{toString:ka}={},{keys:Fa}=Object,wa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=ka.call(e).slice(8,-1);switch(r){case"Array":return[1,Na];case"Object":return[2,Na];case"Date":return[3,Na];case"RegExp":return[4,Na];case"Map":return[5,Na];case"Set":return[6,Na];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Wa=([e,t])=>0===e&&("function"===t||"symbol"===t),xa=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const i=(e,t)=>{const i=n.push(e)-1;return r.set(t,i),i},a=n=>{if(r.has(n))return r.get(n);let[o,s]=wa(n);switch(o){case 0:{let t=n;switch(s){case"bigint":o=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],n)}return i([o,t],n)}case 1:{if(s){let e=n;return"DataView"===s?e=new Uint8Array(n.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(n)),i([s,[...e]],n)}const e=[],t=i([o,e],n);for(const r of n)e.push(a(r));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return a(n.toJSON());const r=[],l=i([o,r],n);for(const t of Fa(n))!e&&Wa(wa(n[t]))||r.push([a(t),a(n[t])]);return l}case 3:return i([o,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return i([o,{source:e,flags:t}],n)}case 5:{const t=[],r=i([o,t],n);for(const[i,o]of n)(e||!Wa(wa(i))&&!Wa(wa(o)))&&t.push([a(i),a(o)]);return r}case 6:{const t=[],r=i([o,t],n);for(const i of n)!e&&Wa(wa(i))||t.push(a(i));return r}}const{message:l}=n;return i([o,{name:s,message:l}],n)};return a})(!(t||r),!!t,new Map,n)(e),n},Oa="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(xa(e,t)):structuredClone(e):(e,t)=>Ra(xa(e,t));function Ka(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Ia(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Da=function(e){if(null==e)return Pa;if("function"==typeof e)return La(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Da(e[r]);return La(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return La(function(r){const n=r;let i;for(i in e)if(n[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,La(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function La(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function Pa(){return!0}const Ba=[],Xa=!1;function Ma(e,t,r,n){let i;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):i=t;const a=Da(i),o=n?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ba;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Ba:[e]}(r(i,l)),p[0]===Xa))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(n?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const r=t.children[u];if(c=e(r,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function ja(e,t,r,n){let i,a,o;"function"==typeof t&&"function"!=typeof r?(a=void 0,o=t,i=r):(a=t,o=r,i=n),Ma(e,a,function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return o(e,n,r)},i)}const Ga={}.hasOwnProperty,Ha={};function Za(e,t){e.position&&(t.position=function(e){const t=tn(e),r=en(e);if(t&&r)return{start:t,end:r}}(e))}function Ya(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&i&&Object.assign(r.properties,Oa(i)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function za(e,t){const r=t.data||{},n=!("value"in t)||Ga.call(r,"hProperties")||Ga.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function Qa(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function Ja(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function _a(e,t){const r=function(e,t){const r=t||Ha,n=new Map,i=new Map,a=new Map,o={...Ta,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const i=s.one(r[n],e);if(i){if(n&&"break"===r[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Ja(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Ja(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Ya,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const r=e.type,n=s.handlers[r];if(Ga.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=Oa(r);return n.children=s.all(e),n}return Oa(e)}return(s.options.unknownHandler||za)(s,e,t)},options:r,patch:Za,wrap:Qa};return ja(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:i,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),s}(e,t),n=r.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ka,n=e.options.footnoteBackLabel||Ia,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=_n(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const q=a[a.length-1];if(q&&"element"===q.type&&"p"===q.tagName){const e=q.children[q.children.length-1];e&&"text"===e.type?e.value+=" ":q.children.push({type:"text",value:" "}),q.children.push(...d)}else a.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Oa(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function $a(e,t){return e&&"run"in e?async function(r,n){const i=_a(r,{file:n,...t});await e.run(i,n)}:function(r,n){return _a(r,{file:n,...e||t})}}function eo(e){if(e)throw e}var to=Object.prototype.hasOwnProperty,ro=Object.prototype.toString,no=Object.defineProperty,io=Object.getOwnPropertyDescriptor,ao=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ro.call(e)},oo=function(e){if(!e||"[object Object]"!==ro.call(e))return!1;var t,r=to.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&to.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||to.call(e,t)},so=function(e,t){no&&"__proto__"===t.name?no(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},lo=function(e,t){if("__proto__"===t){if(!to.call(e,t))return;if(io)return io(e,t).value}return e[t]},co=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(r in t)n=lo(s,r),s!==(i=lo(t,r))&&(u&&i&&(oo(i)||(a=ao(i)))?(a?(a=!1,o=n&&ao(n)?n:[]):o=n&&oo(n)?n:{},so(s,{name:r,newValue:e(u,o,i)})):void 0!==i&&so(s,{name:r,newValue:i}));return s};const uo=q(co);function po(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)}const qo=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');go(e);let r,n=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else i<0&&(r=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else o<0&&(r=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)},ho=function(e){if(go(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},Vo=function(e){go(e);let t,r=e.length,n=-1,i=0,a=-1,o=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?a<0?a=r:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=r+1;break}}return a<0||n<0||0===o||1===o&&a===n-1&&a===i+1?"":e.slice(a,n)},fo=function(...e){let t,r=-1;for(;++r<e.length;)go(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){go(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else{if(47===r)break;r=47}if(47===r){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",a=0):(i=i.slice(0,n),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);return 0!==r.length||t||(r="."),r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/"),t?"/"+r:r}(t)},mo="/";function go(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bo=function(){return"/"};function vo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Ao=["history","path","basename","stem","extname","dirname"];class So{constructor(e){let t;t=e?vo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":bo(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<Ao.length;){const e=Ao[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)Ao.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?qo(this.path):void 0}set basename(e){Eo(e,"basename"),yo(e,"basename"),this.path=fo(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ho(this.path):void 0}set dirname(e){To(this.basename,"dirname"),this.path=fo(e||"",this.basename)}get extname(){return"string"==typeof this.path?Vo(this.path):void 0}set extname(e){if(yo(e,"extname"),To(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fo(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){vo(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!vo(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(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Eo(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?qo(this.path,this.extname):void 0}set stem(e){Eo(e,"stem"),yo(e,"stem"),this.path=fo(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new ln(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function yo(e,t){if(e&&e.includes(mo))throw new Error("`"+t+"` cannot be a path: did not expect `"+mo+"`")}function Eo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function To(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Co=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};return Object.setPrototypeOf(n,t),n},Uo={}.hasOwnProperty;class Ro extends Co{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let l=-1;if(a)n(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let r;return function(...t){const o=e.length>t.length;let s;o&&t.push(n);try{s=e.apply(this,t)}catch(a){if(o&&r)throw a;return n(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,n):s instanceof Error?n(s):i(s))};function n(e,...n){r||(r=!0,t(e,...n))}function i(e){n(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}()}copy(){const e=new Ro;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(uo(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(wo("data",this.frozen),this.namespace[e]=t,this):Uo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(wo("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Oo(e),r=this.parser||this.Parser;return ko("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),ko("process",this.parser||this.Parser),Fo("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,i){const a=Oo(e),o=r.parse(a);function s(e,r){e||!r?i(e):n?n(r):t(void 0,r)}r.run(o,a,function(e,t,n){if(e||!t||!n)return s(e);const i=t,a=r.stringify(i,n);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?n.value=a:n.result=a,s(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),ko("processSync",this.parser||this.Parser),Fo("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,eo(e),t=n}),xo("processSync","process",r),t}run(e,t,r){Wo(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(i,a){const o=Oo(t);n.run(e,o,function(t,n,o){const s=n||e;t?a(t):i?i(s):r(void 0,s,o)})}}runSync(e,t){let r,n=!1;return this.run(e,t,function(e,t){eo(e),r=t,n=!0}),xo("runSync","run",n),r}stringify(e,t){this.freeze();const r=Oo(t),n=this.compiler||this.Compiler;return Fo("stringify",n),Wo(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(wo("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(n.settings=uo(!0,n.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let n=-1,i=-1;for(;++n<r.length;)if(r[n][0]===e){i=n;break}if(-1===i)r.push([e,...t]);else if(t.length>0){let[n,...a]=t;const o=r[i][1];po(o)&&po(n)&&(n=uo(!0,o,n)),r[i]=[e,n,...a]}}}}const No=(new Ro).freeze();function ko(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Fo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function wo(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 Wo(e){if(!po(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function xo(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Oo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new So(e)}const Ko=[],Io={allowDangerousHtml:!0},Do=/^(https?|ircs?|mailto|xmpp)$/i,Lo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Po(e){const t=function(e){const t=e.rehypePlugins||Ko,r=e.remarkPlugins||Ko,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Io}:Io;return No().use(va).use(r).use($a,n).use(t)}(e),r=function(e){const t=e.children||"",r=new So;return"string"==typeof t&&(r.value=t),r}(e);return function(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Bo;for(const c of Lo)Object.hasOwn(t,c.from)&&It((c.from,c.to&&c.to,c.id));return ja(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in En)if(Object.hasOwn(En,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],n=En[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=l(String(r||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof t&&(o=!n(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(e,t){return function(r,n,i,a){const o=Array.isArray(i.children),s=tn(r);return t(n,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.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");i=t.jsx,a=t.jsxs,n=function(e,t,r,n){const o=Array.isArray(r.children)?a:i;return n?o(t,r,n):o(t,r)}}var i,a;const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,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?Cr:Tr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Vn(o,e,void 0);return s&&"string"!=typeof s?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(r),r),e)}function Bo(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==r&&t>r||-1!==n&&t>n||Do.test(e.slice(0,t))?e:""}const Xo=/[#.]/g;function Mo(e,t,r){const n=r?function(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,i,...a){let o;if(null==r){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const r=e||"",n={};let i,a,o=0;for(;o<r.length;){Xo.lastIndex=o;const e=Xo.exec(r),t=r.slice(o,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:n,children:[]}}(r,t);const s=o.tagName.toLowerCase(),l=n?n.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,r=Object.keys(e);for(const n of r){const e=t[n];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,r]of Object.entries(i))jo(e,o.properties,t,r)}for(const e of a)Go(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function jo(e,t,r,n){const i=Sr(e,r);let a;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Ur(n):i.commaSeparated?Dt(n):i.commaOrSpaceSeparated?Ur(Dt(n).join(" ")):Ho(i,i.property,n):Array.isArray(n)?[...n]:"style"===i.property?function(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){const e=[];for(const t of a)e.push(Ho(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Go(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Go(e,r);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Go(e,t.children):e.push(t)}}function Ho(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Yt(r)===Yt(t)))return!0}return r}const Zo=Mo(Tr,"div"),Yo=Mo(Cr,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function zo(e,t){const r=e.indexOf("\r",t),n=e.indexOf("\n",t);return-1===n?r:-1===r||r+1===n?n:r<n?r:n}const Qo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Jo={}.hasOwnProperty,_o=Object.prototype;function $o(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},ts(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:es(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){const e=r[r.length-1],n=zo(t,e),i=-1===n?t.length+1:n+1;if(e===i)break;r.push(i)}const n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){const e=zo(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}}(t),i=n.toPoint(0),a=n.toPoint(t.length);r.position={start:i,end:a}}return r}case"#documentType":return r={type:"doctype"},ts(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},ts(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===Qo.svg?Cr:Tr;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;Jo.call(_o,r)||(i[r]=e.value)}const a=("svg"===e.schema.space?Yo:Zo)(t.tagName,i,es(e,t.childNodes));if(ts(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&rs(n.startTag),o=n&&n.endTag&&rs(n.endTag),s=$o(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function es(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=$o(e,t[r]);n.push(i)}return n}function ts(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=function(e,t,r){const n=rs(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)Jo.call(r.attrs,i)&&(n[Sr(e.schema,i).property]=rs(r.attrs[i]));r.startTag;const a=rs(r.startTag),o=r.endTag?rs(r.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=n,t.data={position:s}}}return n}(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function rs(e){const t=ns({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=ns({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function ns(e){return e.line&&e.column?e:void 0}const is={}.hasOwnProperty;function as(e,t){const r=t||{};function n(t,...r){let i=n.invalid;const a=n.handlers;if(t&&is.call(t,e)){const r=String(t[e]);i=is.call(a,r)?a[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const os={},ss={}.hasOwnProperty,ls=as("type",{handlers:{root:function(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=us(e.children,r,t),ds(e,r),r},element:function(e,t){const r=t;let n=r;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(n=Cr);const i=[];let a;if(e.properties)for(a in e.properties)if("children"!==a&&ss.call(e.properties,a)){const t=cs(n,a,e.properties[a]);t&&i.push(t)}const o=n.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Qo[o],childNodes:[],parentNode:null};return s.childNodes=us(e.children,s,n),ds(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=us(e.children,r,t),ds(e,r),r}(e.content,n)),s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ds(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ds(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ds(e,t),t}}});function cs(e,t,r){const n=Sr(e,t);if(!1===r||null==r||"number"==typeof r&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?Lt(r):Rr(r));const i={name:n.attribute,value:!0===r?"":String(r)};if(n.space&&"html"!==n.space&&"svg"!==n.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=n.attribute.slice(0,e)),i.namespace=Qo[n.space]}return i}function us(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=ls(e[n],r);a.parentNode=t,i.push(a)}return i}function ds(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const ps=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],qs=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),hs="�";var Vs,fs;(fs=Vs||(Vs={}))[fs.EOF=-1]="EOF",fs[fs.NULL=0]="NULL",fs[fs.TABULATION=9]="TABULATION",fs[fs.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",fs[fs.LINE_FEED=10]="LINE_FEED",fs[fs.FORM_FEED=12]="FORM_FEED",fs[fs.SPACE=32]="SPACE",fs[fs.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",fs[fs.QUOTATION_MARK=34]="QUOTATION_MARK",fs[fs.AMPERSAND=38]="AMPERSAND",fs[fs.APOSTROPHE=39]="APOSTROPHE",fs[fs.HYPHEN_MINUS=45]="HYPHEN_MINUS",fs[fs.SOLIDUS=47]="SOLIDUS",fs[fs.DIGIT_0=48]="DIGIT_0",fs[fs.DIGIT_9=57]="DIGIT_9",fs[fs.SEMICOLON=59]="SEMICOLON",fs[fs.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",fs[fs.EQUALS_SIGN=61]="EQUALS_SIGN",fs[fs.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",fs[fs.QUESTION_MARK=63]="QUESTION_MARK",fs[fs.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",fs[fs.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",fs[fs.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",fs[fs.GRAVE_ACCENT=96]="GRAVE_ACCENT",fs[fs.LATIN_SMALL_A=97]="LATIN_SMALL_A",fs[fs.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const ms="[CDATA[",gs="doctype",bs="script";function vs(e){return e>=55296&&e<=57343}function As(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Ss(e){return e>=64976&&e<=65007||qs.has(e)}var ys,Es,Ts,Cs;(Es=ys||(ys={})).controlCharacterInInputStream="control-character-in-input-stream",Es.noncharacterInInputStream="noncharacter-in-input-stream",Es.surrogateInInputStream="surrogate-in-input-stream",Es.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Es.endTagWithAttributes="end-tag-with-attributes",Es.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Es.unexpectedSolidusInTag="unexpected-solidus-in-tag",Es.unexpectedNullCharacter="unexpected-null-character",Es.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Es.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Es.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Es.missingEndTagName="missing-end-tag-name",Es.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Es.unknownNamedCharacterReference="unknown-named-character-reference",Es.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Es.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Es.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Es.eofBeforeTagName="eof-before-tag-name",Es.eofInTag="eof-in-tag",Es.missingAttributeValue="missing-attribute-value",Es.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Es.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Es.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Es.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Es.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Es.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Es.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Es.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Es.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Es.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Es.cdataInHtmlContent="cdata-in-html-content",Es.incorrectlyOpenedComment="incorrectly-opened-comment",Es.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Es.eofInDoctype="eof-in-doctype",Es.nestedComment="nested-comment",Es.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Es.eofInComment="eof-in-comment",Es.incorrectlyClosedComment="incorrectly-closed-comment",Es.eofInCdata="eof-in-cdata",Es.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Es.nullCharacterReference="null-character-reference",Es.surrogateCharacterReference="surrogate-character-reference",Es.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Es.controlCharacterReference="control-character-reference",Es.noncharacterCharacterReference="noncharacter-character-reference",Es.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Es.missingDoctypeName="missing-doctype-name",Es.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Es.duplicateAttribute="duplicate-attribute",Es.nonConformingDoctype="non-conforming-doctype",Es.missingDoctype="missing-doctype",Es.misplacedDoctype="misplaced-doctype",Es.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Es.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Es.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Es.openElementsLeftAfterEof="open-elements-left-after-eof",Es.abandonedHeadElementChild="abandoned-head-element-child",Es.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Es.nestedNoscriptInHead="nested-noscript-in-head",Es.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Us{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,t){const{line:r,col:n,offset:i}=this,a=n+t,o=i+t;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_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,Vs.EOF;return this._err(ys.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<e.length;r++)if((32|this.html.charCodeAt(this.pos+r))!==e.charCodeAt(r))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Vs.EOF;const r=this.html.charCodeAt(t);return r===Vs.CARRIAGE_RETURN?Vs.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,Vs.EOF;let e=this.html.charCodeAt(this.pos);return e===Vs.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Vs.LINE_FEED):e===Vs.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vs(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Vs.LINE_FEED||e===Vs.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){As(e)?this._err(ys.controlCharacterInInputStream):Ss(e)&&this._err(ys.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Rs(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}(Cs=Ts||(Ts={}))[Cs.CHARACTER=0]="CHARACTER",Cs[Cs.NULL_CHARACTER=1]="NULL_CHARACTER",Cs[Cs.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",Cs[Cs.START_TAG=3]="START_TAG",Cs[Cs.END_TAG=4]="END_TAG",Cs[Cs.COMMENT=5]="COMMENT",Cs[Cs.DOCTYPE=6]="DOCTYPE",Cs[Cs.EOF=7]="EOF",Cs[Cs.HIBERNATION=8]="HIBERNATION";const Ns=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ks=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]]);var Fs,ws,Ws,xs,Os,Ks,Is,Ds,Ls,Ps,Bs,Xs,Ms,js,Gs,Hs,Zs,Ys;function zs(e){return e>=Fs.ZERO&&e<=Fs.NINE}function Qs(e){return e>=Fs.UPPER_A&&e<=Fs.UPPER_F||e>=Fs.LOWER_A&&e<=Fs.LOWER_F}function Js(e){return e===Fs.EQUALS||function(e){return e>=Fs.UPPER_A&&e<=Fs.UPPER_Z||e>=Fs.LOWER_A&&e<=Fs.LOWER_Z||zs(e)}(e)}(ws=Fs||(Fs={}))[ws.NUM=35]="NUM",ws[ws.SEMI=59]="SEMI",ws[ws.EQUALS=61]="EQUALS",ws[ws.ZERO=48]="ZERO",ws[ws.NINE=57]="NINE",ws[ws.LOWER_A=97]="LOWER_A",ws[ws.LOWER_F=102]="LOWER_F",ws[ws.LOWER_X=120]="LOWER_X",ws[ws.LOWER_Z=122]="LOWER_Z",ws[ws.UPPER_A=65]="UPPER_A",ws[ws.UPPER_F=70]="UPPER_F",ws[ws.UPPER_Z=90]="UPPER_Z",(xs=Ws||(Ws={}))[xs.VALUE_LENGTH=49152]="VALUE_LENGTH",xs[xs.BRANCH_LENGTH=16256]="BRANCH_LENGTH",xs[xs.JUMP_TABLE=127]="JUMP_TABLE",(Ks=Os||(Os={}))[Ks.EntityStart=0]="EntityStart",Ks[Ks.NumericStart=1]="NumericStart",Ks[Ks.NumericDecimal=2]="NumericDecimal",Ks[Ks.NumericHex=3]="NumericHex",Ks[Ks.NamedEntity=4]="NamedEntity",(Ds=Is||(Is={}))[Ds.Legacy=0]="Legacy",Ds[Ds.Strict=1]="Strict",Ds[Ds.Attribute=2]="Attribute";class _s{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Os.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Is.Strict}startEntity(e){this.decodeMode=e,this.state=Os.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Os.EntityStart:return e.charCodeAt(t)===Fs.NUM?(this.state=Os.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Os.NamedEntity,this.stateNamedEntity(e,t));case Os.NumericStart:return this.stateNumericStart(e,t);case Os.NumericDecimal:return this.stateNumericDecimal(e,t);case Os.NumericHex:return this.stateNumericHex(e,t);case Os.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Fs.LOWER_X?(this.state=Os.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Os.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const i=r-t;this.result=this.result*Math.pow(n,i)+Number.parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!zs(n)&&!Qs(n))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!zs(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Fs.SEMI)this.consumed+=1;else if(this.decodeMode===Is.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=ks.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Fs.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&Ws.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=$s(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===Is.Attribute&&(0===i||Js(a))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Ws.VALUE_LENGTH)>>14,0!==i){if(a===Fs.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Is.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&Ws.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~Ws.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case Os.NamedEntity:return 0===this.result||this.decodeMode===Is.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Os.NumericDecimal:return this.emitNumericEntity(0,2);case Os.NumericHex:return this.emitNumericEntity(0,3);case Os.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Os.EntityStart:return 0}}}function $s(e,t,r,n){const i=(t&Ws.BRANCH_LENGTH)>>7,a=t&Ws.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){const t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,s=o+i-1;for(;o<=s;){const t=o+s>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return-1}(Ps=Ls||(Ls={})).HTML="http://www.w3.org/1999/xhtml",Ps.MATHML="http://www.w3.org/1998/Math/MathML",Ps.SVG="http://www.w3.org/2000/svg",Ps.XLINK="http://www.w3.org/1999/xlink",Ps.XML="http://www.w3.org/XML/1998/namespace",Ps.XMLNS="http://www.w3.org/2000/xmlns/",(Xs=Bs||(Bs={})).TYPE="type",Xs.ACTION="action",Xs.ENCODING="encoding",Xs.PROMPT="prompt",Xs.NAME="name",Xs.COLOR="color",Xs.FACE="face",Xs.SIZE="size",(js=Ms||(Ms={})).NO_QUIRKS="no-quirks",js.QUIRKS="quirks",js.LIMITED_QUIRKS="limited-quirks",(Hs=Gs||(Gs={})).A="a",Hs.ADDRESS="address",Hs.ANNOTATION_XML="annotation-xml",Hs.APPLET="applet",Hs.AREA="area",Hs.ARTICLE="article",Hs.ASIDE="aside",Hs.B="b",Hs.BASE="base",Hs.BASEFONT="basefont",Hs.BGSOUND="bgsound",Hs.BIG="big",Hs.BLOCKQUOTE="blockquote",Hs.BODY="body",Hs.BR="br",Hs.BUTTON="button",Hs.CAPTION="caption",Hs.CENTER="center",Hs.CODE="code",Hs.COL="col",Hs.COLGROUP="colgroup",Hs.DD="dd",Hs.DESC="desc",Hs.DETAILS="details",Hs.DIALOG="dialog",Hs.DIR="dir",Hs.DIV="div",Hs.DL="dl",Hs.DT="dt",Hs.EM="em",Hs.EMBED="embed",Hs.FIELDSET="fieldset",Hs.FIGCAPTION="figcaption",Hs.FIGURE="figure",Hs.FONT="font",Hs.FOOTER="footer",Hs.FOREIGN_OBJECT="foreignObject",Hs.FORM="form",Hs.FRAME="frame",Hs.FRAMESET="frameset",Hs.H1="h1",Hs.H2="h2",Hs.H3="h3",Hs.H4="h4",Hs.H5="h5",Hs.H6="h6",Hs.HEAD="head",Hs.HEADER="header",Hs.HGROUP="hgroup",Hs.HR="hr",Hs.HTML="html",Hs.I="i",Hs.IMG="img",Hs.IMAGE="image",Hs.INPUT="input",Hs.IFRAME="iframe",Hs.KEYGEN="keygen",Hs.LABEL="label",Hs.LI="li",Hs.LINK="link",Hs.LISTING="listing",Hs.MAIN="main",Hs.MALIGNMARK="malignmark",Hs.MARQUEE="marquee",Hs.MATH="math",Hs.MENU="menu",Hs.META="meta",Hs.MGLYPH="mglyph",Hs.MI="mi",Hs.MO="mo",Hs.MN="mn",Hs.MS="ms",Hs.MTEXT="mtext",Hs.NAV="nav",Hs.NOBR="nobr",Hs.NOFRAMES="noframes",Hs.NOEMBED="noembed",Hs.NOSCRIPT="noscript",Hs.OBJECT="object",Hs.OL="ol",Hs.OPTGROUP="optgroup",Hs.OPTION="option",Hs.P="p",Hs.PARAM="param",Hs.PLAINTEXT="plaintext",Hs.PRE="pre",Hs.RB="rb",Hs.RP="rp",Hs.RT="rt",Hs.RTC="rtc",Hs.RUBY="ruby",Hs.S="s",Hs.SCRIPT="script",Hs.SEARCH="search",Hs.SECTION="section",Hs.SELECT="select",Hs.SOURCE="source",Hs.SMALL="small",Hs.SPAN="span",Hs.STRIKE="strike",Hs.STRONG="strong",Hs.STYLE="style",Hs.SUB="sub",Hs.SUMMARY="summary",Hs.SUP="sup",Hs.TABLE="table",Hs.TBODY="tbody",Hs.TEMPLATE="template",Hs.TEXTAREA="textarea",Hs.TFOOT="tfoot",Hs.TD="td",Hs.TH="th",Hs.THEAD="thead",Hs.TITLE="title",Hs.TR="tr",Hs.TRACK="track",Hs.TT="tt",Hs.U="u",Hs.UL="ul",Hs.SVG="svg",Hs.VAR="var",Hs.WBR="wbr",Hs.XMP="xmp",(Ys=Zs||(Zs={}))[Ys.UNKNOWN=0]="UNKNOWN",Ys[Ys.A=1]="A",Ys[Ys.ADDRESS=2]="ADDRESS",Ys[Ys.ANNOTATION_XML=3]="ANNOTATION_XML",Ys[Ys.APPLET=4]="APPLET",Ys[Ys.AREA=5]="AREA",Ys[Ys.ARTICLE=6]="ARTICLE",Ys[Ys.ASIDE=7]="ASIDE",Ys[Ys.B=8]="B",Ys[Ys.BASE=9]="BASE",Ys[Ys.BASEFONT=10]="BASEFONT",Ys[Ys.BGSOUND=11]="BGSOUND",Ys[Ys.BIG=12]="BIG",Ys[Ys.BLOCKQUOTE=13]="BLOCKQUOTE",Ys[Ys.BODY=14]="BODY",Ys[Ys.BR=15]="BR",Ys[Ys.BUTTON=16]="BUTTON",Ys[Ys.CAPTION=17]="CAPTION",Ys[Ys.CENTER=18]="CENTER",Ys[Ys.CODE=19]="CODE",Ys[Ys.COL=20]="COL",Ys[Ys.COLGROUP=21]="COLGROUP",Ys[Ys.DD=22]="DD",Ys[Ys.DESC=23]="DESC",Ys[Ys.DETAILS=24]="DETAILS",Ys[Ys.DIALOG=25]="DIALOG",Ys[Ys.DIR=26]="DIR",Ys[Ys.DIV=27]="DIV",Ys[Ys.DL=28]="DL",Ys[Ys.DT=29]="DT",Ys[Ys.EM=30]="EM",Ys[Ys.EMBED=31]="EMBED",Ys[Ys.FIELDSET=32]="FIELDSET",Ys[Ys.FIGCAPTION=33]="FIGCAPTION",Ys[Ys.FIGURE=34]="FIGURE",Ys[Ys.FONT=35]="FONT",Ys[Ys.FOOTER=36]="FOOTER",Ys[Ys.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ys[Ys.FORM=38]="FORM",Ys[Ys.FRAME=39]="FRAME",Ys[Ys.FRAMESET=40]="FRAMESET",Ys[Ys.H1=41]="H1",Ys[Ys.H2=42]="H2",Ys[Ys.H3=43]="H3",Ys[Ys.H4=44]="H4",Ys[Ys.H5=45]="H5",Ys[Ys.H6=46]="H6",Ys[Ys.HEAD=47]="HEAD",Ys[Ys.HEADER=48]="HEADER",Ys[Ys.HGROUP=49]="HGROUP",Ys[Ys.HR=50]="HR",Ys[Ys.HTML=51]="HTML",Ys[Ys.I=52]="I",Ys[Ys.IMG=53]="IMG",Ys[Ys.IMAGE=54]="IMAGE",Ys[Ys.INPUT=55]="INPUT",Ys[Ys.IFRAME=56]="IFRAME",Ys[Ys.KEYGEN=57]="KEYGEN",Ys[Ys.LABEL=58]="LABEL",Ys[Ys.LI=59]="LI",Ys[Ys.LINK=60]="LINK",Ys[Ys.LISTING=61]="LISTING",Ys[Ys.MAIN=62]="MAIN",Ys[Ys.MALIGNMARK=63]="MALIGNMARK",Ys[Ys.MARQUEE=64]="MARQUEE",Ys[Ys.MATH=65]="MATH",Ys[Ys.MENU=66]="MENU",Ys[Ys.META=67]="META",Ys[Ys.MGLYPH=68]="MGLYPH",Ys[Ys.MI=69]="MI",Ys[Ys.MO=70]="MO",Ys[Ys.MN=71]="MN",Ys[Ys.MS=72]="MS",Ys[Ys.MTEXT=73]="MTEXT",Ys[Ys.NAV=74]="NAV",Ys[Ys.NOBR=75]="NOBR",Ys[Ys.NOFRAMES=76]="NOFRAMES",Ys[Ys.NOEMBED=77]="NOEMBED",Ys[Ys.NOSCRIPT=78]="NOSCRIPT",Ys[Ys.OBJECT=79]="OBJECT",Ys[Ys.OL=80]="OL",Ys[Ys.OPTGROUP=81]="OPTGROUP",Ys[Ys.OPTION=82]="OPTION",Ys[Ys.P=83]="P",Ys[Ys.PARAM=84]="PARAM",Ys[Ys.PLAINTEXT=85]="PLAINTEXT",Ys[Ys.PRE=86]="PRE",Ys[Ys.RB=87]="RB",Ys[Ys.RP=88]="RP",Ys[Ys.RT=89]="RT",Ys[Ys.RTC=90]="RTC",Ys[Ys.RUBY=91]="RUBY",Ys[Ys.S=92]="S",Ys[Ys.SCRIPT=93]="SCRIPT",Ys[Ys.SEARCH=94]="SEARCH",Ys[Ys.SECTION=95]="SECTION",Ys[Ys.SELECT=96]="SELECT",Ys[Ys.SOURCE=97]="SOURCE",Ys[Ys.SMALL=98]="SMALL",Ys[Ys.SPAN=99]="SPAN",Ys[Ys.STRIKE=100]="STRIKE",Ys[Ys.STRONG=101]="STRONG",Ys[Ys.STYLE=102]="STYLE",Ys[Ys.SUB=103]="SUB",Ys[Ys.SUMMARY=104]="SUMMARY",Ys[Ys.SUP=105]="SUP",Ys[Ys.TABLE=106]="TABLE",Ys[Ys.TBODY=107]="TBODY",Ys[Ys.TEMPLATE=108]="TEMPLATE",Ys[Ys.TEXTAREA=109]="TEXTAREA",Ys[Ys.TFOOT=110]="TFOOT",Ys[Ys.TD=111]="TD",Ys[Ys.TH=112]="TH",Ys[Ys.THEAD=113]="THEAD",Ys[Ys.TITLE=114]="TITLE",Ys[Ys.TR=115]="TR",Ys[Ys.TRACK=116]="TRACK",Ys[Ys.TT=117]="TT",Ys[Ys.U=118]="U",Ys[Ys.UL=119]="UL",Ys[Ys.SVG=120]="SVG",Ys[Ys.VAR=121]="VAR",Ys[Ys.WBR=122]="WBR",Ys[Ys.XMP=123]="XMP";const el=new Map([[Gs.A,Zs.A],[Gs.ADDRESS,Zs.ADDRESS],[Gs.ANNOTATION_XML,Zs.ANNOTATION_XML],[Gs.APPLET,Zs.APPLET],[Gs.AREA,Zs.AREA],[Gs.ARTICLE,Zs.ARTICLE],[Gs.ASIDE,Zs.ASIDE],[Gs.B,Zs.B],[Gs.BASE,Zs.BASE],[Gs.BASEFONT,Zs.BASEFONT],[Gs.BGSOUND,Zs.BGSOUND],[Gs.BIG,Zs.BIG],[Gs.BLOCKQUOTE,Zs.BLOCKQUOTE],[Gs.BODY,Zs.BODY],[Gs.BR,Zs.BR],[Gs.BUTTON,Zs.BUTTON],[Gs.CAPTION,Zs.CAPTION],[Gs.CENTER,Zs.CENTER],[Gs.CODE,Zs.CODE],[Gs.COL,Zs.COL],[Gs.COLGROUP,Zs.COLGROUP],[Gs.DD,Zs.DD],[Gs.DESC,Zs.DESC],[Gs.DETAILS,Zs.DETAILS],[Gs.DIALOG,Zs.DIALOG],[Gs.DIR,Zs.DIR],[Gs.DIV,Zs.DIV],[Gs.DL,Zs.DL],[Gs.DT,Zs.DT],[Gs.EM,Zs.EM],[Gs.EMBED,Zs.EMBED],[Gs.FIELDSET,Zs.FIELDSET],[Gs.FIGCAPTION,Zs.FIGCAPTION],[Gs.FIGURE,Zs.FIGURE],[Gs.FONT,Zs.FONT],[Gs.FOOTER,Zs.FOOTER],[Gs.FOREIGN_OBJECT,Zs.FOREIGN_OBJECT],[Gs.FORM,Zs.FORM],[Gs.FRAME,Zs.FRAME],[Gs.FRAMESET,Zs.FRAMESET],[Gs.H1,Zs.H1],[Gs.H2,Zs.H2],[Gs.H3,Zs.H3],[Gs.H4,Zs.H4],[Gs.H5,Zs.H5],[Gs.H6,Zs.H6],[Gs.HEAD,Zs.HEAD],[Gs.HEADER,Zs.HEADER],[Gs.HGROUP,Zs.HGROUP],[Gs.HR,Zs.HR],[Gs.HTML,Zs.HTML],[Gs.I,Zs.I],[Gs.IMG,Zs.IMG],[Gs.IMAGE,Zs.IMAGE],[Gs.INPUT,Zs.INPUT],[Gs.IFRAME,Zs.IFRAME],[Gs.KEYGEN,Zs.KEYGEN],[Gs.LABEL,Zs.LABEL],[Gs.LI,Zs.LI],[Gs.LINK,Zs.LINK],[Gs.LISTING,Zs.LISTING],[Gs.MAIN,Zs.MAIN],[Gs.MALIGNMARK,Zs.MALIGNMARK],[Gs.MARQUEE,Zs.MARQUEE],[Gs.MATH,Zs.MATH],[Gs.MENU,Zs.MENU],[Gs.META,Zs.META],[Gs.MGLYPH,Zs.MGLYPH],[Gs.MI,Zs.MI],[Gs.MO,Zs.MO],[Gs.MN,Zs.MN],[Gs.MS,Zs.MS],[Gs.MTEXT,Zs.MTEXT],[Gs.NAV,Zs.NAV],[Gs.NOBR,Zs.NOBR],[Gs.NOFRAMES,Zs.NOFRAMES],[Gs.NOEMBED,Zs.NOEMBED],[Gs.NOSCRIPT,Zs.NOSCRIPT],[Gs.OBJECT,Zs.OBJECT],[Gs.OL,Zs.OL],[Gs.OPTGROUP,Zs.OPTGROUP],[Gs.OPTION,Zs.OPTION],[Gs.P,Zs.P],[Gs.PARAM,Zs.PARAM],[Gs.PLAINTEXT,Zs.PLAINTEXT],[Gs.PRE,Zs.PRE],[Gs.RB,Zs.RB],[Gs.RP,Zs.RP],[Gs.RT,Zs.RT],[Gs.RTC,Zs.RTC],[Gs.RUBY,Zs.RUBY],[Gs.S,Zs.S],[Gs.SCRIPT,Zs.SCRIPT],[Gs.SEARCH,Zs.SEARCH],[Gs.SECTION,Zs.SECTION],[Gs.SELECT,Zs.SELECT],[Gs.SOURCE,Zs.SOURCE],[Gs.SMALL,Zs.SMALL],[Gs.SPAN,Zs.SPAN],[Gs.STRIKE,Zs.STRIKE],[Gs.STRONG,Zs.STRONG],[Gs.STYLE,Zs.STYLE],[Gs.SUB,Zs.SUB],[Gs.SUMMARY,Zs.SUMMARY],[Gs.SUP,Zs.SUP],[Gs.TABLE,Zs.TABLE],[Gs.TBODY,Zs.TBODY],[Gs.TEMPLATE,Zs.TEMPLATE],[Gs.TEXTAREA,Zs.TEXTAREA],[Gs.TFOOT,Zs.TFOOT],[Gs.TD,Zs.TD],[Gs.TH,Zs.TH],[Gs.THEAD,Zs.THEAD],[Gs.TITLE,Zs.TITLE],[Gs.TR,Zs.TR],[Gs.TRACK,Zs.TRACK],[Gs.TT,Zs.TT],[Gs.U,Zs.U],[Gs.UL,Zs.UL],[Gs.SVG,Zs.SVG],[Gs.VAR,Zs.VAR],[Gs.WBR,Zs.WBR],[Gs.XMP,Zs.XMP]]);function tl(e){var t;return null!==(t=el.get(e))&&void 0!==t?t:Zs.UNKNOWN}const rl=Zs,nl={[Ls.HTML]:new Set([rl.ADDRESS,rl.APPLET,rl.AREA,rl.ARTICLE,rl.ASIDE,rl.BASE,rl.BASEFONT,rl.BGSOUND,rl.BLOCKQUOTE,rl.BODY,rl.BR,rl.BUTTON,rl.CAPTION,rl.CENTER,rl.COL,rl.COLGROUP,rl.DD,rl.DETAILS,rl.DIR,rl.DIV,rl.DL,rl.DT,rl.EMBED,rl.FIELDSET,rl.FIGCAPTION,rl.FIGURE,rl.FOOTER,rl.FORM,rl.FRAME,rl.FRAMESET,rl.H1,rl.H2,rl.H3,rl.H4,rl.H5,rl.H6,rl.HEAD,rl.HEADER,rl.HGROUP,rl.HR,rl.HTML,rl.IFRAME,rl.IMG,rl.INPUT,rl.LI,rl.LINK,rl.LISTING,rl.MAIN,rl.MARQUEE,rl.MENU,rl.META,rl.NAV,rl.NOEMBED,rl.NOFRAMES,rl.NOSCRIPT,rl.OBJECT,rl.OL,rl.P,rl.PARAM,rl.PLAINTEXT,rl.PRE,rl.SCRIPT,rl.SECTION,rl.SELECT,rl.SOURCE,rl.STYLE,rl.SUMMARY,rl.TABLE,rl.TBODY,rl.TD,rl.TEMPLATE,rl.TEXTAREA,rl.TFOOT,rl.TH,rl.THEAD,rl.TITLE,rl.TR,rl.TRACK,rl.UL,rl.WBR,rl.XMP]),[Ls.MATHML]:new Set([rl.MI,rl.MO,rl.MN,rl.MS,rl.MTEXT,rl.ANNOTATION_XML]),[Ls.SVG]:new Set([rl.TITLE,rl.FOREIGN_OBJECT,rl.DESC]),[Ls.XLINK]:new Set,[Ls.XML]:new Set,[Ls.XMLNS]:new Set},il=new Set([rl.H1,rl.H2,rl.H3,rl.H4,rl.H5,rl.H6]);var al,ol;Gs.STYLE,Gs.SCRIPT,Gs.XMP,Gs.IFRAME,Gs.NOEMBED,Gs.NOFRAMES,Gs.PLAINTEXT,(ol=al||(al={}))[ol.DATA=0]="DATA",ol[ol.RCDATA=1]="RCDATA",ol[ol.RAWTEXT=2]="RAWTEXT",ol[ol.SCRIPT_DATA=3]="SCRIPT_DATA",ol[ol.PLAINTEXT=4]="PLAINTEXT",ol[ol.TAG_OPEN=5]="TAG_OPEN",ol[ol.END_TAG_OPEN=6]="END_TAG_OPEN",ol[ol.TAG_NAME=7]="TAG_NAME",ol[ol.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ol[ol.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ol[ol.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ol[ol.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ol[ol.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ol[ol.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ol[ol.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ol[ol.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ol[ol.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ol[ol.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ol[ol.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ol[ol.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ol[ol.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ol[ol.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ol[ol.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ol[ol.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ol[ol.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ol[ol.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ol[ol.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ol[ol.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ol[ol.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ol[ol.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ol[ol.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ol[ol.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ol[ol.BOGUS_COMMENT=40]="BOGUS_COMMENT",ol[ol.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ol[ol.COMMENT_START=42]="COMMENT_START",ol[ol.COMMENT_START_DASH=43]="COMMENT_START_DASH",ol[ol.COMMENT=44]="COMMENT",ol[ol.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ol[ol.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ol[ol.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ol[ol.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ol[ol.COMMENT_END_DASH=49]="COMMENT_END_DASH",ol[ol.COMMENT_END=50]="COMMENT_END",ol[ol.COMMENT_END_BANG=51]="COMMENT_END_BANG",ol[ol.DOCTYPE=52]="DOCTYPE",ol[ol.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ol[ol.DOCTYPE_NAME=54]="DOCTYPE_NAME",ol[ol.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ol[ol.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ol[ol.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ol[ol.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ol[ol.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ol[ol.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ol[ol.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ol[ol.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ol[ol.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ol[ol.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ol[ol.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ol[ol.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ol[ol.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ol[ol.CDATA_SECTION=68]="CDATA_SECTION",ol[ol.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ol[ol.CDATA_SECTION_END=70]="CDATA_SECTION_END",ol[ol.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ol[ol.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const sl={DATA:al.DATA,RCDATA:al.RCDATA,RAWTEXT:al.RAWTEXT,SCRIPT_DATA:al.SCRIPT_DATA,PLAINTEXT:al.PLAINTEXT,CDATA_SECTION:al.CDATA_SECTION};function ll(e){return e>=Vs.LATIN_CAPITAL_A&&e<=Vs.LATIN_CAPITAL_Z}function cl(e){return function(e){return e>=Vs.LATIN_SMALL_A&&e<=Vs.LATIN_SMALL_Z}(e)||ll(e)}function ul(e){return cl(e)||function(e){return e>=Vs.DIGIT_0&&e<=Vs.DIGIT_9}(e)}function dl(e){return e+32}function pl(e){return e===Vs.SPACE||e===Vs.LINE_FEED||e===Vs.TABULATION||e===Vs.FORM_FEED}function ql(e){return pl(e)||e===Vs.SOLIDUS||e===Vs.GREATER_THAN_SIGN}class hl{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=al.DATA,this.returnState=al.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Us(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _s(Ns,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ys.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(ys.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===Vs.NULL?ys.nullCharacterReference:e>1114111?ys.characterReferenceOutsideUnicodeRange:vs(e)?ys.surrogateCharacterReference:Ss(e)?ys.noncharacterCharacterReference:As(e)||e===Vs.CARRIAGE_RETURN?ys.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var r,n;null===(n=(r=this.handler).onParseError)||void 0===n||n.call(r,this.preprocessor.getError(e,t))}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||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Ts.START_TAG,tagName:"",tagID:Zs.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ts.END_TAG,tagName:"",tagID:Zs.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Ts.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Ts.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;null===Rs(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!==(e=(t=r.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(ys.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=tl(e.tagName),e.type===Ts.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(ys.endTagWithAttributes),e.selfClosing&&this._err(ys.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 Ts.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Ts.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Ts.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:Ts.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=pl(e)?Ts.WHITESPACE_CHARACTER:e===Vs.NULL?Ts.NULL_CHARACTER:Ts.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Ts.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=al.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Is.Attribute:Is.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===al.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===al.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===al.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case al.DATA:this._stateData(e);break;case al.RCDATA:this._stateRcdata(e);break;case al.RAWTEXT:this._stateRawtext(e);break;case al.SCRIPT_DATA:this._stateScriptData(e);break;case al.PLAINTEXT:this._statePlaintext(e);break;case al.TAG_OPEN:this._stateTagOpen(e);break;case al.END_TAG_OPEN:this._stateEndTagOpen(e);break;case al.TAG_NAME:this._stateTagName(e);break;case al.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case al.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case al.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case al.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case al.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case al.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case al.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case al.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case al.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case al.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case al.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case al.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case al.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case al.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case al.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case al.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case al.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case al.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case al.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case al.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case al.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case al.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case al.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case al.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case al.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case al.BOGUS_COMMENT:this._stateBogusComment(e);break;case al.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case al.COMMENT_START:this._stateCommentStart(e);break;case al.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case al.COMMENT:this._stateComment(e);break;case al.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case al.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case al.COMMENT_END:this._stateCommentEnd(e);break;case al.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case al.DOCTYPE:this._stateDoctype(e);break;case al.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case al.DOCTYPE_NAME:this._stateDoctypeName(e);break;case al.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case al.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case al.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case al.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case al.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case al.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case al.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case al.CDATA_SECTION:this._stateCdataSection(e);break;case al.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case al.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case al.CHARACTER_REFERENCE:this._stateCharacterReference();break;case al.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.TAG_OPEN;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitCodePoint(e);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.LESS_THAN_SIGN:this.state=al.RCDATA_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.RAWTEXT_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(cl(e))this._createStartTagToken(),this.state=al.TAG_NAME,this._stateTagName(e);else switch(e){case Vs.EXCLAMATION_MARK:this.state=al.MARKUP_DECLARATION_OPEN;break;case Vs.SOLIDUS:this.state=al.END_TAG_OPEN;break;case Vs.QUESTION_MARK:this._err(ys.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e);break;case Vs.EOF:this._err(ys.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ys.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=al.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(cl(e))this._createEndTagToken(),this.state=al.TAG_NAME,this._stateTagName(e);else switch(e){case Vs.GREATER_THAN_SIGN:this._err(ys.missingEndTagName),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ys.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.SOLIDUS:this.state=al.SELF_CLOSING_START_TAG;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.tagName+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateRcdataLessThanSign(e){e===Vs.SOLIDUS?this.state=al.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=al.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){cl(e)?(this.state=al.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=al.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=al.BEFORE_ATTRIBUTE_NAME,!1;case Vs.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=al.SELF_CLOSING_START_TAG,!1;case Vs.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=al.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Vs.SOLIDUS?this.state=al.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){cl(e)?(this.state=al.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Vs.SOLIDUS:this.state=al.SCRIPT_DATA_END_TAG_OPEN;break;case Vs.EXCLAMATION_MARK:this.state=al.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=al.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){cl(e)?(this.state=al.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Vs.HYPHEN_MINUS?(this.state=al.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Vs.HYPHEN_MINUS?(this.state=al.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Vs.HYPHEN_MINUS:this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.GREATER_THAN_SIGN:this.state=al.SCRIPT_DATA,this._emitChars(">");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Vs.SOLIDUS?this.state=al.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:cl(e)?(this._emitChars("<"),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){cl(e)?(this.state=al.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(bs,!1)&&ql(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Vs.HYPHEN_MINUS:this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.GREATER_THAN_SIGN:this.state=al.SCRIPT_DATA,this._emitChars(">");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Vs.SOLIDUS?(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(bs,!1)&&ql(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=al.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.SOLIDUS:case Vs.GREATER_THAN_SIGN:case Vs.EOF:this.state=al.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vs.EQUALS_SIGN:this._err(ys.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=al.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=al.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:case Vs.SOLIDUS:case Vs.GREATER_THAN_SIGN:case Vs.EOF:this._leaveAttrName(),this.state=al.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vs.EQUALS_SIGN:this._leaveAttrName(),this.state=al.BEFORE_ATTRIBUTE_VALUE;break;case Vs.QUOTATION_MARK:case Vs.APOSTROPHE:case Vs.LESS_THAN_SIGN:this._err(ys.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.name+=hs;break;default:this.currentAttr.name+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateAfterAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.SOLIDUS:this.state=al.SELF_CLOSING_START_TAG;break;case Vs.EQUALS_SIGN:this.state=al.BEFORE_ATTRIBUTE_VALUE;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=al.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:this.state=al.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this.state=al.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingAttributeValue),this.state=al.DATA,this.emitCurrentTagToken();break;default:this.state=al.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this._leaveAttrValue(),this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.QUOTATION_MARK:case Vs.APOSTROPHE:case Vs.LESS_THAN_SIGN:case Vs.EQUALS_SIGN:case Vs.GRAVE_ACCENT:this._err(ys.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this._leaveAttrValue(),this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.SOLIDUS:this._leaveAttrValue(),this.state=al.SELF_CLOSING_START_TAG;break;case Vs.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._err(ys.missingWhitespaceBetweenAttributes),this.state=al.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Vs.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._err(ys.unexpectedSolidusInTag),this.state=al.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.data+=hs;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=al.COMMENT_START):this._consumeSequenceIfMatch(gs,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=al.DOCTYPE):this._consumeSequenceIfMatch(ms,!0)?this.inForeignNode?this.state=al.CDATA_SECTION:(this._err(ys.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=al.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ys.incorrectlyOpenedComment),this._createCommentToken(2),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_START_DASH;break;case Vs.GREATER_THAN_SIGN:{this._err(ys.abruptClosingOfEmptyComment),this.state=al.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=al.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptClosingOfEmptyComment),this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=al.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END_DASH;break;case Vs.LESS_THAN_SIGN:t.data+="<",this.state=al.COMMENT_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.data+=hs;break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Vs.EXCLAMATION_MARK:t.data+="!",this.state=al.COMMENT_LESS_THAN_SIGN_BANG;break;case Vs.LESS_THAN_SIGN:t.data+="<";break;default:this.state=al.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Vs.HYPHEN_MINUS?this.state=al.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=al.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Vs.HYPHEN_MINUS?this.state=al.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=al.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Vs.GREATER_THAN_SIGN&&e!==Vs.EOF&&this._err(ys.nestedComment),this.state=al.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END;break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=al.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EXCLAMATION_MARK:this.state=al.COMMENT_END_BANG;break;case Vs.HYPHEN_MINUS:t.data+="-";break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=al.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:t.data+="--!",this.state=al.COMMENT_END_DASH;break;case Vs.GREATER_THAN_SIGN:this._err(ys.incorrectlyClosedComment),this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=al.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:this.state=al.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Vs.EOF:{this._err(ys.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(ys.missingWhitespaceBeforeDoctypeName),this.state=al.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ll(e))this._createDoctypeToken(String.fromCharCode(dl(e))),this.state=al.DOCTYPE_NAME;else switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._createDoctypeToken(hs),this.state=al.DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:{this._err(ys.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=al.DATA;break}case Vs.EOF:{this._err(ys.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=al.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.AFTER_DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.name+=hs;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=al.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=al.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ys.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.publicId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.publicId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.QUOTATION_MARK:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.systemId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.systemId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter);break;case Vs.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Vs.RIGHT_SQUARE_BRACKET:this.state=al.CDATA_SECTION_BRACKET;break;case Vs.EOF:this._err(ys.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Vs.RIGHT_SQUARE_BRACKET?this.state=al.CDATA_SECTION_END:(this._emitChars("]"),this.state=al.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA;break;case Vs.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=al.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Vs.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ul(this.preprocessor.peek(1))?al.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ul(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Vs.SEMICOLON&&this._err(ys.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const Vl=new Set([Zs.DD,Zs.DT,Zs.LI,Zs.OPTGROUP,Zs.OPTION,Zs.P,Zs.RB,Zs.RP,Zs.RT,Zs.RTC]),fl=new Set([...Vl,Zs.CAPTION,Zs.COLGROUP,Zs.TBODY,Zs.TD,Zs.TFOOT,Zs.TH,Zs.THEAD,Zs.TR]),ml=new Set([Zs.APPLET,Zs.CAPTION,Zs.HTML,Zs.MARQUEE,Zs.OBJECT,Zs.TABLE,Zs.TD,Zs.TEMPLATE,Zs.TH]),gl=new Set([...ml,Zs.OL,Zs.UL]),bl=new Set([...ml,Zs.BUTTON]),vl=new Set([Zs.ANNOTATION_XML,Zs.MI,Zs.MN,Zs.MO,Zs.MS,Zs.MTEXT]),Al=new Set([Zs.DESC,Zs.FOREIGN_OBJECT,Zs.TITLE]),Sl=new Set([Zs.TR,Zs.TEMPLATE,Zs.HTML]),yl=new Set([Zs.TBODY,Zs.TFOOT,Zs.THEAD,Zs.TEMPLATE,Zs.HTML]),El=new Set([Zs.TABLE,Zs.TEMPLATE,Zs.HTML]),Tl=new Set([Zs.TD,Zs.TH]);class Cl{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=Zs.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Zs.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ls.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 n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,n===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])!==Ls.HTML);this.shortenToLength(Math.max(t,0))}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<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(il,Ls.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Tl,Ls.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(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(El,Ls.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yl,Ls.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sl,Ls.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]===Zs.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]===Zs.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ls.HTML:if(n===e)return!0;if(t.has(n))return!1;break;case Ls.SVG:if(Al.has(n))return!1;break;case Ls.MATHML:if(vl.has(n))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ml)}hasInListItemScope(e){return this.hasInDynamicScope(e,gl)}hasInButtonScope(e){return this.hasInDynamicScope(e,bl)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Ls.HTML:if(il.has(t))return!0;if(ml.has(t))return!1;break;case Ls.SVG:if(Al.has(t))return!1;break;case Ls.MATHML:if(vl.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ls.HTML)switch(this.tagIDs[t]){case e:return!0;case Zs.TABLE:case Zs.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Ls.HTML)switch(this.tagIDs[e]){case Zs.TBODY:case Zs.THEAD:case Zs.TFOOT:return!0;case Zs.TABLE:case Zs.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ls.HTML)switch(this.tagIDs[t]){case e:return!0;case Zs.OPTION:case Zs.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&Vl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&fl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&fl.has(this.currentTagId);)this.pop()}}var Ul,Rl;(Rl=Ul||(Ul={}))[Rl.Marker=0]="Marker",Rl[Rl.Element=1]="Element";const Nl={type:Ul.Marker};class kl{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const e=this.entries[o];if(e.type===Ul.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===i&&this.treeAdapter.getNamespaceURI(t)===a){const e=this.treeAdapter.getAttrList(t);e.length===n&&r.push({idx:o,attrs:e})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;const n=new Map(t.map(e=>[e.name,e.value]));let i=0;for(let a=0;a<r.length;a++){const e=r[a];e.attrs.every(e=>n.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Nl)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ul.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ul.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Nl);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===Ul.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===Ul.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Ul.Element&&t.element===e)}}const Fl={createDocument:()=>({nodeName:"#document",mode:Ms.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}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){const i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=r,i.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Fl.appendChild(e,i)}},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(Fl.isTextNode(r))return void(r.value+=t)}Fl.appendChild(e,Fl.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Fl.isTextNode(n)?n.value+=t:Fl.insertBefore(e,Fl.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(e=>e.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.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}}},wl="html",Wl=["+//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//"],xl=[...Wl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ol=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Kl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Il=[...Kl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Dl(e,t){return t.some(t=>e.startsWith(t))}const Ll=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])),Pl=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ls.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ls.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ls.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ls.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ls.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ls.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ls.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ls.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ls.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ls.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ls.XMLNS}]]),Bl=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])),Xl=new Set([Zs.B,Zs.BIG,Zs.BLOCKQUOTE,Zs.BODY,Zs.BR,Zs.CENTER,Zs.CODE,Zs.DD,Zs.DIV,Zs.DL,Zs.DT,Zs.EM,Zs.EMBED,Zs.H1,Zs.H2,Zs.H3,Zs.H4,Zs.H5,Zs.H6,Zs.HEAD,Zs.HR,Zs.I,Zs.IMG,Zs.LI,Zs.LISTING,Zs.MENU,Zs.META,Zs.NOBR,Zs.OL,Zs.P,Zs.PRE,Zs.RUBY,Zs.S,Zs.SMALL,Zs.SPAN,Zs.STRONG,Zs.STRIKE,Zs.SUB,Zs.SUP,Zs.TABLE,Zs.TT,Zs.U,Zs.UL,Zs.VAR]);function Ml(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function jl(e){for(let t=0;t<e.attrs.length;t++){const r=Ll.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function Gl(e){for(let t=0;t<e.attrs.length;t++){const r=Pl.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}var Hl,Zl;(Zl=Hl||(Hl={}))[Zl.INITIAL=0]="INITIAL",Zl[Zl.BEFORE_HTML=1]="BEFORE_HTML",Zl[Zl.BEFORE_HEAD=2]="BEFORE_HEAD",Zl[Zl.IN_HEAD=3]="IN_HEAD",Zl[Zl.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Zl[Zl.AFTER_HEAD=5]="AFTER_HEAD",Zl[Zl.IN_BODY=6]="IN_BODY",Zl[Zl.TEXT=7]="TEXT",Zl[Zl.IN_TABLE=8]="IN_TABLE",Zl[Zl.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Zl[Zl.IN_CAPTION=10]="IN_CAPTION",Zl[Zl.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Zl[Zl.IN_TABLE_BODY=12]="IN_TABLE_BODY",Zl[Zl.IN_ROW=13]="IN_ROW",Zl[Zl.IN_CELL=14]="IN_CELL",Zl[Zl.IN_SELECT=15]="IN_SELECT",Zl[Zl.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Zl[Zl.IN_TEMPLATE=17]="IN_TEMPLATE",Zl[Zl.AFTER_BODY=18]="AFTER_BODY",Zl[Zl.IN_FRAMESET=19]="IN_FRAMESET",Zl[Zl.AFTER_FRAMESET=20]="AFTER_FRAMESET",Zl[Zl.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Zl[Zl.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const Yl={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zl=new Set([Zs.TABLE,Zs.TBODY,Zs.TFOOT,Zs.THEAD,Zs.TR]),Ql={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Fl,onParseError:null};class Jl{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=Hl.INITIAL,this.originalInsertionMode=Hl.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={...Ql,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new hl(this.options,this),this.activeFormattingElements=new kl(this.treeAdapter),this.fragmentContextID=r?tl(this.treeAdapter.getTagName(r)):Zs.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new Cl(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={...Ql,...t};null!=e||(e=r.treeAdapter.createElement(Gs.TEMPLATE,Ls.HTML,[]));const n=r.treeAdapter.createElement("documentmock",Ls.HTML,[]),i=new this(r,n,e);return i.fragmentContextID===Zs.TEMPLATE&&i.tmplInsertionModeStack.unshift(Hl.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const i=null!==(n=e.location)&&void 0!==n?n:Yl,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,r){var n,i;null===(i=(n=this.treeAdapter).onItemPush)||void 0===i||i.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.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||e&&this.treeAdapter.getNamespaceURI(e)===Ls.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Ls.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Hl.TEXT}switchToPlaintextParsing(){this.insertionMode=Hl.TEXT,this.originalInsertionMode=Hl.IN_BODY,this.tokenizer.state=sl.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)===Gs.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ls.HTML)switch(this.fragmentContextID){case Zs.TITLE:case Zs.TEXTAREA:this.tokenizer.state=sl.RCDATA;break;case Zs.STYLE:case Zs.XMP:case Zs.IFRAME:case Zs.NOEMBED:case Zs.NOFRAMES:case Zs.NOSCRIPT:this.tokenizer.state=sl.RAWTEXT;break;case Zs.SCRIPT:this.tokenizer.state=sl.SCRIPT_DATA;break;case Zs.PLAINTEXT:this.tokenizer.state=sl.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),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(null!=t?t:this.document,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,Ls.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Ls.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(Gs.HTML,Ls.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Zs.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 n=this.treeAdapter.getChildNodes(t),i=r?n.lastIndexOf(r):n.length,a=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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,n=this.treeAdapter.getTagName(e),i=t.type===Ts.END_TAG&&n===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,i)}}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!==Zs.SVG||this.treeAdapter.getTagName(t)!==Gs.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Ls.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Zs.MGLYPH||e.tagID===Zs.MALIGNMARK)&&void 0!==r&&!this._isIntegrationPoint(r,t,Ls.HTML))}_processToken(e){switch(e.type){case Ts.CHARACTER:this.onCharacter(e);break;case Ts.NULL_CHARACTER:this.onNullCharacter(e);break;case Ts.COMMENT:this.onComment(e);break;case Ts.DOCTYPE:this.onDoctype(e);break;case Ts.START_TAG:this._processStartTag(e);break;case Ts.END_TAG:this.onEndTag(e);break;case Ts.EOF:this.onEof(e);break;case Ts.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return function(e,t,r,n){return(!n||n===Ls.HTML)&&function(e,t,r){if(t===Ls.MATHML&&e===Zs.ANNOTATION_XML)for(let n=0;n<r.length;n++)if(r[n].name===Bs.ENCODING){const e=r[n].value.toLowerCase();return"text/html"===e||"application/xhtml+xml"===e}return t===Ls.SVG&&(e===Zs.FOREIGN_OBJECT||e===Zs.DESC||e===Zs.TITLE)}(e,t,r)||(!n||n===Ls.MATHML)&&function(e,t){return t===Ls.MATHML&&(e===Zs.MI||e===Zs.MO||e===Zs.MN||e===Zs.MS||e===Zs.MTEXT)}(e,t)}(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===Ul.Marker||this.openElements.contains(e.element));for(let r=-1===t?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=Hl.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Zs.P),this.openElements.popUntilTagNamePopped(Zs.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Zs.TR:return void(this.insertionMode=Hl.IN_ROW);case Zs.TBODY:case Zs.THEAD:case Zs.TFOOT:return void(this.insertionMode=Hl.IN_TABLE_BODY);case Zs.CAPTION:return void(this.insertionMode=Hl.IN_CAPTION);case Zs.COLGROUP:return void(this.insertionMode=Hl.IN_COLUMN_GROUP);case Zs.TABLE:return void(this.insertionMode=Hl.IN_TABLE);case Zs.BODY:return void(this.insertionMode=Hl.IN_BODY);case Zs.FRAMESET:return void(this.insertionMode=Hl.IN_FRAMESET);case Zs.SELECT:return void this._resetInsertionModeForSelect(e);case Zs.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Zs.HTML:return void(this.insertionMode=this.headElement?Hl.AFTER_HEAD:Hl.BEFORE_HEAD);case Zs.TD:case Zs.TH:if(e>0)return void(this.insertionMode=Hl.IN_CELL);break;case Zs.HEAD:if(e>0)return void(this.insertionMode=Hl.IN_HEAD)}this.insertionMode=Hl.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Zs.TEMPLATE)break;if(e===Zs.TABLE)return void(this.insertionMode=Hl.IN_SELECT_IN_TABLE)}this.insertionMode=Hl.IN_SELECT}_isElementCausesFosterParenting(e){return zl.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&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 Zs.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Ls.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Zs.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 nl[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 Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.IN_BODY:case Hl.IN_CAPTION:case Hl.IN_CELL:case Hl.IN_TEMPLATE:mc(this,e);break;case Hl.TEXT:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_TABLE_TEXT:Fc(this,e);break;case Hl.IN_COLUMN_GROUP:Oc(this,e);break;case Hl.AFTER_BODY:jc(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=hs,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.TEXT:this._insertCharacters(e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_COLUMN_GROUP:Oc(this,e);break;case Hl.AFTER_BODY:jc(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)ac(this,e);else switch(this.insertionMode){case Hl.INITIAL:case Hl.BEFORE_HTML:case Hl.BEFORE_HEAD:case Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:case Hl.IN_BODY:case Hl.IN_TABLE:case Hl.IN_CAPTION:case Hl.IN_COLUMN_GROUP:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:case Hl.IN_CELL:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:case Hl.IN_TEMPLATE:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:ac(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Hl.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Ms.QUIRKS:function(e){if(e.name!==wl)return Ms.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ms.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Ol.has(r))return Ms.QUIRKS;let e=null===t?xl:Wl;if(Dl(r,e))return Ms.QUIRKS;if(e=null===t?Kl:Il,Dl(r,e))return Ms.LIMITED_QUIRKS}return Ms.NO_QUIRKS}(t);(function(e){return e.name===wl&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,ys.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=Hl.BEFORE_HTML}(this,e);break;case Hl.BEFORE_HEAD:case Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:this._err(e,ys.misplacedDoctype);break;case Hl.IN_TABLE_TEXT:wc(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,ys.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Zs.FONT&&e.attrs.some(({name:e})=>e===Bs.COLOR||e===Bs.SIZE||e===Bs.FACE)||Xl.has(t)}(t))Hc(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Ls.MATHML?Ml(t):n===Ls.SVG&&(function(e){const t=Bl.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=tl(e.tagName))}(t),jl(t)),Gl(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:!function(e,t){t.tagID===Zs.HTML?(e._insertElement(t,Ls.HTML),e.insertionMode=Hl.BEFORE_HEAD):lc(e,t)}(this,e);break;case Hl.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.HEAD:e._insertElement(t,Ls.HTML),e.headElement=e.openElements.current,e.insertionMode=Hl.IN_HEAD;break;default:cc(e,t)}}(this,e);break;case Hl.IN_HEAD:uc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BASEFONT:case Zs.BGSOUND:case Zs.HEAD:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.STYLE:uc(e,t);break;case Zs.NOSCRIPT:e._err(t,ys.nestedNoscriptInHead);break;default:qc(e,t)}}(this,e);break;case Hl.AFTER_HEAD:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BODY:e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=Hl.IN_BODY;break;case Zs.FRAMESET:e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_FRAMESET;break;case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.SCRIPT:case Zs.STYLE:case Zs.TEMPLATE:case Zs.TITLE:e._err(t,ys.abandonedHeadElementChild),e.openElements.push(e.headElement,Zs.HEAD),uc(e,t),e.openElements.remove(e.headElement);break;case Zs.HEAD:e._err(t,ys.misplacedStartTagForHeadElement);break;default:hc(e,t)}}(this,e);break;case Hl.IN_BODY:Sc(this,e);break;case Hl.IN_TABLE:Uc(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_CAPTION:!function(e,t){const r=t.tagID;Wc.has(r)?e.openElements.hasInTableScope(Zs.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_TABLE,Uc(e,t)):Sc(e,t)}(this,e);break;case Hl.IN_COLUMN_GROUP:xc(this,e);break;case Hl.IN_TABLE_BODY:Kc(this,e);break;case Hl.IN_ROW:Dc(this,e);break;case Hl.IN_CELL:!function(e,t){const r=t.tagID;Wc.has(r)?(e.openElements.hasInTableScope(Zs.TD)||e.openElements.hasInTableScope(Zs.TH))&&(e._closeTableCell(),Dc(e,t)):Sc(e,t)}(this,e);break;case Hl.IN_SELECT:Pc(this,e);break;case Hl.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===Zs.CAPTION||r===Zs.TABLE||r===Zs.TBODY||r===Zs.TFOOT||r===Zs.THEAD||r===Zs.TR||r===Zs.TD||r===Zs.TH?(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Pc(e,t)}(this,e);break;case Hl.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.SCRIPT:case Zs.STYLE:case Zs.TEMPLATE:case Zs.TITLE:uc(e,t);break;case Zs.CAPTION:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.tmplInsertionModeStack[0]=Hl.IN_TABLE,e.insertionMode=Hl.IN_TABLE,Uc(e,t);break;case Zs.COL:e.tmplInsertionModeStack[0]=Hl.IN_COLUMN_GROUP,e.insertionMode=Hl.IN_COLUMN_GROUP,xc(e,t);break;case Zs.TR:e.tmplInsertionModeStack[0]=Hl.IN_TABLE_BODY,e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t);break;case Zs.TD:case Zs.TH:e.tmplInsertionModeStack[0]=Hl.IN_ROW,e.insertionMode=Hl.IN_ROW,Dc(e,t);break;default:e.tmplInsertionModeStack[0]=Hl.IN_BODY,e.insertionMode=Hl.IN_BODY,Sc(e,t)}}(this,e);break;case Hl.AFTER_BODY:!function(e,t){t.tagID===Zs.HTML?Sc(e,t):jc(e,t)}(this,e);break;case Hl.IN_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.FRAMESET:e._insertElement(t,Ls.HTML);break;case Zs.FRAME:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.NOFRAMES:uc(e,t)}}(this,e);break;case Hl.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.NOFRAMES:uc(e,t)}}(this,e);break;case Hl.AFTER_AFTER_BODY:!function(e,t){t.tagID===Zs.HTML?Sc(e,t):Gc(e,t)}(this,e);break;case Hl.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.NOFRAMES:uc(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Zs.P||t.tagID===Zs.BR)return Hc(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Ls.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==Zs.HTML&&r!==Zs.HEAD&&r!==Zs.BODY&&r!==Zs.BR||lc(e,t)}(this,e);break;case Hl.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===Zs.HEAD||r===Zs.BODY||r===Zs.HTML||r===Zs.BR?cc(e,t):e._err(t,ys.endTagWithoutMatchingOpenElement)}(this,e);break;case Hl.IN_HEAD:!function(e,t){switch(t.tagID){case Zs.HEAD:e.openElements.pop(),e.insertionMode=Hl.AFTER_HEAD;break;case Zs.BODY:case Zs.BR:case Zs.HTML:pc(e,t);break;case Zs.TEMPLATE:dc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Zs.NOSCRIPT:e.openElements.pop(),e.insertionMode=Hl.IN_HEAD;break;case Zs.BR:qc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.AFTER_HEAD:!function(e,t){switch(t.tagID){case Zs.BODY:case Zs.HTML:case Zs.BR:hc(e,t);break;case Zs.TEMPLATE:dc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.IN_BODY:Ec(this,e);break;case Hl.TEXT:!function(e,t){var r;t.tagID===Zs.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 Hl.IN_TABLE:Rc(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case Zs.CAPTION:case Zs.TABLE:e.openElements.hasInTableScope(Zs.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_TABLE,r===Zs.TABLE&&Rc(e,t));break;case Zs.BODY:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TBODY:case Zs.TD:case Zs.TFOOT:case Zs.TH:case Zs.THEAD:case Zs.TR:break;default:Ec(e,t)}}(this,e);break;case Hl.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Zs.COLGROUP:e.openElements.currentTagId===Zs.COLGROUP&&(e.openElements.pop(),e.insertionMode=Hl.IN_TABLE);break;case Zs.TEMPLATE:dc(e,t);break;case Zs.COL:break;default:Oc(e,t)}}(this,e);break;case Hl.IN_TABLE_BODY:Ic(this,e);break;case Hl.IN_ROW:Lc(this,e);break;case Hl.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case Zs.TD:case Zs.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_ROW);break;case Zs.TABLE:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Lc(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:break;default:Ec(e,t)}}(this,e);break;case Hl.IN_SELECT:Bc(this,e);break;case Hl.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===Zs.CAPTION||r===Zs.TABLE||r===Zs.TBODY||r===Zs.TFOOT||r===Zs.THEAD||r===Zs.TR||r===Zs.TD||r===Zs.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Bc(e,t)}(this,e);break;case Hl.IN_TEMPLATE:!function(e,t){t.tagID===Zs.TEMPLATE&&dc(e,t)}(this,e);break;case Hl.AFTER_BODY:Mc(this,e);break;case Hl.IN_FRAMESET:!function(e,t){t.tagID!==Zs.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Zs.FRAMESET||(e.insertionMode=Hl.AFTER_FRAMESET))}(this,e);break;case Hl.AFTER_FRAMESET:!function(e,t){t.tagID===Zs.HTML&&(e.insertionMode=Hl.AFTER_AFTER_FRAMESET)}(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onEof(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.IN_BODY:case Hl.IN_TABLE:case Hl.IN_CAPTION:case Hl.IN_COLUMN_GROUP:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:case Hl.IN_CELL:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:Tc(this,e);break;case Hl.TEXT:!function(e,t){e._err(t,ys.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_TEMPLATE:Xc(this,e);break;case Hl.AFTER_BODY:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:oc(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Vs.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 Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:case Hl.TEXT:case Hl.IN_COLUMN_GROUP:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:this._insertCharacters(e);break;case Hl.IN_BODY:case Hl.IN_CAPTION:case Hl.IN_CELL:case Hl.IN_TEMPLATE:case Hl.AFTER_BODY:case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:fc(this,e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_TABLE_TEXT:kc(this,e)}}}function _l(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):yc(e,t),r}function $l(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function ec(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);const r=e.activeFormattingElements.getElementEntry(o),s=r&&a>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(o)):(o=tc(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function tc(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function rc(e,t,r){const n=tl(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);n===Zs.TEMPLATE&&i===Ls.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function nc(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function ic(e,t){for(let r=0;r<8;r++){const r=_l(e,t);if(!r)break;const n=$l(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const i=ec(e,n,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&rc(e,a,i),nc(e,n,r)}}function ac(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function oc(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function sc(e,t){e._err(t,ys.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ms.QUIRKS),e.insertionMode=Hl.BEFORE_HTML,e._processToken(t)}function lc(e,t){e._insertFakeRootElement(),e.insertionMode=Hl.BEFORE_HEAD,e._processToken(t)}function cc(e,t){e._insertFakeElement(Gs.HEAD,Zs.HEAD),e.headElement=e.openElements.current,e.insertionMode=Hl.IN_HEAD,e._processToken(t)}function uc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.TITLE:e._switchToTextParsing(t,sl.RCDATA);break;case Zs.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,sl.RAWTEXT):(e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_HEAD_NO_SCRIPT);break;case Zs.NOFRAMES:case Zs.STYLE:e._switchToTextParsing(t,sl.RAWTEXT);break;case Zs.SCRIPT:e._switchToTextParsing(t,sl.SCRIPT_DATA);break;case Zs.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Hl.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Hl.IN_TEMPLATE);break;case Zs.HEAD:e._err(t,ys.misplacedStartTagForHeadElement);break;default:pc(e,t)}}function dc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Zs.TEMPLATE&&e._err(t,ys.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Zs.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ys.endTagWithoutMatchingOpenElement)}function pc(e,t){e.openElements.pop(),e.insertionMode=Hl.AFTER_HEAD,e._processToken(t)}function qc(e,t){const r=t.type===Ts.EOF?ys.openElementsLeftAfterEof:ys.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=Hl.IN_HEAD,e._processToken(t)}function hc(e,t){e._insertFakeElement(Gs.BODY,Zs.BODY),e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Vc(e,t){switch(t.type){case Ts.CHARACTER:mc(e,t);break;case Ts.WHITESPACE_CHARACTER:fc(e,t);break;case Ts.COMMENT:ac(e,t);break;case Ts.START_TAG:Sc(e,t);break;case Ts.END_TAG:Ec(e,t);break;case Ts.EOF:Tc(e,t)}}function fc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function mc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function gc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ls.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function bc(e){const t=Rs(e,Bs.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function vc(e,t){e._switchToTextParsing(t,sl.RAWTEXT)}function Ac(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML)}function Sc(e,t){switch(t.tagID){case Zs.I:case Zs.S:case Zs.B:case Zs.U:case Zs.EM:case Zs.TT:case Zs.BIG:case Zs.CODE:case Zs.FONT:case Zs.SMALL:case Zs.STRIKE:case Zs.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Gs.A);r&&(ic(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.H1:case Zs.H2:case Zs.H3:case Zs.H4:case Zs.H5:case Zs.H6:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&il.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.P:case Zs.DL:case Zs.OL:case Zs.UL:case Zs.DIV:case Zs.DIR:case Zs.NAV:case Zs.MAIN:case Zs.MENU:case Zs.ASIDE:case Zs.CENTER:case Zs.FIGURE:case Zs.FOOTER:case Zs.HEADER:case Zs.HGROUP:case Zs.DIALOG:case Zs.DETAILS:case Zs.ADDRESS:case Zs.ARTICLE:case Zs.SEARCH:case Zs.SECTION:case Zs.SUMMARY:case Zs.FIELDSET:case Zs.BLOCKQUOTE:case Zs.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.LI:case Zs.DD:case Zs.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const t=e.openElements.tagIDs[n];if(r===Zs.LI&&t===Zs.LI||(r===Zs.DD||r===Zs.DT)&&(t===Zs.DD||t===Zs.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Zs.ADDRESS&&t!==Zs.DIV&&t!==Zs.P&&e._isSpecialElement(e.openElements.items[n],t))break}e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.BR:case Zs.IMG:case Zs.WBR:case Zs.AREA:case Zs.EMBED:case Zs.KEYGEN:gc(e,t);break;case Zs.HR:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._appendElement(t,Ls.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Zs.RB:case Zs.RTC:!function(e,t){e.openElements.hasInScope(Zs.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.RT:case Zs.RP:!function(e,t){e.openElements.hasInScope(Zs.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Zs.RTC),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.PRE:case Zs.LISTING:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Zs.XMP:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,sl.RAWTEXT)}(e,t);break;case Zs.SVG:!function(e,t){e._reconstructActiveFormattingElements(),jl(t),Gl(t),t.selfClosing?e._appendElement(t,Ls.SVG):e._insertElement(t,Ls.SVG),t.ackSelfClosing=!0}(e,t);break;case Zs.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Zs.BASE:case Zs.LINK:case Zs.META:case Zs.STYLE:case Zs.TITLE:case Zs.SCRIPT:case Zs.BGSOUND:case Zs.BASEFONT:case Zs.TEMPLATE:uc(e,t);break;case Zs.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 Zs.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case Zs.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Zs.NOBR)&&(ic(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ml(t),Gl(t),t.selfClosing?e._appendElement(t,Ls.MATHML):e._insertElement(t,Ls.MATHML),t.ackSelfClosing=!0}(e,t);break;case Zs.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ms.QUIRKS&&e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=Hl.IN_TABLE}(e,t);break;case Zs.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ls.HTML),bc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Zs.PARAM:case Zs.TRACK:case Zs.SOURCE:!function(e,t){e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0}(e,t);break;case Zs.IMAGE:!function(e,t){t.tagName=Gs.IMG,t.tagID=Zs.IMG,gc(e,t)}(e,t);break;case Zs.BUTTON:!function(e,t){e.openElements.hasInScope(Zs.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.framesetOk=!1}(e,t);break;case Zs.APPLET:case Zs.OBJECT:case Zs.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Zs.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,sl.RAWTEXT)}(e,t);break;case Zs.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Hl.IN_TABLE||e.insertionMode===Hl.IN_CAPTION||e.insertionMode===Hl.IN_TABLE_BODY||e.insertionMode===Hl.IN_ROW||e.insertionMode===Hl.IN_CELL?Hl.IN_SELECT_IN_TABLE:Hl.IN_SELECT}(e,t);break;case Zs.OPTION:case Zs.OPTGROUP:!function(e,t){e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.NOEMBED:case Zs.NOFRAMES:vc(e,t);break;case Zs.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_FRAMESET)}(e,t);break;case Zs.TEXTAREA:!function(e,t){e._insertElement(t,Ls.HTML),e.skipNextNewLine=!0,e.tokenizer.state=sl.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Hl.TEXT}(e,t);break;case Zs.NOSCRIPT:e.options.scriptingEnabled?vc(e,t):Ac(e,t);break;case Zs.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.tokenizer.state=sl.PLAINTEXT}(e,t);break;case Zs.COL:case Zs.TH:case Zs.TD:case Zs.TR:case Zs.HEAD:case Zs.FRAME:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.CAPTION:case Zs.COLGROUP:break;default:Ac(e,t)}}function yc(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==Zs.UNKNOWN||e.treeAdapter.getTagName(t)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,a))break}}function Ec(e,t){switch(t.tagID){case Zs.A:case Zs.B:case Zs.I:case Zs.S:case Zs.U:case Zs.EM:case Zs.TT:case Zs.BIG:case Zs.CODE:case Zs.FONT:case Zs.NOBR:case Zs.SMALL:case Zs.STRIKE:case Zs.STRONG:ic(e,t);break;case Zs.P:!function(e){e.openElements.hasInButtonScope(Zs.P)||e._insertFakeElement(Gs.P,Zs.P),e._closePElement()}(e);break;case Zs.DL:case Zs.UL:case Zs.OL:case Zs.DIR:case Zs.DIV:case Zs.NAV:case Zs.PRE:case Zs.MAIN:case Zs.MENU:case Zs.ASIDE:case Zs.BUTTON:case Zs.CENTER:case Zs.FIGURE:case Zs.FOOTER:case Zs.HEADER:case Zs.HGROUP:case Zs.DIALOG:case Zs.ADDRESS:case Zs.ARTICLE:case Zs.DETAILS:case Zs.SEARCH:case Zs.SECTION:case Zs.SUMMARY:case Zs.LISTING:case Zs.FIELDSET:case Zs.BLOCKQUOTE:case Zs.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case Zs.LI:!function(e){e.openElements.hasInListItemScope(Zs.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Zs.LI),e.openElements.popUntilTagNamePopped(Zs.LI))}(e);break;case Zs.DD:case Zs.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case Zs.H1:case Zs.H2:case Zs.H3:case Zs.H4:case Zs.H5:case Zs.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Zs.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Gs.BR,Zs.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Zs.BODY:!function(e,t){if(e.openElements.hasInScope(Zs.BODY)&&(e.insertionMode=Hl.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case Zs.HTML:!function(e,t){e.openElements.hasInScope(Zs.BODY)&&(e.insertionMode=Hl.AFTER_BODY,Mc(e,t))}(e,t);break;case Zs.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(Zs.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Zs.FORM):r&&e.openElements.remove(r))}(e);break;case Zs.APPLET:case Zs.OBJECT:case Zs.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 Zs.TEMPLATE:dc(e,t);break;default:yc(e,t)}}function Tc(e,t){e.tmplInsertionModeStack.length>0?Xc(e,t):oc(e,t)}function Cc(e,t){if(void 0!==e.openElements.currentTagId&&zl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Hl.IN_TABLE_TEXT,t.type){case Ts.CHARACTER:Fc(e,t);break;case Ts.WHITESPACE_CHARACTER:kc(e,t)}else Nc(e,t)}function Uc(e,t){switch(t.tagID){case Zs.TD:case Zs.TH:case Zs.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Gs.TBODY,Zs.TBODY),e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t)}(e,t);break;case Zs.STYLE:case Zs.SCRIPT:case Zs.TEMPLATE:uc(e,t);break;case Zs.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Gs.COLGROUP,Zs.COLGROUP),e.insertionMode=Hl.IN_COLUMN_GROUP,xc(e,t)}(e,t);break;case Zs.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Ls.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Zs.TABLE:!function(e,t){e.openElements.hasInTableScope(Zs.TABLE)&&(e.openElements.popUntilTagNamePopped(Zs.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_TABLE_BODY}(e,t);break;case Zs.INPUT:!function(e,t){bc(t)?e._appendElement(t,Ls.HTML):Nc(e,t),t.ackSelfClosing=!0}(e,t);break;case Zs.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_CAPTION}(e,t);break;case Zs.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_COLUMN_GROUP}(e,t);break;default:Nc(e,t)}}function Rc(e,t){switch(t.tagID){case Zs.TABLE:e.openElements.hasInTableScope(Zs.TABLE)&&(e.openElements.popUntilTagNamePopped(Zs.TABLE),e._resetInsertionMode());break;case Zs.TEMPLATE:dc(e,t);break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TBODY:case Zs.TD:case Zs.TFOOT:case Zs.TH:case Zs.THEAD:case Zs.TR:break;default:Nc(e,t)}}function Nc(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vc(e,t),e.fosterParentingEnabled=r}function kc(e,t){e.pendingCharacterTokens.push(t)}function Fc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function wc(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Nc(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Wc=new Set([Zs.CAPTION,Zs.COL,Zs.COLGROUP,Zs.TBODY,Zs.TD,Zs.TFOOT,Zs.TH,Zs.THEAD,Zs.TR]);function xc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.COL:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.TEMPLATE:uc(e,t);break;default:Oc(e,t)}}function Oc(e,t){e.openElements.currentTagId===Zs.COLGROUP&&(e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,e._processToken(t))}function Kc(e,t){switch(t.tagID){case Zs.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_ROW;break;case Zs.TH:case Zs.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Gs.TR,Zs.TR),e.insertionMode=Hl.IN_ROW,Dc(e,t);break;case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,Uc(e,t));break;default:Uc(e,t)}}function Ic(e,t){const r=t.tagID;switch(t.tagID){case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE);break;case Zs.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,Rc(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TD:case Zs.TH:case Zs.TR:break;default:Rc(e,t)}}function Dc(e,t){switch(t.tagID){case Zs.TH:case Zs.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_CELL,e.activeFormattingElements.insertMarker();break;case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.TR:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t));break;default:Uc(e,t)}}function Lc(e,t){switch(t.tagID){case Zs.TR:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY);break;case Zs.TABLE:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Ic(e,t));break;case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Zs.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Ic(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TD:case Zs.TH:break;default:Rc(e,t)}}function Pc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.OPTION:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e._insertElement(t,Ls.HTML);break;case Zs.OPTGROUP:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ls.HTML);break;case Zs.HR:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.INPUT:case Zs.KEYGEN:case Zs.TEXTAREA:case Zs.SELECT:e.openElements.hasInSelectScope(Zs.SELECT)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),t.tagID!==Zs.SELECT&&e._processStartTag(t));break;case Zs.SCRIPT:case Zs.TEMPLATE:uc(e,t)}}function Bc(e,t){switch(t.tagID){case Zs.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Zs.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Zs.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop();break;case Zs.OPTION:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop();break;case Zs.SELECT:e.openElements.hasInSelectScope(Zs.SELECT)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode());break;case Zs.TEMPLATE:dc(e,t)}}function Xc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Zs.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oc(e,t)}function Mc(e,t){var r;if(t.tagID===Zs.HTML){if(e.fragmentContext||(e.insertionMode=Hl.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Zs.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)&&e._setEndLocation(n,t)}}else jc(e,t)}function jc(e,t){e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Gc(e,t){e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Hc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ls.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Gs.AREA,Gs.BASE,Gs.BASEFONT,Gs.BGSOUND,Gs.BR,Gs.COL,Gs.EMBED,Gs.FRAME,Gs.HR,Gs.IMG,Gs.INPUT,Gs.KEYGEN,Gs.LINK,Gs.META,Gs.PARAM,Gs.SOURCE,Gs.TRACK,Gs.WBR;const Zc=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Yc=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),zc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Qc(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),n=as("type",{handlers:{root:_c,element:$c,text:eu,comment:ru,doctype:tu,raw:nu},unknown:iu}),i={parser:r?new Jl(zc):Jl.getFragmentParser(void 0,zc),handle(e){n(e,i)},stitches:!1,options:t||{}};n(e,i),au(i,tn());const a=function(e,t){const r=t||{};return $o({file:r.file||void 0,location:!1,schema:"svg"===r.space?Cr:Tr,verbose:r.verbose||!1},e)}(r?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&ja(a,"comment",function(e,t,r){const n=e;if(n.value.stitch&&r&&void 0!==t)return r.children[t]=n.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function Jc(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function _c(e,t){Jc(e.children,t)}function $c(e,t){!function(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===sl.PLAINTEXT)return;au(t,tn(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:Qo.html;i===Qo.html&&"svg"===r&&(i=Qo.svg);const a=function(e,t){return ls(e,"svg"===(t||os).space?Cr:Tr)}({...e,children:[]},{space:i===Qo.svg?"svg":"html"}),o={type:Ts.START_TAG,tagName:r,tagID:tl(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:su(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}(e,t),Jc(e.children,t),function(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&ps.includes(r))return;if(t.parser.tokenizer.state===sl.PLAINTEXT)return;au(t,en(e));const n={type:Ts.END_TAG,tagName:r,tagID:tl(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:su(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==sl.RCDATA&&t.parser.tokenizer.state!==sl.RAWTEXT&&t.parser.tokenizer.state!==sl.SCRIPT_DATA||(t.parser.tokenizer.state=sl.DATA)}(e,t)}function eu(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Ts.CHARACTER,chars:e.value,location:su(e)};au(t,tn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tu(e,t){const r={type:Ts.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:su(e)};au(t,tn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ru(e,t){const r=e.value,n={type:Ts.COMMENT,data:r,location:su(e)};au(t,tn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nu(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,ou(t,tn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Zc,"<$1$2"):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 iu(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw Yc.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)}!function(e,t){t.stitches=!0;const r=function(e){return Oa("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const n=Qc({type:"root",children:e.children},t.options);r.children=n.children}ru({type:"comment",value:{stitch:r}},t)}(r,t)}function au(e,t){ou(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=sl.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 ou(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 su(e){const t=tn(e)||{line:void 0,column:void 0,offset:void 0},r=en(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 lu(e){return function(t,r){return Qc(t,{...e,file:r})}}function cu(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function uu(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function du(e){return"function"==typeof e?e:function(){return e}}const pu="phrasing",qu=["autolink","link","image","label"];function hu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vu(e){this.config.enter.autolinkProtocol.call(this,e)}function fu(e){this.config.exit.autolinkProtocol.call(this,e)}function mu(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gu(e){this.config.exit.autolinkEmail.call(this,e)}function bu(e){this.exit(e)}function vu(e){!function(e,t,r){const n=Da((r||{}).ignore||[]),i=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 n=-1;for(;++n<r.length;){const e=r[n];t.push([uu(e[0]),du(e[1])])}return t}(t);let a=-1;for(;++a<i.length;)Ma(e,"text",o);function o(e,t){let r,o=-1;for(;++o<t.length;){const e=t[o],i=r?r.children:void 0;if(n(e,i?i.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=i[a][0],o=i[a][1];let s=0;const l=r.children.indexOf(e);let c=!1,u=[];n.lastIndex=0;let d=n.exec(e.value);for(;d;){const r=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?n.lastIndex=r+1:(s!==r&&u.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=r+d[0].length,c=!0),!n.global)break;d=n.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),r.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Au],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Su]],{ignore:["link","linkReference"]})}function Au(e,t,r,n,i){let a="";if(!yu(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=cu(e,"(");let a=cu(e,")");for(;-1!==n&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Su(e,t,r,n){return!(!yu(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function yu(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Qn(r)||zn(r))&&(!t||47!==r)}function Eu(){this.buffer()}function Tu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cu(){this.buffer()}function Uu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ru(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Nu(e){this.exit(e)}function ku(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Fu(e){this.exit(e)}function wu(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Wu(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,r,n,i){const a=n.createTracker(i);let o=a.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),t?Ou:xu))),s(),o},footnoteReference:wu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function xu(e,t,r){return 0===t?e:Ou(e,0,r)}function Ou(e,t,r){return(r?"":" ")+e}wu.peek=function(){return"["};const Ku=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Iu(e){this.enter({type:"delete",children:[]},e)}function Du(e){this.exit(e)}function Lu(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let o=i.move("~~");return o+=r.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Pu(e){return e.length}function Bu(e){return null==e?"":String(e)}function Xu(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 Mu(e,t,r){return">"+(r?"":" ")+e}function ju(e,t){return Gu(e,t.inConstruct,!0)&&!Gu(e,t.notInConstruct,!1)}function Gu(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Hu(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&ju(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Zu(e,t,r){return(r?"":" ")+e}function Yu(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qu(e,t,r){const n=ni(e),i=ni(t);return void 0===n?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===n?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Ju(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),a=r.enter("emphasis"),o=r.createTracker(n),s=o.move(i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Qu(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=zu(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Qu(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+zu(d));const q=o.move(i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+q}function _u(e){return e.value||""}function $u(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function ed(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const c=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function td(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=r.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function rd(e,t){const r=Cn(e);return Boolean(!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))}function nd(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.createTracker(n);let s,l;if(rd(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=o.move("<");return n+=o.move(r.containerPhrasing(e,{before:n,after:">",...o.current()})),n+=o.move(">"),s(),r.stack=t,n}s=r.enter("link"),l=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(r.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function id(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ad(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 od(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}Lu.peek=function(){return"~"},Ju.peek=function(e,t,r){return r.options.emphasis||"*"},_u.peek=function(){return"<"},$u.peek=function(){return"!"},ed.peek=function(){return"!"},td.peek=function(){return"`"},nd.peek=function(e,t,r){return rd(e,r)?"<":"["},id.peek=function(){return"["};const sd=Da(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ld(e,t,r,n){const i=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),a=r.enter("strong"),o=r.createTracker(n),s=o.move(i+i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Qu(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=zu(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Qu(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+zu(d));const q=o.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+q}ld.peek=function(e,t,r){return r.options.strong||"*"};const cd={blockquote:function(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const o=r.indentLines(r.containerFlow(e,a.current()),Mu);return i(),o},break:Hu,code:function(e,t,r,n){const i=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),a=e.value||"",o="`"===i?"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(a,Zu);return e(),t}const s=r.createTracker(n),l=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++a>o&&(o=a):a=1,i=n+t.length,n=r.indexOf(t,i);return o}(a,i)+1,3)),c=r.enter("codeFenced");let u=s.move(l);if(e.lang){const t=r.enter(`codeFencedLang${o}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u},definition:function(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c},emphasis:Ju,hardBreak:Hu,heading:function(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(function(e,t){let r=!1;return ja(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Xa}),Boolean((!e.depth||e.depth<3)&&Cn(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=r.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=r.enter("headingAtx"),l=r.enter("phrasing");a.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=zu(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),l(),s(),c},html:_u,image:$u,imageReference:ed,inlineCode:td,link:nd,linkReference:id,list:function(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let o=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):ad(r);const s=e.ordered?"."===o?")":".":function(e){const t=ad(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 l=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!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]||(l=!0),od(r)===o&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const c=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=a,i(),c},listItem:function(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"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}(r);let a=r.bulletCurrent||ad(r);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=r.createTracker(n);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),function(e,t,r){return t?(r?"":" ".repeat(o))+e:(r?a:a+" ".repeat(o-a.length))+e});return l(),c},paragraph:function(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),o=r.containerPhrasing(e,n);return a(),i(),o},root:function(e,t,r,n){return(e.children.some(function(e){return sd(e)})?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:ld,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(od(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?n.slice(0,-1):n}};function ud(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 dd(e){this.exit(e),this.data.inTable=void 0}function pd(e){this.enter({type:"tableRow",children:[]},e)}function qd(e){this.exit(e)}function hd(e){this.enter({type:"tableCell",children:[]},e)}function Vd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,fd));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function fd(e,t){return"|"===t?t:e}function md(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=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 n=cd.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<n.length;)a[i]=l(n[i],t,r);return o(),a}(e,r,n),e.align)},tableCell:o,tableRow:function(e,t,r,n){const i=s([l(e,r,n)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,r,n){const i=r.enter("tableCell"),o=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Pu,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],n=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const o=Bu(e[u][a]);if(!1!==r.alignDelimiters){const e=i(o);n[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=n}let d=-1;if("object"==typeof n&&"length"in n)for(;++d<c;)a[d]=Xu(n[d]);else{const e=Xu(n);for(;++d<c;)a[d]=e}d=-1;const p=[],q=[];for(;++d<c;){const e=a[d];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,l[d]-t.length-n.length);const o=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=t.length+i+n.length,i>l[d]&&(l[d]=i),q[d]=i),p[d]=o}o.splice(1,0,p),s.splice(1,0,q),u=-1;const h=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const n=[];for(;++d<c;){const i=e[d]||"";let o="",s="";if(!1!==r.alignDelimiters){const e=l[d]-(t[d]||0),r=a[d];114===r?o=" ".repeat(e):99===r?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===r.delimiterStart||d||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!d||n.push(" "),!1!==r.alignDelimiters&&n.push(o),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&d===c-1||n.push("|")}h.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function l(e,t,r){const n=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<n.length;)a[i]=o(n[i],0,t,r);return s(),a}}function gd(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function bd(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,a=-1;for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function vd(e,t,r,n){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(o);let l=cd.listItem(e,t,r,{...n,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const Ad={tokenize:function(e,t,r){let n=0;return function t(a){return(87===a||119===a)&&n<3?(n++,e.consume(a),t):46===a&&3===n?(e.consume(a),i):r(a)};function i(e){return null===e?r(e):t(e)}},partial:!0},Sd={tokenize:function(e,t,r){let n,i,a;return o;function o(t){return 46===t||95===t?e.check(Ed,l,s)(t):null===t||Zn(t)||Qn(t)||45!==t&&zn(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),o}function l(e){return i||n||!a?r(e):t(e)}},partial:!0},yd={tokenize:function(e,t){let r=0,n=0;return i;function i(o){return 40===o?(r++,e.consume(o),i):41===o&&n<r?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(Ed,t,a)(o):null===o||Zn(o)||Qn(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&n++,e.consume(t),i}},partial:!0},Ed={tokenize:function(e,t,r){return n;function n(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),n):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||Zn(o)||Qn(o)?t(o):r(o)}function i(e){return null===e||40===e||91===e||Zn(e)||Qn(e)?t(e):n(e)}function a(e){return Ln(e)?o(e):r(e)}function o(t){return 59===t?(e.consume(t),n):Ln(t)?(e.consume(t),o):r(t)}},partial:!0},Td={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Pn(e)?r(e):t(e)}},partial:!0},Cd={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){return 87!==t&&119!==t||!Fd.call(n,n.previous)||Od(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ad,e.attempt(Sd,e.attempt(yd,i),r),r)(t))};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Fd},Ud={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!wd.call(n,n.previous)||Od(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(Ln(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):r(t)}function l(t){return null===t||Xn(t)||Zn(t)||Qn(t)||zn(t)?r(t):e.attempt(Sd,e.attempt(yd,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:wd},Rd={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let i,a;return function(t){return xd(t)&&Wd.call(n,n.previous)&&!Od(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):r(t)};function o(t){return xd(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Td,c,l)(t):45===t||95===t||Pn(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&Ln(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):r(o)}},previous:Wd},Nd={};let kd=48;for(;kd<123;)Nd[kd]=Rd,kd++,58===kd?kd=65:91===kd&&(kd=97);function Fd(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Zn(e)}function wd(e){return!Ln(e)}function Wd(e){return!(47===e||xd(e))}function xd(e){return 43===e||45===e||46===e||95===e||Pn(e)}function Od(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Nd[43]=Rd,Nd[45]=Rd,Nd[46]=Rd,Nd[95]=Rd,Nd[72]=[Rd,Ud],Nd[104]=[Rd,Ud],Nd[87]=[Rd,Cd],Nd[119]=[Rd,Cd];const Kd={tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Id(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=Dn(n.sliceSerialize({start:o.end,end:n.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):r(i)}}function Dd(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ld(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||Zn(s))return r(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(Dn(n.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return Zn(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function Pd(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(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(s>999||93===t&&!o||null===t||91===t||Zn(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Zn(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),$n(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Bd(e,t,r){return e.check(li,t,e.attempt(Kd,t,r))}function Xd(e){e.exit("gfmFootnoteDefinition")}function Md(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=ni(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const c=e.exit("strikethroughSequenceTemporary"),u=ni(a);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&Fn(o,o.length,0,ii(s,e.slice(n+1,r),t)),Fn(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Fn(e,n-1,r-n+3,o),r=n+o.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}class jd{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let i=0;if(0!==r||0!==n.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=r,void e.map[i][2].push(...n);i+=1}e.map.push([t,r,n])}}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)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.slice()),e.length=0;let n=r.pop();for(;n;){for(const t of n)e.push(t);n=r.pop()}this.map.length=0}}function Gd(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}function Hd(e,t,r){const n=this;let i,a=0,o=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?n.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?v:s;return a===v&&n.parser.lazy[n.now().line]?r(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?r(t):Hn(t)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):Yn(t)?$n(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Zn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),i=!1,Yn(t)?$n(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),q):b(t)}function q(t){return Yn(t)?$n(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),V):45===t?(o+=1,V(t)):null===t||Hn(t)?g(t):b(t)}function V(t){return 45===t?(e.enter("tableDelimiterFiller"),f(t)):b(t)}function f(t){return 45===t?(e.consume(t),f):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(t))}function m(t){return Yn(t)?$n(e,g,"whitespace")(t):g(t)}function g(r){return 124===r?p(r):(null===r||Hn(r))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):b(r)}function b(e){return r(e)}function v(t){return e.enter("tableRow"),A(t)}function A(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),A):null===r||Hn(r)?(e.exit("tableRow"),t(r)):Yn(r)?$n(e,A,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||Zn(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?y:S)}function y(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function Zd(e,t){let r,n,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new jd;for(;++a<e.length;){const q=e[a],h=q[1];"enter"===q[0]?"tableHead"===h.type?(u=!1,0!==d&&(zd(p,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",r,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",n,t]])),s="tableDelimiterRow"===h.type?2:n?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=Yd(p,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Yd(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===h.type?(u=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(c[0]=c[1],i=Yd(p,t,l,s,a,i)):0!==c[1]&&(i=Yd(p,t,c,s,a,i)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=a)}for(0!==d&&zd(p,t,d,r,n),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Gd(t.events,a))}return e}function Yd(e,t,r,n,i,a){const o=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(a.end=Object.assign({},Qd(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const s=Qd(t.events,r[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",a,t]]),0!==r[2]){const i=Qd(t.events,r[2]),a=Qd(t.events,r[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(r[2],0,[["enter",o,t]]),2!==n){const n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},Qd(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function zd(e,t,r,n,i){const a=[],o=Qd(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function Qd(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const Jd={name:"tasklistCheck",tokenize:function(e,t,r){const n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):r(t)};function i(t){return Zn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(n){return Hn(n)?t(n):Yn(n)?e.check({tokenize:_d},t,r)(n):r(n)}}};function _d(e,t,r){return $n(e,function(e){return null===e?r(e):t(e)},"whitespace")}const $d={};function ep(e){const t=e||$d,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return xn([{text:Nd},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Pd,continuation:{tokenize:Bd},exit:Xd}},text:{91:{name:"gfmFootnoteCall",tokenize:Ld},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Id,resolveTo:Dd}}},Md(e),{flow:{null:{name:"table",tokenize:Hd,resolveAll:Zd}}},{text:{91:Jd}}])}(t)),i.push([{transforms:[vu],enter:{literalAutolink:hu,literalAutolinkEmail:Vu,literalAutolinkHttp:Vu,literalAutolinkWww:Vu},exit:{literalAutolink:bu,literalAutolinkEmail:gu,literalAutolinkHttp:fu,literalAutolinkWww:mu}},{enter:{gfmFootnoteCallString:Eu,gfmFootnoteCall:Tu,gfmFootnoteDefinitionLabelString:Cu,gfmFootnoteDefinition:Uu},exit:{gfmFootnoteCallString:Ru,gfmFootnoteCall:Nu,gfmFootnoteDefinitionLabelString:ku,gfmFootnoteDefinition:Fu}},{canContainEols:["delete"],enter:{strikethrough:Iu},exit:{strikethrough:Du}},{enter:{table:ud,tableData:hd,tableHeader:hd,tableRow:pd},exit:{codeText:Vd,table:dd,tableData:qd,tableHeader:qd,tableRow:qd}},{exit:{taskListCheckValueChecked:gd,taskListCheckValueUnchecked:gd,paragraph:bd}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:qu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:qu},{character:":",before:"[ps]",after:"\\/",inConstruct:pu,notInConstruct:qu}]},Wu(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ku}],handlers:{delete:Lu}},md(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vd}}]}}(t))}const tp=({children:e})=>v.jsx("div",{className:"myReactMarkdown",children:v.jsx(Po,{rehypePlugins:[lu,ep],children:e})}),rp=e=>{var n;const{knowledgeId:i,content:a,contentEditable:o,editCallBack:s,resetContentCallback:l,aiCreateContentCallback:c,aiCreateContent:u,createAiContenting:d,swapContentCallback:p,insertContentCallback:q,textSelectionEnable:h=!1,textAiConsultCallback:V,textAiConsulting:f,textAiConsultAnswer:m,contentMaxLength:g=1e3}=e,[b,A]=t.useState(!1),[S,y]=t.useState(a),[E,T]=t.useState(!1),[C,U]=t.useState(!1),[R,N]=t.useState("plain"),[F,w]=t.useState(""),[W,O]=t.useState(""),[K,D]=t.useState(null),[L,P]=t.useState(!1),[M,j]=t.useState({x:0,y:0}),[Z,Y]=t.useState(!1),[z,Q]=t.useState(""),[J,_]=t.useState(!1),te=t.useRef(null),re=t.useRef(null);t.useEffect(()=>{y(a)},[a]);const ne=t.useMemo(()=>a?a.replace(/#{1,6}\s+/g,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^\s*[-*+]\s+/gm,"").replace(/^\s*\d+\.\s+/gm,""):"",[a]);t.useEffect(()=>{if(!h||!te.current)return;const e=()=>{var e,t;const r=window.getSelection();if(r&&""!==r.toString().trim()){const n=r.getRangeAt(0),i=n.getBoundingClientRect(),a=null==(e=te.current)?void 0:e.getBoundingClientRect();if(a&&(null==(t=te.current)?void 0:t.contains(n.commonAncestorContainer))){const e=r.toString().trim();O(e),D({range:n,startContainer:n.startContainer,endContainer:n.endContainer,startOffset:n.startOffset,endOffset:n.endOffset});const t=i.left-a.left,o=i.top-a.top-50;let s=t;const l=220;s<0&&(s=0),s+l>a.width&&(s=a.width-l),j({x:s,y:o}),L||Z||J||P(!0)}}else Z||J||P(!1)},t=e=>{const t=document.querySelector(".selectionPopup");t&&t.contains(e.target)||te.current&&!te.current.contains(e.target)&&(P(!1),Y(!1),_(!1))};return document.addEventListener("mouseup",e),document.addEventListener("click",t),()=>{document.removeEventListener("mouseup",e),document.removeEventListener("click",t)}},[L,Z,J,h]),t.useEffect(()=>{W&&(P(!0),Y(!1),_(!1))},[W]),t.useEffect(()=>{L||Q("")},[L]);const ie=e=>{if(e.stopPropagation(),K&&te.current){try{const{startContainer:e,startOffset:t,endContainer:n,endOffset:o}=K,l=((e,t,r,n,i)=>{var o,s;try{const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null,u="",d=[];for(;c=l.nextNode();){const e=c.textContent||"";e.trim()&&(d.push({node:c,start:u.length,end:u.length+e.length}),u+=e)}let p=-1,q=-1;for(const e of d)e.node===t&&(p=e.start+Math.min(r,(null==(o=e.node.textContent)?void 0:o.length)||0)),e.node===n&&(q=e.start+Math.min(i,(null==(s=e.node.textContent)?void 0:s.length)||0));if(-1!==p&&-1!==q&&p<q){const e=u.substring(p,q),t=((e,t,r)=>{if(!t.trim())return-1;const n=[];let i=-1;const a=t.replace(/\s+/g," ").trim().toLowerCase(),o=e.toLowerCase();let s=0;for(;-1!==(i=o.indexOf(a,s));)n.push(i),s=i+1;if(0===n.length)return o.indexOf(a.substring(0,Math.min(20,a.length)));if(1===n.length)return n[0];const l=Math.floor(r*e.length);let c=n[0],u=Math.abs(n[0]-l);for(let d=1;d<n.length;d++){const e=Math.abs(n[d]-l);e<u&&(u=e,c=n[d])}return c})(a,e,p/u.length);if(-1!==t)return{startIndex:t,endIndex:t+e.length,selectedText:e}}}catch(l){}return null})(te.current,e,t,n,o);if(l){const{startIndex:e,endIndex:t,selectedText:n}=l,a=S.substring(e,t);if("</span>"===S.substring(t,t+7))return void r.message.warning("已高亮,无需重复操作");const o=`<span style="color: #1677ff;">${a}</span>`,c=S.substring(0,e)+o+S.substring(t);return null==s||s({id:i,content:c,showTip:!1}),void P(!1)}}catch(t){}const e=K.range.toString().trim();if(!e)return;const n=e.replace(/\s+/g," ").trim(),o=n.toLowerCase(),l=te.current;l.scrollTop,l.clientHeight;let c=-1,u=0;for(;-1!==u;)if(u=ne.toLowerCase().indexOf(o,u),-1!==u){c=u;break}if(-1!==c){let e=-1,t=Math.min(50,S.length-c);for(let r=Math.max(0,c-10);r<S.length;r++){const n=S.substring(r,r+t).toLowerCase();if(n.includes(o)){e=r+n.indexOf(o);break}}if(-1!==e){const t=`<span style="color: #1677ff;">${S.substring(e,e+n.length)}</span>`,r=S.substring(0,e)+t+S.substring(e+n.length);return null==s||s({id:i,content:r,showTip:!1}),void P(!1)}}r.message.warning("特殊语法无法高亮")}},ae=()=>{Q(""),null==V||V(W,z),_(!0),Y(!1)},oe=[{label:"通俗版",key:"plain",onClick:()=>{T(!0),null==c||c("通俗版"),N("plain"),U(!1)}},{label:"学术版",key:"academic",onClick:()=>{T(!0),null==c||c("学术版"),N("academic"),U(!1)}},{label:"类比版",key:"analogy",onClick:()=>{T(!0),null==c||c("类比版"),N("analogy"),U(!1)}},{label:"面试版",key:"interview",onClick:()=>{T(!0),U(!1),null==c||c("面试版"),N("interview")}},{label:"自定义",key:"custom",onClick:()=>{N("custom"),T(!1),w(""),U(!0)}}],se=()=>{const e=document.getElementById("knowledgeCard");e&&(e.scrollTop=110)};return v.jsxs("div",{className:"textExplanation",children:[b?v.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:v.jsxs("div",{className:"space-y-4 h-full",children:[v.jsx("textarea",{value:S,onChange:e=>y(e.target.value),className:"h-[calc(100%-100px)] mt-10 bg-white w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent resize-none font-mono text-sm",placeholder:"在此编辑内容,支持Markdown格式...",maxLength:g}),v.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[v.jsx("span",{children:"支持Markdown格式化"}),v.jsxs("span",{children:[(null==S?void 0:S.length)||0,"/",g]})]})]})}):v.jsxs("div",{className:"md",children:[C&&v.jsx("div",{className:"customInputArea",children:v.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用鲁迅的风格解释、针对后端开发者解释...",value:F,onChange:e=>w(e.target.value),enterButton:"优化",onSearch:()=>{T(!0),null==c||c(`${F}`),U(!1)}})}),v.jsxs("div",{ref:te,className:"mdContent",children:[v.jsx(tp,{children:a}),L&&v.jsxs("div",{ref:re,className:"selectionPopup",style:{left:`${M.x}px`,top:`${M.y}px`},children:[!Z&&!J&&v.jsxs("div",{className:"popupButtons",children:[v.jsxs("button",{onClick:e=>ie(e),className:"popupButton",children:[v.jsx(I,{className:"w-4 h-4"})," 高亮"]}),v.jsxs("button",{onClick:e=>(e=>{e.stopPropagation(),Y(!0)})(e),className:"popupButton",children:[v.jsx(B,{className:"w-4 h-4"})," 向AI提问"]})]}),(Z||J)&&v.jsx("div",{className:"popupClose",children:v.jsx("div",{onClick:()=>P(!1),className:"closeBtn",children:v.jsx(ee,{className:"w-4 h-4"})})}),Z&&v.jsxs("div",{className:"aiQuestionInput",children:[v.jsx(r.Input,{placeholder:"输入你的问题...",value:z,onChange:e=>Q(e.target.value),onPressEnter:ae}),v.jsx(r.Button,{type:"primary",onClick:e=>{e.stopPropagation(),ae()},disabled:f,children:"发送"})]}),J&&v.jsxs("div",{className:"aiAnswer",children:[v.jsx("div",{className:"aiAnswerContent",children:v.jsx(tp,{children:m})}),v.jsxs("div",{className:"aiAnswerActions",children:[v.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(m),r.message.success("复制成功")},className:"aiAnswerActionButton "+(f?"disabledBtn":""),disabled:f,children:[v.jsx(x,{className:"w-4 h-4"})," 复制"]}),v.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),null==q||q(m),P(!1)},className:"aiAnswerActionButton "+(f?"disabledBtn":""),disabled:f,children:[v.jsx(Vt,{className:"w-4 h-4"})," 放到最下方"]})]})]})]})]}),E&&v.jsxs("div",{className:"createArea",children:[v.jsxs("div",{className:"top",children:[v.jsxs("div",{className:"titleArea",children:[v.jsx(k,{}),v.jsx("div",{className:"title",children:"AI优化建议"}),v.jsxs("div",{className:"type",children:["[",null==(n=oe.find(e=>e.key===R))?void 0:n.label,"]"]})]}),v.jsx("div",{className:"close",onClick:()=>T(!1),children:v.jsx(ee,{})})]}),v.jsx("div",{className:"content",children:v.jsx(tp,{children:u})}),v.jsxs("div",{className:"bottom",children:[v.jsx(r.Button,{onClick:()=>{se(),T(!1),null==p||p(u)},type:"primary",icon:v.jsx(Ut,{}),disabled:!0===d,children:"替换原文"}),v.jsx(r.Button,{onClick:()=>{se(),T(!1),null==q||q(u)},type:"primary",icon:v.jsx(Vt,{}),disabled:!0===d,children:"插入下方"})]})]})]}),o&&v.jsxs("div",{className:"editArea tailwind-scoped",children:[s&&!b&&v.jsx("button",{onClick:()=>A(!0),className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx(X,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!b&&v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(a),r.message.success("复制成功")},className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx(x,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!b&&v.jsx(r.Dropdown,{menu:{items:oe},children:v.jsx("button",{className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx($,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})})}),b&&l&&v.jsx(r.Tooltip,{title:"恢复原文",children:v.jsx("button",{onClick:()=>{r.Modal.confirm({title:"确认恢复原文吗?",okText:"确认",okType:"danger",onOk:()=>{null==l||l(),A(!1)}})},className:"p-2 hover:bg-blue-50 rounded-lg transition-colors group",children:v.jsx(G,{className:"w-5 h-5 text-blue-600"})})}),b&&v.jsx("button",{onClick:()=>{null==s||s({content:S,id:i}),A(!1)},className:"p-2 hover:bg-green-50 rounded-lg transition-colors group",title:"保存",children:v.jsx(H,{className:"w-5 h-5 text-green-600"})}),b&&v.jsx("div",{className:"tailwind-scoped",children:v.jsx("button",{onClick:()=>A(!1),className:"p-2 hover:bg-red-50 rounded-lg transition-colors group",title:"取消",children:v.jsx(ee,{className:"w-5 h-5 text-red-600"})})})]})]})},np=({htmlContent:e})=>{const r=t.useRef(null);return v.jsx("iframe",{ref:r,srcDoc:e,style:{width:"100%",border:"none",minHeight:"calc(100vh - 300px)",display:"block"},sandbox:"allow-scripts",title:"isolated-content"})},ip="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAQAElEQVR4Aex9CZwcR3X+q+65Z+9De6/20Gol2ZJsScZYtoll4wNzhACGEEPA3BgI8DMBQsIfQ+CPTYjDaa4ATgIEX+EI2JKswxhLNli3LGlX0uq+9r5m556ufDXSrmZnZ3ZndnrOrlbXdnfd76t6X72q6mkpJA+JgETAsAhIAjBs00vBJQJEkgBkL5AIGBgBSQAGbnwpurERENJLAhAoSCcRMCgCkgAM2vBSbImAQEASgEBBOomAQRGQBGDQhpdiGxuBSeklAUwiIa8SAQMiIAnAgI0uRZYITCIgCWASCXmVCBgQAUkABmx0KbKxEYiUXhJAJBryXiJgMAQkARiswaW4EoFIBCQBRKIh7yUCBkNAEoDBGlyKa2wEoqWXBBCNiHyWCBgIAUkABmpsKapEIBoBSQDRiMhniYCBEJAEYKDGlqIaG4FY0ksCiIWK9JMIGAQBSQAGaWgppkQgFgKSAGKhIv0kAgZBQBKAQRpaimlsBOJJLwkgHjLSXyJgAAQkARigkaWIEoF4CEgCiIeM9JcIGAABSQAGaGQporERmE16SQCzoSPDJAIFjoAkgAJvYCmeRGA2BCQBzIaODJMIFDgCkgAKvIGleMZGYC7pJQHMhZAMlwgUMAKSAAq4caVoEoG5EJAEMBdCMlwiUMAISAIo4MaVohkbgUSklwSQCEoyjkSgQBGQBFCgDSvFkggkgoAkgERQknEkAgWKgCSAAm1YKZaxEUhUekkAiSIl40kEChABSQAF2KhSJIlAoghIAkgUKRlPIpABBJ7e8nxnBoqZKkISwBQU8kYikHkE1m9+btXGLds/v2HL9ufhuELKE08991x1KjVJJq0kgGTQknElAikgwDm3dB3uuecP23Z8Zv2m7V+C4m9lzPQiJ76Scf4D1Wxuv/3mtcvvfNWr+lMoJqmkkgCSgktGlggkjsCBA9xysOv4Z55/cc8hMbpv3PqC7/S5vp94ff4HmEKfh+KXQemX3H7z9W+57Zbr/+vVN15zLPHc9YkpCUAfHGUuEoEpBMbHxxfsO3Dk0cHR3aN9A4MPFBc7l1RXVYTDqyoq6Ioli+ja1SuGiNhV2VB6ijgkAUSAIW8lAqkicOzUua8cOnLyGEb5t3a0Ndtqa6ppaHiUGP5dubSDWhc2UJHTQR63+9coayecrmeymUkCSBYxGV8iEAOBoSFP8/6DR4/2HDv9uYryMufi9oV0vm+A3G43iXuh+E6HfTLlnpe7e4oURfnupEe2rpIAsoW8LLdgEBgaG7vh+OkTJ/3BYPuaq5ZRVUUZvXzoKNmsFmpraaIIxQ/L3HPizDMhTVNvvemVPw17ZPGPJIAsgi+Lzn8E+vv7686d7f8j1zi1L2wkxhi9tPsA1dVWU33tghkCnjp7/sGBwaGPKcz0wIzALHhIAsgC6LLIwkAA23rm3oGxZ7xeLy1qaw4LdaCrB/dNVFleGn6O/HPmXP+/nb/Q/yGN8wdvW3ftjsgwPe7nk4ckgPmgJtNIBIDAwe5j33a7PVcsaluIJ6KTp8+Rw26j8tISij76BoZ+evb8+XcQ8c+95pbr748Oz9azJIBsIS/LzXsExicmXl9WVhyW48zZC+TCgp9Y7At7RPyByf+vx0+euZ0Yvxd7/g9HBGX9VhJA1ptAViAfETh05Mx1Lpe7vqzk4mhfWVlOSxa1RonCj3YfPfEdLPq9ljh/++3rrn8iKkLWHyUBZL0JZAXyEQHX+Og/YLuPLBZzuPp2m5VUVe33+vwvXOjvf/pQ97Gf/3nXyzQyOt7GGb3+9luufy4cMU1/5putJID5IifTGRoBj9d3Yxnm+uMu9/bunhNbduw9uOFPO/eZ9u7vaj956px1fMI1gFH/fbfffN1r71i39miugiUJIFdbRtYrZxEYHh4uC4ZCZefOnX/kYPfRtaMj4ydDIf9PHeZQ++23rK3BPP+W29at/cRtN6/9Q84KcalikgAuASEvEoFEEYCpvyAQCAxNeP0nLMxXfNvN173n9nU3PHrjjTcOJ5pHrsSTBJArLSHrkTcIlJSUHGZE+25fd90X161b58p2xVMpXxJAKujJtIZFAOb9ukIQXhJAIbSilEEiME8EJAHMEziZTCJQCAhIAiiEVpQyGBaBVAWXBJAqgjJ9wSKwa9/hjTv3dX+kYAWEYJIAAII8CwOBHfu6l+zcf+Qdu/Z3//uufd2/h3tk5/7DX9u1v2tNshLuOnBkGSfeHmD+J5JNm0/xJQHkU2vJusZFAKP1VmzNHSKufYBrdDoU0v6Fk/aspoXcxJXf7d5/+LVxE8cI4CHtw0TsiVcuX95LBXxIAijgxjWKaBj5v8WJ38SJv3X1is5XrV7Z+cVrrl767OoVSx+5ZuXS+4nzT2sa//nzz3dd/OneHMC8tO9wG6J8VFF4To/+qGPKpySAlCGUGWQTgT17uhsw8n9MKP+aFUsej1WXVSs7/5MUNmZ18tWxwqP9FKa9hxj9z9VXdr4UHVZoz5IACq1FDSZPgGsdQuSQmW8R17iOa2fihkUE7N59EPmx91CIHovwLthbSQAF27TGEMykKIswWh+6dunSwXgSY4qwhBirF9OCeHEm/TWT6duc0+7VV3U+OulXyFdJAIXcugaQLURkwRy/djZRGaP/Txr70WxxRNiu/YcfZsSvUUNazm/9ifrq4SQB6IGizCNrCCghBfN+Vr5zf/fbYlUCuwOvYpzuNFHJN2KFT/rt3HPods75h0NB7c1XX730xKR/oV8lARR6Cxe4fKtWdfQzYo/DbH9nLFE14o9w0j6+cmXtRKxw4fenPx2qJEVZz4juS2SaINIUipMEUCgtmaAcjz23q/rxZ3bf9OtNB5YlmCTno3EKPQgz/9pde7u/HlnZHfu6/pmR9iC2A38Q6R95/9Le7r812ZUBKP9Tq1Z0PhQZZoR7SQBGaOUIGZlP+TwjZWuQBw8IIqAcPHYl+ebe6hVLdzJFeS8W+u7Yua/7uZ07u1bA9P85I9aLsJjKv2vfkesQ91GFse8RsQ9B+ZN6UYiyeOhZtCQAPdHMg7wYKctp8tDoJsrJgz0M5Qzs2t/9Hy/tO/zqRKq46oqO32omy60a17aQmT3NuVbLiUPJD//bzr1df797X/edO/Z034f73+7Y132Bk7ad8If7g4tWr1gckyQSKTff40gCyPcWLMD6r1re+QpVU67iGjuMDvrPIIMBuF/t3BdW5k/s2Nf9xpf2db9m576uu7Fy/zEsAH5h177DL7OQ/5iqqE1KSLs+pCn3YfEv/CIPZ3QVdgs+oagktgM3chZ6p4WpzatXdr59zZpl5wsQwoRFAr4Jx5UR8wSBY8d6a/KkqnGredVVHQdWr1z8FYzO1/lcg03Y6vsBY+xlIlaGkft1MN0/juvbsPi3ijgrC/HQE0owtHTV8sXvFav4r7h68Z7VK5d8A+k/uWbFkrvXrOi8bdXyzvevXtH5nWuWL3tm+fJFp0keJAmggDpBV8+5NV09vT/rG+z/1YYt2zas37Ttvt8/s/2yyZ+nsq5du9YDZV6/annHj1ev7Lx/zcrO961evviO1SuXvGH1isX3wH3ympVL77/aANt3ejehJAC9Ec1CfoeO9F7XdfTCo4zUlxjR3RQ+2G1MYV83qbRvw5btR0EID2/Yuv2NRFwNB8s/EgEgIAkAIOTr2X2s78bDPb1PKgpth3n81lnkaCdiHyZOv1KZdiNdOhSFL7h0Ky8GRUASQI41/JOb9n79yU37PjBbtTDa33y4p++3mBc/x4neNFvc2cLMLPThDZu39azfvP17Gzdv/6sNGzY4Z4ufaNhjmw4se+KZvb94bOPudyeaRsbLDgKSALKDe8xSn3hmz0NY1LqPc/6Dxzfsvj86Ekz927uP9j6N0X4zJ/766PB5PTPWxhh9CCvl/0PmYteGrds2bti8/VNPb3pxxXzy++WmPYsVLSh+SPN2hSk/lSQwHxRjp0mHrySAdKA63zw52SeTMkX5wiQJHO7pf213z4VNMPXXE6M7JuOk5crZrSjjXxRF24u1g56NW2EdPCusg71zWgePbdjbauLsl0h/5WTdVEW1TN7La+4hIAkgh9rEpJi/DeU5MFklQQJbXzxygpP2OyJ2C2X+aINF8iGuEayDCdf6LdufASn8/fotf1wZXZX/3rC/SVH4o/C/Gi58wrJ4/M2vXvHD8IP8k5MISALIoWZ546uvOGgi01tVVZnaox4cdy/sHRrPiVpih0G8lfc1RuoeEMExuO8/veWFN/1q8452rCf8kohdQ5eOi8q/craFyUsx5SWbCEgCyCb6UWUf6rnwN0tbKx9pr69ssllMU6F9IxOUKyQwVSmiVtx/ENuKTzKuHiXG1uI5fErlD8Og6590ZaakK2OZb+IIdB/r/dvDx/p2KcR+ThhFrWaVmmvKKddJQMPKoU+zUZArNHmYWZCKVPcarB18f/0z2978m988n9CHOCfTy2tmEbjccpktV5YGBLqOXXgv9vH3E6f/wMr/1NwZQZTrJIDtR/JxK5T/8ntFQvltig9GAW/F2sEHmcqesBUrY1g72LR+y7ZPb9y67Sohm3S5g4AkgCy0RVdP74e6e3q7GGf/DkWaWjGPrko6SMDKfKQyjcwsSFYlEF1kQs8csbzhkT+G8iMs+sTawS2M2IOcs90btmw/DveD9VtefPPzz0vrIBqrTD9LAsgg4t3H+j6KffweRvQ9FNsJN+epNwkI5XcoHrIpGKnnLD1GBFTeG4oz8seIHsOrBX4fYKQ9MeFXxjZu2b5p45YXYB38WVoHACbWmU4/SQDpRBd5w7Rn3T0XPglT/yRxLrb52uCd1BmPBEZc3qTy0SOyL2ShIF1eoBSWxLzJBBWCNXELJw7rILgbU4UTG7Zs++GGTdve8tRTL5YgWJ5pRkASQJoAPnDggKXraO+nsbh3log9hI7eTCkcsUggGAqlkOP8knJ2ucukqvzRNYBxsZCIvZ8U9rhq00YxVdi8fuu2zzzzh+3T1kdIHrohcLk1dcvS2Bnt3XvB2XX0wj+arFVnsR32INCog9PljCSBihIHVZXO+XIe6X1Ymf/SGkJg/tOIxCt1M9ZJHtBCtGvjlu2wDl744YatL77lqReldZA4hLPHlAQwOz4Jh/b0DJV29/R+wVbEoPjsy8SoKuHESUQUJNDRWEUNVdmxkDF3p4trCP4kap16VE4E64C/n7j2uOqGdbB525YNm7d/dv3mF1alnnvu5pDumkkCSBHh7u5zVV1H+74cZAGY+nQ/EZXCyTPdCDC2DiT7Vcb4zg1btp9cv3nbjzZu3n7XM8/skPgngb0kgCTAiox68GB/HbbzHiSTghGf/yNxckaGy/uMItDMGHsfZ/SYpvpHNmx9YcuGrds/u1laB3M2giSAOSGaHuHo0cGmQz0XHlKt2lksWn2aiFlIHrmFAOfrQMhfDYatg22nnt22Y+Ofdu//Wm5VMjdqIwkgwXY4fLK3Dfv43wqx6xlhfwAAEABJREFU4CmF2CeRDPqPv/LMaQQUxbSgqrLi1uqquqkfWOV0hSMql4lbJROF5HMZXcf6O2Hqf48HqYc4/1g+y2K0uldVVdDSJe3Wyooy8ge0O40mfyLySgKIg9LBoxeu7O658O+Ma10Y6j8UJ5r0zkEESoqLvIsXtVB97QJSlYtdXOP8jr1HzjTmYHWzWqWL6GS1CrlV+OHjfVcdPtb3iMrYfiL2XpJH3iBgtVjcC5saqGVhow1HRL2xiYgnk2K6Fxd5RiAgCeASGN0956853NP7c67x3Zzzd13ylpe8QEDRamuqqXNxm6O0dOavjzmHDQc5GLF7jxzhVtzm/JmpChqeAA4d7V0LxX+MSPkzxom/yRTwshx9ECgvL6Wlna3KgurKRDIsDSgD0gqIQMqwBNB1cuAzmOP/r8JoGxT/rghM5G0eIOB02D1tLc3U1FBHZrN59hpztPBUDE0SwBQWGPYi7g1ze+z8yFtUVXlAsVpep1hNE8ykEsNiUWQ3MQwYeSaoqpp8jfV11N620F5U5Eis9mD5iIiLDh7rfWfEs6FvDWkBhELaey63OnMyVSFmVkm1molZTEHxTAojxi7HknfZRwAb+uFtvYqK0qQqM80AuJgyp62Ai1XMzF8lM8XkTilHTw2JL/C8Jl6NGGMmYREoZhMRHAMxiGcGQoiXRvqnF4GS4uLQ4o5Wqq2tBi/Pg5WjGYDTKw8c7YvbB9IrTW7lruRWddJfG67wiNF/9vJABsQwNRAWAQMZqDYLl4QwO2Z6hlqtVm9Ls9jWa1Bt1hQW79lM0oCXtALQWIYigK1bt2JYZ/dA7nmd2B5kkYSgYMqggBjCBCEthHlhGisRYyxUV7uAOjtabSUlM7f1YqWZzQ/tFiOYv+5lbP3GCDCUl6EIoGnRCqH8Zbq2MBQ/PEUAESgWM00SArGZo46u5RZoZhUVZbSks12trqrQT8I4q7uMlJyzAijDh6EIgDOWsPk/r3YQOn+JEBSLiRQQAhNrCKpKJMJIHvEQcDodgfa2Zmqsr8XSiyletPn5x8Ee3u/e23VB/Acn88u3AFIZhgC6Tw3diPZ6JVzmTvSw8JTBpITJIEwIYssRhMAYAjNXk5wtyWw2+Rsbaqm9tdnsdCS4rZekNHEMgHAuJhMztBVgGAJQVCbM/3CjZ+0PdD68XgBCwHYjSMFEYnExTBIMgVmrWHYKrqmupM7F7ZaK8jJK5zErsozf29XVlfpCQzoFSGPehiCA7nNjVcR59gkguiGh9ExhFJ4mYMoQJgVhIShoFoVFxy6Y57LSYizwtVFNzTy39ZJEInoXMDI5I+bQrOUfjvTL1n02ykVPy0axmS2ThYLpnfvrJA5jjEhVSBCCEl5UFBaCSgxThkJYQ7DZrIGW5kZqbmogq9WiE2pzZzPbFCCcWiPDTgOUMAAF/ocplHujfyKYM0bh6QGmDGL9QLGCEISFAJIghSWSQ07EURQWqq+tocWLWs0lJUUZr1MCSC080NOXF4OE3uAVPAEcOzv0euK0RG/gspMfIwblF9uOly0EE5HKiDGWnSrNUWplRXl4W6+qqnyOmOkLjv0ewPTygJ4hrYCCJ4AQUeEyO5SewRJQTCYS6wdhh21Hq8NebYLf9C6e2afioiLe3raQGupryKSaMlt4dGkskW7OV3cdu/CG6KSZes5WOYkgk626pVxuz+nRDoz+b0w5ozzJgDFGTFGoqLR8UXPbImpsaaOqBbVUVFxCaoYIwWIxB5ob66i1pZE5HfbcQG62VcCIGoY0420JFjQBaBQq3NE/ouPGu7VYLFRSVkYL6uppIQihqaUVhFBDzuJiUlQ1XrJ5+9csqKIli9vNZWWllFvHnMuA4eoyRreLD8SEHwzyp6AJgBSWn4t/aep8ZosVhFBONXUN1NLeQY0LWy4SQlERqSkQQnlZCfbzsa0HAqBcPFjildKYsXYECpYAjp4Z/lvs/dck3vTGi2mx2i4SQn0jLQQhNDS3UGV1DTmcRaQoc1sIDrst1LqwiZoa68lqseQugDxxBkDMuw/1nFmcSWGyWVbBEgBWfg1t/s+nU1ltNiotL6fahkZqWdRBghAqqhaQUxACu9xVFEUJ1dfV0KL2FrW42DmfojKaBn0hqfI4N87Xgy+3alIQ5Xbk7tMDryBGf5Hbtcz92glCKKuooBpBCB2LQQxNwarKClra2a5WVZbnvgCXa5jYIsCl+JzYvQcOnK649FjQl4IkAJUpcu6fhm7rsFtO1tctSGm9IA3VSiRLLZFIk3EYI7Nqtxri9eCCI4Cu/v5iXsh7/5O9NBvXYHA4G8WmWibnLCkCEOUhQUZeDBJlZdMVHAEoXpOY+1uyCWohlu33+Ujjmj8vZWMa9Jl6k6o75/WHjvd+MKk0eRi54AgA5ps0/9PQEQN+PzGmhNKQddqztJpV37L2mlqm0vXE6J9R4J/h5j4N8COhgiKAY+dGbiPiK+duWRkjWQT8Xh92VUOYXSWbMvvxUekwcS1tqdm+rK3m/4EMrg1opiZi7H0IewI1HIebcSJsxaGe3jfPCCggj4IigJAW+b3/AmqlLIsSCgYpFAqBAJKfS2e56uHiGacwAYQfLv1Z2VF5Zlnbgh9f0V5zFwihhBjdBuvxXyHkgUtRJi9pWwuYLCCb14IhgJ5zQ80A8m1w8tQZAZ/XG86Rc8KgGL7Nrz+MzyCAaAGWtdU8s7St5lPLFtVeyUjp5Jx/HNbkUxD4pkPH+wt2S7lgCEALJf69f5JHUgiIBUCRQNM06IO4yzfH5iSASImWtlcfvmJR7beWtde+tldxOzUKlUWGF9J9wRAAMSYX/9LQMzWY/sFAMA05ZzTL0HxLW9fa6r2itfY3802f6+kKggCOnh0Upr+YAuQ63nlXPx8W/yYrjTWWydt8u86bANIlaK7kWxAEwDUSe/+5gmlB1cOP7b8pgTiW06Ye8upGEkCc5sp7Aug+M7wS5j+2/+JIKL3njYCmaRTw+abS2+3mm6ce8uomuTWAvBItxcrmPQGoRHLun2IniJdcvPwTGca1JH5XG5kw6/dz7wJkvYpZqkBeE8ABzi2c5Op/uvrO5Op/uvLPYL45NQXIoNxzFpXXBGA+Oyzm/sVzSikjzAsB8fZfZELsjUc+5s099i4lAcRprbwmAEZy6y9Ou6bsLUb/aIWPfk65kAxlwGjmm4AZKjrni8lrAlA4/yJx+i4xOp7zSOdZBf0+f57VeLbqykXAeOjkNQG0N1U81dFU8dGOhoo2RVGuIca+AEH/BCfPFBEIRKz+T2alwZaevM+va+4sAuYabnlNAJFgtteX7ehoKP9SR2PFKyuKzHc5rOrvbGZ1AOZfZDR5nwACwYA//OOfGVF53jKA/D7EjMa86FEQBDAxMVHn8Xj+xuvx/NDjdh9xWNTHK5zm11UVm6vqy21UWWQhp81EqsIuSi3/zoqAv6DMfyKTqqxyu93b3W73V10u1x07duwwzwqAgQKVfJV1fHx8ART/A1D63yuMHSfOf45FqvdDnkVwUyeDztstCpU7TFRXZqVijAVMC5LKpqLImygE4hGAlq9zAHQCNPd1cJ9VFeXpK5Yt6/F4PD/xuFx3gxBqosQ31GPeEQCU/g1ovB+bVPUQFP8HUPo70WJWuIROofj9fYPUe76XXCMjpMHcVShvTduEZE4mkvjdfzAQiJ0EGhQ7ILd9Y1S7CQPGPaQoP0M/6nFPTPzG63Z/zOfzLU2nJLmYd14QAJR+DZT+K3AHoPS/QeO9B2Cm/Nlmr9dHQ4PD1Hehj4b6+ingdZOC9SIMGMjemGf03n8kCpqmRT7mz/0saxcYQJyMsTdgCPiWFgodxBTyj+hv98NdnT8Czr+mOU0AXq/3VjTIz6D0L0HpPwe3bP6izp5SdO7RkXHq6x2gflgHHtc4UTBI6QIIHY98nonZK5WFUL/v4sc/YhYNLYnpX1ieN6C/fQFuFwacjVg3+ChcU2GJeFmadPXvyyXM487ndr/VMzHxFNe0jUh+N1zGzwmXmwYGBqnvQi+NDQ1REIqhkH4jYCgYIIZ/GRdslgI1zPED/kD8GCx+UC6HsPnWm/NbkfTbjLEut9v933B/fe7cOUcuy5ps3XKKAMC492DEfwFq9igx9ppkhUlXfD+UYmR4FGTQT0P9/eRzY+TWQikVJ76zp2Tov+xOtKKzjv7IRBAELnl3coIap1Jrzh3I4a/h/rusrEyQwbcDbvf1yWSZq3FzggAw31qNhZgnYOL/BEC9Ei5nTy2k0fiYiwb6BmgA1oFrdBQLiWLU5EnVWQsFSc05Arj8099YwohpSyx/I/mBBJrgPhoket7rdv8W1qr4GE3eQpBVAhD7sRj1P4/51h9hZuXd55cZekIg4CPX+AimCQNw/TQxOkIE5Z6tR2BqQxrXiLGswj+timKdLOCbnQA0EWlaKmM/gPJfrxH9EkSwC+4+EGRtviGStR6IUf8vsR/7HEb9LwE0O1xenYrCyGxSUH0iv1+LcH4aHR6m4f4B8ky4iMcggwC2Hk0mc07JK5R/Lv0G3+VUnROtjCDqROPOJx6I4Gq4r3s9nn0ggn/z+/2r55NPNtJkhQB8Hs/nFMZ+DYFz2txH/WKejBiZTIwCmA5oUf9XRgjPYmAX++kT4xM02D9Ig719NDYyQiE/Rlj0lAAWFC223OI8v6hbTGkve85FEJdj5tody1SFqtG8n8D6zg7PxMRPsGgYXifIVOHzKSejBAATqQqLfP8FU/Ir86lszqRhnMSCGKz4hKoEuUnsrw8PjWARsQ+7iyEKwNzmiWaQUCmpRRL1mysHtNtcUWT4JAKM3QPaeR4k8AuPy3XLpHeuXTNGAJjr34iRfz0AeAdcwZ5i9J9tpFRVWA7+ICyCMVgG/TQ8MEAT4+NYNsCyUpZQCWJKoiXwkg+fTbAs1T2RYhk0MZF4c8Xx+pJvIxT9dlKUTZgaPOn1esVbq3MVk9HwjBAAWPAuTJbXwzzKm7nRXK3AGMNEYGYsVVVgHcz0Fz5mM8KilCgUDGGtwA0iwFShr5/GR0YpGP4xDtASiTLgfN7EfvvPtczVSU+xeQLklkh5h0+N0tAopnERkXuHPBFP8W+B3JtQj99DFx7HFuLa+DEzG5J2AoDAdzGixyBWwbxAIXRYjIYKRnPINXWKhUEFwoawNjDleenGBOUXaUJBdIVLftEXdBDyeb00gkXEgQt94cVEr8dNPMV3DqLLiX7GolW0V+xnyBY7wBi+gaBGXSeGaf/RITp1wUV/ermXBoZnJ4BoZADhW2BHbINefBNWcUt0eKaf00oAEHJS+TMtV9rLC0KRhTkfSQImEEIQi4CRhQtSECM/I04iTWTYXPcBWAKu0XEa7BugkcEhco+7dJ8qhIJBCsX78U9UBQXxRXnlxSOLaaslX3V/IBROND7hpzO9aIuotg4HJviHEf0dcf4CdOQzGBgsCSbTPVraCACCFazyT7aCP6CFu5bZzEiQgVgkQ2dG4d8AABAASURBVMOGdwhMGPEtFgXTP0YhdJRAIP7ITwkcQSipe2IiPFUYwlTBNTpGfiwkEoglgeRxo/i8003auBERgI5KjAkJ8ZAnp6iuCdu1elTXbFJnZBOMYe3NiBTfoxZoPoC1MUEEb4ofLX0haSGAsbGxxWC3h9NX7RzJGTqtYV6MExXCGI8bMUqG/aD04v2AIMxG8YwIup0a5rRej4fGhkdooLcfC4oj5HV7SEwhki0kEPk//ySQeD5lJJBtWqKoikJFdivFUtz5FGizziSACU+QvL6LlsF88hRp0I1WgQiexKD5XZfLldGXidJCAGZV/RRjrEoIl4+OoTVwzlp1Mdc3YeQ3Y6QXg3AIIwFOLAByOIJDs86ag06BYByxhecaw64CLAMxVcC2E4Vg2s9VghYKUdIEIMCZK+McCBdKX2Q3kyoaSqf61FTEfnfj5IXxmCUk64k+d6+qKH+ARZCxH8DpTgBer/cO2IniyzzJyp9T8cMmPJRbmPFmoegwI024WoSDaa/iWbwEJEb5EEb7XKm8mCpMuC5NFfoHwluMfqwlxKpfssofziNDvBYua55/bFYzOW1mdEOoFOl3VJfbqbLMRtHH4IiXjp/ThwSQ92JMJX/mmZj46cjISDme03rqTgCYJ34qrTXOQOYYVCmA+b2Y408quJjribd6/Vj8E34iHJZ4Bmoz/yLECO+ZcGOqMEzibcTxEUwVMHWYNON94TWE5PLHRCe5BBmMLYwTofg280xTXa9qdC4so/oFzhnZne+foL2HBygkzMAZofPwYOzdFrP52YmJibRunSvzqFrcJNjWeBdxnrNvPcWt+BwBQtEFKYDcSJj7c0TPyWBRd7HgJxYPBzFVGB0aJjF1SLaynPQdVZMtP158FdpfZLPoNt+PV47wb6krppWLK8NEUFFqJZvVRArKD8ES7DoxQr2DbhEtZccYW4F8d2Bt4K6UM4uTga4EgE6Wd7/oi4NLwXvPy/wXqAgmFNcccuH5vsNCqqprd55VQqfdTIIIlrSU06olVfTKFTW0amk1XdFeQTWVDiIdD1DuYyCBz+iY5VRWuiHm9/tXoqKvn8pZ3hQkAiD5nJLLajGlZb6fU0KiMozoAUwH3oBbXU/dCCAUCsnRX9emyc3MeA5VywHT2w4CyKEqpbUqmA78BtPsG/QsRDcCAENJAtCzZXI1rxyYAmCrjIrtFrKYTbmKUvrqxfmTLpdrpV4F6EIAWE1eAdNwmV6VkvnkLgLZtgDMmOcXQfnTPt/XxGfe5tcOaU61QFXV70DfbHqUowsBaIGAboykh1AyjzQikMVvGFiwveeE8jOYm+mSUA2OkcXVRZaJw2R2dRMLJfdjn3TVa1q+nN/g83gemOY3zwddCIAriiH+E4V5YlxgydKofbMgZbeZyWE1UzoO5usnpvlI9ZwOO+IXX+1lPEiqvy8dRaacJyyxj/s9nnemmpEuBIAukTef9ipy2uiqZQups62OqiuKwz/WSRVEI6XXMiysguG+CMpvNan6lxx0kzK8D25/eLQXo390IUrQRWpwJNp76nnyp8FDo14SvwsQ7wJMBab5JkR0a6pF6EIAqMR1cHl12m0WaqitoBVLmml5ZxM11lWS027NKxmyUtkMLgKK/f1ih5VMaVB+xXWclP7txCZOEwU9pPnG4sKpeM4Tu2QVREea/GmweAFIvAl4YXAiOkranrmmpTz11oUAYAEMp03KDGSsYmGpqryIOlprw9ZBR0sNVZYXE2OQjOQxDQHYntOe0/RgFfN9jPzpaALFdZLYyEHM7yN+Cu0fJx6MeI6Qi5FGqq83wufirdsbvHgT8dds0kWlInKMf8sYWxE/NLEQXWrLidJKAIPDY9Tdc4p27e+mF3a+TNtf2k9dR09S38Aw+eL80CUx8WPHcjps1FRXQSuXNtMVixupoaac7Gmaf8auQS77orXTXD2b2N9PE94q5vsmwihtmv7LPo7FTe6fxQoIDIMwXNMkP9uHfKb5EJnNGd2aPBVVfNKPStIpYiTAODkcwztprxNnLpBwA4MjJJxQ+ude3ENHjp0mm81KbQub6Kpli+mq5Z1UXFwUJoCX9nbRDjgRxzXhSbrMuRKYYX5WV5ZQZ3t9mBDaFtZQWalzrmQFG57OGUB4vo9pmG0eSiR+kXfw2DB1nxihnjNjdOLcePizXacuuMLXwYF+otEjFxf1IIRiLZvRRjwwQcLNCLjkoXovWwHnB9zUH+NzYMUOAxIA8EmZiZAHBfwBmoASDwyPUi9IoMhpp7VrVlB7WzOVlBSTxWIm8f/pqaqJqirKqaO9hdZctYwaGmqImEKHjpykwyCLoZExmnB7KRjEMgnpdzDGqMRpo5aGKhDRQlqyqJ5qqkvJinrpV0pu5yQ+RpKOGpowDRP7+yYVw0mSBQRDnLpPjtDIuI8GsRjXO+imc/0T4c92DQyOUbF2geqsfWRRLn/8lJmspFhKZpTEZ1sL0LyYCvSR+BDo8bMzrYXyYgsJOWZkmj6PlPVOFwuAON+kh4ytzfUUCAbJ4/XRotZmqqqsBMuOwcwP0OjYBJ0+30c9J89Oc8dP99L4OEZ+RaGKyjLSNEbneoepDw1/5OR5Onbqgn4/0YwS0gbFr6suo6UggiuxkCiIQRBEVLSCemQseQWdCwAL5s1C+RUl+bwnMA//88u9MYtoKvXQKxqHqabYFzOcbCAApk4L4yEfcd/oNL/IB9XfT/39sXcFKmN8KyAybRruc4MAFLP5RT2EM5lUWtzWFB7pDx3ugTJrVFFWQtVQ7LoFldTSWEftCxumubbmOlrYWEvN9TXUWLuASkucNDQsZiQhWtreiLl8FYlFPj3qN1segvnLMDUQUwSxzdjRUot6l2Sk7NnqpXeYpvMSgN1qIgd2ZJKtZzCkkZiD7+0emJG03O6n1Q2j1F7pJmWWIY4xEynW0hnpw1ZAnFV/EXl5Y4AWVDjE7ZSrr3bO8KM0H2iK36VaxCzwJJ61xWLZhdgpsxHyIIfdhoW3VqquKCNBAmfP91IgMHO1VcSNdCNj43TsxGmsF5yk8rJSam2qCwdneFEmXKb443RYw4uHYotx2aIGEFEFObG4KMLy26Hb6SAAQx4OKL7VbMJd4ueoywer0BP+Pr8Ci2FhXTE11xZRa0MJtdTa6eomL62sG6di69x9RpTKrCWkmG3idspxKL/mGZ56jr5RUe6iphISHwcRYTUVdmqpLxa3GXOc8986HI5tqRaopJrBVHrGxP/6M/WY6k1DXTWsgeawFbD/0GHad/AwHYf5f+ZcLwl3GguG3UePh/137DlA4tkOBVt5ZSctX9KaavG6prdYTOFtxQ5sLwpCaG1eQFXYdlTQkXQtKAOZ6aH+QoHE/r4Fpn+yVS4tspL4NNcCKF1dlYMaFjipsaaIGks81OI8R6XmiWSzJLKUzEjDAy5sC3pm+AuPkLlcXKgSJr8ggfamUgp7ZPIPYz/TozhFj0xEHlgc+qG46unEIuCilga6bvWVtGxxC5WWOEjojIJaC6Wqr6miJR0t9AosBK5Z2UktWAwsLZq+vUM5dojpiKijePFoxZJmEm8khrcZMRrmWFVjVwfbZbEDEvO1mFUqhnWkiIZMLMmssVjQRWb3cSzOXSCaZ92YyUHMUjSjnPBUIMJXM5dSwLmIuOlyXEECEVEycgsS3oHR/3E9CoMq6ZENkdPp3EmM6U4Ck7Vz2m0k1gFaMecX5n1zA0bRilJ0Jhv2XtXJaHl3tUPxw9uMbXWY+jTSQuwwlGMtIWcF4cJ4n1/tbLCEHFbz/BJHpWIUIpP3HJk9J7E/744KTf6RCSsgaoGTBz3E/S4KMSu5TPUUtDUSV6zJZ65zCsbYfXplqRsBiAqlwwoQ+RrFmbEIKpRfkIB4Cam9eQHVLigjm05KoweOIeyhJ5sPOiw5QXSCAJJNGyu+Ehgi8/hhUgLx5+mx0s3mx1QLTVsQVMykOCrJY11Iw6yZyDRzmjBbfmkLY+weu93+nF75K3plJPIJWwGcf1ncS5caAkJpijGdqa0qpSXt9STeOWisq6CyYkdqGWc4tQpT32m3kHke8/3oqrLgBJlg7pu85xGk88+SGKxIcxEJIhALg1pRG41YriA3qyCC0WPB1IXiHBnz5vw/ofyP6FmergQgKmZzOAQB/EncS6cfAjaLGQuHxdTSVE3inYNWXKsrismc6Y6ZxDxbKL2Y75tAAikhgVV5ofRmzwlSQqmb+9F1YfYFpFRfHVZ+bq0ml30ZjarNYdNfxDWruquJyDZpZ3c635V0ojkS6C4ZY8ynSStgDthTCzahQ5YWO6ihtoKu6GikjpZaEi8kFTmnb2elVkpqqcW0RZj9qeVCYTPfPHEE16FUs5qRXsz7lQVriAfGSevbQW4qp2HrMvKz4qm4AmvxrsKUR3ZujtkdDpaOonUnAFFJTAV+R5x/VdxLl34ExDsHNdWltGhhDYl3DprrKqmirIhURdG9cC2BN4HEQp/NrKZUNsNIb3KfCC/0MVgAKWUWnVixkFB8YmpY8f0hFfP8hRQ29yPimkC0DpspwicLt5xvgvK3p6tk/XvIpZranc7PEWO6zlcuZS0vsyAgtkcryououb6SlnU0kHjnYAHWERx2yyypkghiLG5kFaa+MPktZjVunDkDNKzu+y6Q2NpTQvPY05+jAOaoJWavDCt+0Ocil1JLY6wO5v50fCwmhRJR/jmKSy0Yu2rQo5Q/+jFbJdJGAKJQLFjcQ5xvFPfSZR4BVVVIvHNQj52Exa11U+8cCL951ybOLoDZpFIRSEYFCcw3byU4AsU/Sop/cL5ZxE3HrGXhUZ/7holPnA+P9sPKQvJS8bQ0AjOH3Yydl+yN/JzzQU70CejPB6dVLg0PaSUAUV8w2O24PgsnzywjYMdWnHjnQFgF4jsHYruxElMFq9WccM1iTQGs2N932sww+FjC+URGVEIeMmE/3+Q5S4wHI4NSv1dtxEraiEBcYp7v10w0rDSDACqR9+X6MsbIZjVhu9JEphRIDJmmej6qmkx/4XA4vplqRomkTzsBiEpgDrMOjPZ34l663EBAjNjlpU5qwlRhSVsdTb5zMNdCItpxmgBivm8HAUzzTOKBaQFiw/tJfHsviWQJRWXOemLWUuJjxyjod5OLCXO/nkJknZZe7KQUYdS3mDKiDtPKjng4DZL6AHTlr61W64EI/7TeZkxiMNq3TUTifzU5nlaJZOZJI8AYo8l3DsRC4tQ7ByUOEkQRmSHM0/CjglFSmPyWVOb7yIn5YO57+4mDCPCoy8lsFcSKW4h7kK+7lzwMq/sM5n7E6r4oSFFZeJ5vt6iwXoRPck632JjrM7//JrvT+SPd8kwwo4wRgKiP2eHYZrPbr8co8j/iWbrcRGDqnYPGahJfQpp858BuNcOUJjKrSvh/5jHhmrIE3oFwFiFv/N/ghyMk8sfkIFa6iAhkwsdPUECz0AjM/QlWRdEaboPSi68N6yIDzfPpopRyAAAKAUlEQVSA4mPLfI2Y69vKyo5RFg4l02Uyxs7DGngzBL8XZZ+Bk2cOIyAUZPKdA0EGYrvRabdAn1jKtWaan5j/4v4+C7hgpsf5cMdcJTFGrKiRmNlJfPQo8vGEzf1RpZ6CZJ2W2gwzP2zum9Vp/hl9iFB8bJnvzGjZUYVlnAAmy4fg30MvehVx/uNJP3nNfQSKdXzZKGz+B8anhGae84T+MPWcyA2zVUH5m8Ir+8Lk97ByGhGr+9HmvsLIbjWFnZi+UOaPc5zouxj4wiM++n9WFX9S/KwRgKgATJ/jmPe8D5W4C8874ORpEASCGie/q2+GtH7PZUKYERjpYS66uK2HHQQ+for83ArFb6YJmPuc0KOm4nKyYrQXuxRi9J/yTvEm0eSM6LcY6O7xeL3LYPl+NFcUf7L+kUhN+mX8anU4nsDq5zUA6m64DRmvgCwwowgEgiHyTkyQ2d87o1w1MERanO/zhyMzlVhxMzHVGn6ZRwt4aVypoTGlYYa5b8Iin1B8K+b7DJoYTp+BPxjp98CS+YKiqsttDsdfYqB7pKKiQodFDv0rnxMEMCkWgPoF3B1M0+6A3y/g5FlgCPgDIfL4QmQKDJLCAzGl07wjMf2ZfQExZx3xceyYeQfJw8poWG0lH5VMiy+UXezpO2xmUvVYqJyWe+wHxth+RvQQU5TXYKS/Gpbtl6xW68uxY+eOb04RwCQstqKiDbAI7sZ86RoOUOHOTYbJa/4iEAhq5PVf/FS7JTjT/J+UjMGsD/rck4/ELCUXzX2sF3DXGfIzO42yJpj71cQ51G4qJpEF5n6Rw0IWLPZFeKfrdhv66BfRP2/A7tYKjPb32Ww2XT+Nl66KT+abkwQwWTnMl8Snj+4LBALLNc4/Qozp9iGEyTLkNXMI+GH6i9KUkBfmf3wCEHGYt4/EuwHMXkXELv5oRwv6sboPc581UIDZKPIQI70w923C3I8M0PGeMTZKnK+Hwt8X0rQVGKRucDqd9zuwva1jMRnNKqcJYBKJ0tLSIQD9MKYHfwET63YQwU8RNgAnzzxBQHzGOxSC6qC+XFFprORachWtII+9g3zWRgqYK0hT7Ai9fAY9LuKeARLv73upjIaVVvKyEpp2wACwWUzhV3hVlU0L0uHBh772NNw/QeFvtdpsjTDthYn/UFFR0X4d8s96FnlBAJEowcTaCCJ4j9fn60Dl3wZG/gm61dnIOPI+txHgzEwhtQRKX0NeWwu5HUvJVbSaRkvWghjW4v4q8jg6KWAqpVDAR6NKI7kUmPs0XcHFqv7FPX30BL1EZmwL+tTnTYy9CmZ9CfranXBfgcJvYoy59ComV/LREbnMilReXj6C3YPHwMjvRQMtgmXwlyCCh1GLHjh55hgCUB5iynQFnlFFpoAYnBQwV5PX2kxueycNW6+kAE23DMQ+vsNmIrGvr7A58qT4B1Lug7L/BNPLe1XOr4FJz9CXbkGf+rLZbv8jY8wfP3VhhOQtAUTCj4bywjIQ/1HCR9CIi9CYr0CjfhSN+x/E2MHIuPI+OwioCiPxzj0u866Aqiok9vTFqG/CfZIZdaMv/IwRfYIT3XDm7FkbFu1WQtnfi+nl9yxOZ0LvoSRZZs5HLwgCiEYZjfkSGvW7aNx3g9GvwPytDoTwV+gADyDusyCMy0vM8JBnZhAQSlvksJAYvYUiCxPeDEUWI7rCoJqiGhzqiVvxKPxNWM0X8UU6J0Z9Kxb5RLSYjrHjIP1NaOfvI5e/Vzj/K0XFXrzd7sDAsAR94Z02h+ObDizadXR0+GLmYTDPgiSA6DbE/O0CCOHX6AD/gI6wzma3O0XHACm8Dx3mh5zzPdFp5HP6EBBEIBRZmPB2KLUY0YscZipxWqikyEolIIliOOHvsJpIxFcYQa/ZGCfah9vf4PpNuI8zRXltIBhcYrPbTWjfNpD+rbh+GEr+davT+Wsr9uIZYx6SR0wElJi+BvAUHQOk8GN0mA86nM6r0YGs6GE3olPdh+uP0Gm2AIZTcPLMHAJe4H4IpPw0lPxhtMWn4e4CUV8DJa9CG5VCsVfaHI434voJuG9h6vdUSUlJN9JdfMEgc3UtiJIMSwDRrYcO5MfI8Tw61UO4fgCd7RZYCwtxtQRDoWWM89ejM34S7juI+zSsht3IQxDEBK7yjESA8zE8nriE0WZg9gRI9Ye4Pgj3GSj0B9Dx3kKh0C2qpl2NsBbgXAK87bguAynfCSX/CNriX+CeAFHvgJIPIs+snoVYONqhEMXSTyYoe6C4uPiQzen8HTrjN+A+hk56J6yGVeiwC+GK8GxHx27EtGIlOvPNAFWMWh/GSPZPGMkegt8jUIb/Ra22we8Qrr0iX1yzcQZRqDCJxa9uhlAv8UaO2EY9Cf+jcF2o237IIwjuz3jejvr/AXL8L+r+n7h+A9cv4Pox0rR3wAS/E3Gvw7UTRLkAWJigwKXApfUSRq8GZneBVD+I62fhvgaF/hF2cJ60FxdvsRQV7UHYSZQp6oPi5JlJBNBXM1lcYZaFzutFxz6LacU+dOat6Nxi1Po+FOErGMnug989UIY3QClugN8yXGuhKBa3x1MK5WrFrsVqjIbrknA3QenEh1WuRdpVWORcAfJZCiXsQH4tCGtE/jX+QKAS1xI4B5wZ5TI4cRWLYmLErUS9auDXCNcC1wG3FHFXQB5BcNfi+XrU/ybI8QbU/V24fhLXL+H6HXtR0c9hgj+NuC/iehhE2Q8spCmeR91cEkAWG6uysnIMynUCuxa7MBo+m4T7A5RuO9yfkXY3Fjn3g3y6oIRHkd9J+J+FIvaJNyhxHYfzwImRP4vSyqJzEQFJALnYKrJOOYdAoVZIEkChtqyUSyKQAAKSABIASUaRCBQqApIACrVlpVwSgQQQkASQAEgyirERKGTpJQEUcutK2SQCcyAgCWAOgGSwRKCQEZAEUMitK2WTCMyBgCSAOQCSwcZGoNCllwRQ6C0s5ZMIzIKAJIBZwJFBEoFCR0ASQKG3sJRPIjALApIAZgFHBhkbASNILwnACK0sZZQIxEFAEkAcYKS3RMAICEgCMEIrSxklAnEQkAQQBxjpbWwEjCK9JACjtLSUUyIQAwFJADFAkV4SAaMgIAnAKC0t5ZQIxEBAEkAMUKSXsREwkvSSAIzU2lJWiUAUApIAogCRjxIBIyEgCcBIrS1llQhEISAJIAoQ+WhsBIwmvSQAo7W4lFciEIGAJIAIMOStRMBoCEgCMFqLS3klAhEISAKIAEPeGhsBI0ovCcCIrS5llghcQkASwCUg5EUiYEQEJAEYsdWlzBKBSwhIArgEhLwYGwGjSi8JwKgtL+WWCAABSQAAQZ4SAaMiIAnAqC0v5ZYIAAFJAABBnsZGwMjSSwIwcutL2Q2PgCQAw3cBCYCREZAEYOTWl7IbHgFJAIbvAsYGwOjS/x8AAAD//7O8AmQAAAAGSURBVAMA82BfAFdFWJwAAAAASUVORK5CYII=",ap=({animationHtml:e,createAnimationLoading:t,createAnimationLoadingText:n,createAnimation:i})=>v.jsx("div",{className:"animationDemoContainer",children:v.jsx(r.Spin,{spinning:!0===t,tip:n||"动画生成中...",children:e?v.jsx(np,{htmlContent:e}):v.jsx("div",{children:v.jsx(r.Empty,{image:ip,description:v.jsxs("div",{className:"emptyDescription",children:["暂无动画演示 ",i&&v.jsx("span",{onClick:()=>i(),children:"现在生成"})]})})})})}),op=n.Component({createEl:function(e){const t=document.createElement("div");t.className="progress-marker-container";const r=document.createElement("div");r.className="marker-text",t.appendChild(r),e.appendChild(t),this.container=t,this.timeoutId=null},markerDotOver:function(e,t){let r=t.progressMarker;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);const n=this.container.querySelector(".marker-text");document.querySelectorAll(".prism-thumbnail").forEach(e=>{e&&(e.style.opacity="0")}),this.timeoutId=setTimeout(()=>{document.querySelectorAll(".progress-marker-container").forEach(e=>{if(!e)return;const t=parseFloat(e.style.left);t<10?(e.style.transform="none",e.classList.add("leftAfter")):t>80&&(e.style.transform="translateX(-100%)",e.classList.add("rightAfter"))}),this.timeoutId=null},0),n&&(n.textContent=r.text),this.container.style.left=100*t.left+"%",this.container.style.display="flex"},markerDotOut:function(e,t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container.style.display="none",document.querySelectorAll(".prism-thumbnail").forEach(e=>{e.style.opacity="1"}),document.querySelectorAll(".progress-marker-container").forEach(e=>{e.style.transform="translateX(-50%)",e.classList.remove("leftAfter"),e.classList.remove("rightAfter")})},destroy:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container=null}}),sp=()=>n.Component({init:function(){this.pipActive=!1,this.video=document.querySelector("video"),this.boundTogglePip=this.togglePip.bind(this),this.boundOnEnterPip=this.onEnterPip.bind(this),this.boundOnLeavePip=this.onLeavePip.bind(this),this.button=document.createElement("div"),this.button&&(this.button.className="prism-pip-btn",this.button.innerHTML='\n <div class="pip-content">\n <div class="pip-content-text">画中画</div>\n <svg t="1751253366278" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2319" width="200" height="200"><path d="M768 213.333333H256a85.333333 85.333333 0 0 0-85.333333 85.333334v426.666666a85.333333 85.333333 0 0 0 85.333333 85.333334h170.666667a42.666667 42.666667 0 1 1 0 85.333333H256a170.666667 170.666667 0 0 1-170.666667-170.666667V298.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h512a170.666667 170.666667 0 0 1 170.666667 170.666667v128a42.666667 42.666667 0 1 1-85.333334 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m-128 341.333334a128 128 0 0 0-128 128v85.333333a128 128 0 0 0 128 128h170.666667a128 128 0 0 0 128-128v-85.333333a128 128 0 0 0-128-128h-170.666667z" fill="#ffffff" p-id="2320"></path></svg>\n </div>\n ',this.button.addEventListener("click",this.boundTogglePip))},createEl:function(e){e.appendChild(this.button),this.video.addEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video.addEventListener("leavepictureinpicture",this.boundOnLeavePip)},destroy:function(){this.button&&this.boundTogglePip&&this.button.removeEventListener("click",this.boundTogglePip),this.video&&this.boundOnEnterPip&&this.video.removeEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video&&this.boundOnLeavePip&&this.video.removeEventListener("leavepictureinpicture",this.boundOnLeavePip),this.button=null,this.video=null,this.boundTogglePip=null,this.boundOnEnterPip=null,this.boundOnLeavePip=null},onEnterPip:function(){},onLeavePip:function(){},togglePip:async function(){try{this.pipActive&&document.pictureInPictureElement?await document.exitPictureInPicture():await this.video.requestPictureInPicture()}catch(e){}}}),lp=e=>{const{playerRef:i,url:a,license:o,containerId:s,vidPlayAuth:l}=e,c=t.useRef(null),u=[];t.useEffect(()=>{const e=-1===a.indexOf("http");if((!e||l)&&(e||o))return i.current=new n({id:s,source:e?"":a,vid:e?a:"",playauth:e?l:"",width:"100%",height:"500px",autoplay:!1,isLive:!1,rePlay:!1,playsinline:!0,preload:!0,controlBarVisibility:"hover",progressMarkers:u,useH5Prism:!0,license:{...o},components:[{name:"progressMarkerComponent",type:op},{name:"pipButton",type:sp()}],extraInfo:{crossOrigin:"anonymous"},skinLayout:[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"snapshot",align:"tr",x:45,y:8},{name:"fullScreenButton",align:"tr",x:14,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:15,y:10}]}]}),i.current.on("snapshoted",d),i.current.on("play",()=>{c.current&&clearTimeout(c.current)}),i.current.on("showBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="block")}),i.current.on("hideBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="none")}),()=>{var e,t;c.current&&clearTimeout(c.current),i.current&&(null==(t=(e=i.current).dispose)||t.call(e),i.current=null)}},[a,o,l]);const d=async e=>{const t=e.paramData.base64;try{const e=t.match(/^data:(image\/\w+);base64,(.*)$/);if(!e)throw new Error("无效的Base64图片格式");const i=e[1],a=e[2];try{return await p(i,a),void r.message.success("图片已成功复制到剪贴板!")}catch(n){}const o=await q(t);await h(o),r.message.success("图片已成功复制到剪贴板!")}catch(n){}},p=async(e,t)=>{const r=atob(t),n=[];for(let a=0;a<r.length;a+=1024){const e=r.slice(a,a+1024),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);const i=new Uint8Array(t);n.push(i)}const i=new Blob(n,{type:e});await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])},q=e=>new Promise((t,r)=>{const n=new Image;n.src=e,n.onload=()=>{const e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),e.toBlob(e=>{e?t(e):r(new Error("无法转换图片为PNG格式"))},"image/png")},n.onerror=()=>{r(new Error("图片加载失败"))}}),h=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(t){}};return v.jsx("div",{className:"videoPlayer",children:v.jsx("div",{id:s,ref:i})})},cp=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e)),up=e=>{try{if(!e||"string"!=typeof e)return null;return JSON.parse(e)}catch(t){return null}},dp=(e,t=500,r=!1)=>{let n=null;return(...i)=>{const a=r&&!n;n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||e(...i)},t),a&&e(...i)}},pp=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return`${t<10?"0"+t:t+""}:${r<10?"0"+r:r+""}:${n<10?"0"+n:n+""}`},qp=e=>{if(!e)return"00:00:00";let t=e;if("string"==typeof t&&-1!==t.indexOf(":"))return t;t=Math.max(0,Math.floor(Number(t)||0));const r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return[r.toString().padStart(2,"0"),n.toString().padStart(2,"0"),i.toString().padStart(2,"0")].join(":")},hp=e=>{const{videoTitle:r,videoUrl:n,videoLicense:i,playerRef:a,vidPlayAuth:o,videoTime:s}=e;return t.useEffect(()=>{var e;if(s&&a.current){const t=(e=>{if(!e)return 0;if("number"==typeof e)return e;if("string"==typeof e&&-1!==e.indexOf(":")){const t=e.split(":");let r=0,n=0,i=0;return 2===t.length?(n=t[0]?Number(t[0]):0,i=t[1]?Number(t[1]):0):3===t.length&&(r=t[0]?Number(t[0]):0,n=t[1]?Number(t[1]):0,i=t[2]?Number(t[2]):0),3600*r+60*n+i}return 0})(s);null==(e=a.current)||e.seek(t)}},[s,a]),v.jsxs("div",{className:"videoContainer",children:[r&&v.jsx("div",{className:"videoTitle",children:r}),v.jsx("div",{className:"playerArea",children:v.jsx(lp,{url:n,license:i,playerRef:a,containerId:"videoTutorialOfKnowledgeCard",vidPlayAuth:o})})]})};var Vp,fp=(e=>(e.RADIO="radio",e.CHECKBOX="checkbox",e.COMPLETION="completion",e.ANSWER="answer",e.ACM="acm",e.CCM="ccm",e))(fp||{}),mp=(e=>(e.NONE="NONE",e.INPUT_OUTPUT="INPUT_OUTPUT",e.SUBJECTIVE="SUBJECTIVE",e))(mp||{}),gp=(e=>(e.PREADD="preadd",e.ADD="add",e.PREVIEW="preview",e.EXAM="exam",e.MARK="mark",e.VIEW="view",e))(gp||{}),bp={exports:{}};self,bp.exports=(Vp=i,(()=>{var e={857:e=>{e.exports=Vp}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>o});var e=r(857),t={"*":"list-item","-":"list-item","+":"list-item",">":"blockquote","#":"header1","##":"header2","###":"header3","####":"header4","#####":"header5"},i={"---":"divider","----":"divider","-----":"divider","------":"divider"};function a(t){var r=t.selection;if(null==r)return{beforeText:"",range:null};var n=r.anchor,i=e.SlateEditor.above(t,{match:function(r){return e.SlateEditor.isBlock(t,r)}});if(null==i)return{beforeText:"",range:null};var a=i[1],o={anchor:n,focus:e.SlateEditor.start(t,a)};return{beforeText:e.SlateEditor.string(t,o)||"",range:o}}const o={editorPlugin:function(r){var n=r.insertBreak,o=r.insertText,s=r;return s.insertText=function(n){var i=r.selection;if(null==i)return o(n);if(e.SlateRange.isExpanded(i))return o(n);if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return o(n);if(" "!==n)return o(n);var s=a(r),l=s.beforeText,c=s.range;if(!l||!c)return o(n);var u=t[l];if(!u)return o(n);e.SlateTransforms.select(r,c),e.SlateTransforms.delete(r);var d={type:u};e.SlateTransforms.setNodes(r,d,{match:function(t){return e.SlateEditor.isBlock(r,t)}}),"list-item"===u&&e.SlateTransforms.wrapNodes(r,{type:"bulleted-list",children:[]},{match:function(t){return"list-item"===e.DomEditor.getNodeType(t)}})},s.insertBreak=function(){var t=r.selection;if(null==t)return n();if(e.SlateRange.isExpanded(t))return n();if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return n();var o=a(r),s=o.beforeText,l=o.range;if(!s||!l)return n();if(0!==s.indexOf("```")){var c=i[s];if(!c)return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var u={type:c};e.SlateTransforms.setNodes(r,u,{match:function(t){return e.SlateEditor.isBlock(r,t)}})}else{var d=s.slice(3).toLowerCase().trim();"js"===d&&(d="javascript"),"ts"===d&&(d="typescript"),"md"===d&&(d="markdown"),"py"===d&&(d="python"),"vb"===d&&(d="visual-basic"),"c#"===d&&(d="csharp");var p=((r.getConfig().MENU_CONF||{}).codeSelectLang||[]).codeLangs;if(d&&!(void 0===p?[]:p).some(function(e){return e.value===d}))return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var q={type:"pre",children:[{type:"code",language:d,children:[{text:""}]}]};e.SlateTransforms.insertNodes(r,q)}},s}}})(),n})());const vp=q(bp.exports);function Ap(e,t,r,n,i){return{sel:e,data:t,children:r,text:n,elm:i,key:void 0===t?void 0:t.key}}const Sp=Array.isArray;function yp(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Ep(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let n=0;n<t.length;++n){const e=t[n];if("string"==typeof e)continue;const r=e.data;void 0!==r&&Ep(r,e.children,e.sel)}}function Tp(e,t,r){let n,i,a,o={};if(null!=t&&(Sp(t)?n=t:yp(t)?i=t.toString():t&&t.sel?n=[t]:o=t),void 0!==n)for(a=0;a<n.length;++a)yp(n[a])&&(n[a]=Ap(void 0,void 0,void 0,n[a],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Ep(o,n,e),Ap(e,o,n,i,void 0)}const Cp=[];for(let xj=0;xj<256;++xj)Cp.push((xj+256).toString(16).slice(1));let Up;const Rp=new Uint8Array(16),Np={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kp(e,t,r){return Np.randomUUID&&!e?Np.randomUUID():function(e){var t;const r=(e=e||{}).random??(null==(t=e.rng)?void 0:t.call(e))??function(){if(!Up){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Up=crypto.getRandomValues.bind(crypto)}return Up(Rp)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Cp[e[t+0]]+Cp[e[t+1]]+Cp[e[t+2]]+Cp[e[t+3]]+"-"+Cp[e[t+4]]+Cp[e[t+5]]+"-"+Cp[e[t+6]]+Cp[e[t+7]]+"-"+Cp[e[t+8]]+Cp[e[t+9]]+"-"+Cp[e[t+10]]+Cp[e[t+11]]+Cp[e[t+12]]+Cp[e[t+13]]+Cp[e[t+14]]+Cp[e[t+15]]).toLowerCase()}(r)}(e)}class Fp{constructor(){l(this,"title","插入填空项"),l(this,"tag","button")}getValue(e){return""}isActive(e){return!1}isDisabled(e){var t;return null==e.selection||(null==(t=e.getElemsByType("fill-blank"))?void 0:t.length)>=20}exec(e,t){if(this.isDisabled(e))return;const r=[{text:" "},{type:"fill-blank",key:kp(),children:[{text:""}]},{text:" "}];i.SlateTransforms.insertNodes(e,r)}}let wp=[];const Wp={editorPlugin:function(e){const{isInline:t,isVoid:r}=e,n=e;return n.isInline=e=>"fill-blank"===i.DomEditor.getNodeType(e)||t(e),n.isVoid=e=>"fill-blank"===i.DomEditor.getNodeType(e)||r(e),n},renderElems:[{type:"fill-blank",renderElem:(e,t,r)=>{const n=null==r?void 0:r.getElemsByType("fill-blank"),i=(null==n?void 0:n.findIndex(t=>t.key===e.key&&!wp.includes(t.id)))||0;return i===n.length-1?wp=[]:wp.push(n[i].id),Tp("input",{attrs:{class:"w-e-fill-blank","data-w-e-type":"fill-blank","data-w-e-is-void":"true","data-w-e-is-inline":"true",readonly:!0,placeholder:i+1}})}}],elemsToHtml:[{type:"fill-blank",elemToHtml:(e,t,r)=>'<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">'}],parseElemsHtml:[{selector:"input[data-w-e-type='fill-blank']",parseElemHtml:(e,t,r)=>({type:"fill-blank",key:kp(),children:[{text:""}]})},{selector:"pre:not([data-w-e-type])>code",parseElemHtml:(e,t,r)=>{let n=(null==e?void 0:e.innerHTML)||"";const i='<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">',a=(null==t?void 0:t.filter(e=>"fill-blank"===(null==e?void 0:e.type)))||[];let o=[];return(null==a?void 0:a.length)&&(null==t||t.forEach((e,r)=>{var a;if(o.push(e),"fill-blank"===(null==e?void 0:e.type))if("fill-blank"===(null==(a=t[r+1])?void 0:a.type)){const e=null==n?void 0:n.indexOf(i,1);let t=null==n?void 0:n.slice(0,e);n=null==n?void 0:n.replace(t,""),t=t.replace(i,""),o.push({text:t})}else n=null==n?void 0:n.replace(i,"");else n=null==n?void 0:n.replace(null==e?void 0:e.text,"")})),{type:"code",language:"",children:(null==a?void 0:a.length)?o:[{text:(null==e?void 0:e.textContent)||""}]}}}],menus:[{key:"fill-blank",factory:()=>new Fp}]},xp=t.createContext(null);let Op=!1;const Kp=t.forwardRef((e,r)=>{const{topProps:n}=(()=>{const e=t.useContext(xp);if(!e)throw new Error("useMyContext must be used within a MyContext.Provider");return e})(),{uploadImg:o}=n,{defaultValue:s="",readOnly:l=!1,editorHeight:c=300,placeholder:u="请输入内容...",isBorder:d=!0,autoHeight:p,onChange:q,customToolbarKeys:h,mode:V="default",noPadding:f=!1}=e;t.useEffect(()=>{if(!Op)try{i.Boot.registerModule(Wp),i.Boot.registerModule(vp),Op=!0}catch(e){}},[]);const[m,g]=t.useState(null),[b]=t.useState({toolbarKeys:h??["undo","redo","fullScreen","|","headerSelect","bold","underline","italic","color","bgColor","|","bulletedList","numberedList",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"insertLink",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable","codeBlock","divider","|"]}),A={placeholder:u,autoFocus:!1,MENU_CONF:{uploadImage:{async customUpload(e,t){if(!e||!o)return;const r=new FormData;r.append("file",e);const n=await o({file:r});(null==n?void 0:n.url)&&t(null==n?void 0:n.url,null==n?void 0:n.url,null==n?void 0:n.url)}}}},S=t.useRef(null);t.useEffect(()=>()=>{null!=m&&(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{null==m||m.destroy(),g(null)},500))},[m]),t.useEffect(()=>{l?null==m||m.disable():null==m||m.enable()},[l,m]);const y=t.useCallback((e="")=>e.replace(/<\/?p>/g,"").replace(/ /gi,"").replace(/<br\/?>/g,""),[]);t.useImperativeHandle(r,()=>({getHtml:()=>{if(null==m?void 0:m.isEmpty())return"";{const e=(null==m?void 0:m.getHtml())??"",t=y(e);return/\S+/.test(t)?e:""}},setValue:(e="")=>!!m&&(null==m||m.setHtml(e),!0)}));const E={};return l&&p?(E.minHeight=p.min+"px",E.maxHeight=p.max+"px",E.overflowY="auto"):E.height="number"==typeof c?c+"px":c,v.jsx(v.Fragment,{children:v.jsxs("div",{"data-nopadding":f,style:{border:d?"1px solid #E5E5E5":"",zIndex:99},className:"richeditor",children:[!l&&v.jsx(a.Toolbar,{editor:m,defaultConfig:b,mode:"default",style:{borderBottom:"1px solid #E5E5E5"}}),v.jsx(a.Editor,{defaultConfig:A,value:s,onCreated:g,mode:V,onChange:e=>{if(null==e?void 0:e.isEmpty())null==q||q("",e);else{const t=(null==e?void 0:e.getHtml())??"",r=y(t);/\S+/.test(r)?null==q||q(t,e):null==q||q("",e)}},style:{fontSize:"16px",...E}})]})})});fp.RADIO,fp.CHECKBOX,fp.COMPLETION,fp.ANSWER,fp.ACM,fp.CCM,fp.RADIO,fp.COMPLETION,fp.ANSWER,fp.CCM;const Ip={low:"简单",middle:"中等",high:"困难"},Dp="https://quiz.cloudlab.top",Lp="https://run.cloudlab.top",Pp=e=>{switch(e){case"radio":case"checkbox":return v.jsx(Q,{className:"w-4 h-4"});case"acm":case"ccm":return v.jsx(W,{className:"w-4 h-4"});case"completion":return v.jsx(X,{className:"w-4 h-4"});case"answer":return v.jsx(B,{className:"w-4 h-4"});default:return v.jsx(O,{className:"w-4 h-4"})}},Bp=e=>{switch(e){case"radio":return"单选题";case"checkbox":return"多选题";case"acm":case"ccm":return"编码测验";case"completion":return"填空题";case"answer":return"问答题";default:return"题目"}},Xp=e=>{switch(e){case"low":return"text-green-600 bg-green-100";case"middle":return"text-yellow-600 bg-yellow-100";case"high":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},Mp=e=>{const{currentIndex:t,questionsCount:r,type:n,difficulty:i="low",score:a}=e;return v.jsxs("div",{className:"questionHeader tailwind-scoped",children:[t&&r&&v.jsxs("div",{className:"questionIndex itemWrapper",children:["题目 ",t,"/",r]}),v.jsxs("span",{className:"questionType itemWrapper",children:[Pp(n)," ",Bp(n)]}),i&&v.jsx("div",{className:`difficulty itemWrapper ${Xp(i)}`,children:v.jsx("span",{className:"difficulty",children:Ip[i]})}),a&&v.jsxs("div",{className:"score itemWrapper",children:[v.jsx(z,{})," ",a," 分"]})]})},jp=e=>{var n;const{data:i,onSubmit:a,buttonText:o,showQuestionTip:s,showResult:l,onNextQuestion:c}=e,{optionJson:u,answer:d,userAnswer:p,score:q,type:h,topic:V,content:f,auxiliary:m,difficulty:g,currentIndex:b,questionsCount:A}=i,[S,y]=t.useState(!0),[E,T]=t.useState(void 0),[C,U]=t.useState(),[R,N]=t.useState(""),[k,W]=t.useState([]);t.useEffect(()=>{p&&!C&&(U(p),p.indexOf(",")>-1?W(null==p?void 0:p.split(",")):N(p),x(p))},[i]);const x=e=>{if(!C&&!e)return void r.message.warning("请先作答!");const t=C||e;a&&!e&&void 0===E&&a(t),void 0!==E&&(null==c||c()),d&&l&&(t===d||t&&cp(null==t?void 0:t.split(","),null==d?void 0:d.split(","))?T(1):T(0))},O=["A","B","C","D","E","F","G","H","I","J"];return v.jsx("div",{className:"video-player-interaction tailwind-scoped",children:v.jsx("div",{className:"video-player-interaction-content",children:v.jsxs("div",{className:"video-player-interaction-content-main",children:[v.jsx(Mp,{score:q,type:h,difficulty:g,currentIndex:b,questionsCount:A}),v.jsx("div",{className:"video-player-interaction-content-desc",children:v.jsx(Kp,{defaultValue:V||f,readOnly:!0,noPadding:!0})}),v.jsx("div",{className:"video-player-interaction-content-options",children:"radio"===h?null==u?void 0:u.map(({key:e,value:t},r)=>v.jsx("button",{onClick:()=>(e=>{T(void 0),U(e+""),N(e+"")})(e),disabled:void 0!==E,className:`w-full text-left p-4 rounded-lg border-2 transition-all ${R===e?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==E?e===d?"border-green-500 bg-green-50":R===e&&e!==d?"border-red-500 bg-red-50":"border-gray-200":""}`,children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("span",{children:[O[r],"、",t]}),void 0!==E&&e===d&&v.jsx(F,{className:"w-5 h-5 text-green-600"}),void 0!==E&&R===e&&e!==d&&v.jsx(w,{className:"w-5 h-5 text-red-600"})]})},e)):null==u?void 0:u.map(({key:e,value:t},r)=>v.jsx("button",{onClick:()=>(e=>{T(void 0);let t=C||"";if(t&&(null==t?void 0:t.indexOf(e))>-1){let r=t.split(",");r=r.filter(t=>t!==e),t=null==r?void 0:r.join(",")}else t=t?t+","+e:e;U(t)})(String(e)),disabled:void 0!==E,className:`w-full text-left p-4 rounded-lg border-2 transition-all ${C&&(null==C?void 0:C.indexOf(e))>-1?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==E?d.indexOf(e)>-1?(null==C||C.indexOf(e),"border-green-500 bg-green-50"):C&&(null==C?void 0:C.indexOf(e))>-1&&-1===d.indexOf(e)?"border-red-500 bg-red-50":"border-gray-200":""}`,children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("span",{children:[O[r],"、",t]}),void 0!==E&&d.indexOf(e)>-1&&v.jsx(F,{className:"w-5 h-5 text-green-600"}),void 0!==E&&C&&(null==C?void 0:C.indexOf(e))>-1&&-1===d.indexOf(e)&&v.jsx(w,{className:"w-5 h-5 text-red-600"})]})},e+t))}),s&&0===E&&m&&(null==m?void 0:m.length)>0&&v.jsxs("div",{className:"video-player-interaction-content-tip",children:[v.jsxs("div",{className:"video-player-interaction-content-tip-icons",onClick:()=>{y(!S)},children:[v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.535156'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.53516%201C4.66953%201%201.53516%204.13438%201.53516%208C1.53516%2011.8656%204.66953%2015%208.53516%2015C12.4008%2015%2015.5352%2011.8656%2015.5352%208C15.5352%204.13438%2012.4008%201%208.53516%201ZM8.03516%204.625C8.03516%204.55625%208.09141%204.5%208.16016%204.5H8.91016C8.97891%204.5%209.03516%204.55625%209.03516%204.625V8.875C9.03516%208.94375%208.97891%209%208.91016%209H8.16016C8.09141%209%208.03516%208.94375%208.03516%208.875V4.625ZM8.53516%2011.5C8.12109%2011.5%207.78516%2011.1641%207.78516%2010.75C7.78516%2010.3359%208.12109%2010%208.53516%2010C8.94922%2010%209.28516%2010.3359%209.28516%2010.75C9.28516%2011.1641%208.94922%2011.5%208.53516%2011.5Z'%20fill='%23FAAD14'/%3e%3c/svg%3e"}),v.jsx("span",{children:"提示"}),v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",style:{transform:S?"rotate(0deg)":"rotate(180deg)"}})]}),S&&v.jsxs("div",{className:"video-player-interaction-content-tip-text",children:[v.jsx(Kp,{defaultValue:null==(n=null==m?void 0:m[0])?void 0:n.description,readOnly:!0}),v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"})]})]}),a&&v.jsx("div",{className:"video-player-interaction-content-actions",children:v.jsx(r.Button,{type:"primary",onClick:()=>x(),children:o||(void 0===E?"提交":"下一题")})})]})})})};var Gp={exports:{}},Hp={exports:{}};"undefined"!=typeof self&&self,Hp.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){return"[object RegExp]"==={}.toString.call(e)}r.r(t),r.d(t,"Promise",function(){return W}),r.d(t,"TYPES",function(){return Qe}),r.d(t,"ProxyWindow",function(){return Te}),r.d(t,"setup",function(){return Ye}),r.d(t,"destroy",function(){return ze}),r.d(t,"serializeMessage",function(){return je}),r.d(t,"deserializeMessage",function(){return Ge}),r.d(t,"createProxyWindow",function(){return He}),r.d(t,"toProxyWindow",function(){return Ze}),r.d(t,"on",function(){return Be}),r.d(t,"once",function(){return Xe}),r.d(t,"send",function(){return Me}),r.d(t,"markWindowKnown",function(){return he}),r.d(t,"cleanUpWindow",function(){return Je}),r.d(t,"bridge",function(){});var i="Call was rejected by callee.\r\n";function a(e){return void 0===e&&(e=window),e.location.protocol}function o(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return a(e)}function s(e){return void 0===e&&(e=window),"about:"===o(e)}function l(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(t){}}function c(e){if(void 0===e&&(e=window),e&&!l(e))try{return e.opener}catch(t){}}function u(e){try{return!0}catch(t){}return!1}function d(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=a(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=l(e);return n&&u()?d(n):"about://"}var i=t.host;if(!i)throw new Error("Can not read window host");return r+"//"+i}function p(e){void 0===e&&(e=window);var t=d(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function q(e){if(!function(e){try{if(e===window)return!0}catch(n){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(n){}try{if(s(e)&&u())return!0}catch(n){}try{if(void 0===(r=e)&&(r=window),"mock:"===o(r)&&u())return!0}catch(n){}var r;try{if(d(e)===d(window))return!0}catch(n){}return!1}(e))return!1;try{if(e===window)return!0;if(s(e)&&u())return!0;if(p(window)===p(e))return!0}catch(t){}return!1}function h(e){if(!q(e))throw new Error("Expected window to be same domain");return e}function V(e,t){if(!e||!t)return!1;var r=l(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(r){}return t}(t).indexOf(e)}function f(e){var t,r,n=[];try{t=e.frames}catch(l){t=e}try{r=t.length}catch(l){}if(0===r)return n;if(r){for(var i=0;i<r;i++){var a=void 0;try{a=t[i]}catch(l){continue}n.push(a)}return n}for(var o=0;o<100;o++){var s=void 0;try{s=t[o]}catch(l){return n}if(!s)return n;n.push(s)}return n}var m=[],g=[];function b(e,t){void 0===t&&(t=!0);try{if(e===window)return!1}catch(a){return!0}try{if(!e)return!0}catch(a){return!0}try{if(e.closed)return!0}catch(a){return!a||a.message!==i}if(t&&q(e))try{if(e.mockclosed)return!0}catch(a){}try{if(!e.parent||!e.top)return!0}catch(a){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(a){}return-1}(m,e);if(-1!==r){var n=g[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function v(e){return void 0===e&&(e=window),c(e=e||window)||l(e)||void 0}function A(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(n(t))return!1;if(Array.isArray(t))return!1}return n(e)?n(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!n(t)&&e.some(function(e){return A(e,t)}))}function S(e){try{if(e===window)return!0}catch(t){if(t&&t.message===i)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(t){if(t&&t.message===i)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.self===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.parent===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.top===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(t){}return!1}function y(e){if(q(e))return h(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function E(e){if(void 0===(r=e)&&(r=window),Boolean(l(r))){var t=y(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}var r;try{e.close()}catch(n){}}function T(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(n){return!1}return!1}var C,U=[],R=[],N=0;function k(){if(!N&&C){var e=C;C=null,e.resolve()}}function F(){N+=1}function w(){N-=1,k()}var W=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,n,i=!1,a=!1,o=!1;F();try{e(function(e){o?t.resolve(e):(i=!0,r=e)},function(e){o?t.reject(e):(a=!0,n=e)})}catch(s){return w(),void this.reject(s)}w(),o=!0,i?this.resolve(r):a&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===U.indexOf(e)){U.push(e),setTimeout(function(){throw e},1);for(var r=0;r<R.length;r++)R[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,F();for(var i=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},a=0;a<n.length;a++){var o=n[a],s=o.onSuccess,l=o.onError,c=o.promise,u=void 0;if(t)try{u=s?s(this.value):this.value}catch(p){c.reject(p);continue}else if(r){if(!l){c.reject(this.error);continue}try{u=l(this.error)}catch(p){c.reject(p);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?c.resolve(d.value):c.reject(d.error),d.errorHandled=!0}else T(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?c.resolve(u.value):c.reject(u.error):i(u,c):c.resolve(u)}n.length=0,this.dispatching=!1,w()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:T(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,i=[].slice();if(!n)return r.resolve(i),r;for(var a=function(e,t,a){return t.then(function(t){i[e]=t,0==(n-=1)&&r.resolve(i)},function(e){a.reject(e)})},o=0;o<t.length;o++){var s=t[o];if(s instanceof e){if(s.resolved){i[o]=s.value,n-=1;continue}}else if(!T(s)){i[o]=s,n-=1;continue}a(o,e.resolve(s),r)}return 0===n&&r.resolve(i),r},e.hash=function(t){var r={},n=[],i=function(e){if(t.hasOwnProperty(e)){var i=t[e];T(i)?n.push(i.then(function(t){r[e]=t})):r[e]=i}};for(var a in t)i(a);return e.all(n).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return t=e,R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}};var t},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var i;F();try{i=t.apply(r,n||[])}catch(a){return w(),e.reject(a)}return w(),e.resolve(i)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||T(t)},e.flush=function(){return t=C=C||new e,k(),t;var t},e}();function x(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(n){}return-1}var O,K=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(r){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(S(n)&&b(n)){if(e)try{e.delete(n)}catch(i){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!S(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(l){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,i=e[n];return void(i&&i[0]===e?i[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(l){}this._cleanupClosedWindows();var a=this.keys,o=this.values,s=x(a,e);-1===s?(a.push(e),o.push(t)):o[s]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(i){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(i){}this._cleanupClosedWindows();var n=x(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(a){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(a){}this._cleanupClosedWindows();var n=this.keys,i=x(n,e);-1!==i&&(n.splice(i,1),this.values.splice(i,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(n){}return this._cleanupClosedWindows(),-1!==x(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function I(e){return e.name||e.__name__||e.displayName||"anonymous"}function D(e,t){try{delete e.name,e.name=t}catch(r){}return e.__name__=e.displayName=t,e}function L(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(16*Math.random()))})+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function P(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(O=O||new K,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=O.get(e);return t||(t=typeof e+":"+L(),O.set(e,t)),t}(t)+"]":"undefined"!=typeof window&&t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?{}:t})}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function B(){return{}}var X=0,M=0;function j(e,t){void 0===t&&(t={});var r,n,i=t.thisNamespace,a=void 0!==i&&i,o=t.time,s=X;X+=1;var l=function(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];var c,u;s<M&&(r=null,n=null,s=X,X+=1),c=a?(n=n||new K).getOrSet(this,B):r=r||{};try{u=P(i)}catch(h){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),q=e.apply(this,arguments);return c[u]={time:p,value:q},q};return l.reset=function(){r=null,n=null},D(l,(t.name||I(e))+"::memoized")}function G(e){var t={};function r(){for(var r=arguments,n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=P(a);return t.hasOwnProperty(s)||(t[s]=W.try(function(){return e.apply(n,r)}).finally(function(){delete t[s]})),t[s]}return r.reset=function(){t={}},D(r,I(e)+"::promiseMemoized")}function H(){}function Z(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(i){return"Error while stringifying error: "+Z(i,t+1)}}function Y(e){return"string"==typeof e?e:e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function z(e){return"[object RegExp]"==={}.toString.call(e)}function Q(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function J(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function _(){return Boolean(document.body)&&"complete"===document.readyState}function $(){return Boolean(document.body)&&"interactive"===document.readyState}j.clear=function(){M=X},j(function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}),j(function(){return new W(function(e){if(_()||$())return e();var t=setInterval(function(){if(_()||$())return clearInterval(t),e()},10)})});var ee="undefined"!=typeof document?document.currentScript:null,te=j(function(){if(ee)return ee;if(ee=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,i=[].slice.call(document.getElementsByTagName("script")).reverse();n<i.length;n++){var a=i[n];if(a.src&&a.src===r)return a}}catch(o){}}())return ee;throw new Error("Can not determine current script")}),re=L();function ne(e){void 0===e&&(e=window);var t="__post_robot_10_0_46__";return e!==window?e[t]:e[t]=e[t]||{}}j(function(){var e;try{e=te()}catch(n){return re}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=L();return e.setAttribute("data-uid-auto",t),t});var ie=function(){return{}};function ae(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),Q(ne(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return Q(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var oe,se=function(){};function le(){var e=ne();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new se,e.WINDOW_WILDCARD}function ce(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),ae("windowStore").getOrSet(e,function(){var r=new K,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var i=n(t);return i.hasOwnProperty(e)?i[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return Q(n(t),e,r)}}})}function ue(){return ae("instance").getOrSet("instanceID",L)}function de(e,t){var r=t.domain,n=ce("helloPromises"),i=n.get(e);i&&i.resolve({domain:r});var a=W.resolve({domain:r});return n.set(e,a),a}function pe(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:ue()},{domain:"*",timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return de(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function qe(e,t){var r=t.send;return ce("windowInstanceIDPromises").getOrSet(e,function(){return pe(e,{send:r}).then(function(e){return e.instanceID})})}function he(e){ce("knownWindows").set(e,!0)}function Ve(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function fe(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function me(e,t){return{__type__:e,__val__:t}}var ge,be=((oe={}).function=function(){},oe.error=function(e){return me("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},oe.promise=function(){},oe.regex=function(e){return me("regex",e.source)},oe.date=function(e){return me("date",e.toJSON())},oe.array=function(e){return e},oe.object=function(e){return e},oe.string=function(e){return e},oe.number=function(e){return e},oe.boolean=function(e){return e},oe.null=function(e){return e},oe[void 0]=function(e){return me("undefined",e)},oe),ve={},Ae=((ge={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},ge.error=function(e){var t=e.stack,r=e.code,n=e.data,i=new Error(e.message);return i.code=r,n&&(i.data=n),i.stack=t+"\n\n"+i.stack,i},ge.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},ge.regex=function(e){return new RegExp(e)},ge.date=function(e){return new Date(e)},ge.array=function(e){return e},ge.object=function(e){return e},ge.string=function(e){return e},ge.number=function(e){return e},ge.boolean=function(e){return e},ge.null=function(e){return e},ge[void 0]=function(){},ge),Se={};function ye(){for(var e=ae("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function Ee(e,t){var r=t.send,n=t.id,i=void 0===n?L():n,a=e.then(function(e){if(q(e))return h(e).name}),o=e.then(function(e){if(b(e))throw new Error("Window is closed, can not determine type");return c(e)?"popup":"iframe"});a.catch(H),o.catch(H);var s=function(){return e.then(function(e){if(!b(e))return q(e)?h(e).name:a})};return{id:i,getType:function(){return o},getInstanceID:G(function(){return e.then(function(e){return qe(e,{send:r})})}),close:function(){return e.then(E)},getName:s,focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return b(e)})},setLocation:function(t,r){return void 0===r&&(r={}),e.then(function(e){var n=window.location.protocol+"//"+window.location.host,i=r.method,a=void 0===i?"get":i,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===a)return s().then(function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,i=e.method,a=void 0===i?"post":i,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",a),o.setAttribute("action",t),o.style.display="none",n)for(var s=0,l=Object.keys(n);s<l.length;s++){var c,u=l[s],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}J().appendChild(o),o.submit(),J().removeChild(o)}({url:t,target:e,method:a,body:o})});if("get"!==a)throw new Error("Unsupported method: "+a);if(q(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(l){}e.location=t})},setName:function(t){return e.then(function(e){var r=q(e),n=y(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);h(e).name=t,n&&n.setAttribute("name",t),a=W.resolve(t)})}}}new W(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});var Te=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new W,this.serializedWindow=n||Ee(this.actualWindowPromise,{send:t}),ae("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then(function(e){return"popup"===e})},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then(function(){return r})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=W.hash({isPopup:t,name:r}).then(function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")}),i=this.serializedWindow.focus();return W.all([n,i]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Ee(this.actualWindowPromise,{send:r,id:this.getID()}),ce("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return W.try(function(){return r.actualWindow?e===r.actualWindow:W.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:qe(e,{send:n})}).then(function(t){var i=t.proxyInstanceID===t.knownWindowInstanceID;return i&&r.setWindow(e,{send:n}),i})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&b(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return ye(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return ye(),ae("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!S(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(ye(),e.isProxyWindow(t))return t;var i=t;return ce("winToProxyWindow").get(i)||new e({win:i,send:n})},e}();function Ce(e,t,r,n,i){var a=ce("methodStore"),o=ae("proxyWindowMethods");Te.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:i,source:n}):(o.del(e),a.getOrSet(n,function(){return{}})[e]={domain:i,name:r,val:t,source:n})}function Ue(e,t){var r=ce("methodStore"),n=ae("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function Re(e,t,r,n,i){var a,o,s;o=(a={on:i.on,send:i.send}).on,s=a.send,ae("builtinListeners").getOrSet("functionCalls",function(){return o("postrobot_method",{domain:"*"},function(e){var t=e.source,r=e.origin,n=e.data,i=n.id,a=n.name,o=Ue(t,i);if(!o)throw new Error("Could not find method '"+a+"' with id: "+n.id+" in "+p(window));var l=o.source,c=o.domain,u=o.val;return W.try(function(){if(!A(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(z(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+p(window));if(Te.isProxyWindow(l))return l.matchWindow(t,{send:s}).then(function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+p(window))})}).then(function(){return u.apply({source:t,origin:r},n.args)},function(e){return W.try(function(){if(u.onError)return u.onError(e)}).then(function(){var t,r;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(t=n.args)&&(t=[]),(r=t,[].slice.call(r)).map(function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"}).join(", ")+") failed\n\n")+e.stack),e})}).then(function(e){return{result:e,id:i,name:a}})})});var l=r.__id__||L();e=Te.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Te.isProxyWindow(e)?(Ce(l,r,c,e,t),e.awaitWindow().then(function(e){Ce(l,r,c,e,t)})):Ce(l,r,c,e,t),me("cross_domain_function",{id:l,name:c})}function Ne(e,t,r,n){var i,a=n.on,o=n.send;return function(e,t){void 0===t&&(t=ve);var r=JSON.stringify(e,function(e){var r=this[e];if(Ve(this))return r;var n=fe(r);if(!n)return r;var i=t[n]||be[n];return i?i(r,e):r});return void 0===r?"undefined":r}(r,((i={}).promise=function(r,n){return i=r,me("cross_domain_zalgo_promise",{then:Re(e,t,function(e,t){return i.then(e,t)},n,{on:(s={on:a,send:o}).on,send:s.send})});var i,s},i.function=function(r,n){return Re(e,t,r,n,{on:a,send:o})},i.object=function(e){return S(e)||Te.isProxyWindow(e)?me("cross_domain_window",Te.serialize(e,{send:o})):e},i))}function ke(e,t,r,n){var i,a=n.send;return function(e,t){if(void 0===t&&(t=Se),"undefined"!==e)return JSON.parse(e,function(e,r){if(Ve(this))return r;var n,i;if(Ve(r)?(n=r.__type__,i=r.__val__):(n=fe(r),i=r),!n)return i;var a=t[n]||Ae[n];return a?a(i,e):i})}(r,((i={}).cross_domain_zalgo_promise=function(e){return new W(e.then)},i.cross_domain_function=function(r){return n=e,i=t,s={send:a},l=(o=r).id,c=o.name,u=s.send,d=function(e){function t(){var r=arguments;return Te.toProxyWindow(n,{send:u}).awaitWindow().then(function(n){var a=Ue(n,l);if(a&&a.val!==t)return a.val.apply({source:window,origin:p()},r);var o=[].slice.call(r);return e.fireAndForget?u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!0}):u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!1}).then(function(e){return e.data.result})}).catch(function(e){throw e})}return void 0===e&&(e={}),t.__name__=c,t.__origin__=i,t.__source__=n,t.__id__=l,t.origin=i,t},(q=d()).fireAndForget=d({fireAndForget:!0}),q;var n,i,o,s,l,c,u,d,q},i.cross_domain_window=function(e){return Te.deserialize(e,{send:a})},i))}var Fe={};function we(e,t,r,n){var i=n.on,a=n.send;return W.try(function(){var n=ce().getOrSet(e,function(){return{}});return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||W.flush().then(function(){if(b(e))throw new Error("Window is closed");var r,o=Ne(e,t,((r={}).__post_robot_10_0_46__=n.buffer||[],r),{on:i,send:a});delete n.buffer;for(var s=Object.keys(Fe),l=[],c=0;c<s.length;c++){var u=s[c];try{Fe[u](e,o,t)}catch(d){l.push(d)}}if(l.length===s.length)throw new Error("All post-robot messaging strategies failed:\n\n"+l.map(function(e,t){return t+". "+Z(e)}).join("\n\n"))}),n.flush.then(function(){delete n.flush})}).then(H)}function We(e){return ae("responseListeners").get(e)}function xe(e){ae("responseListeners").del(e)}function Oe(e){return ae("erroredResponseListeners").has(e)}function Ke(e){var t=e.name,r=e.win,n=e.domain,i=ce("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var a=0,o=[r,le()];a<o.length;a++){var s=o[a];if(s){var l=i.get(s);if(l){var c=l[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],q=p.listener;if(A(p.regex,n))return q}}if(c["*"])return c["*"]}}}}}function Ie(e,t,r,n){var i=n.on,a=n.send,o=Ke({name:r.name,win:e,domain:t}),s="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function l(n,o,l){return W.flush().then(function(){if(!r.fireAndForget&&!b(e))try{return we(e,t,{id:L(),origin:p(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:l},{on:i,send:a})}catch(c){throw new Error("Send response message failed for "+s+" in "+p()+"\n\n"+Z(c))}})}return W.all([W.flush().then(function(){if(!r.fireAndForget&&!b(e))try{return we(e,t,{id:L(),origin:p(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:i,send:a})}catch(n){throw new Error("Send ack message failed for "+s+" in "+p()+"\n\n"+Z(n))}}),W.try(function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})}).then(function(e){return l("success",e)},function(e){return l("error",null,e)})]).then(H).catch(function(e){if(o&&o.handleError)return o.handleError(e);throw e})}function De(e,t,r){if(!Oe(r.hash)){var n=We(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!A(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(i){n.promise.reject(i)}n.ack=!0}}function Le(e,t,r){if(!Oe(r.hash)){var i,a=We(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!A(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(i=a.domain,Array.isArray(i)?"("+i.join(" | ")+")":n(i)?"RegExp("+i.toString()+")":i.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");xe(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}function Pe(e,t){var r=t.on,n=t.send,i=ae("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(u){return}var a=e.source,o=e.origin,s=function(e,t,r,n){var i,a=n.on,o=n.send;try{i=ke(t,r,e,{on:a,send:o})}catch(u){return}if(i&&"object"==typeof i&&null!==i){var s=i.__post_robot_10_0_46__;if(Array.isArray(s))return s}}(e.data,a,o,{on:r,send:n});if(s){he(a);for(var l=0;l<s.length;l++){var c=s[l];if(i.has(c.id))return;if(i.set(c.id,!0),b(a)&&!c.fireAndForget)return;0===c.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===c.type?Ie(a,o,c,{on:r,send:n}):"postrobot_message_response"===c.type?Le(a,o,c):"postrobot_message_ack"===c.type&&De(a,o,c)}catch(u){setTimeout(function(){throw u},0)}}}}function Be(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,i=t.win,a=t.domain,o=ce("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(i&&"*"!==i&&Te.isProxyWindow(i)){var s=i.awaitWindow().then(function(t){return e({name:n,win:t,domain:a},r)});return{cancel:function(){s.then(function(e){return e.cancel()},H)}}}var l=i;if(Array.isArray(l)){for(var c=[],u=0,d=l;u<d.length;u++)c.push(e({name:n,domain:a,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(a)){for(var p=[],q=0,h=a;q<h.length;q++)p.push(e({name:n,win:l,domain:h[q]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var V=Ke({name:n,win:l,domain:a});l&&"*"!==l||(l=le());var f=(a=a||"*").toString();if(V)throw l&&a?new Error("Request listener already exists for "+n+" on domain "+a.toString()+" for "+(l===le()?"wildcard":"specified")+" window"):l?new Error("Request listener already exists for "+n+" for "+(l===le()?"wildcard":"specified")+" window"):a?new Error("Request listener already exists for "+n+" on domain "+a.toString()):new Error("Request listener already exists for "+n);var m,g,b=o.getOrSet(l,function(){return{}}),v=Q(b,n,function(){return{}});return z(a)?(m=Q(v,"__domain_regex__",function(){return[]})).push(g={regex:a,listener:r}):v[f]=r,{cancel:function(){delete v[f],g&&(m.splice(m.indexOf(g,1)),m.length||delete v.__domain_regex__),Object.keys(v).length||delete b[n],l&&!Object.keys(b).length&&o.del(l)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}function Xe(e,t,r){"function"==typeof(t=t||{})&&(r=t,t={});var n,i=new W;return t.errorHandler=function(e){n.cancel(),i.reject(e)},n=Be(e,t,function(e){if(n.cancel(),i.resolve(e),r)return r(e)}),i.cancel=n.cancel,i}Fe.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)};var Me=function e(t,r,n,i){var a=(i=i||{}).domain||"*",o=i.timeout||-1,s=i.timeout||5e3,c=i.fireAndForget||!1;return Te.toProxyWindow(t,{send:e}).awaitWindow().then(function(t){return W.try(function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if("string"!=typeof r&&!Array.isArray(r)&&!z(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(b(t))throw new Error("Can not send "+e+". Target window is closed")}(r,t,a),function(e,t){var r=v(t);if(r)return r===e;if(t===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(i){}if(l(e)===e)return e;try{if(V(window,e)&&window.top)return window.top}catch(i){}try{if(V(e,window)&&window.top)return window.top}catch(i){}for(var t=0,r=function e(t){for(var r=[],n=0,i=f(t);n<i.length;n++){var a=i[n];r.push(a);for(var o=0,s=e(a);o<s.length;o++)r.push(s[o])}return r}(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(i){}if(l(n)===n)return n}}(t)===t)return!1;for(var n=0,i=f(e);n<i.length;n++)if(i[n]===t)return!0;return!1}(window,t))return function(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n,i=(n=e,ce("helloPromises").getOrSet(n,function(){return new W}));return-1!==t&&(i=i.timeout(t,new Error(r+" did not load after "+t+"ms"))),i}(t,s)}).then(function(r){return n=t,i=a,o=(void 0===r?{}:r).domain,s=e,W.try(function(){return"string"==typeof i?i:W.try(function(){return o||pe(n,{send:s}).then(function(e){return e.domain})}).then(function(e){if(!A(i,i))throw new Error("Domain "+Y(i)+" does not match "+Y(i));return e})});var n,i,o,s}).then(function(i){var a,s,l,u,d=i,q="postrobot_method"===r&&n&&"string"==typeof n.name?n.name+"()":r,h=new W,V=r+"_"+L();if(!c){var f={name:r,win:t,domain:d,promise:h};l=V,u=f,ae("responseListeners").set(l,u);var m=ce("requestPromises").getOrSet(t,function(){return[]});m.push(h),h.catch(function(){!function(e){ae("erroredResponseListeners").set(e,!0)}(V),xe(V)});var g=(s=t,ce("knownWindows").get(s,!1)?1e4:2e3),v=o,A=g,S=v,y=(function e(){a=setTimeout(function(){b(t)?h.reject(new Error("Window closed for "+r+" before "+(f.ack?"response":"ack"))):f.cancelled?h.reject(new Error("Response listener was cancelled for "+r)):(A=Math.max(A-500,0),-1!==S&&(S=Math.max(S-500,0)),f.ack||0!==A?0===S&&h.reject(new Error("No response for postMessage "+q+" in "+p()+" in "+v+"ms")):h.reject(new Error("No ack for postMessage "+q+" in "+p()+" in "+g+"ms"))),e()},500)}(),{cancel:function(){clearTimeout(a)}});h.finally(function(){y.cancel(),m.splice(m.indexOf(h,1))}).catch(H)}return we(t,d,{id:L(),origin:p(window),type:"postrobot_message_request",hash:V,name:r,data:n,fireAndForget:c},{on:Be,send:e}).then(function(){return c?h.resolve():h},function(e){throw new Error("Send request message failed for "+q+" in "+p()+"\n\n"+Z(e))})})})};function je(e,t,r){return Ne(e,t,r,{on:Be,send:Me})}function Ge(e,t,r){return ke(e,t,r,{send:Me})}function He(e){return new Te({send:Me,win:e})}function Ze(e){return Te.toProxyWindow(e,{send:Me})}function Ye(){var e,t,r,n,i,a,o;ne().initialized||(ne().initialized=!0,i=(n={on:Be,send:Me}).on,a=n.send,(o=ne()).receiveMessage=o.receiveMessage||function(e){return Pe(e,{on:i,send:a})},t=(e={on:Be,send:Me}).on,r=e.send,ae().getOrSet("postMessageListener",function(){return e=window,n=function(e){var n,i,a,o;n=e,a=(i={on:t,send:r}).on,o=i.send,W.try(function(){var e=n.source||n.sourceElement,t=n.origin||n.originalEvent&&n.originalEvent.origin,r=n.data;if("null"===t&&(t="file://"),e){if(!t)throw new Error("Post message did not have origin domain");Pe({source:e,origin:t,data:r},{on:a,send:o})}})},e.addEventListener("message",n),{cancel:function(){e.removeEventListener("message",n)}};var e,n}),function(e){var t=e.on,r=e.send;ae("builtinListeners").getOrSet("helloListener",function(){var e=t("postrobot_hello",{domain:"*"},function(e){return de(e.source,{domain:e.origin}),{instanceID:ue()}}),n=v();return n&&pe(n,{send:r}).catch(function(e){}),e})}({on:Be,send:Me}))}function ze(){var e;!function(){for(var e=ae("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],i=e.get(n);i&&(i.cancelled=!0),e.del(n)}}(),(e=ae().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_46__}var Qe=!0;function Je(e){for(var t=0,r=ce("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(b(e)?"closed":"cleaned up")+" before response")).catch(H)}Ye()}]);var Zp=Hp.exports;!function(e){e.exports=Zp,e.exports.default=e.exports}(Gp);const Yp=q(Gp.exports),zp=e=>{const{data:n,buttonText:i,codeTestURL:a=Dp,codeplayerURL:o=Lp,toRunCodeQuestion:s}=e,{verifyMode:l="",content:c="",topic:u,example:d,lang:p,cases:q}=n;t.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const h=t.useRef(null);return v.jsx("div",{className:"question-preview",children:v.jsx("div",{className:"content",children:v.jsx("div",{className:"preview-container",children:v.jsx("div",{className:"preview",children:v.jsxs("div",{className:"preview-content",children:[v.jsx(Mp,{score:n.score,type:n.type,difficulty:n.difficulty,currentIndex:null==n?void 0:n.currentIndex,questionsCount:null==n?void 0:n.questionsCount}),u&&v.jsx("div",{className:"topic",children:u}),c.trim()?v.jsx(Kp,{editorHeight:"fit-content",readOnly:!0,isBorder:!1,defaultValue:c,noPadding:!0}):v.jsx("p",{}),v.jsx(r.Button,{className:"submitBtn",onClick:()=>{if(s)s();else if(l===mp.INPUT_OUTPUT){const e=window.open(a),t=null==q?void 0:q.map(({input:e,output:t})=>Array.isArray(e)?{input:e,output:t}:{input:[e],output:t});Yp.send(e,"send",{title:u,content:c,initCode:d,code:d,lang:null==p?void 0:p.toLocaleLowerCase(),cases:t,submitCases:t,noSubmit:!0,aiEnabled:!0})}else{const e=window.open(`${o}`),t=()=>{let t=[d];if("html"===n.lang&&d)try{const e=JSON.parse(d);t=[e.html??"",e.css??"",e.js??""]}catch(r){}Yp.send(e,"send",{title:u,content:c,lang:null==p?void 0:p.toLocaleLowerCase(),code:t,aiEnabled:!0,run:!1,dark:!0})};t(),Yp.on("refresh",{window:e},async function(){h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{(null==e?void 0:e.closed)||t()},500)}),Yp.on("change",{window:e},e=>{})}},type:"primary",style:{minWidth:"88px"},children:i||"去答题"})]})})})})})},{TextArea:Qp}=r.Input,Jp=e=>{const{status:n,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,{answerOption:l,userAnswer:c,topic:u}=i,[d,p]=t.useState([]),[q,h]=t.useState(),[V,f]=t.useState(!1),m=e=>{if(g&&!e)return void r.message.warning("请先进行填空!");if(V&&!e)return void(null==s||s());const t=e||d,n=null==l?void 0:l.every((e,r)=>{var n;return(null==e?void 0:e.answer)===(null==(n=t[r])?void 0:n.answer)});h(n),f(!0),!e&&(null==a||a(t))},g=t.useMemo(()=>d.every(e=>!(null==e?void 0:e.answer)),[d]);return t.useEffect(()=>{let e;"string"==typeof c&&(e=up(c));const t=(e||c||l||[]).map(e=>({answer:n===gp.ADD||c?null==e?void 0:e.answer:void 0}))??[];p(t),c&&m(t)},[n,c,l]),v.jsxs("div",{className:"completion",children:[v.jsx("div",{className:"completion-title",children:v.jsxs("div",{className:"completion-title-content",children:[v.jsx(Mp,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),v.jsx(Kp,{isBorder:!1,defaultValue:u.indexOf("<code")>-1?u.replace(/<code[^>]*>|<\/code>/g,""):u,readOnly:!0,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),v.jsx("div",{className:"completion-content",children:null==d?void 0:d.map((e,t)=>{var r,i,a;return v.jsxs("div",{className:"item-warpper",children:[v.jsxs("div",{className:"completion-content-item",children:[v.jsxs("span",{children:["填空",t+1]}),v.jsx(Qp,{style:{resize:"none"},placeholder:n===gp.EXAM||n===gp.PREVIEW?"请输入答案":"",disabled:n===gp.ADD||V,autoSize:{maxRows:3},value:null==e?void 0:e.answer,onChange:e=>((e,t)=>{h(void 0),f(!1);const r=e.target.value,n=[...d];n[t].answer=r,p(n)})(e,t)})]}),V&&v.jsx("div",{className:"item-result "+((null==e?void 0:e.answer)===(null==(r=l[t])?void 0:r.answer)?"right":"error"),children:(null==e?void 0:e.answer)===(null==(i=l[t])?void 0:i.answer)?v.jsxs("span",{children:[v.jsx(ze,{})," 正确"]}):v.jsxs("span",{children:[v.jsx(nt,{})," 错误, ",v.jsxs("span",{className:"answer",children:["正确答案:",null==(a=l[t])?void 0:a.answer]})]})})]},String(t))})}),a&&v.jsx("div",{className:"submit-btn",children:v.jsx(r.Button,{type:"primary",onClick:()=>m(),children:o||(V?"下一题":"提交")})})]})},_p=e=>{const{status:n=gp.EXAM,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,[l,c]=t.useState(),[u,d]=t.useState(!1),p=t.useRef(null);t.useEffect(()=>{i.userAnswer&&(c(i.userAnswer),q(i.userAnswer))},[i]);const q=e=>{if(u&&!e)return void(null==s||s());const t=e||l;t?(d(!0),!e&&a&&a(t)):r.message.warning("请输入答案!")},h=[];return[gp.ADD,gp.MARK].includes(n)&&i&&(i.answer&&h.push({key:"1",label:v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{fontWeight:"bold"},children:"参考答案"}),v.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:v.jsx(Kp,{readOnly:!0,isBorder:!1,defaultValue:i.answer,autoHeight:{min:0,max:1e4}})}),i.judgeNorm&&h.push({key:"2",label:v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{fontWeight:"bold"},children:"判分标准"}),v.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:v.jsx(Kp,{readOnly:!0,defaultValue:i.judgeNorm,isBorder:!1,autoHeight:{min:0,max:1e4}})})),v.jsxs("div",{className:"essay-question",children:[v.jsx("div",{className:"essay-question-title",children:v.jsxs("div",{className:"essay-question-title-content",children:[v.jsx(Mp,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),v.jsx(Kp,{defaultValue:null==i?void 0:i.topic,readOnly:!0,isBorder:!1,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),v.jsxs("div",{className:"essay-question-content",children:[[gp.MARK,gp.VIEW,gp.EXAM,gp.PREVIEW].includes(n)&&v.jsx(Kp,{ref:p,readOnly:n===gp.ADD||n===gp.MARK||n===gp.VIEW,editorHeight:220,defaultValue:(null==i?void 0:i.userAnswer)||"",placeholder:n===gp.EXAM||n===gp.PREVIEW?"请输入回答":"",onChange:e=>{c(e)},customToolbarKeys:["undo","redo","fullScreen","|","headerSelect","bold",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable"],uploadImageLimit:e=>e.size>3145728&&(r.message.destroy(),r.message.warning("仅能上传大小为3MB内的图片噢~"),!0)}),[gp.ADD,gp.MARK].includes(n)&&v.jsx(r.Collapse,{defaultActiveKey:n===gp.ADD?["1","2"].filter(e=>!("1"===e&&!(null==i?void 0:i.answer)||"2"===e&&!(null==i?void 0:i.judgeNorm))):[],ghost:!0,expandIcon:({isActive:e})=>v.jsx(Ge,{rotate:e?90:0}),items:h})]}),a&&v.jsx("div",{className:"submit-btn",children:v.jsx(r.Button,{type:"primary",onClick:()=>q(),children:o||u?"下一题":"提交"})})]})},$p=t.forwardRef((e,r)=>{const{data:n,questionProps:i={}}=e,{onSubmit:a,onNextQuestion:o,buttonText:s="",showQuestionTip:l=!1,showResult:c,status:u=gp.PREVIEW,className:d="",styles:p={},uploadImg:q,codeTestURL:h,codeplayerURL:V,unknowQesutionRender:f,toRunCodeQuestion:m}=i,g=t.useMemo(()=>{const e={...n},{optionJson:t,type:r}=n;return!t||r!==fp.ACM&&r!==fp.CCM||(e.lang=null==t?void 0:t.defaultLanguage),e},[n]),b=e=>v.jsx(xp.Provider,{value:{topProps:{uploadImg:q}},children:v.jsx("div",{className:`question-wrapper ${d}`,style:{...p},children:e})}),A={data:g,onSubmit:a,buttonText:s,status:u,onNextQuestion:o};switch(g.type){case fp.RADIO:case fp.CHECKBOX:return(()=>{const e=v.jsx(jp,{showQuestionTip:l,showResult:c,...A});return b(e)})();case fp.ACM:case fp.CCM:return(()=>{const e=v.jsx(zp,{codeTestURL:h,codeplayerURL:V,toRunCodeQuestion:m,...A});return b(e)})();case fp.COMPLETION:return(()=>{const e=v.jsx(Jp,{showResult:c,...A});return b(e)})();case fp.ANSWER:return(()=>{const e=v.jsx(_p,{...A});return b(e)})();default:return f?f(g):v.jsx("div",{children:"未知题型"})}});var eq={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function tq(e){eq=e}var rq={exec:()=>null};function nq(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(iq.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var iq={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},aq=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,oq=/(?:[*+-]|\d{1,9}[.)])/,sq=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lq=nq(sq).replace(/bull/g,oq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),cq=nq(sq).replace(/bull/g,oq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uq=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dq=/(?!\s*\])(?:\\.|[^\[\]\\])+/,pq=nq(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dq).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qq=nq(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,oq).getRegex(),hq="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Vq=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fq=nq("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Vq).replace("tag",hq).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mq=nq(uq).replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex(),gq={blockquote:nq(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mq).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:pq,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:aq,html:fq,lheading:lq,list:qq,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:mq,table:rq,text:/^[^\n]+/},bq=nq("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex(),vq={...gq,lheading:cq,table:bq,paragraph:nq(uq).replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bq).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex()},Aq={...gq,html:nq("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Vq).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rq,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nq(uq).replace("hr",aq).replace("heading"," *#{1,6} *[^\n]").replace("lheading",lq).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Sq=/^( {2,}|\\)\n(?!\s*$)/,yq=/[\p{P}\p{S}]/u,Eq=/[\s\p{P}\p{S}]/u,Tq=/[^\s\p{P}\p{S}]/u,Cq=nq(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Eq).getRegex(),Uq=/(?!~)[\p{P}\p{S}]/u,Rq=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Nq=nq(Rq,"u").replace(/punct/g,yq).getRegex(),kq=nq(Rq,"u").replace(/punct/g,Uq).getRegex(),Fq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wq=nq(Fq,"gu").replace(/notPunctSpace/g,Tq).replace(/punctSpace/g,Eq).replace(/punct/g,yq).getRegex(),Wq=nq(Fq,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Uq).getRegex(),xq=nq("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tq).replace(/punctSpace/g,Eq).replace(/punct/g,yq).getRegex(),Oq=nq(/\\(punct)/,"gu").replace(/punct/g,yq).getRegex(),Kq=nq(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Iq=nq(Vq).replace("(?:--\x3e|$)","--\x3e").getRegex(),Dq=nq("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Iq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Lq=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Pq=nq(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Lq).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bq=nq(/^!?\[(label)\]\[(ref)\]/).replace("label",Lq).replace("ref",dq).getRegex(),Xq=nq(/^!?\[(ref)\](?:\[\])?/).replace("ref",dq).getRegex(),Mq={_backpedal:rq,anyPunctuation:Oq,autolink:Kq,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:Sq,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:rq,emStrongLDelim:Nq,emStrongRDelimAst:wq,emStrongRDelimUnd:xq,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Pq,nolink:Xq,punctuation:Cq,reflink:Bq,reflinkSearch:nq("reflink|nolink(?!\\()","g").replace("reflink",Bq).replace("nolink",Xq).getRegex(),tag:Dq,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:rq},jq={...Mq,link:nq(/^!?\[(label)\]\((.*?)\)/).replace("label",Lq).getRegex(),reflink:nq(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Lq).getRegex()},Gq={...Mq,emStrongRDelimAst:Wq,emStrongLDelim:kq,url:nq(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Hq={...Gq,br:nq(Sq).replace("{2,}","*").getRegex(),text:nq(Gq.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zq={normal:gq,gfm:vq,pedantic:Aq},Yq={normal:Mq,gfm:Gq,breaks:Hq,pedantic:jq},zq={"&":"&","<":"<",">":">",'"':""","'":"'"},Qq=e=>zq[e];function Jq(e,t){if(t){if(iq.escapeTest.test(e))return e.replace(iq.escapeReplace,Qq)}else if(iq.escapeTestNoEncode.test(e))return e.replace(iq.escapeReplaceNoEncode,Qq);return e}function _q(e){try{e=encodeURI(e).replace(iq.percentDecode,"%")}catch{return null}return e}function $q(e,t){var r;let n=e.replace(iq.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(iq.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(iq.slashPipe,"|");return n}function eh(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function th(e,t,r,n,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var rh=class{constructor(e){l(this,"options"),l(this,"rules"),l(this,"lexer"),this.options=e||eq}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eh(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eh(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eh(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eh(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,r=r.substring(0,r.length-t.raw.length)+o.raw,n=n.substring(0,n.length-t.text.length)+o.text;break}if("list"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,r=r.substring(0,r.length-u.raw.length)+o.raw,n=n.substring(0,n.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;e;){let r=!1,n="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let p,q=e.split("\n",1)[0];if(c=q,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),n+=q+"\n",e=e.substring(q.length+1),l=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let p,q=null;this.options.gfm&&(q=this.rules.other.listIsTask.exec(s),q&&(p="[ ] "!==q[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:n,task:!!q,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=$q(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push($q(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eh(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),th(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return th(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,a=[...n[0]].length-1,o=a,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...n[0]][0].length,l=e.slice(0,a+n.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let i;do{i=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(i!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},nh=class e{constructor(e){l(this,"tokens"),l(this,"options"),l(this,"state"),l(this,"tokenizer"),l(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eq,this.options.tokenizer=this.options.tokenizer||new rh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:iq,block:Zq.normal,inline:Yq.normal};this.options.pedantic?(t.block=Zq.pedantic,t.inline=Yq.pedantic):this.options.gfm&&(t.block=Zq.gfm,this.options.breaks?t.inline=Yq.breaks:t.inline=Yq.gfm),this.tokenizer.rules=t}static get rules(){return{block:Zq,inline:Yq}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(iq.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,i,a;for(this.options.pedantic&&(e=e.replace(iq.tabCharGlobal," ").replace(iq.spaceLine,""));e;){let o;if(null==(i=null==(n=this.options.extensions)?void 0:n.block)?void 0:i.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let r=t.at(-1);1===o.raw.length&&void 0!==r?r.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(s=e.substring(0,r+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o),r=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,i;let a=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;e;){let o;if(s||(l=""),s=!1,null==(n=null==(r=this.options.extensions)?void 0:r.inline)?void 0:n.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===o.type&&"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,a,l)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let c=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(c=e.substring(0,r+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(l=o.raw.slice(-1)),s=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},ih=class{constructor(e){l(this,"options"),l(this,"parser"),this.options=e||eq}space(e){return""}code({text:e,lang:t,escaped:r}){var n;let i=null==(n=(t||"").match(iq.notSpaceStart))?void 0:n[0],a=e.replace(iq.endingNewline,"")+"\n";return i?'<pre><code class="language-'+Jq(i)+'">'+(r?a:Jq(a,!0))+"</code></pre>\n":"<pre><code>"+(r?a:Jq(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let a=0;a<e.items.length;a++){let t=e.items[a];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){var t;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Jq(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Jq(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=_q(e);if(null===i)return n;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+Jq(t)+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=_q(e);if(null===i)return Jq(r);let a=`<img src="${e=i}" alt="${r}"`;return t&&(a+=` title="${Jq(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Jq(e.text)}},ah=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},oh=class e{constructor(e){l(this,"options"),l(this,"renderer"),l(this,"textRenderer"),this.options=e||eq,this.options.renderer=this.options.renderer||new ih,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ah}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,n=this.renderer.text(r);for(;a+1<e.length&&"text"===e[a+1].type;)r=e[++a],n+="\n"+this.renderer.text(r);i+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=e||"";continue}}let s=o;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}},sh=(o=class{constructor(e){l(this,"options"),l(this,"block"),this.options=e||eq}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?nh.lex:nh.lexInline}provideParser(){return this.block?oh.parse:oh.parseInline}},l(o,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),o),lh=new class{constructor(...e){l(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),l(this,"options",this.setOptions),l(this,"parse",this.parseMarkdown(!0)),l(this,"parseInline",this.parseMarkdown(!1)),l(this,"Parser",oh),l(this,"Renderer",ih),l(this,"TextRenderer",ah),l(this,"Lexer",nh),l(this,"Tokenizer",rh),l(this,"Hooks",sh),this.use(...e)}walkTokens(e,t){var r,n;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let r of e.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=a;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new ih(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new rh(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new sh;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],a=t[n];sh.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nh.lex(e,t??this.defaults)}parser(e,t){return oh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?nh.lex:nh.lexInline,s=i.hooks?i.hooks.provideParser():e?oh.parse:oh.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let r=s(e,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Jq(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ch(e,t){return lh.parse(e,t)}ch.options=ch.setOptions=function(e){return lh.setOptions(e),ch.defaults=lh.defaults,tq(ch.defaults),ch},ch.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},ch.defaults=eq,ch.use=function(...e){return lh.use(...e),ch.defaults=lh.defaults,tq(ch.defaults),ch},ch.walkTokens=function(e,t){return lh.walkTokens(e,t)},ch.parseInline=lh.parseInline,ch.Parser=oh,ch.parser=oh.parse,ch.Renderer=ih,ch.TextRenderer=ah,ch.Lexer=nh,ch.lexer=nh.lex,ch.Tokenizer=rh,ch.Hooks=sh,ch.parse=ch,ch.options,ch.setOptions,ch.use,ch.walkTokens,ch.parseInline,oh.parse,nh.lex;const uh=t.forwardRef((e,n)=>{const{envStatus:i,podName:a,runnerBaseUrl:o}=t.useContext(Cx),{data:s,hasTitle:l=!0,toScore:c,errorHanle:u,codeChange:d}=e,p=t.useRef(null),[q,h]=t.useState(!0),[V,f]=t.useState(!1),m=dp(e=>{null==d||d(e.code)}),g=t.useRef(null);return t.useEffect(()=>(f(!1),h(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{f(!0)},1e3),()=>{g.current&&clearTimeout(g.current)}),[s]),t.useImperativeHandle(n,()=>({toInstallPackage:e=>{var t,r;(null==(t=p.current)?void 0:t.contentWindow)&&Yp.send(null==(r=p.current)?void 0:r.contentWindow,"vgenPackages",{packages:e})}})),v.jsx(r.Spin,{spinning:q,children:v.jsx("div",{className:"codePlayer",children:v.jsx("div",{className:"codePlayerContent",style:{height:l?"":"100%"},children:V&&v.jsx("iframe",{ref:p,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${o||"https://run.cloudlab.top"}/embedded?fromVgen=true`,style:{border:"none"},title:"CodeRunner",className:"CodeRunner-iframe",onLoad:async()=>{var e,t,n,o;try{h(!1);const d=null==(e=p.current)?void 0:e.contentWindow,{topic:q="",content:V="",lang:f="",code:g="",cases:b=[],css:v="",js:A=""}=s;let S=V;try{S=ch.parse(V)}catch(l){}let y=[];if("html"===f)if(v||A)y=[g,v||"",A||""];else try{const e=JSON.parse(g);y=[e.html,e.css,e.js]}catch(l){}"html"!==f||y.length||(y=[g,"",""]);let E={...s};const T={title:q,content:S,lang:f,code:"html"===f?y:g,aiEnabled:!1,run:!1,cases:b,customButtons:c?[{name:"提交",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]};i&&a&&(T.podName=a,T.nameSpace="pty-prod"),Yp.send(d,"send",T),c&&Yp.on("submit",{window:d},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),c(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),Yp.on("change",{window:null==(t=p.current)?void 0:t.contentWindow},async function(e){var t,r,n,i,a;if("html"===f)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};E.code=JSON.stringify(i)}catch(l){E.code=(null==(i=e.data)?void 0:i[0])??""}else E.code=(null==(a=e.data)?void 0:a[0])??"";m(E)}),Yp.on("errorHandle",{window:null==(n=p.current)?void 0:n.contentWindow},async function(e){var t,r,n;null==u||u({lang:null==(t=e.data)?void 0:t.lang,code:null==(r=e.data)?void 0:r.code,error:null==(n=e.data)?void 0:n.error})}),Yp.on("getToken",{window:null==(o=p.current)?void 0:o.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(l){}}})})})})}),dh=e=>{const{data:n,hasTitle:i=!0,toScore:a,codeChange:o}=e,{quizBaseUrl:s}=t.useContext(Cx),l=t.useRef(null),[c,u]=t.useState(!0),[d,p]=t.useState(!1),q=dp(e=>{null==o||o(e.code)}),h=t.useRef(null);return t.useEffect(()=>(p(!1),u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{p(!0)},1e3),()=>{h.current&&clearTimeout(h.current)}),[n]),v.jsx(r.Spin,{spinning:c,children:v.jsxs("div",{className:"codeQuiz",children:[i&&v.jsx("div",{className:"codeQuizTitle",children:"CodeQuiz"}),v.jsx("div",{className:"codeQuizContent",style:{height:i?"":"100%"},children:d&&v.jsx("iframe",{ref:l,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${s||"https://quiz.cloudlab.top"}`,style:{border:"none"},title:"CodeQuiz",className:"codeQuiz-iframe",onLoad:async()=>{var e,t,i;try{u(!1);const s=null==(e=l.current)?void 0:e.contentWindow,{topic:c="",content:d="",lang:p="",code:h="",cases:V=[]}=n;let f=V;f=V.map(e=>"string"==typeof e.input?{...e,input:up(e.input)||[]}:{...e});let m=d;try{m=ch.parse(d)}catch(o){}let g={...n};Yp.send(s,"send",{title:c,content:m,lang:p,code:h,cases:f,aiEnabled:!1,run:!1,customButtons:a?[{name:"判分",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]}),a&&Yp.on("submit",{window:s},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),a(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),Yp.on("change",{window:null==(t=l.current)?void 0:t.contentWindow},async function(e){var t,r,n,i;if("html"===p)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};g.code=JSON.stringify(i)}catch(o){g.code=(null==(i=e.data)?void 0:i[0])??""}else g.code=e.data??"";q(g)}),Yp.on("getToken",{window:null==(i=l.current)?void 0:i.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(o){}}})})]})})};var ph={exports:{}};
|
|
26
|
+
*/function re(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=re(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const ne={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ie=Math.round;function ae(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const oe=(e,t,r)=>0===r?e:e/100;function se(e,t){const r=t||255;return e>r?r:e<0?0:e}class le{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(l(this,"isValid",!0),l(this,"r",0),l(this,"g",0),l(this,"b",0),l(this,"a",1),l(this,"_h"),l(this,"_s"),l(this,"_l"),l(this,"_v"),l(this,"_max"),l(this,"_min"),l(this,"_brightness"),e)if("string"==typeof e){let t=function(e){return r.startsWith(e)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(t("rgb"))this.fromRgbString(r);else if(t("hsl"))this.fromHslString(r);else if(t("hsv")||t("hsb"))this.fromHsvString(r);else{const e=ne[r.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof le)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=se(e.r),this.g=se(e.g),this.b=se(e.b),this.a="number"==typeof e.a?se(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:ie(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,i=e=>(r[e]-this[e])*n+this[e],a={r:ie(i("r")),g:ie(i("g")),b:ie(i("b")),a:ie(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>ie((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=ie(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ie(100*this.getSaturation()),r=ie(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=se(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=ie(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,o=0;const s=e/60,l=(1-Math.abs(2*r-1))*t,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,a=c):s>=1&&s<2?(i=c,a=l):s>=2&&s<3?(a=l,o=c):s>=3&&s<4?(a=c,o=l):s>=4&&s<5?(i=c,o=l):s>=5&&s<6&&(i=l,o=c);const u=r-l/2;this.r=ie(255*(i+u)),this.g=ie(255*(a+u)),this.b=ie(255*(o+u))}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;const i=ie(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,o=Math.floor(a),s=a-o,l=ie(r*(1-t)*255),c=ie(r*(1-t*s)*255),u=ie(r*(1-t*(1-s))*255);switch(o){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(e){const t=ae(e,oe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=ae(e,oe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=ae(e,(e,t)=>t.includes("%")?ie(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const ce=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ue(e,t,r){let n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t,n<0?n+=360:n>=360&&(n-=360),n}function de(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,n>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100}function pe(e,t,r){let n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}const qe=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qe.primary=qe[5];const he="data-rc-order",Ve="data-rc-priority",fe=new Map;function me({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function ge(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function be(e){return Array.from((fe.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function ve(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:r,prepend:n,priority:i=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),o="prependQueue"===a,s=document.createElement("style");s.setAttribute(he,a),o&&i&&s.setAttribute(Ve,`${i}`),(null==r?void 0:r.nonce)&&(s.nonce=null==r?void 0:r.nonce),s.innerHTML=e;const l=ge(t),{firstChild:c}=l;if(n){if(o){const e=(t.styles||be(l)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(he)))return!1;const t=Number(e.getAttribute(Ve)||0);return i>=t});if(e.length)return l.insertBefore(s,e[e.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ae(e){var t;return null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e)}let Se={};const ye=[];function Ee(e,t){"production"===process.env.NODE_ENV||e||void 0===console||ye.reduce((e,t)=>t(e??"","warning"),t)}function Te(e,t){"production"===process.env.NODE_ENV||e||void 0===console||ye.reduce((e,t)=>t(e??"","note"),t)}function Ce(e,t,r){t||Se[r]||(e(!1,r),Se[r]=!0)}function Ue(e,t){Ce(Ee,e,t)}function Re(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Ne(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];var i;return"class"===r?(t.className=n,delete t.class):(delete t[r],t[(i=r,i.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=n),t},{})}function ke(e,r,n){return n?t.createElement(e.tag,{key:r,...Ne(e.attrs),...n},(e.children||[]).map((t,n)=>ke(t,`${r}-${e.tag}-${n}`))):t.createElement(e.tag,{key:r,...Ne(e.attrs)},(e.children||[]).map((t,n)=>ke(t,`${r}-${e.tag}-${n}`)))}function Fe(e){return function(e,t={}){const r=[],n=new le(e),i=n.toHsv();for(let a=5;a>0;a-=1){const e=new le({h:ue(i,a,!0),s:de(i,a,!0),v:pe(i,a,!0)});r.push(e)}r.push(n);for(let a=1;a<=4;a+=1){const e=new le({h:ue(i,a),s:de(i,a),v:pe(i,a)});r.push(e)}return"dark"===t.theme?ce.map(({index:e,amount:n})=>new le(t.backgroundColor||"#141414").mix(r[e],n).toHexString()):r.map(e=>e.toHexString())}(e)[0]}function we(e){return e?Array.isArray(e)?e:[e]:[]}Ue.preMessage=e=>{ye.push(e)},Ue.resetWarned=function(){Se={}},Ue.noteOnce=function(e,t){Ce(Te,e,t)};const We={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},xe=e=>{const{icon:r,className:n,onClick:i,style:a,primaryColor:o,secondaryColor:s,...l}=e,c=d.useRef(null);let u=We;if(o&&(u={primaryColor:o,secondaryColor:s||Fe(o)}),(e=>{const{csp:r,prefixCls:n,layer:i}=t.useContext(te);let a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(a=a.replace(/anticon/g,n)),i&&(a=`@layer ${i} {\n${a}\n}`),t.useEffect(()=>{const t=function(e){return Ae(e)instanceof ShadowRoot}(n=e.current)?Ae(n):null;var n;!function(e,t,r={}){var n,i,a;const o=ge(r),s=be(o),l={...r,styles:s};!function(e,t){const r=fe.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){const r=ve("",t),{parentNode:n}=r;fe.set(e,n),e.removeChild(r)}}(o,l);const c=function(e,t={}){let{styles:r}=t;return r||(r=be(ge(t))),r.find(r=>r.getAttribute(me(t))===e)}(t,l);if(c)return(null==(n=l.csp)?void 0:n.nonce)&&c.nonce!==(null==(i=l.csp)?void 0:i.nonce)&&(c.nonce=null==(a=l.csp)?void 0:a.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=ve(e,l);u.setAttribute(me(l),t)}(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:t})},[])})(c),Ue(Re(r),`[@ant-design/icons] icon should be icon definiton, but got ${r}`),!Re(r))return null;let p=r;return p&&"function"==typeof p.icon&&(p={...p,icon:p.icon(u.primaryColor,u.secondaryColor)}),ke(p.icon,`svg-${p.name}`,{className:n,onClick:i,style:a,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};function Oe(e){const[t,r]=we(e);return xe.setTwoToneColors({primaryColor:t,secondaryColor:r})}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(this,arguments)}xe.displayName="IconReact",xe.getTwoToneColors=function(){return{...We}},xe.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){We.primaryColor=e,We.secondaryColor=t||Fe(e),We.calculated=!!t},Oe(qe.primary);const Ie=d.forwardRef((e,t)=>{const{className:r,icon:n,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:p}=d.useContext(te),q=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=re(e))&&(n&&(n+=" "),n+=t);return n}(p,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||"loading"===n.name},r);let h=o;void 0===h&&s&&(h=-1);const V=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[f,m]=we(l);return d.createElement("span",Ke({role:"img","aria-label":n.name},c,{ref:t,tabIndex:h,onClick:s,className:q}),d.createElement(xe,{icon:n,primaryColor:f,secondaryColor:m,style:V}))});Ie.getTwoToneColor=function(){const e=xe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ie.setTwoToneColor=Oe,"production"!==process.env.NODE_ENV&&(Ie.displayName="AntdIcon");var De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Le.apply(this,arguments)}const Pe=(e,t)=>d.createElement(Ie,Le({},e,{ref:t,icon:De})),Be=d.forwardRef(Pe);"production"!==process.env.NODE_ENV&&(Be.displayName="AlignLeftOutlined");var Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Me.apply(this,arguments)}const je=(e,t)=>d.createElement(Ie,Me({},e,{ref:t,icon:Xe})),Ge=d.forwardRef(je);"production"!==process.env.NODE_ENV&&(Ge.displayName="CaretRightOutlined");var He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ze.apply(this,arguments)}const Ye=(e,t)=>d.createElement(Ie,Ze({},e,{ref:t,icon:He})),ze=d.forwardRef(Ye);"production"!==process.env.NODE_ENV&&(ze.displayName="CheckCircleFilled");var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Je.apply(this,arguments)}const _e=(e,t)=>d.createElement(Ie,Je({},e,{ref:t,icon:Qe})),$e=d.forwardRef(_e);"production"!==process.env.NODE_ENV&&($e.displayName="ClockCircleOutlined");var et={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tt.apply(this,arguments)}const rt=(e,t)=>d.createElement(Ie,tt({},e,{ref:t,icon:et})),nt=d.forwardRef(rt);"production"!==process.env.NODE_ENV&&(nt.displayName="CloseCircleFilled");var it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},at.apply(this,arguments)}const ot=(e,t)=>d.createElement(Ie,at({},e,{ref:t,icon:it})),st=d.forwardRef(ot);"production"!==process.env.NODE_ENV&&(st.displayName="CloudServerOutlined");var lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(this,arguments)}const ut=(e,t)=>d.createElement(Ie,ct({},e,{ref:t,icon:lt})),dt=d.forwardRef(ut);"production"!==process.env.NODE_ENV&&(dt.displayName="DesktopOutlined");var pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qt.apply(this,arguments)}const ht=(e,t)=>d.createElement(Ie,qt({},e,{ref:t,icon:pt})),Vt=d.forwardRef(ht);"production"!==process.env.NODE_ENV&&(Vt.displayName="EnterOutlined");var ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"};function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mt.apply(this,arguments)}const gt=(e,t)=>d.createElement(Ie,mt({},e,{ref:t,icon:ft})),bt=d.forwardRef(gt);"production"!==process.env.NODE_ENV&&(bt.displayName="HddOutlined");var vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},At.apply(this,arguments)}const St=(e,t)=>d.createElement(Ie,At({},e,{ref:t,icon:vt})),yt=d.forwardRef(St);"production"!==process.env.NODE_ENV&&(yt.displayName="PlayCircleFilled");var Et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tt.apply(this,arguments)}const Ct=(e,t)=>d.createElement(Ie,Tt({},e,{ref:t,icon:Et})),Ut=d.forwardRef(Ct);"production"!==process.env.NODE_ENV&&(Ut.displayName="SwapOutlined");var Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nt.apply(this,arguments)}const kt=(e,t)=>d.createElement(Ie,Nt({},e,{ref:t,icon:Rt})),Ft=d.forwardRef(kt);"production"!==process.env.NODE_ENV&&(Ft.displayName="ThunderboltOutlined");var wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"}}]},name:"video-camera",theme:"filled"};function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(this,arguments)}const xt=(e,t)=>d.createElement(Ie,Wt({},e,{ref:t,icon:wt})),Ot=d.forwardRef(xt);function Kt(){}function It(){}function Dt(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){-1===n&&(n=r.length,a=!0);const e=r.slice(i,n).trim();!e&&a||t.push(e),i=n+1,n=r.indexOf(",",i)}return t}function Lt(e,t){const r={};return(""===e[e.length-1]?[...e,""]:e).join((r.padRight?" ":"")+","+(!1===r.padLeft?"":" ")).trim()}"production"!==process.env.NODE_ENV&&(Ot.displayName="VideoCameraFilled");const Pt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xt={};function Mt(e,t){return(Xt.jsx?Bt:Pt).test(e)}const jt=/[ \t\n\f\r]/g;function Gt(e){return""===e.replace(jt,"")}let Ht=class{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}};function Zt(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Ht(r,n,t)}function Yt(e){return e.toLowerCase()}Ht.prototype.normal={},Ht.prototype.property={},Ht.prototype.space=void 0;let zt=class{constructor(e,t){this.attribute=t,this.property=e}};zt.prototype.attribute="",zt.prototype.booleanish=!1,zt.prototype.boolean=!1,zt.prototype.commaOrSpaceSeparated=!1,zt.prototype.commaSeparated=!1,zt.prototype.defined=!1,zt.prototype.mustUseProperty=!1,zt.prototype.number=!1,zt.prototype.overloadedBoolean=!1,zt.prototype.property="",zt.prototype.spaceSeparated=!1,zt.prototype.space=void 0;let Qt=0;const Jt=ir(),_t=ir(),$t=ir(),er=ir(),tr=ir(),rr=ir(),nr=ir();function ir(){return 2**++Qt}const ar=Object.freeze(Object.defineProperty({__proto__:null,boolean:Jt,booleanish:_t,commaOrSpaceSeparated:nr,commaSeparated:rr,number:er,overloadedBoolean:$t,spaceSeparated:tr},Symbol.toStringTag,{value:"Module"})),or=Object.keys(ar);let sr=class extends zt{constructor(e,t,r,n){let i=-1;if(super(e,t),lr(this,"space",n),"number"==typeof r)for(;++i<or.length;){const e=or[i];lr(this,or[i],(r&ar[e])===ar[e])}}};function lr(e,t,r){r&&(e[t]=r)}function cr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new sr(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Yt(n)]=n,r[Yt(a.attribute)]=n}return new Ht(t,r,e.space)}sr.prototype.defined=!0;const ur=cr({properties:{ariaActiveDescendant:null,ariaAtomic:_t,ariaAutoComplete:null,ariaBusy:_t,ariaChecked:_t,ariaColCount:er,ariaColIndex:er,ariaColSpan:er,ariaControls:tr,ariaCurrent:null,ariaDescribedBy:tr,ariaDetails:null,ariaDisabled:_t,ariaDropEffect:tr,ariaErrorMessage:null,ariaExpanded:_t,ariaFlowTo:tr,ariaGrabbed:_t,ariaHasPopup:null,ariaHidden:_t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tr,ariaLevel:er,ariaLive:null,ariaModal:_t,ariaMultiLine:_t,ariaMultiSelectable:_t,ariaOrientation:null,ariaOwns:tr,ariaPlaceholder:null,ariaPosInSet:er,ariaPressed:_t,ariaReadOnly:_t,ariaRelevant:null,ariaRequired:_t,ariaRoleDescription:tr,ariaRowCount:er,ariaRowIndex:er,ariaRowSpan:er,ariaSelected:_t,ariaSetSize:er,ariaSort:null,ariaValueMax:er,ariaValueMin:er,ariaValueNow:er,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function dr(e,t){return t in e?e[t]:t}function pr(e,t){return dr(e,t.toLowerCase())}const qr=cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rr,acceptCharset:tr,accessKey:tr,action:null,allow:null,allowFullScreen:Jt,allowPaymentRequest:Jt,allowUserMedia:Jt,alt:null,as:null,async:Jt,autoCapitalize:null,autoComplete:tr,autoFocus:Jt,autoPlay:Jt,blocking:tr,capture:null,charSet:null,checked:Jt,cite:null,className:tr,cols:er,colSpan:null,content:null,contentEditable:_t,controls:Jt,controlsList:tr,coords:er|rr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Jt,defer:Jt,dir:null,dirName:null,disabled:Jt,download:$t,draggable:_t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Jt,formTarget:null,headers:tr,height:er,hidden:$t,high:er,href:null,hrefLang:null,htmlFor:tr,httpEquiv:tr,id:null,imageSizes:null,imageSrcSet:null,inert:Jt,inputMode:null,integrity:null,is:null,isMap:Jt,itemId:null,itemProp:tr,itemRef:tr,itemScope:Jt,itemType:tr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Jt,low:er,manifest:null,max:null,maxLength:er,media:null,method:null,min:null,minLength:er,multiple:Jt,muted:Jt,name:null,nonce:null,noModule:Jt,noValidate:Jt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Jt,optimum:er,pattern:null,ping:tr,placeholder:null,playsInline:Jt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Jt,referrerPolicy:null,rel:tr,required:Jt,reversed:Jt,rows:er,rowSpan:er,sandbox:tr,scope:null,scoped:Jt,seamless:Jt,selected:Jt,shadowRootClonable:Jt,shadowRootDelegatesFocus:Jt,shadowRootMode:null,shape:null,size:er,sizes:null,slot:null,span:er,spellCheck:_t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:er,step:null,style:null,tabIndex:er,target:null,title:null,translate:null,type:null,typeMustMatch:Jt,useMap:null,value:_t,width:er,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tr,axis:null,background:null,bgColor:null,border:er,borderColor:null,bottomMargin:er,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Jt,declare:Jt,event:null,face:null,frame:null,frameBorder:null,hSpace:er,leftMargin:er,link:null,longDesc:null,lowSrc:null,marginHeight:er,marginWidth:er,noResize:Jt,noHref:Jt,noShade:Jt,noWrap:Jt,object:null,profile:null,prompt:null,rev:null,rightMargin:er,rules:null,scheme:null,scrolling:_t,standby:null,summary:null,text:null,topMargin:er,valueType:null,version:null,vAlign:null,vLink:null,vSpace:er,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Jt,disableRemotePlayback:Jt,prefix:null,property:null,results:er,security:null,unselectable:null},space:"html",transform:pr}),hr=cr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nr,accentHeight:er,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:er,amplitude:er,arabicForm:null,ascent:er,attributeName:null,attributeType:null,azimuth:er,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:er,by:null,calcMode:null,capHeight:er,className:tr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:er,diffuseConstant:er,direction:null,display:null,dur:null,divisor:er,dominantBaseline:null,download:Jt,dx:null,dy:null,edgeMode:null,editable:null,elevation:er,enableBackground:null,end:null,event:null,exponent:er,externalResourcesRequired:null,fill:null,fillOpacity:er,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rr,g2:rr,glyphName:rr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:er,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:er,horizOriginX:er,horizOriginY:er,id:null,ideographic:er,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:er,k:er,k1:er,k2:er,k3:er,k4:er,kernelMatrix:nr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:er,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:er,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:er,overlineThickness:er,paintOrder:null,panose1:null,path:null,pathLength:er,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:er,pointsAtY:er,pointsAtZ:er,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nr,rev:nr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nr,requiredFeatures:nr,requiredFonts:nr,requiredFormats:nr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:er,specularExponent:er,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:er,strikethroughThickness:er,string:null,stroke:null,strokeDashArray:nr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:er,strokeOpacity:er,strokeWidth:null,style:null,surfaceScale:er,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nr,tabIndex:er,tableValues:null,target:null,targetX:er,targetY:er,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:er,underlineThickness:er,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:er,values:null,vAlphabetic:er,vMathematical:er,vectorEffect:null,vHanging:er,vIdeographic:er,version:null,vertAdvY:er,vertOriginX:er,vertOriginY:er,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:er,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),Vr=cr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),fr=cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pr}),mr=cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),gr={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"},br=/[A-Z]/g,vr=/-[a-z]/g,Ar=/^data[-\w.:]+$/i;function Sr(e,t){const r=Yt(t);let n=t,i=zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&"data"===r.slice(0,4)&&Ar.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(vr,Er);n="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!vr.test(e)){let r=e.replace(br,yr);"-"!==r.charAt(0)&&(r="-"+r),t="data"+r}}i=sr}return new i(n,t)}function yr(e){return"-"+e.toLowerCase()}function Er(e){return e.charAt(1).toUpperCase()}const Tr=Zt([ur,qr,Vr,fr,mr],"html"),Cr=Zt([ur,hr,Vr,fr,mr],"svg");function Ur(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Rr(e){return e.join(" ").trim()}var Nr={},kr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fr=/\n/g,wr=/^\s*/,Wr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xr=/^:\s*/,Or=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Kr=/^[;\s]*/,Ir=/^\s+|\s+$/g,Dr="";function Lr(e){return e?e.replace(Ir,Dr):Dr}var Pr=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,Br.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:a}=e;i?t(n,a,e):a&&(r=r||{},r[n]=a)}),r};const Br=Pr(function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(e){var t=e.match(Fr);t&&(r+=t.length);var i=e.lastIndexOf("\n");n=~i?e.length-i:n+e.length}function a(){var e={line:r,column:n};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:r,column:n},this.source=t.source}function s(i){var a=new Error(t.source+":"+r+":"+n+": "+i);if(a.reason=i,a.filename=t.source,a.line=r,a.column=n,a.source=e,!t.silent)throw a}function l(t){var r=t.exec(e);if(r){var n=r[0];return i(n),e=e.slice(n.length),r}}function c(){l(wr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=a();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;Dr!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,Dr===e.charAt(r-1))return s("End of comment missing");var o=e.slice(2,r-2);return n+=2,i(o),e=e.slice(r),n+=2,t({type:"comment",comment:o})}}function p(){var e=a(),t=l(Wr);if(t){if(d(),!l(xr))return s("property missing ':'");var r=l(Or),n=e({type:"declaration",property:Lr(t[0].replace(kr,Dr)),value:r?Lr(r[0].replace(kr,Dr)):Dr});return l(Kr),n}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()});var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.camelCase=void 0;var Mr=/^--[a-zA-Z0-9_-]+$/,jr=/-([a-z])/g,Gr=/^[^-]+$/,Hr=/^-(webkit|moz|ms|o|khtml)-/,Zr=/^-(ms)-/,Yr=function(e,t){return t.toUpperCase()},zr=function(e,t){return"".concat(t,"-")};Xr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Gr.test(e)||Mr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Zr,zr):e.replace(Hr,zr)).replace(jr,Yr))};var Qr=(p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Nr),Jr=Xr;function _r(e,t){var r={};return e&&"string"==typeof e?((0,Qr.default)(e,function(e,n){e&&n&&(r[(0,Jr.camelCase)(e,t)]=n)}),r):r}_r.default=_r;const $r=q(_r),en=rn("end"),tn=rn("start");function rn(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}}}function nn(e){return e&&"object"==typeof e?"position"in e||"type"in e?on(e.position):"start"in e||"end"in e?on(e):"line"in e||"column"in e?an(e):"":""}function an(e){return sn(e&&e.line)+":"+sn(e&&e.column)}function on(e){return an(e&&e.start)+"-"+an(e&&e.end)}function sn(e){return e&&"number"==typeof e?e:1}class ln extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",i={},a=!1;if(t&&(i="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?n=e:!i.cause&&e&&(a=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=nn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ln.prototype.file="",ln.prototype.name="",ln.prototype.reason="",ln.prototype.message="",ln.prototype.stack="",ln.prototype.column=void 0,ln.prototype.line=void 0,ln.prototype.ancestors=void 0,ln.prototype.cause=void 0,ln.prototype.fatal=void 0,ln.prototype.place=void 0,ln.prototype.ruleId=void 0,ln.prototype.source=void 0;const cn={}.hasOwnProperty,un=new Map,dn=/[A-Z]/g,pn=new Set(["table","tbody","thead","tfoot","tr"]),qn=new Set(["td","th"]),hn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vn(e,t,r){return"element"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.tagName.toLowerCase()&&"html"===n.space&&(i=Cr,e.schema=i),e.ancestors.push(t);const a=vn(e,t.tagName,!1),o=function(e,t){const r={};let n,i;for(i in t.properties)if("children"!==i&&cn.call(t.properties,i)){const a=bn(e,i,t.properties[i]);if(a){const[i,o]=a;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&qn.has(t.tagName)?n=o:r[i]=o}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t);let s=gn(e,t);return pn.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Gt(t.value):Gt(t));var t})),fn(e,o,a,t),mn(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,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)}An(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,r){const n=e.schema;let i=n;"svg"===t.name&&"html"===n.space&&(i=Cr,e.schema=i),e.ancestors.push(t);const a=null===t.name?e.Fragment:vn(e,t.name,!0),o=function(e,t){const r={};for(const n of t.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&e.evaluater){const t=n.data.estree.body[0];Kt(t.type);const i=t.expression;Kt(i.type);const a=i.properties[0];Kt(a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else An(e,t.position);else{const i=n.name;let a;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&e.evaluater){const t=n.value.data.estree.body[0];Kt(t.type),a=e.evaluater.evaluateExpression(t.expression)}else An(e,t.position);else a=null===n.value||n.value;r[i]=a}return r}(e,t),s=gn(e,t);return fn(e,o,a,t),mn(o,s),e.ancestors.pop(),e.schema=n,e.create(t,a,o,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);An(e,t.position)}(e,t):"root"===t.type?function(e,t,r){const n={};return mn(n,gn(e,t)),e.create(t,e.Fragment,n,r)}(e,t,r):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function fn(e,t,r,n){"string"!=typeof r&&r!==e.Fragment&&e.passNode&&(t.node=n)}function mn(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function gn(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:un;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}const s=Vn(e,a,o);void 0!==s&&r.push(s)}return r}function bn(e,t,r){const n=Sr(e.schema,t);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?Lt(r):Rr(r)),"style"===n.property){let t="object"==typeof r?r:function(e,t){try{return $r(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const t=r,n=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hn+"#cannot-parse-style-attribute",n}}(e,String(r));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let r;for(r in e)cn.call(e,r)&&(t[Sn(r)]=e[r]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&n.space?gr[n.property]||n.property:n.attribute,r]}}function vn(e,t,r){let n;if(r)if(t.includes(".")){const e=t.split(".");let r,i=-1;for(;++i<e.length;){const t=Mt(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};r=r?{type:"MemberExpression",object:r,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}n=r}else n=Mt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else n={type:"Literal",value:t};if("Literal"===n.type){const t=n.value;return cn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(n);An(e)}function An(e,t){const r=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hn+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Sn(e){let t=e.replace(dn,yn);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function yn(e){return"-"+e.toLowerCase()}const En={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Tn={};function Cn(e,t){return Un(e,"boolean"!=typeof Tn.includeImageAlt||Tn.includeImageAlt,"boolean"!=typeof Tn.includeHtml||Tn.includeHtml)}function Un(e,t,r){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rn(e.children,t,r)}return Array.isArray(e)?Rn(e,t,r):""}function Rn(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Un(e[i],t,r);return n.join("")}const Nn=document.createElement("i");function kn(e){const t="&"+e+";";Nn.innerHTML=t;const r=Nn.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}function Fn(e,t,r,n){const i=e.length;let a,o=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function wn(e,t){return e.length>0?(Fn(e,e.length,0,t),e):t}const Wn={}.hasOwnProperty;function xn(e){const t={};let r=-1;for(;++r<e.length;)On(t,e[r]);return t}function On(e,t){let r;for(r in t){const n=(Wn.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let a;if(i)for(a in i){Wn.call(n,a)||(n[a]=[]);const e=i[a];Kn(n[a],Array.isArray(e)?e:e?[e]:[])}}}function Kn(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);Fn(e,0,0,n)}function In(e,t){const r=Number.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&~r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ln=Jn(/[A-Za-z]/),Pn=Jn(/[\dA-Za-z]/),Bn=Jn(/[#-'*+\--9=?A-Z^-~]/);function Xn(e){return null!==e&&(e<32||127===e)}const Mn=Jn(/\d/),jn=Jn(/[\dA-Fa-f]/),Gn=Jn(/[!-/:-@[-`{-~]/);function Hn(e){return null!==e&&e<-2}function Zn(e){return null!==e&&(e<0||32===e)}function Yn(e){return-2===e||-1===e||32===e}const zn=Jn(new RegExp("\\p{P}|\\p{S}","u")),Qn=Jn(/\s/);function Jn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function _n(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(37===a&&Pn(e.charCodeAt(r+1))&&Pn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(r+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function $n(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return function(n){return Yn(n)?(e.enter(r),o(n)):t(n)};function o(n){return Yn(n)&&a++<i?(e.consume(n),o):(e.exit(r),t(n))}}const ei={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$n(e,t,"linePrefix");e.consume(r)},function(t){return e.enter("paragraph"),n(t)});let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Hn(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),i)}}},ti={tokenize:function(e){const t=this,r=[];let n,i,a,o=0;return s;function s(n){if(o<r.length){const i=r[o];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(n)}return c(n)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&g();const r=t.events.length;let i,a=r;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){i=t.events[a][1].end;break}m(o);let s=r;for(;s<t.events.length;)t.events[s][1].end={...i},s++;return Fn(t.events,a+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(i){if(o===r.length){if(!n)return p(i);if(n.currentConstruct&&n.currentConstruct.concrete)return h(i);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ri,u,d)(i)}function u(e){return n&&g(),m(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==r.length,a=t.now().offset,h(e)}function p(r){return t.containerState={},e.attempt(ri,q,h)(r)}function q(e){return o++,r.push([t.currentConstruct,t.containerState]),p(e)}function h(r){return null===r?(n&&g(),m(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:i}),V(r))}function V(r){return null===r?(f(e.exit("chunkFlow"),!0),m(0),void e.consume(r)):Hn(r)?(e.consume(r),f(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(r),V)}function f(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=i,i&&(i.next=e),i=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<a&&(!n.events[e][1].end||n.events[e][1].end.offset>a))return;const r=t.events.length;let i,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(m(o),e=r;e<t.events.length;)t.events[e][1].end={...s},e++;Fn(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function m(n){let i=r.length;for(;i-- >n;){const n=r[i];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function g(){n.write([null]),i=void 0,n=void 0,t.containerState._closeFlow=void 0}}},ri={tokenize:function(e,t,r){return $n(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ni(e){return null===e||Zn(e)||Qn(e)?1:zn(e)?2:void 0}function ii(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const ai={name:"attention",resolveAll:function(e,t){let r,n,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[u][1].start};oi(d,-s),oi(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[u][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=wn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=wn(l,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=wn(l,ii(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=wn(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=wn(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fn(e,r-1,u-r+3,l),u=r+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=ni(n);let a;return function(t){return a=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===a)return e.consume(s),o;const l=e.exit("attentionSequence"),c=ni(s),u=!c||2===c&&i||r.includes(s),d=!i||2===i&&c||r.includes(n);return l._open=Boolean(42===a?u:u&&(i||!d)),l._close=Boolean(42===a?d:d&&(c||!u)),t(s)}}};function oi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const si={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Ln(t)?(e.consume(t),a):64===t?r(t):l(t)}function a(e){return 43===e||45===e||46===e||Pn(e)?(n=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||Pn(t))&&n++<32?(e.consume(t),o):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||Xn(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):Bn(t)?(e.consume(t),l):r(t)}function c(e){return Pn(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||Pn(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}},li={partial:!0,tokenize:function(e,t,r){return function(t){return Yn(t)?$n(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||Hn(e)?t(e):r(e)}}},ci={continuation:{tokenize:function(e,t,r){const n=this;return function(t){return Yn(t)?$n(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(n){return e.attempt(ci,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return Yn(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}},ui={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 Gn(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},di={name:"characterReference",tokenize:function(e,t,r){const n=this;let i,a,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,a=Pn,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=jn,c):(e.enter("characterReferenceValue"),i=7,a=Mn,c(t))}function c(s){if(59===s&&o){const i=e.exit("characterReferenceValue");return a!==Pn||kn(n.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return a(s)&&o++<i?(e.consume(s),c):r(s)}}},pi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},qi={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const n=this,i={partial:!0,tokenize:function(e,t,r){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),Yn(t)?$n(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):r(t)}function c(t){return t===a?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),Yn(t)?$n(e,u,"whitespace")(t):u(t)):r(t)}function u(n){return null===n||Hn(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}};let a,o=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===a?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),Yn(t)?$n(e,c,"whitespace")(t):c(t))}function c(r){return null===r||Hn(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(pi,q,g)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||Hn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Yn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$n(e,d,"whitespace")(t)):96===t&&t===a?r(t):(e.consume(t),u)}function d(t){return null===t||Hn(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Hn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?r(t):(e.consume(t),p)}function q(t){return e.attempt(i,g,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),V}function V(t){return o>0&&Yn(t)?$n(e,f,"linePrefix",o+1)(t):f(t)}function f(t){return null===t||Hn(t)?e.check(pi,q,g)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||Hn(t)?(e.exit("codeFlowValue"),f(t)):(e.consume(t),m)}function g(r){return e.exit("codeFenced"),t(r)}}},hi={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),$n(e,i,"linePrefix",5)(t)};function i(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):r(e)}function a(t){return null===t?s(t):Hn(t)?e.attempt(Vi,a,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||Hn(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),o)}function s(r){return e.exit("codeIndented"),t(r)}}},Vi={partial:!0,tokenize:function(e,t,r){const n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):$n(e,a,"linePrefix",5)(t)}function a(e){const a=n.events[n.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Hn(e)?i(e):r(e)}}},fi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),a++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),n=0,c(t)):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Hn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(i.type="codeTextData",l(r))}}};class mi{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 e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.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 n=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&gi(this.left,r),i.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),gi(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),gi(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<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);gi(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);gi(this.left,t.reverse())}}}function gi(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function bi(e){const t={};let r,n,i,a,o,s,l,c=-1;const u=new mi(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,vi(u,c)),c=t[c],l=!0);else if(r[1]._container){for(i=c,n=void 0;i--;)if(a=u.get(i),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=i);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;n&&(r[1].end={...u.get(n)[1].start},o=u.slice(n,c),o.unshift(r),u.splice(n,c-n+1,o))}}return Fn(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function vi(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,q=r,h=0,V=0;const f=[V];for(;q;){for(;e.get(++i)[1]!==q;);a.push(i),q._tokenizer||(u=n.sliceStream(q),q.next||u.push(null),d&&o.defineSkip(q.start),q._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),q._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=q,q=q.next}for(q=r;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(V=p+1,f.push(V),q._tokenizer=void 0,q.previous=void 0,q=q.next);for(o.events=[],q?(q._tokenizer=void 0,q.previous=void 0):f.pop(),p=f.length;p--;){const t=s.slice(f[p],f[p+1]),r=a.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const Ai={resolve:function(e){return bi(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):Hn(t)?e.check(Si,a,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function a(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},Si={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,i,"linePrefix")};function i(i){if(null===i||Hn(i))return r(i);const a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}};function yi(e,t,r,n,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(n),e.enter(i),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||Xn(t)?r(t):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t))};function d(r){return 62===r?(e.enter(a),e.consume(r),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(r))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||Hn(t)?r(t):(e.consume(t),92===t?q:p)}function q(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return u||null!==i&&41!==i&&!Zn(i)?u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||Xn(i)?r(i):(e.consume(i),92===i?V:h):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(i))}function V(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ei(e,t,r,n,i,a){const o=this;let s,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):93===d?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):Hn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Hn(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Yn(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ti(e,t,r,n,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):r(t)};function s(r){return r===o?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(a),l(r))}function l(t){return t===o?(e.exit(a),s(o)):null===t?r(t):Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||Hn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Ci(e,t){let r;return function n(i){return Hn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Yn(i)?$n(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Ui={name:"definition",tokenize:function(e,t,r){const n=this;let i;return function(t){return e.enter("definition"),function(t){return Ei.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return i=Dn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):r(t)}function o(t){return Zn(t)?Ci(e,s)(t):s(t)}function s(t){return yi(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Ri,c,c)(t)}function c(t){return Yn(t)?$n(e,u,"whitespace")(t):u(t)}function u(a){return null===a||Hn(a)?(e.exit("definition"),n.parser.defined.push(i),t(a)):r(a)}}},Ri={partial:!0,tokenize:function(e,t,r){return function(t){return Zn(t)?Ci(e,n)(t):r(t)};function n(t){return Ti(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Yn(t)?$n(e,a,"whitespace")(t):a(t)}function a(e){return null===e||Hn(e)?t(e):r(e)}}},Ni={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return Hn(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},ki={name:"headingAtx",resolve:function(e,t){let r,n,i=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},n={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},Fn(e,a,i-a+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e},tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&n++<6?(e.consume(t),i):null===t||Zn(t)?(e.exit("atxHeadingSequence"),a(t)):r(t)}function a(r){return 35===r?(e.enter("atxHeadingSequence"),o(r)):null===r||Hn(r)?(e.exit("atxHeading"),t(r)):Yn(r)?$n(e,a,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||Zn(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}}},Fi=["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"],wi=["pre","script","style","textarea"],Wi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return 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)),e},tokenize:function(e,t,r){const n=this;let i,a,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),a=!0,q):63===s?(e.consume(s),i=3,n.interrupt?t:x):Ln(s)?(e.consume(s),o=String.fromCharCode(s),h):r(s)}function u(a){return 45===a?(e.consume(a),i=2,d):91===a?(e.consume(a),i=5,s=0,p):Ln(a)?(e.consume(a),i=4,n.interrupt?t:x):r(a)}function d(i){return 45===i?(e.consume(i),n.interrupt?t:x):r(i)}function p(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?n.interrupt?t:C:p):r(i)}function q(t){return Ln(t)?(e.consume(t),o=String.fromCharCode(t),h):r(t)}function h(s){if(null===s||47===s||62===s||Zn(s)){const l=47===s,c=o.toLowerCase();return l||a||!wi.includes(c)?Fi.includes(o.toLowerCase())?(i=6,l?(e.consume(s),V):n.interrupt?t(s):C(s)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):a?f(s):m(s)):(i=1,n.interrupt?t(s):C(s))}return 45===s||Pn(s)?(e.consume(s),o+=String.fromCharCode(s),h):r(s)}function V(i){return 62===i?(e.consume(i),n.interrupt?t:C):r(i)}function f(t){return Yn(t)?(e.consume(t),f):E(t)}function m(t){return 47===t?(e.consume(t),E):58===t||95===t||Ln(t)?(e.consume(t),g):Yn(t)?(e.consume(t),m):E(t)}function g(t){return 45===t||46===t||58===t||95===t||Pn(t)?(e.consume(t),g):b(t)}function b(t){return 61===t?(e.consume(t),v):Yn(t)?(e.consume(t),b):m(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,A):Yn(t)?(e.consume(t),v):S(t)}function A(t){return t===l?(e.consume(t),l=null,y):null===t||Hn(t)?r(t):(e.consume(t),A)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Zn(t)?b(t):(e.consume(t),S)}function y(e){return 47===e||62===e||Yn(e)?m(e):r(e)}function E(t){return 62===t?(e.consume(t),T):r(t)}function T(t){return null===t||Hn(t)?C(t):Yn(t)?(e.consume(t),T):r(t)}function C(t){return 45===t&&2===i?(e.consume(t),k):60===t&&1===i?(e.consume(t),F):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),x):93===t&&5===i?(e.consume(t),W):!Hn(t)||6!==i&&7!==i?null===t||Hn(t)?(e.exit("htmlFlowData"),U(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(xi,K,U)(t))}function U(t){return e.check(Oi,R,K)(t)}function R(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Hn(t)?U(t):(e.enter("htmlFlowData"),C(t))}function k(t){return 45===t?(e.consume(t),x):C(t)}function F(t){return 47===t?(e.consume(t),o="",w):C(t)}function w(t){if(62===t){const r=o.toLowerCase();return wi.includes(r)?(e.consume(t),O):C(t)}return Ln(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),w):C(t)}function W(t){return 93===t?(e.consume(t),x):C(t)}function x(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),x):C(t)}function O(t){return null===t||Hn(t)?(e.exit("htmlFlowData"),K(t)):(e.consume(t),O)}function K(r){return e.exit("htmlFlow"),t(r)}}},xi={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(li,t,r)}}},Oi={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return Hn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},Ki={name:"htmlText",tokenize:function(e,t,r){const n=this;let i,a,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),v):63===t?(e.consume(t),g):Ln(t)?(e.consume(t),y):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,q):Ln(t)?(e.consume(t),m):r(t)}function c(t){return 45===t?(e.consume(t),p):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):Hn(t)?(o=u,w(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?F(e):45===e?d(e):u(e)}function q(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?h:q):r(t)}function h(t){return null===t?r(t):93===t?(e.consume(t),V):Hn(t)?(o=h,w(t)):(e.consume(t),h)}function V(t){return 93===t?(e.consume(t),f):h(t)}function f(t){return 62===t?F(t):93===t?(e.consume(t),f):h(t)}function m(t){return null===t||62===t?F(t):Hn(t)?(o=m,w(t)):(e.consume(t),m)}function g(t){return null===t?r(t):63===t?(e.consume(t),b):Hn(t)?(o=g,w(t)):(e.consume(t),g)}function b(e){return 62===e?F(e):g(e)}function v(t){return Ln(t)?(e.consume(t),A):r(t)}function A(t){return 45===t||Pn(t)?(e.consume(t),A):S(t)}function S(t){return Hn(t)?(o=S,w(t)):Yn(t)?(e.consume(t),S):F(t)}function y(t){return 45===t||Pn(t)?(e.consume(t),y):47===t||62===t||Zn(t)?E(t):r(t)}function E(t){return 47===t?(e.consume(t),F):58===t||95===t||Ln(t)?(e.consume(t),T):Hn(t)?(o=E,w(t)):Yn(t)?(e.consume(t),E):F(t)}function T(t){return 45===t||46===t||58===t||95===t||Pn(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),U):Hn(t)?(o=C,w(t)):Yn(t)?(e.consume(t),C):E(t)}function U(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),i=t,R):Hn(t)?(o=U,w(t)):Yn(t)?(e.consume(t),U):(e.consume(t),N)}function R(t){return t===i?(e.consume(t),i=void 0,k):null===t?r(t):Hn(t)?(o=R,w(t)):(e.consume(t),R)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||Zn(t)?E(t):(e.consume(t),N)}function k(e){return 47===e||62===e||Zn(e)?E(e):r(e)}function F(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function w(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),W}function W(t){return Yn(t)?$n(e,x,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):x(t)}function x(t){return e.enter("htmlTextData"),o(t)}}},Ii={name:"labelEnd",resolveAll:function(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){const e="labelImage"===n.type?4:2;n.type="data",t+=e}}return e.length!==r.length&&Fn(e,0,e.length,r),e},resolveTo:function(e,t){let r,n,i,a,o=e.length,s=0;for(;o--;)if(r=e[o][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[o][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=o,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(i=o);const l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[n+s+2][1].end},end:{...e[i-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=wn(a,e.slice(n+1,n+s+3)),a=wn(a,[["enter",u,t]]),a=wn(a,ii(t.parser.constructs.insideSpan.null,e.slice(n+s+4,i-3),t)),a=wn(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=wn(a,e.slice(i+1)),a=wn(a,[["exit",l,t]]),Fn(e,n,e.length,a),e},tokenize:function(e,t,r){const n=this;let i,a,o=n.events.length;for(;o--;)if(("labelImage"===n.events[o][1].type||"labelLink"===n.events[o][1].type)&&!n.events[o][1]._balanced){i=n.events[o][1];break}return function(t){return i?i._inactive?u(t):(a=n.parser.defined.includes(Dn(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):r(t)};function s(t){return 40===t?e.attempt(Di,c,a?c:u)(t):91===t?e.attempt(Li,c,a?l:u)(t):a?c(t):u(t)}function l(t){return e.attempt(Pi,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,r(e)}}},Di={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return Zn(t)?Ci(e,i)(t):i(t)}function i(t){return 41===t?c(t):yi(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Zn(t)?Ci(e,s)(t):c(t)}function o(e){return r(e)}function s(t){return 34===t||39===t||40===t?Ti(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Zn(t)?Ci(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},Li={tokenize:function(e,t,r){const n=this;return function(t){return Ei.call(n,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(Dn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function a(e){return r(e)}}},Pi={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},Bi={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):r(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Xi={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},Mi={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$n(e,t,"linePrefix")}}},ji={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,a(e)}(t)};function a(a){return a===n?(e.enter("thematicBreakSequence"),o(a)):i>=3&&(null===a||Hn(a))?(e.exit("thematicBreak"),t(a)):r(a)}function o(t){return t===n?(e.consume(t),i++,o):(e.exit("thematicBreakSequence"),Yn(t)?$n(e,a,"whitespace")(t):a(t))}}},Gi={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(li,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,$n(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){return n.containerState.furtherBlankLines||!Yn(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Zi,t,i)(r))});function i(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,$n(e,e.attempt(Gi,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){const i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:Mn(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ji,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return Mn(t)&&++o<10?(e.consume(t),s):(!n.interrupt||o<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(li,n.interrupt?r:c,e.attempt(Hi,d,u))}function c(e){return n.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Yn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},Hi={partial:!0,tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return!Yn(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Zi={partial:!0,tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}},Yi={name:"setextUnderline",resolveTo:function(e,t){let r,n,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){r=a;break}"paragraph"===e[a][1].type&&(n=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,r){const n=this;let i;return function(t){let o,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){o="paragraph"===n.events[s][1].type;break}return n.parser.lazy[n.now().line]||!n.interrupt&&!o?r(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===i?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Yn(t)?$n(e,o,"lineSuffix")(t):o(t))}function o(n){return null===n||Hn(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}},zi={tokenize:function(e){const t=this,r=e.attempt(li,function(n){if(null!==n)return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r;e.consume(n)},e.attempt(this.parser.constructs.flowInitial,n,$n(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Ai,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}},Qi={resolveAll:ea()},Ji=$i("string"),_i=$i("text");function $i(e){return{resolveAll:ea("text"===e?ta:void 0),tokenize:function(t){const r=this,n=this.parser.constructs[e],i=t.attempt(n,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function ea(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function ta(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],i=t.sliceStream(n);let a,o=i.length,s=-1,l=0;for(;o--;){const e=i[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)a=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const i={type:r===e.length||a||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...i.start},n.start.offset===n.end.offset?Object.assign(n,i):(e.splice(r,0,["enter",i,t],["exit",i,t]),r+=2)}r++}return e}const ra={42:Gi,43:Gi,45:Gi,48:Gi,49:Gi,50:Gi,51:Gi,52:Gi,53:Gi,54:Gi,55:Gi,56:Gi,57:Gi,62:ci},na={91:Ui},ia={[-2]:hi,[-1]:hi,32:hi},aa={35:ki,42:ji,45:[Yi,ji],60:Wi,61:Yi,95:ji,96:qi,126:qi},oa={38:di,92:ui},sa={[-5]:Mi,[-4]:Mi,[-3]:Mi,33:Bi,38:di,42:ai,60:[si,Ki],91:Xi,92:[Ni,ui],93:Ii,95:ai,96:fi},la={null:[ai,Qi]},ca=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:na,disable:{null:[]},document:ra,flow:aa,flowInitial:ia,insideSpan:la,string:oa,text:sa},Symbol.toStringTag,{value:"Module"}));function ua(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let o=[],s=[];const l={attempt:V(function(e,t){f(e,t.from)}),check:V(h),consume:function(e){Hn(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,m()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=p(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:V(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,m()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if("string"==typeof a)o=a;else switch(a){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(a)}i=-2===a,n.push(o)}return n.join("")}(d(e),t)},sliceStream:d,write:function(e){return o=wn(o,e),function(){let e;for(;n._index<o.length;){const t=o[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)q(t.charCodeAt(n._bufferIndex));else q(t)}}(),null!==o[o.length-1]?[]:(f(t,0),c.events=ii(a,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:r,column:i,offset:a}=n;return{_bufferIndex:e,_index:t,line:r,column:i,offset:a}}function q(e){u=u(e)}function h(e,t){t.restore()}function V(e,t){return function(r,i,a){let o,u,d,q;return Array.isArray(r)?V(r):"tokenize"in r?V([r]):(h=r,function(e){const t=null!==e&&h[e],r=null!==e&&h.null;return V([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)});var h;function V(e){return o=e,u=0,0===e.length?a:f(e[u])}function f(e){return function(r){return q=function(){const e=p(),t=c.previous,r=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=i,s=a,m()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,b)(r)}}function g(t){return e(d,q),i}function b(e){return q.restore(),++u<o.length?f(o[u]):a}}}function f(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Fn(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function m(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}const da=/[\0\t\n\r]/g,pa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qa(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){const e=r.charCodeAt(1),t=120===e||88===e;return In(r.slice(t?2:1),t?16:10)}return kn(r)||e}const ha={}.hasOwnProperty;function Va(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:i(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(V),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(h),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(h,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(f),hardBreakTrailing:i(f),htmlFlow:i(m,a),htmlFlowData:u,htmlText:i(m,a),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(g),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(b),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(V),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const r=this.sliceSerialize(e).length;t.depth=r}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:function(e){const t=this.sliceSerialize(e),r=this.data.characterReferenceType;let n;r?(n=In(t,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):n=kn(t);this.stack[this.stack.length-1].value+=n},characterReference:function(e){this.stack.pop().position.end=fa(e.end)},codeFenced:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===r.type){const t=e.children;r.children=t}else r.alt=t},labelText:function(e){const t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=function(e){return e.replace(pa,qa)}(t),r.identifier=Dn(t).toLowerCase()},lineEnding:function(e){const r=this.stack[this.stack.length-1];if(this.data.atHardBreak)return r.children[r.children.length-1].position.end=fa(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),d.call(this,e))},link:s(function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};ma(t,(e||{}).mdastExtensions||[]);const r={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:c,data:r},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=n(e,u.pop(),d));for(d=-1;++d<e.length;){const r=t[e[d][0]];ha.call(r,e[d][1].type)&&r[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||ba).call(s,void 0,e[0])}for(i.position={start:fa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function n(e,t,r){let n,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=r;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let o=s;for(i=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!i||a<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",n,t[2]]),s++,r++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=i,e.splice(s,0,["enter",i,t[2]]),s++,r++,a=void 0,o=!0}}}return e[t][1]._spread=c,r}function i(e,t){return function(r){o.call(this,e(r),r),t&&t.call(this,r)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r||void 0]),e.position={start:fa(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const r=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): it’s not open");n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||ba).call(this,e,n[0])),r.position.end=fa(e.end)}function c(){return Cn(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let r=t[t.length-1];r&&"text"===r.type||(r={type:"text",value:""},r.position={start:fa(e.start),end:void 0},t.push(r)),this.stack.push(r)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=fa(e.end)}function p(){this.data.atHardBreak=!0}function q(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function V(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function m(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(r)(function(e){for(;!bi(e););return e}(function(e){const t={constructs:xn([ca,...(e||{}).extensions||[]]),content:r(ei),defined:[],document:r(ti),flow:r(zi),lazy:{},string:r(Ji),text:r(_i)};return t;function r(e){return function(r){return ua(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(i,a,o){const s=[];let l,c,u,d,p;for(i=r+("string"==typeof i?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,r="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(da.lastIndex=u,l=da.exec(i),d=l&&void 0!==l.index?l.index:i.length,p=i.charCodeAt(d),!l){r=i.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(i.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}function fa(e){return{line:e.line,column:e.column,offset:e.offset}}function ma(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ma(e,n):ga(e,n)}}function ga(e,t){let r;for(r in t)if(ha.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function ba(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function va(e){const t=this;t.parser=function(r){return Va(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Aa(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=n:i.push({type:"text",value:n}),i}function Sa(e){const t=e.spread;return null==t?e.children.length>1:t}function ya(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(Ea(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(Ea(t.slice(i),i>0,!1)),a.join("")}function Ea(e,t,r){let n=0,i=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}const Ta={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":"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a},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-",n=String(t.identifier).toUpperCase(),i=_n(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};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(),n=e.definitionById.get(r);if(!n)return Aa(e,t);const i={src:_n(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const r={src:_n(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 n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)},inlineCode:function(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)},linkReference:function(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Aa(e,t);const i={href:_n(n.url||"")};null!==n.title&&void 0!==n.title&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const r={href:_n(t.url)};null!==t.title&&void 0!==t.title&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},listItem:function(e,t,r){const n=e.all(t),i=r?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Sa(r[n])}return t}(r):Sa(t),a={},o=[];if("boolean"==typeof t.checked){const e=n[0];let r;e&&"element"===e.type&&"p"===e.tagName?r=e:(r={type:"element",tagName:"p",properties:{},children:[]},n.unshift(r)),r.children.length>0&&r.children.unshift({type:"text",value:" "}),r.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}const l=n[n.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const r={},n=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<n.length;){const e=n[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},root:function(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)},strong:function(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},table:function(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const r={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],r),i.push(r)}if(r.length>0){const n={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=tn(t.children[1]),o=en(t.children[t.children.length-1]);a&&o&&(n.position={start:a,end:o}),i.push(n)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},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 n=r?r.children:void 0,i=0===(n?n.indexOf(t):1)?"th":"td",a=r&&"table"===r.type?r.align:void 0,o=a?a.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const r=t.children[s],n={},o=a?a[s]:void 0;o&&(n.align=o);let c={type:"element",tagName:i,properties:n,children:[]};r&&(c.children=e.all(r),e.patch(r,c),c=e.applyData(r,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const r={type:"text",value:ya(String(t.value))};return e.patch(t,r),e.applyData(t,r)},thematicBreak:function(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)},toml:Ca,yaml:Ca,definition:Ca,footnoteDefinition:Ca};function Ca(){}const Ua="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const r=(t,r)=>(e.set(r,t),t),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case 0:case-1:return r(o,i);case 1:{const e=r([],i);for(const t of o)e.push(n(t));return e}case 2:{const e=r({},i);for(const[t,r]of o)e[n(t)]=n(r);return e}case 3:return r(new Date(o),i);case 4:{const{source:e,flags:t}=o;return r(new RegExp(e,t),i)}case 5:{const e=r(new Map,i);for(const[t,r]of o)e.set(n(t),n(r));return e}case 6:{const e=r(new Set,i);for(const t of o)e.add(n(t));return e}case 7:{const{name:e,message:t}=o;return r(new Ua[e](t),i)}case 8:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return r(new DataView(e),o)}}return r(new Ua[a](o),i)};return n})(new Map,e)(0),Na="",{toString:ka}={},{keys:Fa}=Object,wa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const r=ka.call(e).slice(8,-1);switch(r){case"Array":return[1,Na];case"Object":return[2,Na];case"Date":return[3,Na];case"RegExp":return[4,Na];case"Map":return[5,Na];case"Set":return[6,Na];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Wa=([e,t])=>0===e&&("function"===t||"symbol"===t),xa=(e,{json:t,lossy:r}={})=>{const n=[];return((e,t,r,n)=>{const i=(e,t)=>{const i=n.push(e)-1;return r.set(t,i),i},a=n=>{if(r.has(n))return r.get(n);let[o,s]=wa(n);switch(o){case 0:{let t=n;switch(s){case"bigint":o=8,t=n.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],n)}return i([o,t],n)}case 1:{if(s){let e=n;return"DataView"===s?e=new Uint8Array(n.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(n)),i([s,[...e]],n)}const e=[],t=i([o,e],n);for(const r of n)e.push(a(r));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,n.toString()],n);case"Boolean":case"Number":case"String":return i([s,n.valueOf()],n)}if(t&&"toJSON"in n)return a(n.toJSON());const r=[],l=i([o,r],n);for(const t of Fa(n))!e&&Wa(wa(n[t]))||r.push([a(t),a(n[t])]);return l}case 3:return i([o,n.toISOString()],n);case 4:{const{source:e,flags:t}=n;return i([o,{source:e,flags:t}],n)}case 5:{const t=[],r=i([o,t],n);for(const[i,o]of n)(e||!Wa(wa(i))&&!Wa(wa(o)))&&t.push([a(i),a(o)]);return r}case 6:{const t=[],r=i([o,t],n);for(const i of n)!e&&Wa(wa(i))||t.push(a(i));return r}}const{message:l}=n;return i([o,{name:s,message:l}],n)};return a})(!(t||r),!!t,new Map,n)(e),n},Oa="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(xa(e,t)):structuredClone(e):(e,t)=>Ra(xa(e,t));function Ka(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Ia(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Da=function(e){if(null==e)return Pa;if("function"==typeof e)return La(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Da(e[r]);return La(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return La(function(r){const n=r;let i;for(i in e)if(n[i]!==t[i])return!1;return!0})}(e);if("string"==typeof e)return t=e,La(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function La(e){return function(t,r,n){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function Pa(){return!0}const Ba=[],Xa=!1;function Ma(e,t,r,n){let i;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):i=t;const a=Da(i),o=n?-1:1;!function e(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Ba;if((!t||a(i,s,l[l.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?Ba:[e]}(r(i,l)),p[0]===Xa))return p;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==p[0])for(u=(n?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const r=t.children[u];if(c=e(r,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function ja(e,t,r,n){let i,a,o;"function"==typeof t&&"function"!=typeof r?(a=void 0,o=t,i=r):(a=t,o=r,i=n),Ma(e,a,function(e,t){const r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return o(e,n,r)},i)}const Ga={}.hasOwnProperty,Ha={};function Za(e,t){e.position&&(t.position=function(e){const t=tn(e),r=en(e);if(t&&r)return{start:t,end:r}}(e))}function Ya(e,t){let r=t;if(e&&e.data){const t=e.data.hName,n=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===r.type?r.tagName=t:r={type:"element",tagName:t,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&i&&Object.assign(r.properties,Oa(i)),"children"in r&&r.children&&null!=n&&(r.children=n)}return r}function za(e,t){const r=t.data||{},n=!("value"in t)||Ga.call(r,"hProperties")||Ga.call(r,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,n),e.applyData(t,n)}function Qa(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:"\n"});++n<e.length;)n&&r.push({type:"text",value:"\n"}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:"\n"}),r}function Ja(e){let t=0,r=e.charCodeAt(t);for(;9===r||32===r;)t++,r=e.charCodeAt(t);return e.slice(t)}function _a(e,t){const r=function(e,t){const r=t||Ha,n=new Map,i=new Map,a=new Map,o={...Ta,...r.handlers},s={all:function(e){const t=[];if("children"in e){const r=e.children;let n=-1;for(;++n<r.length;){const i=s.one(r[n],e);if(i){if(n&&"break"===r[n-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Ja(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Ja(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Ya,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:function(e,t){const r=e.type,n=s.handlers[r];if(Ga.call(s.handlers,r)&&n)return n(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(r)){if("children"in e){const{children:t,...r}=e,n=Oa(r);return n.children=s.all(e),n}return Oa(e)}return(s.options.unknownHandler||za)(s,e,t)},options:r,patch:Za,wrap:Qa};return ja(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?n:i,r=String(e.identifier).toUpperCase();t.has(r)||t.set(r,e)}}),s}(e,t),n=r.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ka,n=e.options.footnoteBackLabel||Ia,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const a=e.all(i),o=String(i.identifier).toUpperCase(),c=_n(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof r?r:r(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof n?n:n(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const q=a[a.length-1];if(q&&"element"===q.type&&"p"===q.tagName){const e=q.children[q.children.length-1];e&&"text"===e.type?e.value+=" ":q.children.push({type:"text",value:" "}),q.children.push(...d)}else a.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Oa(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function $a(e,t){return e&&"run"in e?async function(r,n){const i=_a(r,{file:n,...t});await e.run(i,n)}:function(r,n){return _a(r,{file:n,...e||t})}}function eo(e){if(e)throw e}var to=Object.prototype.hasOwnProperty,ro=Object.prototype.toString,no=Object.defineProperty,io=Object.getOwnPropertyDescriptor,ao=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ro.call(e)},oo=function(e){if(!e||"[object Object]"!==ro.call(e))return!1;var t,r=to.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&to.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||to.call(e,t)},so=function(e,t){no&&"__proto__"===t.name?no(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},lo=function(e,t){if("__proto__"===t){if(!to.call(e,t))return;if(io)return io(e,t).value}return e[t]},co=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(r in t)n=lo(s,r),s!==(i=lo(t,r))&&(u&&i&&(oo(i)||(a=ao(i)))?(a?(a=!1,o=n&&ao(n)?n:[]):o=n&&oo(n)?n:{},so(s,{name:r,newValue:e(u,o,i)})):void 0!==i&&so(s,{name:r,newValue:i}));return s};const uo=q(co);function po(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)}const qo=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');go(e);let r,n=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else i<0&&(r=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(r){n=a+1;break}}else o<0&&(r=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)},ho=function(e){if(go(e),0===e.length)return".";let t,r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},Vo=function(e){go(e);let t,r=e.length,n=-1,i=0,a=-1,o=0;for(;r--;){const s=e.codePointAt(r);if(47!==s)n<0&&(t=!0,n=r+1),46===s?a<0?a=r:1!==o&&(o=1):a>-1&&(o=-1);else if(t){i=r+1;break}}return a<0||n<0||0===o||1===o&&a===n-1&&a===i+1?"":e.slice(a,n)},fo=function(...e){let t,r=-1;for(;++r<e.length;)go(e[r]),e[r]&&(t=void 0===t?e[r]:t+"/"+e[r]);return void 0===t?".":function(e){go(e);const t=47===e.codePointAt(0);let r=function(e,t){let r,n,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else{if(47===r)break;r=47}if(47===r){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(n=i.lastIndexOf("/"),n!==i.length-1){n<0?(i="",a=0):(i=i.slice(0,n),a=i.length-1-i.lastIndexOf("/")),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===r&&s>-1?s++:s=-1}return i}(e,!t);return 0!==r.length||t||(r="."),r.length>0&&47===e.codePointAt(e.length-1)&&(r+="/"),t?"/"+r:r}(t)},mo="/";function go(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bo=function(){return"/"};function vo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Ao=["history","path","basename","stem","extname","dirname"];class So{constructor(e){let t;t=e?vo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":bo(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,n=-1;for(;++n<Ao.length;){const e=Ao[n];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(r in t)Ao.includes(r)||(this[r]=t[r])}get basename(){return"string"==typeof this.path?qo(this.path):void 0}set basename(e){Eo(e,"basename"),yo(e,"basename"),this.path=fo(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ho(this.path):void 0}set dirname(e){To(this.basename,"dirname"),this.path=fo(e||"",this.basename)}get extname(){return"string"==typeof this.path?Vo(this.path):void 0}set extname(e){if(yo(e,"extname"),To(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fo(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){vo(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!vo(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(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){const e=t.codePointAt(r+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),Eo(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?qo(this.path,this.extname):void 0}set stem(e){Eo(e,"stem"),yo(e,"stem"),this.path=fo(this.dirname||"",e+(this.extname||""))}fail(e,t,r){const n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){const n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){const n=new ln(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function yo(e,t){if(e&&e.includes(mo))throw new Error("`"+t+"` cannot be a path: did not expect `"+mo+"`")}function Eo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function To(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Co=function(e){const t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};return Object.setPrototypeOf(n,t),n},Uo={}.hasOwnProperty;class Ro extends Co{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let r=-1;const n=t.pop();if("function"!=typeof n)throw new TypeError("Expected function as last argument, not "+n);!function i(a,...o){const s=e[++r];let l=-1;if(a)n(a);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let r;return function(...t){const o=e.length>t.length;let s;o&&t.push(n);try{s=e.apply(this,t)}catch(a){if(o&&r)throw a;return n(a)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,n):s instanceof Error?n(s):i(s))};function n(e,...n){r||(r=!0,t(e,...n))}function i(e){n(null,e)}}(s,i)(...o):n(null,...o)}}(null,...t)},use:function(r){if("function"!=typeof r)throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}};return t}()}copy(){const e=new Ro;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];e.use(...r)}return e.data(uo(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(wo("data",this.frozen),this.namespace[e]=t,this):Uo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(wo("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const n=t.call(e,...r);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Oo(e),r=this.parser||this.Parser;return ko("parse",r),r(String(t),t)}process(e,t){const r=this;return this.freeze(),ko("process",this.parser||this.Parser),Fo("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,i){const a=Oo(e),o=r.parse(a);function s(e,r){e||!r?i(e):n?n(r):t(void 0,r)}r.run(o,a,function(e,t,n){if(e||!t||!n)return s(e);const i=t,a=r.stringify(i,n);var o;"string"==typeof(o=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?n.value=a:n.result=a,s(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),ko("processSync",this.parser||this.Parser),Fo("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,eo(e),t=n}),xo("processSync","process",r),t}run(e,t,r){Wo(e),this.freeze();const n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(i,a){const o=Oo(t);n.run(e,o,function(t,n,o){const s=n||e;t?a(t):i?i(s):r(void 0,s,o)})}}runSync(e,t){let r,n=!1;return this.run(e,t,function(e,t){eo(e),r=t,n=!0}),xo("runSync","run",n),r}stringify(e,t){this.freeze();const r=Oo(t),n=this.compiler||this.Compiler;return Fo("stringify",n),Wo(e),n(e,r)}use(e,...t){const r=this.attachers,n=this.namespace;if(wo("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):a(e)}return this;function i(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...r]=e;s(t,r)}else a(e)}}function a(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(n.settings=uo(!0,n.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)i(e[t])}}function s(e,t){let n=-1,i=-1;for(;++n<r.length;)if(r[n][0]===e){i=n;break}if(-1===i)r.push([e,...t]);else if(t.length>0){let[n,...a]=t;const o=r[i][1];po(o)&&po(n)&&(n=uo(!0,o,n)),r[i]=[e,n,...a]}}}}const No=(new Ro).freeze();function ko(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Fo(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function wo(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 Wo(e){if(!po(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function xo(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Oo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new So(e)}const Ko=[],Io={allowDangerousHtml:!0},Do=/^(https?|ircs?|mailto|xmpp)$/i,Lo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Po(e){const t=function(e){const t=e.rehypePlugins||Ko,r=e.remarkPlugins||Ko,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Io}:Io;return No().use(va).use(r).use($a,n).use(t)}(e),r=function(e){const t=e.children||"",r=new So;return"string"==typeof t&&(r.value=t),r}(e);return function(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Bo;for(const c of Lo)Object.hasOwn(t,c.from)&&It((c.from,c.to&&c.to,c.id));return ja(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in En)if(Object.hasOwn(En,t)&&Object.hasOwn(e.properties,t)){const r=e.properties[t],n=En[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=l(String(r||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&n&&"number"==typeof t&&(o=!n(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(e,t){return function(r,n,i,a){const o=Array.isArray(i.children),s=tn(r);return t(n,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.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");i=t.jsx,a=t.jsxs,n=function(e,t,r,n){const o=Array.isArray(r.children)?a:i;return n?o(t,r,n):o(t,r)}}var i,a;const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,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?Cr:Tr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=Vn(o,e,void 0);return s&&"string"!=typeof s?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(r),r),e)}function Bo(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==r&&t>r||-1!==n&&t>n||Do.test(e.slice(0,t))?e:""}const Xo=/[#.]/g;function Mo(e,t,r){const n=r?function(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}(r):void 0;return function(r,i,...a){let o;if(null==r){o={type:"root",children:[]};const e=i;a.unshift(e)}else{o=function(e,t){const r=e||"",n={};let i,a,o=0;for(;o<r.length;){Xo.lastIndex=o;const e=Xo.exec(r),t=r.slice(o,e?e.index:r.length);t&&(i?"#"===i?n.id=t:Array.isArray(n.className)?n.className.push(t):n.className=[t]:a=t,o+=t.length),e&&(i=e[0],o++)}return{type:"element",tagName:a||t||"div",properties:n,children:[]}}(r,t);const s=o.tagName.toLowerCase(),l=n?n.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,r=Object.keys(e);for(const n of r){const e=t[n];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(i))a.unshift(i);else for(const[t,r]of Object.entries(i))jo(e,o.properties,t,r)}for(const e of a)Go(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function jo(e,t,r,n){const i=Sr(e,r);let a;if(null!=n){if("number"==typeof n){if(Number.isNaN(n))return;a=n}else a="boolean"==typeof n?n:"string"==typeof n?i.spaceSeparated?Ur(n):i.commaSeparated?Dt(n):i.commaOrSpaceSeparated?Ur(Dt(n).join(" ")):Ho(i,i.property,n):Array.isArray(n)?[...n]:"style"===i.property?function(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}(n):String(n);if(Array.isArray(a)){const e=[];for(const t of a)e.push(Ho(i,i.property,t));a=e}"className"===i.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Go(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Go(e,r);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Go(e,t.children):e.push(t)}}function Ho(e,t,r){if("string"==typeof r){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(""===r||Yt(r)===Yt(t)))return!0}return r}const Zo=Mo(Tr,"div"),Yo=Mo(Cr,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function zo(e,t){const r=e.indexOf("\r",t),n=e.indexOf("\n",t);return-1===n?r:-1===r||r+1===n?n:r<n?r:n}const Qo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Jo={}.hasOwnProperty,_o=Object.prototype;function $o(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},ts(e,n,r),r}case"#document":case"#document-fragment":{const n=t,i="mode"in n&&("quirks"===n.mode||"limited-quirks"===n.mode);if(r={type:"root",children:es(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),n=function(e){const t=String(e),r=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){const e=r[r.length-1],n=zo(t,e),i=-1===n?t.length+1:n+1;if(e===i)break;r.push(i)}const n=(e.line>1?r[e.line-2]:0)+e.column-1;if(n<r[e.line-1])return n}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){const e=zo(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}}(t),i=n.toPoint(0),a=n.toPoint(t.length);r.position={start:i,end:a}}return r}case"#documentType":return r={type:"doctype"},ts(e,t,r),r;case"#text":{const n=t;return r={type:"text",value:n.value},ts(e,n,r),r}default:return r=function(e,t){const r=e.schema;e.schema=t.namespaceURI===Qo.svg?Cr:Tr;let n=-1;const i={};for(;++n<t.attrs.length;){const e=t.attrs[n],r=(e.prefix?e.prefix+":":"")+e.name;Jo.call(_o,r)||(i[r]=e.value)}const a=("svg"===e.schema.space?Yo:Zo)(t.tagName,i,es(e,t.childNodes));if(ts(e,t,a),"template"===a.tagName){const r=t,n=r.sourceCodeLocation,i=n&&n.startTag&&rs(n.startTag),o=n&&n.endTag&&rs(n.endTag),s=$o(e,r.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=r,a}(e,t),r}}function es(e,t){let r=-1;const n=[];for(;++r<t.length;){const i=$o(e,t[r]);n.push(i)}return n}function ts(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=function(e,t,r){const n=rs(r);if("element"===t.type){const i=t.children[t.children.length-1];if(n&&!r.endTag&&i&&i.position&&i.position.end&&(n.end=Object.assign({},i.position.end)),e.verbose){const n={};let i;if(r.attrs)for(i in r.attrs)Jo.call(r.attrs,i)&&(n[Sr(e.schema,i).property]=rs(r.attrs[i]));r.startTag;const a=rs(r.startTag),o=r.endTag?rs(r.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=n,t.data={position:s}}}return n}(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function rs(e){const t=ns({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=ns({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function ns(e){return e.line&&e.column?e:void 0}const is={}.hasOwnProperty;function as(e,t){const r=t||{};function n(t,...r){let i=n.invalid;const a=n.handlers;if(t&&is.call(t,e)){const r=String(t[e]);i=is.call(a,r)?a[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const os={},ss={}.hasOwnProperty,ls=as("type",{handlers:{root:function(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=us(e.children,r,t),ds(e,r),r},element:function(e,t){const r=t;let n=r;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(n=Cr);const i=[];let a;if(e.properties)for(a in e.properties)if("children"!==a&&ss.call(e.properties,a)){const t=cs(n,a,e.properties[a]);t&&i.push(t)}const o=n.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Qo[o],childNodes:[],parentNode:null};return s.childNodes=us(e.children,s,n),ds(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=us(e.children,r,t),ds(e,r),r}(e.content,n)),s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ds(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ds(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ds(e,t),t}}});function cs(e,t,r){const n=Sr(e,t);if(!1===r||null==r||"number"==typeof r&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?Lt(r):Rr(r));const i={name:n.attribute,value:!0===r?"":String(r)};if(n.space&&"html"!==n.space&&"svg"!==n.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=n.attribute.slice(0,e)),i.namespace=Qo[n.space]}return i}function us(e,t,r){let n=-1;const i=[];if(e)for(;++n<e.length;){const a=ls(e[n],r);a.parentNode=t,i.push(a)}return i}function ds(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const ps=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],qs=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),hs="�";var Vs,fs;(fs=Vs||(Vs={}))[fs.EOF=-1]="EOF",fs[fs.NULL=0]="NULL",fs[fs.TABULATION=9]="TABULATION",fs[fs.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",fs[fs.LINE_FEED=10]="LINE_FEED",fs[fs.FORM_FEED=12]="FORM_FEED",fs[fs.SPACE=32]="SPACE",fs[fs.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",fs[fs.QUOTATION_MARK=34]="QUOTATION_MARK",fs[fs.AMPERSAND=38]="AMPERSAND",fs[fs.APOSTROPHE=39]="APOSTROPHE",fs[fs.HYPHEN_MINUS=45]="HYPHEN_MINUS",fs[fs.SOLIDUS=47]="SOLIDUS",fs[fs.DIGIT_0=48]="DIGIT_0",fs[fs.DIGIT_9=57]="DIGIT_9",fs[fs.SEMICOLON=59]="SEMICOLON",fs[fs.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",fs[fs.EQUALS_SIGN=61]="EQUALS_SIGN",fs[fs.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",fs[fs.QUESTION_MARK=63]="QUESTION_MARK",fs[fs.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",fs[fs.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",fs[fs.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",fs[fs.GRAVE_ACCENT=96]="GRAVE_ACCENT",fs[fs.LATIN_SMALL_A=97]="LATIN_SMALL_A",fs[fs.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const ms="[CDATA[",gs="doctype",bs="script";function vs(e){return e>=55296&&e<=57343}function As(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Ss(e){return e>=64976&&e<=65007||qs.has(e)}var ys,Es,Ts,Cs;(Es=ys||(ys={})).controlCharacterInInputStream="control-character-in-input-stream",Es.noncharacterInInputStream="noncharacter-in-input-stream",Es.surrogateInInputStream="surrogate-in-input-stream",Es.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Es.endTagWithAttributes="end-tag-with-attributes",Es.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Es.unexpectedSolidusInTag="unexpected-solidus-in-tag",Es.unexpectedNullCharacter="unexpected-null-character",Es.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Es.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Es.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Es.missingEndTagName="missing-end-tag-name",Es.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Es.unknownNamedCharacterReference="unknown-named-character-reference",Es.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Es.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Es.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Es.eofBeforeTagName="eof-before-tag-name",Es.eofInTag="eof-in-tag",Es.missingAttributeValue="missing-attribute-value",Es.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Es.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Es.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Es.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Es.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Es.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Es.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Es.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Es.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Es.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Es.cdataInHtmlContent="cdata-in-html-content",Es.incorrectlyOpenedComment="incorrectly-opened-comment",Es.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Es.eofInDoctype="eof-in-doctype",Es.nestedComment="nested-comment",Es.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Es.eofInComment="eof-in-comment",Es.incorrectlyClosedComment="incorrectly-closed-comment",Es.eofInCdata="eof-in-cdata",Es.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Es.nullCharacterReference="null-character-reference",Es.surrogateCharacterReference="surrogate-character-reference",Es.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Es.controlCharacterReference="control-character-reference",Es.noncharacterCharacterReference="noncharacter-character-reference",Es.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Es.missingDoctypeName="missing-doctype-name",Es.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Es.duplicateAttribute="duplicate-attribute",Es.nonConformingDoctype="non-conforming-doctype",Es.missingDoctype="missing-doctype",Es.misplacedDoctype="misplaced-doctype",Es.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Es.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Es.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Es.openElementsLeftAfterEof="open-elements-left-after-eof",Es.abandonedHeadElementChild="abandoned-head-element-child",Es.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Es.nestedNoscriptInHead="nested-noscript-in-head",Es.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Us{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,t){const{line:r,col:n,offset:i}=this,a=n+t,o=i+t;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_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,Vs.EOF;return this._err(ys.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<e.length;r++)if((32|this.html.charCodeAt(this.pos+r))!==e.charCodeAt(r))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Vs.EOF;const r=this.html.charCodeAt(t);return r===Vs.CARRIAGE_RETURN?Vs.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,Vs.EOF;let e=this.html.charCodeAt(this.pos);return e===Vs.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Vs.LINE_FEED):e===Vs.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vs(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Vs.LINE_FEED||e===Vs.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){As(e)?this._err(ys.controlCharacterInInputStream):Ss(e)&&this._err(ys.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Rs(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}(Cs=Ts||(Ts={}))[Cs.CHARACTER=0]="CHARACTER",Cs[Cs.NULL_CHARACTER=1]="NULL_CHARACTER",Cs[Cs.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",Cs[Cs.START_TAG=3]="START_TAG",Cs[Cs.END_TAG=4]="END_TAG",Cs[Cs.COMMENT=5]="COMMENT",Cs[Cs.DOCTYPE=6]="DOCTYPE",Cs[Cs.EOF=7]="EOF",Cs[Cs.HIBERNATION=8]="HIBERNATION";const Ns=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ks=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]]);var Fs,ws,Ws,xs,Os,Ks,Is,Ds,Ls,Ps,Bs,Xs,Ms,js,Gs,Hs,Zs,Ys;function zs(e){return e>=Fs.ZERO&&e<=Fs.NINE}function Qs(e){return e>=Fs.UPPER_A&&e<=Fs.UPPER_F||e>=Fs.LOWER_A&&e<=Fs.LOWER_F}function Js(e){return e===Fs.EQUALS||function(e){return e>=Fs.UPPER_A&&e<=Fs.UPPER_Z||e>=Fs.LOWER_A&&e<=Fs.LOWER_Z||zs(e)}(e)}(ws=Fs||(Fs={}))[ws.NUM=35]="NUM",ws[ws.SEMI=59]="SEMI",ws[ws.EQUALS=61]="EQUALS",ws[ws.ZERO=48]="ZERO",ws[ws.NINE=57]="NINE",ws[ws.LOWER_A=97]="LOWER_A",ws[ws.LOWER_F=102]="LOWER_F",ws[ws.LOWER_X=120]="LOWER_X",ws[ws.LOWER_Z=122]="LOWER_Z",ws[ws.UPPER_A=65]="UPPER_A",ws[ws.UPPER_F=70]="UPPER_F",ws[ws.UPPER_Z=90]="UPPER_Z",(xs=Ws||(Ws={}))[xs.VALUE_LENGTH=49152]="VALUE_LENGTH",xs[xs.BRANCH_LENGTH=16256]="BRANCH_LENGTH",xs[xs.JUMP_TABLE=127]="JUMP_TABLE",(Ks=Os||(Os={}))[Ks.EntityStart=0]="EntityStart",Ks[Ks.NumericStart=1]="NumericStart",Ks[Ks.NumericDecimal=2]="NumericDecimal",Ks[Ks.NumericHex=3]="NumericHex",Ks[Ks.NamedEntity=4]="NamedEntity",(Ds=Is||(Is={}))[Ds.Legacy=0]="Legacy",Ds[Ds.Strict=1]="Strict",Ds[Ds.Attribute=2]="Attribute";class _s{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Os.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Is.Strict}startEntity(e){this.decodeMode=e,this.state=Os.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Os.EntityStart:return e.charCodeAt(t)===Fs.NUM?(this.state=Os.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Os.NamedEntity,this.stateNamedEntity(e,t));case Os.NumericStart:return this.stateNumericStart(e,t);case Os.NumericDecimal:return this.stateNumericDecimal(e,t);case Os.NumericHex:return this.stateNumericHex(e,t);case Os.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Fs.LOWER_X?(this.state=Os.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Os.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){const i=r-t;this.result=this.result*Math.pow(n,i)+Number.parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!zs(n)&&!Qs(n))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){const r=t;for(;t<e.length;){const n=e.charCodeAt(t);if(!zs(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Fs.SEMI)this.consumed+=1;else if(this.decodeMode===Is.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=ks.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Fs.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:r}=this;let n=r[this.treeIndex],i=(n&Ws.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=$s(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===Is.Attribute&&(0===i||Js(a))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],i=(n&Ws.VALUE_LENGTH)>>14,0!==i){if(a===Fs.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Is.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:r}=this,n=(r[t]&Ws.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~Ws.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case Os.NamedEntity:return 0===this.result||this.decodeMode===Is.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Os.NumericDecimal:return this.emitNumericEntity(0,2);case Os.NumericHex:return this.emitNumericEntity(0,3);case Os.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Os.EntityStart:return 0}}}function $s(e,t,r,n){const i=(t&Ws.BRANCH_LENGTH)>>7,a=t&Ws.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){const t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,s=o+i-1;for(;o<=s;){const t=o+s>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return-1}(Ps=Ls||(Ls={})).HTML="http://www.w3.org/1999/xhtml",Ps.MATHML="http://www.w3.org/1998/Math/MathML",Ps.SVG="http://www.w3.org/2000/svg",Ps.XLINK="http://www.w3.org/1999/xlink",Ps.XML="http://www.w3.org/XML/1998/namespace",Ps.XMLNS="http://www.w3.org/2000/xmlns/",(Xs=Bs||(Bs={})).TYPE="type",Xs.ACTION="action",Xs.ENCODING="encoding",Xs.PROMPT="prompt",Xs.NAME="name",Xs.COLOR="color",Xs.FACE="face",Xs.SIZE="size",(js=Ms||(Ms={})).NO_QUIRKS="no-quirks",js.QUIRKS="quirks",js.LIMITED_QUIRKS="limited-quirks",(Hs=Gs||(Gs={})).A="a",Hs.ADDRESS="address",Hs.ANNOTATION_XML="annotation-xml",Hs.APPLET="applet",Hs.AREA="area",Hs.ARTICLE="article",Hs.ASIDE="aside",Hs.B="b",Hs.BASE="base",Hs.BASEFONT="basefont",Hs.BGSOUND="bgsound",Hs.BIG="big",Hs.BLOCKQUOTE="blockquote",Hs.BODY="body",Hs.BR="br",Hs.BUTTON="button",Hs.CAPTION="caption",Hs.CENTER="center",Hs.CODE="code",Hs.COL="col",Hs.COLGROUP="colgroup",Hs.DD="dd",Hs.DESC="desc",Hs.DETAILS="details",Hs.DIALOG="dialog",Hs.DIR="dir",Hs.DIV="div",Hs.DL="dl",Hs.DT="dt",Hs.EM="em",Hs.EMBED="embed",Hs.FIELDSET="fieldset",Hs.FIGCAPTION="figcaption",Hs.FIGURE="figure",Hs.FONT="font",Hs.FOOTER="footer",Hs.FOREIGN_OBJECT="foreignObject",Hs.FORM="form",Hs.FRAME="frame",Hs.FRAMESET="frameset",Hs.H1="h1",Hs.H2="h2",Hs.H3="h3",Hs.H4="h4",Hs.H5="h5",Hs.H6="h6",Hs.HEAD="head",Hs.HEADER="header",Hs.HGROUP="hgroup",Hs.HR="hr",Hs.HTML="html",Hs.I="i",Hs.IMG="img",Hs.IMAGE="image",Hs.INPUT="input",Hs.IFRAME="iframe",Hs.KEYGEN="keygen",Hs.LABEL="label",Hs.LI="li",Hs.LINK="link",Hs.LISTING="listing",Hs.MAIN="main",Hs.MALIGNMARK="malignmark",Hs.MARQUEE="marquee",Hs.MATH="math",Hs.MENU="menu",Hs.META="meta",Hs.MGLYPH="mglyph",Hs.MI="mi",Hs.MO="mo",Hs.MN="mn",Hs.MS="ms",Hs.MTEXT="mtext",Hs.NAV="nav",Hs.NOBR="nobr",Hs.NOFRAMES="noframes",Hs.NOEMBED="noembed",Hs.NOSCRIPT="noscript",Hs.OBJECT="object",Hs.OL="ol",Hs.OPTGROUP="optgroup",Hs.OPTION="option",Hs.P="p",Hs.PARAM="param",Hs.PLAINTEXT="plaintext",Hs.PRE="pre",Hs.RB="rb",Hs.RP="rp",Hs.RT="rt",Hs.RTC="rtc",Hs.RUBY="ruby",Hs.S="s",Hs.SCRIPT="script",Hs.SEARCH="search",Hs.SECTION="section",Hs.SELECT="select",Hs.SOURCE="source",Hs.SMALL="small",Hs.SPAN="span",Hs.STRIKE="strike",Hs.STRONG="strong",Hs.STYLE="style",Hs.SUB="sub",Hs.SUMMARY="summary",Hs.SUP="sup",Hs.TABLE="table",Hs.TBODY="tbody",Hs.TEMPLATE="template",Hs.TEXTAREA="textarea",Hs.TFOOT="tfoot",Hs.TD="td",Hs.TH="th",Hs.THEAD="thead",Hs.TITLE="title",Hs.TR="tr",Hs.TRACK="track",Hs.TT="tt",Hs.U="u",Hs.UL="ul",Hs.SVG="svg",Hs.VAR="var",Hs.WBR="wbr",Hs.XMP="xmp",(Ys=Zs||(Zs={}))[Ys.UNKNOWN=0]="UNKNOWN",Ys[Ys.A=1]="A",Ys[Ys.ADDRESS=2]="ADDRESS",Ys[Ys.ANNOTATION_XML=3]="ANNOTATION_XML",Ys[Ys.APPLET=4]="APPLET",Ys[Ys.AREA=5]="AREA",Ys[Ys.ARTICLE=6]="ARTICLE",Ys[Ys.ASIDE=7]="ASIDE",Ys[Ys.B=8]="B",Ys[Ys.BASE=9]="BASE",Ys[Ys.BASEFONT=10]="BASEFONT",Ys[Ys.BGSOUND=11]="BGSOUND",Ys[Ys.BIG=12]="BIG",Ys[Ys.BLOCKQUOTE=13]="BLOCKQUOTE",Ys[Ys.BODY=14]="BODY",Ys[Ys.BR=15]="BR",Ys[Ys.BUTTON=16]="BUTTON",Ys[Ys.CAPTION=17]="CAPTION",Ys[Ys.CENTER=18]="CENTER",Ys[Ys.CODE=19]="CODE",Ys[Ys.COL=20]="COL",Ys[Ys.COLGROUP=21]="COLGROUP",Ys[Ys.DD=22]="DD",Ys[Ys.DESC=23]="DESC",Ys[Ys.DETAILS=24]="DETAILS",Ys[Ys.DIALOG=25]="DIALOG",Ys[Ys.DIR=26]="DIR",Ys[Ys.DIV=27]="DIV",Ys[Ys.DL=28]="DL",Ys[Ys.DT=29]="DT",Ys[Ys.EM=30]="EM",Ys[Ys.EMBED=31]="EMBED",Ys[Ys.FIELDSET=32]="FIELDSET",Ys[Ys.FIGCAPTION=33]="FIGCAPTION",Ys[Ys.FIGURE=34]="FIGURE",Ys[Ys.FONT=35]="FONT",Ys[Ys.FOOTER=36]="FOOTER",Ys[Ys.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ys[Ys.FORM=38]="FORM",Ys[Ys.FRAME=39]="FRAME",Ys[Ys.FRAMESET=40]="FRAMESET",Ys[Ys.H1=41]="H1",Ys[Ys.H2=42]="H2",Ys[Ys.H3=43]="H3",Ys[Ys.H4=44]="H4",Ys[Ys.H5=45]="H5",Ys[Ys.H6=46]="H6",Ys[Ys.HEAD=47]="HEAD",Ys[Ys.HEADER=48]="HEADER",Ys[Ys.HGROUP=49]="HGROUP",Ys[Ys.HR=50]="HR",Ys[Ys.HTML=51]="HTML",Ys[Ys.I=52]="I",Ys[Ys.IMG=53]="IMG",Ys[Ys.IMAGE=54]="IMAGE",Ys[Ys.INPUT=55]="INPUT",Ys[Ys.IFRAME=56]="IFRAME",Ys[Ys.KEYGEN=57]="KEYGEN",Ys[Ys.LABEL=58]="LABEL",Ys[Ys.LI=59]="LI",Ys[Ys.LINK=60]="LINK",Ys[Ys.LISTING=61]="LISTING",Ys[Ys.MAIN=62]="MAIN",Ys[Ys.MALIGNMARK=63]="MALIGNMARK",Ys[Ys.MARQUEE=64]="MARQUEE",Ys[Ys.MATH=65]="MATH",Ys[Ys.MENU=66]="MENU",Ys[Ys.META=67]="META",Ys[Ys.MGLYPH=68]="MGLYPH",Ys[Ys.MI=69]="MI",Ys[Ys.MO=70]="MO",Ys[Ys.MN=71]="MN",Ys[Ys.MS=72]="MS",Ys[Ys.MTEXT=73]="MTEXT",Ys[Ys.NAV=74]="NAV",Ys[Ys.NOBR=75]="NOBR",Ys[Ys.NOFRAMES=76]="NOFRAMES",Ys[Ys.NOEMBED=77]="NOEMBED",Ys[Ys.NOSCRIPT=78]="NOSCRIPT",Ys[Ys.OBJECT=79]="OBJECT",Ys[Ys.OL=80]="OL",Ys[Ys.OPTGROUP=81]="OPTGROUP",Ys[Ys.OPTION=82]="OPTION",Ys[Ys.P=83]="P",Ys[Ys.PARAM=84]="PARAM",Ys[Ys.PLAINTEXT=85]="PLAINTEXT",Ys[Ys.PRE=86]="PRE",Ys[Ys.RB=87]="RB",Ys[Ys.RP=88]="RP",Ys[Ys.RT=89]="RT",Ys[Ys.RTC=90]="RTC",Ys[Ys.RUBY=91]="RUBY",Ys[Ys.S=92]="S",Ys[Ys.SCRIPT=93]="SCRIPT",Ys[Ys.SEARCH=94]="SEARCH",Ys[Ys.SECTION=95]="SECTION",Ys[Ys.SELECT=96]="SELECT",Ys[Ys.SOURCE=97]="SOURCE",Ys[Ys.SMALL=98]="SMALL",Ys[Ys.SPAN=99]="SPAN",Ys[Ys.STRIKE=100]="STRIKE",Ys[Ys.STRONG=101]="STRONG",Ys[Ys.STYLE=102]="STYLE",Ys[Ys.SUB=103]="SUB",Ys[Ys.SUMMARY=104]="SUMMARY",Ys[Ys.SUP=105]="SUP",Ys[Ys.TABLE=106]="TABLE",Ys[Ys.TBODY=107]="TBODY",Ys[Ys.TEMPLATE=108]="TEMPLATE",Ys[Ys.TEXTAREA=109]="TEXTAREA",Ys[Ys.TFOOT=110]="TFOOT",Ys[Ys.TD=111]="TD",Ys[Ys.TH=112]="TH",Ys[Ys.THEAD=113]="THEAD",Ys[Ys.TITLE=114]="TITLE",Ys[Ys.TR=115]="TR",Ys[Ys.TRACK=116]="TRACK",Ys[Ys.TT=117]="TT",Ys[Ys.U=118]="U",Ys[Ys.UL=119]="UL",Ys[Ys.SVG=120]="SVG",Ys[Ys.VAR=121]="VAR",Ys[Ys.WBR=122]="WBR",Ys[Ys.XMP=123]="XMP";const el=new Map([[Gs.A,Zs.A],[Gs.ADDRESS,Zs.ADDRESS],[Gs.ANNOTATION_XML,Zs.ANNOTATION_XML],[Gs.APPLET,Zs.APPLET],[Gs.AREA,Zs.AREA],[Gs.ARTICLE,Zs.ARTICLE],[Gs.ASIDE,Zs.ASIDE],[Gs.B,Zs.B],[Gs.BASE,Zs.BASE],[Gs.BASEFONT,Zs.BASEFONT],[Gs.BGSOUND,Zs.BGSOUND],[Gs.BIG,Zs.BIG],[Gs.BLOCKQUOTE,Zs.BLOCKQUOTE],[Gs.BODY,Zs.BODY],[Gs.BR,Zs.BR],[Gs.BUTTON,Zs.BUTTON],[Gs.CAPTION,Zs.CAPTION],[Gs.CENTER,Zs.CENTER],[Gs.CODE,Zs.CODE],[Gs.COL,Zs.COL],[Gs.COLGROUP,Zs.COLGROUP],[Gs.DD,Zs.DD],[Gs.DESC,Zs.DESC],[Gs.DETAILS,Zs.DETAILS],[Gs.DIALOG,Zs.DIALOG],[Gs.DIR,Zs.DIR],[Gs.DIV,Zs.DIV],[Gs.DL,Zs.DL],[Gs.DT,Zs.DT],[Gs.EM,Zs.EM],[Gs.EMBED,Zs.EMBED],[Gs.FIELDSET,Zs.FIELDSET],[Gs.FIGCAPTION,Zs.FIGCAPTION],[Gs.FIGURE,Zs.FIGURE],[Gs.FONT,Zs.FONT],[Gs.FOOTER,Zs.FOOTER],[Gs.FOREIGN_OBJECT,Zs.FOREIGN_OBJECT],[Gs.FORM,Zs.FORM],[Gs.FRAME,Zs.FRAME],[Gs.FRAMESET,Zs.FRAMESET],[Gs.H1,Zs.H1],[Gs.H2,Zs.H2],[Gs.H3,Zs.H3],[Gs.H4,Zs.H4],[Gs.H5,Zs.H5],[Gs.H6,Zs.H6],[Gs.HEAD,Zs.HEAD],[Gs.HEADER,Zs.HEADER],[Gs.HGROUP,Zs.HGROUP],[Gs.HR,Zs.HR],[Gs.HTML,Zs.HTML],[Gs.I,Zs.I],[Gs.IMG,Zs.IMG],[Gs.IMAGE,Zs.IMAGE],[Gs.INPUT,Zs.INPUT],[Gs.IFRAME,Zs.IFRAME],[Gs.KEYGEN,Zs.KEYGEN],[Gs.LABEL,Zs.LABEL],[Gs.LI,Zs.LI],[Gs.LINK,Zs.LINK],[Gs.LISTING,Zs.LISTING],[Gs.MAIN,Zs.MAIN],[Gs.MALIGNMARK,Zs.MALIGNMARK],[Gs.MARQUEE,Zs.MARQUEE],[Gs.MATH,Zs.MATH],[Gs.MENU,Zs.MENU],[Gs.META,Zs.META],[Gs.MGLYPH,Zs.MGLYPH],[Gs.MI,Zs.MI],[Gs.MO,Zs.MO],[Gs.MN,Zs.MN],[Gs.MS,Zs.MS],[Gs.MTEXT,Zs.MTEXT],[Gs.NAV,Zs.NAV],[Gs.NOBR,Zs.NOBR],[Gs.NOFRAMES,Zs.NOFRAMES],[Gs.NOEMBED,Zs.NOEMBED],[Gs.NOSCRIPT,Zs.NOSCRIPT],[Gs.OBJECT,Zs.OBJECT],[Gs.OL,Zs.OL],[Gs.OPTGROUP,Zs.OPTGROUP],[Gs.OPTION,Zs.OPTION],[Gs.P,Zs.P],[Gs.PARAM,Zs.PARAM],[Gs.PLAINTEXT,Zs.PLAINTEXT],[Gs.PRE,Zs.PRE],[Gs.RB,Zs.RB],[Gs.RP,Zs.RP],[Gs.RT,Zs.RT],[Gs.RTC,Zs.RTC],[Gs.RUBY,Zs.RUBY],[Gs.S,Zs.S],[Gs.SCRIPT,Zs.SCRIPT],[Gs.SEARCH,Zs.SEARCH],[Gs.SECTION,Zs.SECTION],[Gs.SELECT,Zs.SELECT],[Gs.SOURCE,Zs.SOURCE],[Gs.SMALL,Zs.SMALL],[Gs.SPAN,Zs.SPAN],[Gs.STRIKE,Zs.STRIKE],[Gs.STRONG,Zs.STRONG],[Gs.STYLE,Zs.STYLE],[Gs.SUB,Zs.SUB],[Gs.SUMMARY,Zs.SUMMARY],[Gs.SUP,Zs.SUP],[Gs.TABLE,Zs.TABLE],[Gs.TBODY,Zs.TBODY],[Gs.TEMPLATE,Zs.TEMPLATE],[Gs.TEXTAREA,Zs.TEXTAREA],[Gs.TFOOT,Zs.TFOOT],[Gs.TD,Zs.TD],[Gs.TH,Zs.TH],[Gs.THEAD,Zs.THEAD],[Gs.TITLE,Zs.TITLE],[Gs.TR,Zs.TR],[Gs.TRACK,Zs.TRACK],[Gs.TT,Zs.TT],[Gs.U,Zs.U],[Gs.UL,Zs.UL],[Gs.SVG,Zs.SVG],[Gs.VAR,Zs.VAR],[Gs.WBR,Zs.WBR],[Gs.XMP,Zs.XMP]]);function tl(e){var t;return null!==(t=el.get(e))&&void 0!==t?t:Zs.UNKNOWN}const rl=Zs,nl={[Ls.HTML]:new Set([rl.ADDRESS,rl.APPLET,rl.AREA,rl.ARTICLE,rl.ASIDE,rl.BASE,rl.BASEFONT,rl.BGSOUND,rl.BLOCKQUOTE,rl.BODY,rl.BR,rl.BUTTON,rl.CAPTION,rl.CENTER,rl.COL,rl.COLGROUP,rl.DD,rl.DETAILS,rl.DIR,rl.DIV,rl.DL,rl.DT,rl.EMBED,rl.FIELDSET,rl.FIGCAPTION,rl.FIGURE,rl.FOOTER,rl.FORM,rl.FRAME,rl.FRAMESET,rl.H1,rl.H2,rl.H3,rl.H4,rl.H5,rl.H6,rl.HEAD,rl.HEADER,rl.HGROUP,rl.HR,rl.HTML,rl.IFRAME,rl.IMG,rl.INPUT,rl.LI,rl.LINK,rl.LISTING,rl.MAIN,rl.MARQUEE,rl.MENU,rl.META,rl.NAV,rl.NOEMBED,rl.NOFRAMES,rl.NOSCRIPT,rl.OBJECT,rl.OL,rl.P,rl.PARAM,rl.PLAINTEXT,rl.PRE,rl.SCRIPT,rl.SECTION,rl.SELECT,rl.SOURCE,rl.STYLE,rl.SUMMARY,rl.TABLE,rl.TBODY,rl.TD,rl.TEMPLATE,rl.TEXTAREA,rl.TFOOT,rl.TH,rl.THEAD,rl.TITLE,rl.TR,rl.TRACK,rl.UL,rl.WBR,rl.XMP]),[Ls.MATHML]:new Set([rl.MI,rl.MO,rl.MN,rl.MS,rl.MTEXT,rl.ANNOTATION_XML]),[Ls.SVG]:new Set([rl.TITLE,rl.FOREIGN_OBJECT,rl.DESC]),[Ls.XLINK]:new Set,[Ls.XML]:new Set,[Ls.XMLNS]:new Set},il=new Set([rl.H1,rl.H2,rl.H3,rl.H4,rl.H5,rl.H6]);var al,ol;Gs.STYLE,Gs.SCRIPT,Gs.XMP,Gs.IFRAME,Gs.NOEMBED,Gs.NOFRAMES,Gs.PLAINTEXT,(ol=al||(al={}))[ol.DATA=0]="DATA",ol[ol.RCDATA=1]="RCDATA",ol[ol.RAWTEXT=2]="RAWTEXT",ol[ol.SCRIPT_DATA=3]="SCRIPT_DATA",ol[ol.PLAINTEXT=4]="PLAINTEXT",ol[ol.TAG_OPEN=5]="TAG_OPEN",ol[ol.END_TAG_OPEN=6]="END_TAG_OPEN",ol[ol.TAG_NAME=7]="TAG_NAME",ol[ol.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ol[ol.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ol[ol.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ol[ol.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ol[ol.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ol[ol.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ol[ol.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ol[ol.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ol[ol.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ol[ol.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ol[ol.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ol[ol.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ol[ol.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ol[ol.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ol[ol.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ol[ol.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ol[ol.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ol[ol.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ol[ol.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ol[ol.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ol[ol.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ol[ol.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ol[ol.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ol[ol.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ol[ol.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ol[ol.BOGUS_COMMENT=40]="BOGUS_COMMENT",ol[ol.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ol[ol.COMMENT_START=42]="COMMENT_START",ol[ol.COMMENT_START_DASH=43]="COMMENT_START_DASH",ol[ol.COMMENT=44]="COMMENT",ol[ol.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ol[ol.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ol[ol.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ol[ol.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ol[ol.COMMENT_END_DASH=49]="COMMENT_END_DASH",ol[ol.COMMENT_END=50]="COMMENT_END",ol[ol.COMMENT_END_BANG=51]="COMMENT_END_BANG",ol[ol.DOCTYPE=52]="DOCTYPE",ol[ol.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ol[ol.DOCTYPE_NAME=54]="DOCTYPE_NAME",ol[ol.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ol[ol.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ol[ol.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ol[ol.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ol[ol.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ol[ol.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ol[ol.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ol[ol.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ol[ol.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ol[ol.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ol[ol.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ol[ol.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ol[ol.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ol[ol.CDATA_SECTION=68]="CDATA_SECTION",ol[ol.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ol[ol.CDATA_SECTION_END=70]="CDATA_SECTION_END",ol[ol.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ol[ol.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const sl={DATA:al.DATA,RCDATA:al.RCDATA,RAWTEXT:al.RAWTEXT,SCRIPT_DATA:al.SCRIPT_DATA,PLAINTEXT:al.PLAINTEXT,CDATA_SECTION:al.CDATA_SECTION};function ll(e){return e>=Vs.LATIN_CAPITAL_A&&e<=Vs.LATIN_CAPITAL_Z}function cl(e){return function(e){return e>=Vs.LATIN_SMALL_A&&e<=Vs.LATIN_SMALL_Z}(e)||ll(e)}function ul(e){return cl(e)||function(e){return e>=Vs.DIGIT_0&&e<=Vs.DIGIT_9}(e)}function dl(e){return e+32}function pl(e){return e===Vs.SPACE||e===Vs.LINE_FEED||e===Vs.TABULATION||e===Vs.FORM_FEED}function ql(e){return pl(e)||e===Vs.SOLIDUS||e===Vs.GREATER_THAN_SIGN}class hl{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=al.DATA,this.returnState=al.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Us(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _s(Ns,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ys.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(ys.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===Vs.NULL?ys.nullCharacterReference:e>1114111?ys.characterReferenceOutsideUnicodeRange:vs(e)?ys.surrogateCharacterReference:Ss(e)?ys.noncharacterCharacterReference:As(e)||e===Vs.CARRIAGE_RETURN?ys.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var r,n;null===(n=(r=this.handler).onParseError)||void 0===n||n.call(r,this.preprocessor.getError(e,t))}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||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Ts.START_TAG,tagName:"",tagID:Zs.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ts.END_TAG,tagName:"",tagID:Zs.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Ts.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Ts.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const r=this.currentToken;null===Rs(r,this.currentAttr.name)?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&((null!==(e=(t=r.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(ys.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=tl(e.tagName),e.type===Ts.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(ys.endTagWithAttributes),e.selfClosing&&this._err(ys.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 Ts.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Ts.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Ts.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:Ts.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=pl(e)?Ts.WHITESPACE_CHARACTER:e===Vs.NULL?Ts.NULL_CHARACTER:Ts.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Ts.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=al.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Is.Attribute:Is.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===al.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===al.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===al.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case al.DATA:this._stateData(e);break;case al.RCDATA:this._stateRcdata(e);break;case al.RAWTEXT:this._stateRawtext(e);break;case al.SCRIPT_DATA:this._stateScriptData(e);break;case al.PLAINTEXT:this._statePlaintext(e);break;case al.TAG_OPEN:this._stateTagOpen(e);break;case al.END_TAG_OPEN:this._stateEndTagOpen(e);break;case al.TAG_NAME:this._stateTagName(e);break;case al.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case al.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case al.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case al.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case al.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case al.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case al.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case al.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case al.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case al.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case al.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case al.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case al.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case al.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case al.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case al.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case al.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case al.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case al.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case al.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case al.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case al.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case al.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case al.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case al.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case al.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case al.BOGUS_COMMENT:this._stateBogusComment(e);break;case al.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case al.COMMENT_START:this._stateCommentStart(e);break;case al.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case al.COMMENT:this._stateComment(e);break;case al.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case al.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case al.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case al.COMMENT_END:this._stateCommentEnd(e);break;case al.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case al.DOCTYPE:this._stateDoctype(e);break;case al.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case al.DOCTYPE_NAME:this._stateDoctypeName(e);break;case al.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case al.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case al.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case al.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case al.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case al.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case al.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case al.CDATA_SECTION:this._stateCdataSection(e);break;case al.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case al.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case al.CHARACTER_REFERENCE:this._stateCharacterReference();break;case al.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.TAG_OPEN;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitCodePoint(e);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.LESS_THAN_SIGN:this.state=al.RCDATA_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.RAWTEXT_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(cl(e))this._createStartTagToken(),this.state=al.TAG_NAME,this._stateTagName(e);else switch(e){case Vs.EXCLAMATION_MARK:this.state=al.MARKUP_DECLARATION_OPEN;break;case Vs.SOLIDUS:this.state=al.END_TAG_OPEN;break;case Vs.QUESTION_MARK:this._err(ys.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e);break;case Vs.EOF:this._err(ys.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ys.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=al.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(cl(e))this._createEndTagToken(),this.state=al.TAG_NAME,this._stateTagName(e);else switch(e){case Vs.GREATER_THAN_SIGN:this._err(ys.missingEndTagName),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ys.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.SOLIDUS:this.state=al.SELF_CLOSING_START_TAG;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.tagName+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateRcdataLessThanSign(e){e===Vs.SOLIDUS?this.state=al.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=al.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){cl(e)?(this.state=al.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=al.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=al.BEFORE_ATTRIBUTE_NAME,!1;case Vs.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=al.SELF_CLOSING_START_TAG,!1;case Vs.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=al.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Vs.SOLIDUS?this.state=al.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){cl(e)?(this.state=al.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Vs.SOLIDUS:this.state=al.SCRIPT_DATA_END_TAG_OPEN;break;case Vs.EXCLAMATION_MARK:this.state=al.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=al.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){cl(e)?(this.state=al.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Vs.HYPHEN_MINUS?(this.state=al.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Vs.HYPHEN_MINUS?(this.state=al.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=al.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Vs.HYPHEN_MINUS:this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Vs.GREATER_THAN_SIGN:this.state=al.SCRIPT_DATA,this._emitChars(">");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Vs.SOLIDUS?this.state=al.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:cl(e)?(this._emitChars("<"),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){cl(e)?(this.state=al.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(bs,!1)&&ql(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=al.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Vs.HYPHEN_MINUS:this._emitChars("-");break;case Vs.LESS_THAN_SIGN:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Vs.GREATER_THAN_SIGN:this.state=al.SCRIPT_DATA,this._emitChars(">");break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(hs);break;case Vs.EOF:this._err(ys.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Vs.SOLIDUS?(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(bs,!1)&&ql(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=al.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=al.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.SOLIDUS:case Vs.GREATER_THAN_SIGN:case Vs.EOF:this.state=al.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vs.EQUALS_SIGN:this._err(ys.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=al.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=al.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:case Vs.SOLIDUS:case Vs.GREATER_THAN_SIGN:case Vs.EOF:this._leaveAttrName(),this.state=al.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Vs.EQUALS_SIGN:this._leaveAttrName(),this.state=al.BEFORE_ATTRIBUTE_VALUE;break;case Vs.QUOTATION_MARK:case Vs.APOSTROPHE:case Vs.LESS_THAN_SIGN:this._err(ys.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.name+=hs;break;default:this.currentAttr.name+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateAfterAttributeName(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.SOLIDUS:this.state=al.SELF_CLOSING_START_TAG;break;case Vs.EQUALS_SIGN:this.state=al.BEFORE_ATTRIBUTE_VALUE;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=al.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:this.state=al.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this.state=al.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingAttributeValue),this.state=al.DATA,this.emitCurrentTagToken();break;default:this.state=al.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this._leaveAttrValue(),this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.AMPERSAND:this._startCharacterReference();break;case Vs.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this.currentAttr.value+=hs;break;case Vs.QUOTATION_MARK:case Vs.APOSTROPHE:case Vs.LESS_THAN_SIGN:case Vs.EQUALS_SIGN:case Vs.GRAVE_ACCENT:this._err(ys.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this._leaveAttrValue(),this.state=al.BEFORE_ATTRIBUTE_NAME;break;case Vs.SOLIDUS:this._leaveAttrValue(),this.state=al.SELF_CLOSING_START_TAG;break;case Vs.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._err(ys.missingWhitespaceBetweenAttributes),this.state=al.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Vs.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=al.DATA,this.emitCurrentTagToken();break;case Vs.EOF:this._err(ys.eofInTag),this._emitEOFToken();break;default:this._err(ys.unexpectedSolidusInTag),this.state=al.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.data+=hs;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=al.COMMENT_START):this._consumeSequenceIfMatch(gs,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=al.DOCTYPE):this._consumeSequenceIfMatch(ms,!0)?this.inForeignNode?this.state=al.CDATA_SECTION:(this._err(ys.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=al.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ys.incorrectlyOpenedComment),this._createCommentToken(2),this.state=al.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_START_DASH;break;case Vs.GREATER_THAN_SIGN:{this._err(ys.abruptClosingOfEmptyComment),this.state=al.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=al.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptClosingOfEmptyComment),this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=al.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END_DASH;break;case Vs.LESS_THAN_SIGN:t.data+="<",this.state=al.COMMENT_LESS_THAN_SIGN;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.data+=hs;break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Vs.EXCLAMATION_MARK:t.data+="!",this.state=al.COMMENT_LESS_THAN_SIGN_BANG;break;case Vs.LESS_THAN_SIGN:t.data+="<";break;default:this.state=al.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Vs.HYPHEN_MINUS?this.state=al.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=al.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Vs.HYPHEN_MINUS?this.state=al.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=al.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Vs.GREATER_THAN_SIGN&&e!==Vs.EOF&&this._err(ys.nestedComment),this.state=al.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:this.state=al.COMMENT_END;break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=al.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EXCLAMATION_MARK:this.state=al.COMMENT_END_BANG;break;case Vs.HYPHEN_MINUS:t.data+="-";break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=al.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Vs.HYPHEN_MINUS:t.data+="--!",this.state=al.COMMENT_END_DASH;break;case Vs.GREATER_THAN_SIGN:this._err(ys.incorrectlyClosedComment),this.state=al.DATA,this.emitCurrentComment(t);break;case Vs.EOF:this._err(ys.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=al.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:this.state=al.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Vs.EOF:{this._err(ys.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(ys.missingWhitespaceBeforeDoctypeName),this.state=al.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ll(e))this._createDoctypeToken(String.fromCharCode(dl(e))),this.state=al.DOCTYPE_NAME;else switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),this._createDoctypeToken(hs),this.state=al.DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:{this._err(ys.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=al.DATA;break}case Vs.EOF:{this._err(ys.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=al.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.AFTER_DOCTYPE_NAME;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.name+=hs;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ll(e)?dl(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=al.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=al.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ys.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.publicId="",this.state=al.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.publicId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.publicId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Vs.GREATER_THAN_SIGN:this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.QUOTATION_MARK:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:this.state=al.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.QUOTATION_MARK:this._err(ys.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:this._err(ys.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.QUOTATION_MARK:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Vs.APOSTROPHE:t.systemId="",this.state=al.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Vs.GREATER_THAN_SIGN:this._err(ys.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.DATA,this.emitCurrentDoctype(t);break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Vs.QUOTATION_MARK:this.state=al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.systemId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Vs.APOSTROPHE:this.state=al.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter),t.systemId+=hs;break;case Vs.GREATER_THAN_SIGN:this._err(ys.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Vs.SPACE:case Vs.LINE_FEED:case Vs.TABULATION:case Vs.FORM_FEED:break;case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.EOF:this._err(ys.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(ys.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=al.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Vs.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=al.DATA;break;case Vs.NULL:this._err(ys.unexpectedNullCharacter);break;case Vs.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Vs.RIGHT_SQUARE_BRACKET:this.state=al.CDATA_SECTION_BRACKET;break;case Vs.EOF:this._err(ys.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Vs.RIGHT_SQUARE_BRACKET?this.state=al.CDATA_SECTION_END:(this._emitChars("]"),this.state=al.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Vs.GREATER_THAN_SIGN:this.state=al.DATA;break;case Vs.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=al.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Vs.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ul(this.preprocessor.peek(1))?al.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ul(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Vs.SEMICOLON&&this._err(ys.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const Vl=new Set([Zs.DD,Zs.DT,Zs.LI,Zs.OPTGROUP,Zs.OPTION,Zs.P,Zs.RB,Zs.RP,Zs.RT,Zs.RTC]),fl=new Set([...Vl,Zs.CAPTION,Zs.COLGROUP,Zs.TBODY,Zs.TD,Zs.TFOOT,Zs.TH,Zs.THEAD,Zs.TR]),ml=new Set([Zs.APPLET,Zs.CAPTION,Zs.HTML,Zs.MARQUEE,Zs.OBJECT,Zs.TABLE,Zs.TD,Zs.TEMPLATE,Zs.TH]),gl=new Set([...ml,Zs.OL,Zs.UL]),bl=new Set([...ml,Zs.BUTTON]),vl=new Set([Zs.ANNOTATION_XML,Zs.MI,Zs.MN,Zs.MO,Zs.MS,Zs.MTEXT]),Al=new Set([Zs.DESC,Zs.FOREIGN_OBJECT,Zs.TITLE]),Sl=new Set([Zs.TR,Zs.TEMPLATE,Zs.HTML]),yl=new Set([Zs.TBODY,Zs.TFOOT,Zs.THEAD,Zs.TEMPLATE,Zs.HTML]),El=new Set([Zs.TABLE,Zs.TEMPLATE,Zs.HTML]),Tl=new Set([Zs.TD,Zs.TH]);class Cl{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=Zs.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Zs.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ls.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 n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,n===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])!==Ls.HTML);this.shortenToLength(Math.max(t,0))}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<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const r=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(il,Ls.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Tl,Ls.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let r=this.stackTop;r>=0;r--)if(e.has(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(El,Ls.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yl,Ls.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sl,Ls.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]===Zs.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]===Zs.HTML}hasInDynamicScope(e,t){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ls.HTML:if(n===e)return!0;if(t.has(n))return!1;break;case Ls.SVG:if(Al.has(n))return!1;break;case Ls.MATHML:if(vl.has(n))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ml)}hasInListItemScope(e){return this.hasInDynamicScope(e,gl)}hasInButtonScope(e){return this.hasInDynamicScope(e,bl)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Ls.HTML:if(il.has(t))return!0;if(ml.has(t))return!1;break;case Ls.SVG:if(Al.has(t))return!1;break;case Ls.MATHML:if(vl.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ls.HTML)switch(this.tagIDs[t]){case e:return!0;case Zs.TABLE:case Zs.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Ls.HTML)switch(this.tagIDs[e]){case Zs.TBODY:case Zs.THEAD:case Zs.TFOOT:return!0;case Zs.TABLE:case Zs.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ls.HTML)switch(this.tagIDs[t]){case e:return!0;case Zs.OPTION:case Zs.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&Vl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&fl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&fl.has(this.currentTagId);)this.pop()}}var Ul,Rl;(Rl=Ul||(Ul={}))[Rl.Marker=0]="Marker",Rl[Rl.Element=1]="Element";const Nl={type:Ul.Marker};class kl{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const r=[],n=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const e=this.entries[o];if(e.type===Ul.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===i&&this.treeAdapter.getNamespaceURI(t)===a){const e=this.treeAdapter.getAttrList(t);e.length===n&&r.push({idx:o,attrs:e})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,t);if(r.length<3)return;const n=new Map(t.map(e=>[e.name,e.value]));let i=0;for(let a=0;a<r.length;a++){const e=r[a];e.attrs.every(e=>n.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Nl)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Ul.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ul.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Nl);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===Ul.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===Ul.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Ul.Element&&t.element===e)}}const Fl={createDocument:()=>({nodeName:"#document",mode:Ms.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}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,r,n){const i=e.childNodes.find(e=>"#documentType"===e.nodeName);if(i)i.name=t,i.publicId=r,i.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Fl.appendChild(e,i)}},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(Fl.isTextNode(r))return void(r.value+=t)}Fl.appendChild(e,Fl.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Fl.isTextNode(n)?n.value+=t:Fl.insertBefore(e,Fl.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(e=>e.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild:e=>e.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}}},wl="html",Wl=["+//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//"],xl=[...Wl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ol=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Kl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Il=[...Kl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Dl(e,t){return t.some(t=>e.startsWith(t))}const Ll=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])),Pl=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ls.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ls.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ls.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ls.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ls.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ls.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ls.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ls.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ls.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ls.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ls.XMLNS}]]),Bl=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])),Xl=new Set([Zs.B,Zs.BIG,Zs.BLOCKQUOTE,Zs.BODY,Zs.BR,Zs.CENTER,Zs.CODE,Zs.DD,Zs.DIV,Zs.DL,Zs.DT,Zs.EM,Zs.EMBED,Zs.H1,Zs.H2,Zs.H3,Zs.H4,Zs.H5,Zs.H6,Zs.HEAD,Zs.HR,Zs.I,Zs.IMG,Zs.LI,Zs.LISTING,Zs.MENU,Zs.META,Zs.NOBR,Zs.OL,Zs.P,Zs.PRE,Zs.RUBY,Zs.S,Zs.SMALL,Zs.SPAN,Zs.STRONG,Zs.STRIKE,Zs.SUB,Zs.SUP,Zs.TABLE,Zs.TT,Zs.U,Zs.UL,Zs.VAR]);function Ml(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function jl(e){for(let t=0;t<e.attrs.length;t++){const r=Ll.get(e.attrs[t].name);null!=r&&(e.attrs[t].name=r)}}function Gl(e){for(let t=0;t<e.attrs.length;t++){const r=Pl.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}var Hl,Zl;(Zl=Hl||(Hl={}))[Zl.INITIAL=0]="INITIAL",Zl[Zl.BEFORE_HTML=1]="BEFORE_HTML",Zl[Zl.BEFORE_HEAD=2]="BEFORE_HEAD",Zl[Zl.IN_HEAD=3]="IN_HEAD",Zl[Zl.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Zl[Zl.AFTER_HEAD=5]="AFTER_HEAD",Zl[Zl.IN_BODY=6]="IN_BODY",Zl[Zl.TEXT=7]="TEXT",Zl[Zl.IN_TABLE=8]="IN_TABLE",Zl[Zl.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Zl[Zl.IN_CAPTION=10]="IN_CAPTION",Zl[Zl.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Zl[Zl.IN_TABLE_BODY=12]="IN_TABLE_BODY",Zl[Zl.IN_ROW=13]="IN_ROW",Zl[Zl.IN_CELL=14]="IN_CELL",Zl[Zl.IN_SELECT=15]="IN_SELECT",Zl[Zl.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Zl[Zl.IN_TEMPLATE=17]="IN_TEMPLATE",Zl[Zl.AFTER_BODY=18]="AFTER_BODY",Zl[Zl.IN_FRAMESET=19]="IN_FRAMESET",Zl[Zl.AFTER_FRAMESET=20]="AFTER_FRAMESET",Zl[Zl.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Zl[Zl.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const Yl={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zl=new Set([Zs.TABLE,Zs.TBODY,Zs.TFOOT,Zs.THEAD,Zs.TR]),Ql={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Fl,onParseError:null};class Jl{constructor(e,t,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=Hl.INITIAL,this.originalInsertionMode=Hl.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={...Ql,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new hl(this.options,this),this.activeFormattingElements=new kl(this.treeAdapter),this.fragmentContextID=r?tl(this.treeAdapter.getTagName(r)):Zs.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new Cl(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={...Ql,...t};null!=e||(e=r.treeAdapter.createElement(Gs.TEMPLATE,Ls.HTML,[]));const n=r.treeAdapter.createElement("documentmock",Ls.HTML,[]),i=new this(r,n,e);return i.fragmentContextID===Zs.TEMPLATE&&i.tmplInsertionModeStack.unshift(Hl.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,r){var n;if(!this.onParseError)return;const i=null!==(n=e.location)&&void 0!==n?n:Yl,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,r){var n,i;null===(i=(n=this.treeAdapter).onItemPush)||void 0===i||i.call(n,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(n=(r=this.treeAdapter).onItemPop)||void 0===n||n.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||e&&this.treeAdapter.getNamespaceURI(e)===Ls.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Ls.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Hl.TEXT}switchToPlaintextParsing(){this.insertionMode=Hl.TEXT,this.originalInsertionMode=Hl.IN_BODY,this.tokenizer.state=sl.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)===Gs.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ls.HTML)switch(this.fragmentContextID){case Zs.TITLE:case Zs.TEXTAREA:this.tokenizer.state=sl.RCDATA;break;case Zs.STYLE:case Zs.XMP:case Zs.IFRAME:case Zs.NOEMBED:case Zs.NOFRAMES:case Zs.NOSCRIPT:this.tokenizer.state=sl.RAWTEXT;break;case Zs.SCRIPT:this.tokenizer.state=sl.SCRIPT_DATA;break;case Zs.PLAINTEXT:this.tokenizer.state=sl.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),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(null!=t?t:this.document,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,Ls.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Ls.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(Gs.HTML,Ls.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Zs.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 n=this.treeAdapter.getChildNodes(t),i=r?n.lastIndexOf(r):n.length,a=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:r,endOffset:n}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:r,endOffset:n})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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,n=this.treeAdapter.getTagName(e),i=t.type===Ts.END_TAG&&n===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,i)}}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!==Zs.SVG||this.treeAdapter.getTagName(t)!==Gs.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Ls.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Zs.MGLYPH||e.tagID===Zs.MALIGNMARK)&&void 0!==r&&!this._isIntegrationPoint(r,t,Ls.HTML))}_processToken(e){switch(e.type){case Ts.CHARACTER:this.onCharacter(e);break;case Ts.NULL_CHARACTER:this.onNullCharacter(e);break;case Ts.COMMENT:this.onComment(e);break;case Ts.DOCTYPE:this.onDoctype(e);break;case Ts.START_TAG:this._processStartTag(e);break;case Ts.END_TAG:this.onEndTag(e);break;case Ts.EOF:this.onEof(e);break;case Ts.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){return function(e,t,r,n){return(!n||n===Ls.HTML)&&function(e,t,r){if(t===Ls.MATHML&&e===Zs.ANNOTATION_XML)for(let n=0;n<r.length;n++)if(r[n].name===Bs.ENCODING){const e=r[n].value.toLowerCase();return"text/html"===e||"application/xhtml+xml"===e}return t===Ls.SVG&&(e===Zs.FOREIGN_OBJECT||e===Zs.DESC||e===Zs.TITLE)}(e,t,r)||(!n||n===Ls.MATHML)&&function(e,t){return t===Ls.MATHML&&(e===Zs.MI||e===Zs.MO||e===Zs.MN||e===Zs.MS||e===Zs.MTEXT)}(e,t)}(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===Ul.Marker||this.openElements.contains(e.element));for(let r=-1===t?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=Hl.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Zs.P),this.openElements.popUntilTagNamePopped(Zs.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Zs.TR:return void(this.insertionMode=Hl.IN_ROW);case Zs.TBODY:case Zs.THEAD:case Zs.TFOOT:return void(this.insertionMode=Hl.IN_TABLE_BODY);case Zs.CAPTION:return void(this.insertionMode=Hl.IN_CAPTION);case Zs.COLGROUP:return void(this.insertionMode=Hl.IN_COLUMN_GROUP);case Zs.TABLE:return void(this.insertionMode=Hl.IN_TABLE);case Zs.BODY:return void(this.insertionMode=Hl.IN_BODY);case Zs.FRAMESET:return void(this.insertionMode=Hl.IN_FRAMESET);case Zs.SELECT:return void this._resetInsertionModeForSelect(e);case Zs.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Zs.HTML:return void(this.insertionMode=this.headElement?Hl.AFTER_HEAD:Hl.BEFORE_HEAD);case Zs.TD:case Zs.TH:if(e>0)return void(this.insertionMode=Hl.IN_CELL);break;case Zs.HEAD:if(e>0)return void(this.insertionMode=Hl.IN_HEAD)}this.insertionMode=Hl.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Zs.TEMPLATE)break;if(e===Zs.TABLE)return void(this.insertionMode=Hl.IN_SELECT_IN_TABLE)}this.insertionMode=Hl.IN_SELECT}_isElementCausesFosterParenting(e){return zl.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&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 Zs.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Ls.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Zs.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 nl[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 Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.IN_BODY:case Hl.IN_CAPTION:case Hl.IN_CELL:case Hl.IN_TEMPLATE:mc(this,e);break;case Hl.TEXT:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_TABLE_TEXT:Fc(this,e);break;case Hl.IN_COLUMN_GROUP:Oc(this,e);break;case Hl.AFTER_BODY:jc(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=hs,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.TEXT:this._insertCharacters(e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_COLUMN_GROUP:Oc(this,e);break;case Hl.AFTER_BODY:jc(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)ac(this,e);else switch(this.insertionMode){case Hl.INITIAL:case Hl.BEFORE_HTML:case Hl.BEFORE_HEAD:case Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:case Hl.IN_BODY:case Hl.IN_TABLE:case Hl.IN_CAPTION:case Hl.IN_COLUMN_GROUP:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:case Hl.IN_CELL:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:case Hl.IN_TEMPLATE:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:ac(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Hl.INITIAL:!function(e,t){e._setDocumentType(t);const r=t.forceQuirks?Ms.QUIRKS:function(e){if(e.name!==wl)return Ms.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ms.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),Ol.has(r))return Ms.QUIRKS;let e=null===t?xl:Wl;if(Dl(r,e))return Ms.QUIRKS;if(e=null===t?Kl:Il,Dl(r,e))return Ms.LIMITED_QUIRKS}return Ms.NO_QUIRKS}(t);(function(e){return e.name===wl&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,ys.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=Hl.BEFORE_HTML}(this,e);break;case Hl.BEFORE_HEAD:case Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:this._err(e,ys.misplacedDoctype);break;case Hl.IN_TABLE_TEXT:wc(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,ys.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Zs.FONT&&e.attrs.some(({name:e})=>e===Bs.COLOR||e===Bs.SIZE||e===Bs.FACE)||Xl.has(t)}(t))Hc(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===Ls.MATHML?Ml(t):n===Ls.SVG&&(function(e){const t=Bl.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=tl(e.tagName))}(t),jl(t)),Gl(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:!function(e,t){t.tagID===Zs.HTML?(e._insertElement(t,Ls.HTML),e.insertionMode=Hl.BEFORE_HEAD):lc(e,t)}(this,e);break;case Hl.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.HEAD:e._insertElement(t,Ls.HTML),e.headElement=e.openElements.current,e.insertionMode=Hl.IN_HEAD;break;default:cc(e,t)}}(this,e);break;case Hl.IN_HEAD:uc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BASEFONT:case Zs.BGSOUND:case Zs.HEAD:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.STYLE:uc(e,t);break;case Zs.NOSCRIPT:e._err(t,ys.nestedNoscriptInHead);break;default:qc(e,t)}}(this,e);break;case Hl.AFTER_HEAD:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BODY:e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=Hl.IN_BODY;break;case Zs.FRAMESET:e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_FRAMESET;break;case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.SCRIPT:case Zs.STYLE:case Zs.TEMPLATE:case Zs.TITLE:e._err(t,ys.abandonedHeadElementChild),e.openElements.push(e.headElement,Zs.HEAD),uc(e,t),e.openElements.remove(e.headElement);break;case Zs.HEAD:e._err(t,ys.misplacedStartTagForHeadElement);break;default:hc(e,t)}}(this,e);break;case Hl.IN_BODY:Sc(this,e);break;case Hl.IN_TABLE:Uc(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_CAPTION:!function(e,t){const r=t.tagID;Wc.has(r)?e.openElements.hasInTableScope(Zs.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_TABLE,Uc(e,t)):Sc(e,t)}(this,e);break;case Hl.IN_COLUMN_GROUP:xc(this,e);break;case Hl.IN_TABLE_BODY:Kc(this,e);break;case Hl.IN_ROW:Dc(this,e);break;case Hl.IN_CELL:!function(e,t){const r=t.tagID;Wc.has(r)?(e.openElements.hasInTableScope(Zs.TD)||e.openElements.hasInTableScope(Zs.TH))&&(e._closeTableCell(),Dc(e,t)):Sc(e,t)}(this,e);break;case Hl.IN_SELECT:Pc(this,e);break;case Hl.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===Zs.CAPTION||r===Zs.TABLE||r===Zs.TBODY||r===Zs.TFOOT||r===Zs.THEAD||r===Zs.TR||r===Zs.TD||r===Zs.TH?(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Pc(e,t)}(this,e);break;case Hl.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:case Zs.NOFRAMES:case Zs.SCRIPT:case Zs.STYLE:case Zs.TEMPLATE:case Zs.TITLE:uc(e,t);break;case Zs.CAPTION:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.tmplInsertionModeStack[0]=Hl.IN_TABLE,e.insertionMode=Hl.IN_TABLE,Uc(e,t);break;case Zs.COL:e.tmplInsertionModeStack[0]=Hl.IN_COLUMN_GROUP,e.insertionMode=Hl.IN_COLUMN_GROUP,xc(e,t);break;case Zs.TR:e.tmplInsertionModeStack[0]=Hl.IN_TABLE_BODY,e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t);break;case Zs.TD:case Zs.TH:e.tmplInsertionModeStack[0]=Hl.IN_ROW,e.insertionMode=Hl.IN_ROW,Dc(e,t);break;default:e.tmplInsertionModeStack[0]=Hl.IN_BODY,e.insertionMode=Hl.IN_BODY,Sc(e,t)}}(this,e);break;case Hl.AFTER_BODY:!function(e,t){t.tagID===Zs.HTML?Sc(e,t):jc(e,t)}(this,e);break;case Hl.IN_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.FRAMESET:e._insertElement(t,Ls.HTML);break;case Zs.FRAME:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.NOFRAMES:uc(e,t)}}(this,e);break;case Hl.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.NOFRAMES:uc(e,t)}}(this,e);break;case Hl.AFTER_AFTER_BODY:!function(e,t){t.tagID===Zs.HTML?Sc(e,t):Gc(e,t)}(this,e);break;case Hl.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.NOFRAMES:uc(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Zs.P||t.tagID===Zs.BR)return Hc(e),void e._endTagOutsideForeignContent(t);for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===Ls.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:!function(e,t){const r=t.tagID;r!==Zs.HTML&&r!==Zs.HEAD&&r!==Zs.BODY&&r!==Zs.BR||lc(e,t)}(this,e);break;case Hl.BEFORE_HEAD:!function(e,t){const r=t.tagID;r===Zs.HEAD||r===Zs.BODY||r===Zs.HTML||r===Zs.BR?cc(e,t):e._err(t,ys.endTagWithoutMatchingOpenElement)}(this,e);break;case Hl.IN_HEAD:!function(e,t){switch(t.tagID){case Zs.HEAD:e.openElements.pop(),e.insertionMode=Hl.AFTER_HEAD;break;case Zs.BODY:case Zs.BR:case Zs.HTML:pc(e,t);break;case Zs.TEMPLATE:dc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Zs.NOSCRIPT:e.openElements.pop(),e.insertionMode=Hl.IN_HEAD;break;case Zs.BR:qc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.AFTER_HEAD:!function(e,t){switch(t.tagID){case Zs.BODY:case Zs.HTML:case Zs.BR:hc(e,t);break;case Zs.TEMPLATE:dc(e,t);break;default:e._err(t,ys.endTagWithoutMatchingOpenElement)}}(this,e);break;case Hl.IN_BODY:Ec(this,e);break;case Hl.TEXT:!function(e,t){var r;t.tagID===Zs.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 Hl.IN_TABLE:Rc(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_CAPTION:!function(e,t){const r=t.tagID;switch(r){case Zs.CAPTION:case Zs.TABLE:e.openElements.hasInTableScope(Zs.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_TABLE,r===Zs.TABLE&&Rc(e,t));break;case Zs.BODY:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TBODY:case Zs.TD:case Zs.TFOOT:case Zs.TH:case Zs.THEAD:case Zs.TR:break;default:Ec(e,t)}}(this,e);break;case Hl.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Zs.COLGROUP:e.openElements.currentTagId===Zs.COLGROUP&&(e.openElements.pop(),e.insertionMode=Hl.IN_TABLE);break;case Zs.TEMPLATE:dc(e,t);break;case Zs.COL:break;default:Oc(e,t)}}(this,e);break;case Hl.IN_TABLE_BODY:Ic(this,e);break;case Hl.IN_ROW:Lc(this,e);break;case Hl.IN_CELL:!function(e,t){const r=t.tagID;switch(r){case Zs.TD:case Zs.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Hl.IN_ROW);break;case Zs.TABLE:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Lc(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:break;default:Ec(e,t)}}(this,e);break;case Hl.IN_SELECT:Bc(this,e);break;case Hl.IN_SELECT_IN_TABLE:!function(e,t){const r=t.tagID;r===Zs.CAPTION||r===Zs.TABLE||r===Zs.TBODY||r===Zs.TFOOT||r===Zs.THEAD||r===Zs.TR||r===Zs.TD||r===Zs.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Bc(e,t)}(this,e);break;case Hl.IN_TEMPLATE:!function(e,t){t.tagID===Zs.TEMPLATE&&dc(e,t)}(this,e);break;case Hl.AFTER_BODY:Mc(this,e);break;case Hl.IN_FRAMESET:!function(e,t){t.tagID!==Zs.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Zs.FRAMESET||(e.insertionMode=Hl.AFTER_FRAMESET))}(this,e);break;case Hl.AFTER_FRAMESET:!function(e,t){t.tagID===Zs.HTML&&(e.insertionMode=Hl.AFTER_AFTER_FRAMESET)}(this,e);break;case Hl.AFTER_AFTER_BODY:Gc(this,e)}}onEof(e){switch(this.insertionMode){case Hl.INITIAL:sc(this,e);break;case Hl.BEFORE_HTML:lc(this,e);break;case Hl.BEFORE_HEAD:cc(this,e);break;case Hl.IN_HEAD:pc(this,e);break;case Hl.IN_HEAD_NO_SCRIPT:qc(this,e);break;case Hl.AFTER_HEAD:hc(this,e);break;case Hl.IN_BODY:case Hl.IN_TABLE:case Hl.IN_CAPTION:case Hl.IN_COLUMN_GROUP:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:case Hl.IN_CELL:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:Tc(this,e);break;case Hl.TEXT:!function(e,t){e._err(t,ys.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Hl.IN_TABLE_TEXT:wc(this,e);break;case Hl.IN_TEMPLATE:Xc(this,e);break;case Hl.AFTER_BODY:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:oc(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Vs.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 Hl.IN_HEAD:case Hl.IN_HEAD_NO_SCRIPT:case Hl.AFTER_HEAD:case Hl.TEXT:case Hl.IN_COLUMN_GROUP:case Hl.IN_SELECT:case Hl.IN_SELECT_IN_TABLE:case Hl.IN_FRAMESET:case Hl.AFTER_FRAMESET:this._insertCharacters(e);break;case Hl.IN_BODY:case Hl.IN_CAPTION:case Hl.IN_CELL:case Hl.IN_TEMPLATE:case Hl.AFTER_BODY:case Hl.AFTER_AFTER_BODY:case Hl.AFTER_AFTER_FRAMESET:fc(this,e);break;case Hl.IN_TABLE:case Hl.IN_TABLE_BODY:case Hl.IN_ROW:Cc(this,e);break;case Hl.IN_TABLE_TEXT:kc(this,e)}}}function _l(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):yc(e,t),r}function $l(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function ec(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);const r=e.activeFormattingElements.getElementEntry(o),s=r&&a>=3;!r||s?(s&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(o)):(o=tc(e,r),n===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(o,n),n=o)}return n}function tc(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function rc(e,t,r){const n=tl(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);n===Zs.TEMPLATE&&i===Ls.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function nc(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function ic(e,t){for(let r=0;r<8;r++){const r=_l(e,t);if(!r)break;const n=$l(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const i=ec(e,n,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&rc(e,a,i),nc(e,n,r)}}function ac(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function oc(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],n=e.treeAdapter.getNodeSourceCodeLocation(r);n&&!n.endTag&&e._setEndLocation(r,t)}}}}function sc(e,t){e._err(t,ys.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ms.QUIRKS),e.insertionMode=Hl.BEFORE_HTML,e._processToken(t)}function lc(e,t){e._insertFakeRootElement(),e.insertionMode=Hl.BEFORE_HEAD,e._processToken(t)}function cc(e,t){e._insertFakeElement(Gs.HEAD,Zs.HEAD),e.headElement=e.openElements.current,e.insertionMode=Hl.IN_HEAD,e._processToken(t)}function uc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.BASE:case Zs.BASEFONT:case Zs.BGSOUND:case Zs.LINK:case Zs.META:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.TITLE:e._switchToTextParsing(t,sl.RCDATA);break;case Zs.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,sl.RAWTEXT):(e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_HEAD_NO_SCRIPT);break;case Zs.NOFRAMES:case Zs.STYLE:e._switchToTextParsing(t,sl.RAWTEXT);break;case Zs.SCRIPT:e._switchToTextParsing(t,sl.SCRIPT_DATA);break;case Zs.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Hl.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Hl.IN_TEMPLATE);break;case Zs.HEAD:e._err(t,ys.misplacedStartTagForHeadElement);break;default:pc(e,t)}}function dc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Zs.TEMPLATE&&e._err(t,ys.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Zs.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ys.endTagWithoutMatchingOpenElement)}function pc(e,t){e.openElements.pop(),e.insertionMode=Hl.AFTER_HEAD,e._processToken(t)}function qc(e,t){const r=t.type===Ts.EOF?ys.openElementsLeftAfterEof:ys.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=Hl.IN_HEAD,e._processToken(t)}function hc(e,t){e._insertFakeElement(Gs.BODY,Zs.BODY),e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Vc(e,t){switch(t.type){case Ts.CHARACTER:mc(e,t);break;case Ts.WHITESPACE_CHARACTER:fc(e,t);break;case Ts.COMMENT:ac(e,t);break;case Ts.START_TAG:Sc(e,t);break;case Ts.END_TAG:Ec(e,t);break;case Ts.EOF:Tc(e,t)}}function fc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function mc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function gc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ls.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function bc(e){const t=Rs(e,Bs.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function vc(e,t){e._switchToTextParsing(t,sl.RAWTEXT)}function Ac(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML)}function Sc(e,t){switch(t.tagID){case Zs.I:case Zs.S:case Zs.B:case Zs.U:case Zs.EM:case Zs.TT:case Zs.BIG:case Zs.CODE:case Zs.FONT:case Zs.SMALL:case Zs.STRIKE:case Zs.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.A:!function(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Gs.A);r&&(ic(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.H1:case Zs.H2:case Zs.H3:case Zs.H4:case Zs.H5:case Zs.H6:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&il.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.P:case Zs.DL:case Zs.OL:case Zs.UL:case Zs.DIV:case Zs.DIR:case Zs.NAV:case Zs.MAIN:case Zs.MENU:case Zs.ASIDE:case Zs.CENTER:case Zs.FIGURE:case Zs.FOOTER:case Zs.HEADER:case Zs.HGROUP:case Zs.DIALOG:case Zs.DETAILS:case Zs.ADDRESS:case Zs.ARTICLE:case Zs.SEARCH:case Zs.SECTION:case Zs.SUMMARY:case Zs.FIELDSET:case Zs.BLOCKQUOTE:case Zs.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.LI:case Zs.DD:case Zs.DT:!function(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const t=e.openElements.tagIDs[n];if(r===Zs.LI&&t===Zs.LI||(r===Zs.DD||r===Zs.DT)&&(t===Zs.DD||t===Zs.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Zs.ADDRESS&&t!==Zs.DIV&&t!==Zs.P&&e._isSpecialElement(e.openElements.items[n],t))break}e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.BR:case Zs.IMG:case Zs.WBR:case Zs.AREA:case Zs.EMBED:case Zs.KEYGEN:gc(e,t);break;case Zs.HR:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._appendElement(t,Ls.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Zs.RB:case Zs.RTC:!function(e,t){e.openElements.hasInScope(Zs.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.RT:case Zs.RP:!function(e,t){e.openElements.hasInScope(Zs.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Zs.RTC),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.PRE:case Zs.LISTING:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Zs.XMP:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,sl.RAWTEXT)}(e,t);break;case Zs.SVG:!function(e,t){e._reconstructActiveFormattingElements(),jl(t),Gl(t),t.selfClosing?e._appendElement(t,Ls.SVG):e._insertElement(t,Ls.SVG),t.ackSelfClosing=!0}(e,t);break;case Zs.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Zs.BASE:case Zs.LINK:case Zs.META:case Zs.STYLE:case Zs.TITLE:case Zs.SCRIPT:case Zs.BGSOUND:case Zs.BASEFONT:case Zs.TEMPLATE:uc(e,t);break;case Zs.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 Zs.FORM:!function(e,t){const r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case Zs.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Zs.NOBR)&&(ic(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ls.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Zs.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ml(t),Gl(t),t.selfClosing?e._appendElement(t,Ls.MATHML):e._insertElement(t,Ls.MATHML),t.ackSelfClosing=!0}(e,t);break;case Zs.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ms.QUIRKS&&e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=Hl.IN_TABLE}(e,t);break;case Zs.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ls.HTML),bc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Zs.PARAM:case Zs.TRACK:case Zs.SOURCE:!function(e,t){e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0}(e,t);break;case Zs.IMAGE:!function(e,t){t.tagName=Gs.IMG,t.tagID=Zs.IMG,gc(e,t)}(e,t);break;case Zs.BUTTON:!function(e,t){e.openElements.hasInScope(Zs.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Zs.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.framesetOk=!1}(e,t);break;case Zs.APPLET:case Zs.OBJECT:case Zs.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Zs.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,sl.RAWTEXT)}(e,t);break;case Zs.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Hl.IN_TABLE||e.insertionMode===Hl.IN_CAPTION||e.insertionMode===Hl.IN_TABLE_BODY||e.insertionMode===Hl.IN_ROW||e.insertionMode===Hl.IN_CELL?Hl.IN_SELECT_IN_TABLE:Hl.IN_SELECT}(e,t);break;case Zs.OPTION:case Zs.OPTGROUP:!function(e,t){e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ls.HTML)}(e,t);break;case Zs.NOEMBED:case Zs.NOFRAMES:vc(e,t);break;case Zs.FRAMESET:!function(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_FRAMESET)}(e,t);break;case Zs.TEXTAREA:!function(e,t){e._insertElement(t,Ls.HTML),e.skipNextNewLine=!0,e.tokenizer.state=sl.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Hl.TEXT}(e,t);break;case Zs.NOSCRIPT:e.options.scriptingEnabled?vc(e,t):Ac(e,t);break;case Zs.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Zs.P)&&e._closePElement(),e._insertElement(t,Ls.HTML),e.tokenizer.state=sl.PLAINTEXT}(e,t);break;case Zs.COL:case Zs.TH:case Zs.TD:case Zs.TR:case Zs.HEAD:case Zs.FRAME:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.CAPTION:case Zs.COLGROUP:break;default:Ac(e,t)}}function yc(e,t){const r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==Zs.UNKNOWN||e.treeAdapter.getTagName(t)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,a))break}}function Ec(e,t){switch(t.tagID){case Zs.A:case Zs.B:case Zs.I:case Zs.S:case Zs.U:case Zs.EM:case Zs.TT:case Zs.BIG:case Zs.CODE:case Zs.FONT:case Zs.NOBR:case Zs.SMALL:case Zs.STRIKE:case Zs.STRONG:ic(e,t);break;case Zs.P:!function(e){e.openElements.hasInButtonScope(Zs.P)||e._insertFakeElement(Gs.P,Zs.P),e._closePElement()}(e);break;case Zs.DL:case Zs.UL:case Zs.OL:case Zs.DIR:case Zs.DIV:case Zs.NAV:case Zs.PRE:case Zs.MAIN:case Zs.MENU:case Zs.ASIDE:case Zs.BUTTON:case Zs.CENTER:case Zs.FIGURE:case Zs.FOOTER:case Zs.HEADER:case Zs.HGROUP:case Zs.DIALOG:case Zs.ADDRESS:case Zs.ARTICLE:case Zs.DETAILS:case Zs.SEARCH:case Zs.SECTION:case Zs.SUMMARY:case Zs.LISTING:case Zs.FIELDSET:case Zs.BLOCKQUOTE:case Zs.FIGCAPTION:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case Zs.LI:!function(e){e.openElements.hasInListItemScope(Zs.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Zs.LI),e.openElements.popUntilTagNamePopped(Zs.LI))}(e);break;case Zs.DD:case Zs.DT:!function(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case Zs.H1:case Zs.H2:case Zs.H3:case Zs.H4:case Zs.H5:case Zs.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Zs.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Gs.BR,Zs.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Zs.BODY:!function(e,t){if(e.openElements.hasInScope(Zs.BODY)&&(e.insertionMode=Hl.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case Zs.HTML:!function(e,t){e.openElements.hasInScope(Zs.BODY)&&(e.insertionMode=Hl.AFTER_BODY,Mc(e,t))}(e,t);break;case Zs.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(Zs.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Zs.FORM):r&&e.openElements.remove(r))}(e);break;case Zs.APPLET:case Zs.OBJECT:case Zs.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 Zs.TEMPLATE:dc(e,t);break;default:yc(e,t)}}function Tc(e,t){e.tmplInsertionModeStack.length>0?Xc(e,t):oc(e,t)}function Cc(e,t){if(void 0!==e.openElements.currentTagId&&zl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Hl.IN_TABLE_TEXT,t.type){case Ts.CHARACTER:Fc(e,t);break;case Ts.WHITESPACE_CHARACTER:kc(e,t)}else Nc(e,t)}function Uc(e,t){switch(t.tagID){case Zs.TD:case Zs.TH:case Zs.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Gs.TBODY,Zs.TBODY),e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t)}(e,t);break;case Zs.STYLE:case Zs.SCRIPT:case Zs.TEMPLATE:uc(e,t);break;case Zs.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Gs.COLGROUP,Zs.COLGROUP),e.insertionMode=Hl.IN_COLUMN_GROUP,xc(e,t)}(e,t);break;case Zs.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Ls.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Zs.TABLE:!function(e,t){e.openElements.hasInTableScope(Zs.TABLE)&&(e.openElements.popUntilTagNamePopped(Zs.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_TABLE_BODY}(e,t);break;case Zs.INPUT:!function(e,t){bc(t)?e._appendElement(t,Ls.HTML):Nc(e,t),t.ackSelfClosing=!0}(e,t);break;case Zs.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_CAPTION}(e,t);break;case Zs.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_COLUMN_GROUP}(e,t);break;default:Nc(e,t)}}function Rc(e,t){switch(t.tagID){case Zs.TABLE:e.openElements.hasInTableScope(Zs.TABLE)&&(e.openElements.popUntilTagNamePopped(Zs.TABLE),e._resetInsertionMode());break;case Zs.TEMPLATE:dc(e,t);break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TBODY:case Zs.TD:case Zs.TFOOT:case Zs.TH:case Zs.THEAD:case Zs.TR:break;default:Nc(e,t)}}function Nc(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vc(e,t),e.fosterParentingEnabled=r}function kc(e,t){e.pendingCharacterTokens.push(t)}function Fc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function wc(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Nc(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Wc=new Set([Zs.CAPTION,Zs.COL,Zs.COLGROUP,Zs.TBODY,Zs.TD,Zs.TFOOT,Zs.TH,Zs.THEAD,Zs.TR]);function xc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.COL:e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.TEMPLATE:uc(e,t);break;default:Oc(e,t)}}function Oc(e,t){e.openElements.currentTagId===Zs.COLGROUP&&(e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,e._processToken(t))}function Kc(e,t){switch(t.tagID){case Zs.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_ROW;break;case Zs.TH:case Zs.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Gs.TR,Zs.TR),e.insertionMode=Hl.IN_ROW,Dc(e,t);break;case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,Uc(e,t));break;default:Uc(e,t)}}function Ic(e,t){const r=t.tagID;switch(t.tagID){case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE);break;case Zs.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE,Rc(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TD:case Zs.TH:case Zs.TR:break;default:Rc(e,t)}}function Dc(e,t){switch(t.tagID){case Zs.TH:case Zs.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ls.HTML),e.insertionMode=Hl.IN_CELL,e.activeFormattingElements.insertMarker();break;case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:case Zs.TR:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Kc(e,t));break;default:Uc(e,t)}}function Lc(e,t){switch(t.tagID){case Zs.TR:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY);break;case Zs.TABLE:e.openElements.hasInTableScope(Zs.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Ic(e,t));break;case Zs.TBODY:case Zs.TFOOT:case Zs.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Zs.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Hl.IN_TABLE_BODY,Ic(e,t));break;case Zs.BODY:case Zs.CAPTION:case Zs.COL:case Zs.COLGROUP:case Zs.HTML:case Zs.TD:case Zs.TH:break;default:Rc(e,t)}}function Pc(e,t){switch(t.tagID){case Zs.HTML:Sc(e,t);break;case Zs.OPTION:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e._insertElement(t,Ls.HTML);break;case Zs.OPTGROUP:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ls.HTML);break;case Zs.HR:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ls.HTML),t.ackSelfClosing=!0;break;case Zs.INPUT:case Zs.KEYGEN:case Zs.TEXTAREA:case Zs.SELECT:e.openElements.hasInSelectScope(Zs.SELECT)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode(),t.tagID!==Zs.SELECT&&e._processStartTag(t));break;case Zs.SCRIPT:case Zs.TEMPLATE:uc(e,t)}}function Bc(e,t){switch(t.tagID){case Zs.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Zs.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Zs.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Zs.OPTGROUP&&e.openElements.pop();break;case Zs.OPTION:e.openElements.currentTagId===Zs.OPTION&&e.openElements.pop();break;case Zs.SELECT:e.openElements.hasInSelectScope(Zs.SELECT)&&(e.openElements.popUntilTagNamePopped(Zs.SELECT),e._resetInsertionMode());break;case Zs.TEMPLATE:dc(e,t)}}function Xc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Zs.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oc(e,t)}function Mc(e,t){var r;if(t.tagID===Zs.HTML){if(e.fragmentContext||(e.insertionMode=Hl.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Zs.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(null===(r=e.treeAdapter.getNodeSourceCodeLocation(n))||void 0===r?void 0:r.endTag)&&e._setEndLocation(n,t)}}else jc(e,t)}function jc(e,t){e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Gc(e,t){e.insertionMode=Hl.IN_BODY,Vc(e,t)}function Hc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ls.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Gs.AREA,Gs.BASE,Gs.BASEFONT,Gs.BGSOUND,Gs.BR,Gs.COL,Gs.EMBED,Gs.FRAME,Gs.HR,Gs.IMG,Gs.INPUT,Gs.KEYGEN,Gs.LINK,Gs.META,Gs.PARAM,Gs.SOURCE,Gs.TRACK,Gs.WBR;const Zc=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Yc=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),zc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Qc(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),n=as("type",{handlers:{root:_c,element:$c,text:eu,comment:ru,doctype:tu,raw:nu},unknown:iu}),i={parser:r?new Jl(zc):Jl.getFragmentParser(void 0,zc),handle(e){n(e,i)},stitches:!1,options:t||{}};n(e,i),au(i,tn());const a=function(e,t){const r=t||{};return $o({file:r.file||void 0,location:!1,schema:"svg"===r.space?Cr:Tr,verbose:r.verbose||!1},e)}(r?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&ja(a,"comment",function(e,t,r){const n=e;if(n.value.stitch&&r&&void 0!==t)return r.children[t]=n.value.stitch,t}),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function Jc(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function _c(e,t){Jc(e.children,t)}function $c(e,t){!function(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===sl.PLAINTEXT)return;au(t,tn(e));const n=t.parser.openElements.current;let i="namespaceURI"in n?n.namespaceURI:Qo.html;i===Qo.html&&"svg"===r&&(i=Qo.svg);const a=function(e,t){return ls(e,"svg"===(t||os).space?Cr:Tr)}({...e,children:[]},{space:i===Qo.svg?"svg":"html"}),o={type:Ts.START_TAG,tagName:r,tagID:tl(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:su(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}(e,t),Jc(e.children,t),function(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&ps.includes(r))return;if(t.parser.tokenizer.state===sl.PLAINTEXT)return;au(t,en(e));const n={type:Ts.END_TAG,tagName:r,tagID:tl(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:su(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==sl.RCDATA&&t.parser.tokenizer.state!==sl.RAWTEXT&&t.parser.tokenizer.state!==sl.SCRIPT_DATA||(t.parser.tokenizer.state=sl.DATA)}(e,t)}function eu(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Ts.CHARACTER,chars:e.value,location:su(e)};au(t,tn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function tu(e,t){const r={type:Ts.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:su(e)};au(t,tn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function ru(e,t){const r=e.value,n={type:Ts.COMMENT,data:r,location:su(e)};au(t,tn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nu(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,ou(t,tn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Zc,"<$1$2"):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 iu(e,t){const r=e;if(!t.options.passThrough||!t.options.passThrough.includes(r.type)){let e="";throw Yc.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)}!function(e,t){t.stitches=!0;const r=function(e){return Oa("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const n=Qc({type:"root",children:e.children},t.options);r.children=n.children}ru({type:"comment",value:{stitch:r}},t)}(r,t)}function au(e,t){ou(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=sl.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 ou(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 su(e){const t=tn(e)||{line:void 0,column:void 0,offset:void 0},r=en(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 lu(e){return function(t,r){return Qc(t,{...e,file:r})}}function cu(e,t){const r=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}function uu(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function du(e){return"function"==typeof e?e:function(){return e}}const pu="phrasing",qu=["autolink","link","image","label"];function hu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vu(e){this.config.enter.autolinkProtocol.call(this,e)}function fu(e){this.config.exit.autolinkProtocol.call(this,e)}function mu(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gu(e){this.config.exit.autolinkEmail.call(this,e)}function bu(e){this.exit(e)}function vu(e){!function(e,t,r){const n=Da((r||{}).ignore||[]),i=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 n=-1;for(;++n<r.length;){const e=r[n];t.push([uu(e[0]),du(e[1])])}return t}(t);let a=-1;for(;++a<i.length;)Ma(e,"text",o);function o(e,t){let r,o=-1;for(;++o<t.length;){const e=t[o],i=r?r.children:void 0;if(n(e,i?i.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){const r=t[t.length-1],n=i[a][0],o=i[a][1];let s=0;const l=r.children.indexOf(e);let c=!1,u=[];n.lastIndex=0;let d=n.exec(e.value);for(;d;){const r=d.index,i={index:d.index,input:d.input,stack:[...t,e]};let a=o(...d,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?n.lastIndex=r+1:(s!==r&&u.push({type:"text",value:e.value.slice(s,r)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=r+d[0].length,c=!0),!n.global)break;d=n.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),r.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Au],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Su]],{ignore:["link","linkReference"]})}function Au(e,t,r,n,i){let a="";if(!yu(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(r))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=cu(e,"(");let a=cu(e,")");for(;-1!==n&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Su(e,t,r,n){return!(!yu(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function yu(e,t){const r=e.input.charCodeAt(e.index-1);return(0===e.index||Qn(r)||zn(r))&&(!t||47!==r)}function Eu(){this.buffer()}function Tu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cu(){this.buffer()}function Uu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ru(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Nu(e){this.exit(e)}function ku(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Fu(e){this.exit(e)}function wu(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Wu(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,r,n,i){const a=n.createTracker(i);let o=a.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return o+=a.move(n.safe(n.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),t?Ou:xu))),s(),o},footnoteReference:wu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function xu(e,t,r){return 0===t?e:Ou(e,0,r)}function Ou(e,t,r){return(r?"":" ")+e}wu.peek=function(){return"["};const Ku=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Iu(e){this.enter({type:"delete",children:[]},e)}function Du(e){this.exit(e)}function Lu(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let o=i.move("~~");return o+=r.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Pu(e){return e.length}function Bu(e){return null==e?"":String(e)}function Xu(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 Mu(e,t,r){return">"+(r?"":" ")+e}function ju(e,t){return Gu(e,t.inConstruct,!0)&&!Gu(e,t.notInConstruct,!1)}function Gu(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Hu(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&ju(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function Zu(e,t,r){return(r?"":" ")+e}function Yu(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qu(e,t,r){const n=ni(e),i=ni(t);return void 0===n?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===n?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Ju(e,t,r,n){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),a=r.enter("emphasis"),o=r.createTracker(n),s=o.move(i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Qu(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=zu(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Qu(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+zu(d));const q=o.move(i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+q}function _u(e){return e.value||""}function $u(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function ed(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const c=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function td(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const e=r.unsafe[a],t=r.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(n);){let e=i.index;10===n.charCodeAt(e)&&13===n.charCodeAt(e-1)&&e--,n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function rd(e,t){const r=Cn(e);return Boolean(!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))}function nd(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.createTracker(n);let s,l;if(rd(e,r)){const t=r.stack;r.stack=[],s=r.enter("autolink");let n=o.move("<");return n+=o.move(r.containerPhrasing(e,{before:n,after:">",...o.current()})),n+=o.move(">"),s(),r.stack=t,n}s=r.enter("link"),l=r.enter("label");let c=o.move("[");return c+=o.move(r.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(r.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=r.enter("destinationRaw"),c+=o.move(r.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(r.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function id(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=u,a(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ad(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 od(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}Lu.peek=function(){return"~"},Ju.peek=function(e,t,r){return r.options.emphasis||"*"},_u.peek=function(){return"<"},$u.peek=function(){return"!"},ed.peek=function(){return"!"},td.peek=function(){return"`"},nd.peek=function(e,t,r){return rd(e,r)?"<":"["},id.peek=function(){return"["};const sd=Da(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ld(e,t,r,n){const i=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),a=r.enter("strong"),o=r.createTracker(n),s=o.move(i+i);let l=o.move(r.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),u=Qu(n.before.charCodeAt(n.before.length-1),c,i);u.inside&&(l=zu(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Qu(n.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+zu(d));const q=o.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+q}ld.peek=function(e,t,r){return r.options.strong||"*"};const cd={blockquote:function(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const o=r.indentLines(r.containerFlow(e,a.current()),Mu);return i(),o},break:Hu,code:function(e,t,r,n){const i=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),a=e.value||"",o="`"===i?"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(a,Zu);return e(),t}const s=r.createTracker(n),l=i.repeat(Math.max(function(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++a>o&&(o=a):a=1,i=n+t.length,n=r.indexOf(t,i);return o}(a,i)+1,3)),c=r.enter("codeFenced");let u=s.move(l);if(e.lang){const t=r.enter(`codeFencedLang${o}`);u+=s.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=r.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(r.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),a&&(u+=s.move(a+"\n")),u+=s.move(l),c(),u},definition:function(e,t,r,n){const i=Yu(r),a='"'===i?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=r.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c},emphasis:Ju,hardBreak:Hu,heading:function(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(function(e,t){let r=!1;return ja(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,Xa}),Boolean((!e.depth||e.depth<3)&&Cn(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),o=r.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return n(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(i),s=r.enter("headingAtx"),l=r.enter("phrasing");a.move(o+" ");let c=r.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=zu(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,r.options.closeAtx&&(c+=" "+o),l(),s(),c},html:_u,image:$u,imageReference:ed,inlineCode:td,link:nd,linkReference:id,list:function(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let o=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):ad(r);const s=e.ordered?"."===o?")":".":function(e){const t=ad(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 l=!(!t||!r.bulletLastUsed)&&o===r.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!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]||(l=!0),od(r)===o&&t){let t=-1;for(;++t<e.children.length;){const r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const c=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=a,i(),c},listItem:function(e,t,r,n){const i=function(e){const t=e.options.listItemIndent||"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}(r);let a=r.bulletCurrent||ad(r);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=r.createTracker(n);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,s.current()),function(e,t,r){return t?(r?"":" ".repeat(o))+e:(r?a:a+" ".repeat(o-a.length))+e});return l(),c},paragraph:function(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),o=r.containerPhrasing(e,n);return a(),i(),o},root:function(e,t,r,n){return(e.children.some(function(e){return sd(e)})?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:ld,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){const n=(od(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?n.slice(0,-1):n}};function ud(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 dd(e){this.exit(e),this.data.inTable=void 0}function pd(e){this.enter({type:"tableRow",children:[]},e)}function qd(e){this.exit(e)}function hd(e){this.enter({type:"tableCell",children:[]},e)}function Vd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,fd));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function fd(e,t){return"|"===t?t:e}function md(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=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 n=cd.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return s(function(e,t,r){const n=e.children;let i=-1;const a=[],o=t.enter("table");for(;++i<n.length;)a[i]=l(n[i],t,r);return o(),a}(e,r,n),e.align)},tableCell:o,tableRow:function(e,t,r,n){const i=s([l(e,r,n)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,r,n){const i=r.enter("tableCell"),o=r.enter("phrasing"),s=r.containerPhrasing(e,{...n,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Pu,a=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],n=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const o=Bu(e[u][a]);if(!1!==r.alignDelimiters){const e=i(o);n[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=n}let d=-1;if("object"==typeof n&&"length"in n)for(;++d<c;)a[d]=Xu(n[d]);else{const e=Xu(n);for(;++d<c;)a[d]=e}d=-1;const p=[],q=[];for(;++d<c;){const e=a[d];let t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,l[d]-t.length-n.length);const o=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=t.length+i+n.length,i>l[d]&&(l[d]=i),q[d]=i),p[d]=o}o.splice(1,0,p),s.splice(1,0,q),u=-1;const h=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const n=[];for(;++d<c;){const i=e[d]||"";let o="",s="";if(!1!==r.alignDelimiters){const e=l[d]-(t[d]||0),r=a[d];114===r?o=" ".repeat(e):99===r?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===r.delimiterStart||d||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!d||n.push(" "),!1!==r.alignDelimiters&&n.push(o),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&d===c-1||n.push("|")}h.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function l(e,t,r){const n=e.children;let i=-1;const a=[],s=t.enter("tableRow");for(;++i<n.length;)a[i]=o(n[i],0,t,r);return s(),a}}function gd(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function bd(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const r=e.children[0];if(r&&"text"===r.type){const n=t.children;let i,a=-1;for(;++a<n.length;){const e=n[a];if("paragraph"===e.type){i=e;break}}i===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function vd(e,t,r,n){const i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(o);let l=cd.listItem(e,t,r,{...n,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const Ad={tokenize:function(e,t,r){let n=0;return function t(a){return(87===a||119===a)&&n<3?(n++,e.consume(a),t):46===a&&3===n?(e.consume(a),i):r(a)};function i(e){return null===e?r(e):t(e)}},partial:!0},Sd={tokenize:function(e,t,r){let n,i,a;return o;function o(t){return 46===t||95===t?e.check(Ed,l,s)(t):null===t||Zn(t)||Qn(t)||45!==t&&zn(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),o}function l(e){return i||n||!a?r(e):t(e)}},partial:!0},yd={tokenize:function(e,t){let r=0,n=0;return i;function i(o){return 40===o?(r++,e.consume(o),i):41===o&&n<r?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(Ed,t,a)(o):null===o||Zn(o)||Qn(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&n++,e.consume(t),i}},partial:!0},Ed={tokenize:function(e,t,r){return n;function n(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),n):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||Zn(o)||Qn(o)?t(o):r(o)}function i(e){return null===e||40===e||91===e||Zn(e)||Qn(e)?t(e):n(e)}function a(e){return Ln(e)?o(e):r(e)}function o(t){return 59===t?(e.consume(t),n):Ln(t)?(e.consume(t),o):r(t)}},partial:!0},Td={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return Pn(e)?r(e):t(e)}},partial:!0},Cd={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){return 87!==t&&119!==t||!Fd.call(n,n.previous)||Od(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ad,e.attempt(Sd,e.attempt(yd,i),r),r)(t))};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Fd},Ud={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let i="",a=!1;return function(t){return 72!==t&&104!==t||!wd.call(n,n.previous)||Od(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o)};function o(t){if(Ln(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),a?l:(a=!0,s)):r(t)}function l(t){return null===t||Xn(t)||Zn(t)||Qn(t)||zn(t)?r(t):e.attempt(Sd,e.attempt(yd,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:wd},Rd={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let i,a;return function(t){return xd(t)&&Wd.call(n,n.previous)&&!Od(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)):r(t)};function o(t){return xd(t)?(e.consume(t),o):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Td,c,l)(t):45===t||95===t||Pn(t)?(a=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(o){return a&&i&&Ln(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):r(o)}},previous:Wd},Nd={};let kd=48;for(;kd<123;)Nd[kd]=Rd,kd++,58===kd?kd=65:91===kd&&(kd=97);function Fd(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Zn(e)}function wd(e){return!Ln(e)}function Wd(e){return!(47===e||xd(e))}function xd(e){return 43===e||45===e||46===e||95===e||Pn(e)}function Od(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}Nd[43]=Rd,Nd[45]=Rd,Nd[46]=Rd,Nd[95]=Rd,Nd[72]=[Rd,Ud],Nd[104]=[Rd,Ud],Nd[87]=[Rd,Cd],Nd[119]=[Rd,Cd];const Kd={tokenize:function(e,t,r){const n=this;return $n(e,function(e){const i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Id(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;i--;){const e=n.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return r(i);const s=Dn(n.sliceSerialize({start:o.end,end:n.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):r(i)}}function Dd(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Ld(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!a||null===s||91===s||Zn(s))return r(s);if(93===s){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return i.includes(Dn(n.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return Zn(s)||(a=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function Pd(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(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(s>999||93===t&&!o||null===t||91===t||Zn(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Zn(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(a)||i.push(a),$n(e,p,"gfmFootnoteDefinitionWhitespace")):r(t)}function p(e){return t(e)}}function Bd(e,t,r){return e.check(li,t,e.attempt(Kd,t,r))}function Xd(e){e.exit("gfmFootnoteDefinition")}function Md(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:function(e,r,n){const i=this.previous,a=this.events;let o=0;return function(t){return 126===i&&"characterEscape"!==a[a.length-1][1].type?n(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(a){const l=ni(i);if(126===a)return o>1?n(a):(e.consume(a),o++,s);if(o<2&&!t)return n(a);const c=e.exit("strikethroughSequenceTemporary"),u=ni(a);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(a)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},a={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},o=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&Fn(o,o.length,0,ii(s,e.slice(n+1,r),t)),Fn(o,o.length,0,[["exit",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),Fn(e,n-1,r-n+3,o),r=n+o.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}class jd{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let i=0;if(0!==r||0!==n.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=r,void e.map[i][2].push(...n);i+=1}e.map.push([t,r,n])}}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)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.slice()),e.length=0;let n=r.pop();for(;n;){for(const t of n)e.push(t);n=r.pop()}this.map.length=0}}function Gd(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}function Hd(e,t,r){const n=this;let i,a=0,o=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?n.events[t][1].type:null,a="tableHead"===i||"tableRow"===i?v:s;return a===v&&n.parser.lazy[n.now().line]?r(e):a(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,o+=1),l(e)}(t)}function l(t){return null===t?r(t):Hn(t)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):Yn(t)?$n(e,l,"whitespace")(t):(o+=1,i&&(i=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Zn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),i=!1,Yn(t)?$n(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),q):b(t)}function q(t){return Yn(t)?$n(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),V):45===t?(o+=1,V(t)):null===t||Hn(t)?g(t):b(t)}function V(t){return 45===t?(e.enter("tableDelimiterFiller"),f(t)):b(t)}function f(t){return 45===t?(e.consume(t),f):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(t))}function m(t){return Yn(t)?$n(e,g,"whitespace")(t):g(t)}function g(r){return 124===r?p(r):(null===r||Hn(r))&&i&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):b(r)}function b(e){return r(e)}function v(t){return e.enter("tableRow"),A(t)}function A(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),A):null===r||Hn(r)?(e.exit("tableRow"),t(r)):Yn(r)?$n(e,A,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||Zn(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?y:S)}function y(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function Zd(e,t){let r,n,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new jd;for(;++a<e.length;){const q=e[a],h=q[1];"enter"===q[0]?"tableHead"===h.type?(u=!1,0!==d&&(zd(p,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",r,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(a,0,[["enter",n,t]])),s="tableDelimiterRow"===h.type?2:n?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=Yd(p,t,l,s,void 0,i)),l=c,c=[l[1],a,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Yd(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableHead"===h.type?(u=!0,d=a):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=a,0!==l[1]?(c[0]=c[1],i=Yd(p,t,l,s,a,i)):0!==c[1]&&(i=Yd(p,t,c,s,a,i)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=a)}for(0!==d&&zd(p,t,d,r,n),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Gd(t.events,a))}return e}function Yd(e,t,r,n,i,a){const o=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(a.end=Object.assign({},Qd(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const s=Qd(t.events,r[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",a,t]]),0!==r[2]){const i=Qd(t.events,r[2]),a=Qd(t.events,r[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(r[2],0,[["enter",o,t]]),2!==n){const n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},Qd(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function zd(e,t,r,n,i){const a=[],o=Qd(t.events,r);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),n.end=Object.assign({},o),a.push(["exit",n,t]),e.add(r+1,0,a)}function Qd(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const Jd={name:"tasklistCheck",tokenize:function(e,t,r){const n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):r(t)};function i(t){return Zn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):r(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(t)}function o(n){return Hn(n)?t(n):Yn(n)?e.check({tokenize:_d},t,r)(n):r(n)}}};function _d(e,t,r){return $n(e,function(e){return null===e?r(e):t(e)},"whitespace")}const $d={};function ep(e){const t=e||$d,r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){return xn([{text:Nd},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Pd,continuation:{tokenize:Bd},exit:Xd}},text:{91:{name:"gfmFootnoteCall",tokenize:Ld},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Id,resolveTo:Dd}}},Md(e),{flow:{null:{name:"table",tokenize:Hd,resolveAll:Zd}}},{text:{91:Jd}}])}(t)),i.push([{transforms:[vu],enter:{literalAutolink:hu,literalAutolinkEmail:Vu,literalAutolinkHttp:Vu,literalAutolinkWww:Vu},exit:{literalAutolink:bu,literalAutolinkEmail:gu,literalAutolinkHttp:fu,literalAutolinkWww:mu}},{enter:{gfmFootnoteCallString:Eu,gfmFootnoteCall:Tu,gfmFootnoteDefinitionLabelString:Cu,gfmFootnoteDefinition:Uu},exit:{gfmFootnoteCallString:Ru,gfmFootnoteCall:Nu,gfmFootnoteDefinitionLabelString:ku,gfmFootnoteDefinition:Fu}},{canContainEols:["delete"],enter:{strikethrough:Iu},exit:{strikethrough:Du}},{enter:{table:ud,tableData:hd,tableHeader:hd,tableRow:pd},exit:{codeText:Vd,table:dd,tableData:qd,tableHeader:qd,tableRow:qd}},{exit:{taskListCheckValueChecked:gd,taskListCheckValueUnchecked:gd,paragraph:bd}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:qu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:qu},{character:":",before:"[ps]",after:"\\/",inConstruct:pu,notInConstruct:qu}]},Wu(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ku}],handlers:{delete:Lu}},md(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vd}}]}}(t))}const tp=({children:e})=>v.jsx("div",{className:"myReactMarkdown",children:v.jsx(Po,{rehypePlugins:[lu,ep],children:e})}),rp=e=>{var n;const{knowledgeId:i,content:a,contentEditable:o,editCallBack:s,resetContentCallback:l,aiCreateContentCallback:c,aiCreateContent:u,createAiContenting:d,swapContentCallback:p,insertContentCallback:q,textSelectionEnable:h=!1,textAiConsultCallback:V,textAiConsulting:f,textAiConsultAnswer:m,contentMaxLength:g=1e3}=e,[b,A]=t.useState(!1),[S,y]=t.useState(a),[E,T]=t.useState(!1),[C,U]=t.useState(!1),[R,N]=t.useState("plain"),[F,w]=t.useState(""),[W,O]=t.useState(""),[K,D]=t.useState(null),[L,P]=t.useState(!1),[M,j]=t.useState({x:0,y:0}),[Z,Y]=t.useState(!1),[z,Q]=t.useState(""),[J,_]=t.useState(!1),te=t.useRef(null),re=t.useRef(null);t.useEffect(()=>{y(a)},[a]);const ne=t.useMemo(()=>a?a.replace(/#{1,6}\s+/g,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^\s*[-*+]\s+/gm,"").replace(/^\s*\d+\.\s+/gm,""):"",[a]);t.useEffect(()=>{if(!h||!te.current)return;const e=()=>{var e,t;const r=window.getSelection();if(r&&""!==r.toString().trim()){const n=r.getRangeAt(0),i=n.getBoundingClientRect(),a=null==(e=te.current)?void 0:e.getBoundingClientRect();if(a&&(null==(t=te.current)?void 0:t.contains(n.commonAncestorContainer))){const e=r.toString().trim();O(e),D({range:n,startContainer:n.startContainer,endContainer:n.endContainer,startOffset:n.startOffset,endOffset:n.endOffset});const t=i.left-a.left,o=i.top-a.top-50;let s=t;const l=220;s<0&&(s=0),s+l>a.width&&(s=a.width-l),j({x:s,y:o}),L||Z||J||P(!0)}}else Z||J||P(!1)},t=e=>{const t=document.querySelector(".selectionPopup");t&&t.contains(e.target)||te.current&&!te.current.contains(e.target)&&(P(!1),Y(!1),_(!1))};return document.addEventListener("mouseup",e),document.addEventListener("click",t),()=>{document.removeEventListener("mouseup",e),document.removeEventListener("click",t)}},[L,Z,J,h]),t.useEffect(()=>{W&&(P(!0),Y(!1),_(!1))},[W]),t.useEffect(()=>{L||Q("")},[L]);const ie=e=>{if(e.stopPropagation(),K&&te.current){try{const{startContainer:e,startOffset:t,endContainer:n,endOffset:o}=K,l=((e,t,r,n,i)=>{var o,s;try{const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null,u="",d=[];for(;c=l.nextNode();){const e=c.textContent||"";e.trim()&&(d.push({node:c,start:u.length,end:u.length+e.length}),u+=e)}let p=-1,q=-1;for(const e of d)e.node===t&&(p=e.start+Math.min(r,(null==(o=e.node.textContent)?void 0:o.length)||0)),e.node===n&&(q=e.start+Math.min(i,(null==(s=e.node.textContent)?void 0:s.length)||0));if(-1!==p&&-1!==q&&p<q){const e=u.substring(p,q),t=((e,t,r)=>{if(!t.trim())return-1;const n=[];let i=-1;const a=t.replace(/\s+/g," ").trim().toLowerCase(),o=e.toLowerCase();let s=0;for(;-1!==(i=o.indexOf(a,s));)n.push(i),s=i+1;if(0===n.length)return o.indexOf(a.substring(0,Math.min(20,a.length)));if(1===n.length)return n[0];const l=Math.floor(r*e.length);let c=n[0],u=Math.abs(n[0]-l);for(let d=1;d<n.length;d++){const e=Math.abs(n[d]-l);e<u&&(u=e,c=n[d])}return c})(a,e,p/u.length);if(-1!==t)return{startIndex:t,endIndex:t+e.length,selectedText:e}}}catch(l){}return null})(te.current,e,t,n,o);if(l){const{startIndex:e,endIndex:t,selectedText:n}=l,a=S.substring(e,t);if("</span>"===S.substring(t,t+7))return void r.message.warning("已高亮,无需重复操作");const o=`<span style="color: #1677ff;">${a}</span>`,c=S.substring(0,e)+o+S.substring(t);return null==s||s({id:i,content:c,showTip:!1}),void P(!1)}}catch(t){}const e=K.range.toString().trim();if(!e)return;const n=e.replace(/\s+/g," ").trim(),o=n.toLowerCase(),l=te.current;l.scrollTop,l.clientHeight;let c=-1,u=0;for(;-1!==u;)if(u=ne.toLowerCase().indexOf(o,u),-1!==u){c=u;break}if(-1!==c){let e=-1,t=Math.min(50,S.length-c);for(let r=Math.max(0,c-10);r<S.length;r++){const n=S.substring(r,r+t).toLowerCase();if(n.includes(o)){e=r+n.indexOf(o);break}}if(-1!==e){const t=`<span style="color: #1677ff;">${S.substring(e,e+n.length)}</span>`,r=S.substring(0,e)+t+S.substring(e+n.length);return null==s||s({id:i,content:r,showTip:!1}),void P(!1)}}r.message.warning("特殊语法无法高亮")}},ae=()=>{Q(""),null==V||V(W,z),_(!0),Y(!1)},oe=[{label:"通俗版",key:"plain",onClick:()=>{T(!0),null==c||c("通俗版"),N("plain"),U(!1)}},{label:"学术版",key:"academic",onClick:()=>{T(!0),null==c||c("学术版"),N("academic"),U(!1)}},{label:"类比版",key:"analogy",onClick:()=>{T(!0),null==c||c("类比版"),N("analogy"),U(!1)}},{label:"面试版",key:"interview",onClick:()=>{T(!0),U(!1),null==c||c("面试版"),N("interview")}},{label:"自定义",key:"custom",onClick:()=>{N("custom"),T(!1),w(""),U(!0)}}],se=()=>{const e=document.getElementById("knowledgeCard");e&&(e.scrollTop=110)};return v.jsxs("div",{className:"textExplanation",children:[b?v.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:v.jsxs("div",{className:"space-y-4 h-full",children:[v.jsx("textarea",{value:S,onChange:e=>y(e.target.value),className:"h-[calc(100%-100px)] mt-10 bg-white w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent resize-none font-mono text-sm",placeholder:"在此编辑内容,支持Markdown格式...",maxLength:g}),v.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500",children:[v.jsx("span",{children:"支持Markdown格式化"}),v.jsxs("span",{children:[(null==S?void 0:S.length)||0,"/",g]})]})]})}):v.jsxs("div",{className:"md",children:[C&&v.jsx("div",{className:"customInputArea",children:v.jsx(r.Input.Search,{type:"text",size:"middle",placeholder:"请输入自定义优化要求,例如:用鲁迅的风格解释、针对后端开发者解释...",value:F,onChange:e=>w(e.target.value),enterButton:"优化",onSearch:()=>{T(!0),null==c||c(`${F}`),U(!1)}})}),v.jsxs("div",{ref:te,className:"mdContent",children:[v.jsx(tp,{children:a}),L&&v.jsxs("div",{ref:re,className:"selectionPopup",style:{left:`${M.x}px`,top:`${M.y}px`},children:[!Z&&!J&&v.jsxs("div",{className:"popupButtons",children:[v.jsxs("button",{onClick:e=>ie(e),className:"popupButton",children:[v.jsx(I,{className:"w-4 h-4"})," 高亮"]}),v.jsxs("button",{onClick:e=>(e=>{e.stopPropagation(),Y(!0)})(e),className:"popupButton",children:[v.jsx(B,{className:"w-4 h-4"})," 向AI提问"]})]}),(Z||J)&&v.jsx("div",{className:"popupClose",children:v.jsx("div",{onClick:()=>P(!1),className:"closeBtn",children:v.jsx(ee,{className:"w-4 h-4"})})}),Z&&v.jsxs("div",{className:"aiQuestionInput",children:[v.jsx(r.Input,{placeholder:"输入你的问题...",value:z,onChange:e=>Q(e.target.value),onPressEnter:ae}),v.jsx(r.Button,{type:"primary",onClick:e=>{e.stopPropagation(),ae()},disabled:f,children:"发送"})]}),J&&v.jsxs("div",{className:"aiAnswer",children:[v.jsx("div",{className:"aiAnswerContent",children:v.jsx(tp,{children:m})}),v.jsxs("div",{className:"aiAnswerActions",children:[v.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(m),r.message.success("复制成功")},className:"aiAnswerActionButton "+(f?"disabledBtn":""),disabled:f,children:[v.jsx(x,{className:"w-4 h-4"})," 复制"]}),v.jsxs(r.Button,{onClick:e=>{e.stopPropagation(),null==q||q(m),P(!1)},className:"aiAnswerActionButton "+(f?"disabledBtn":""),disabled:f,children:[v.jsx(Vt,{className:"w-4 h-4"})," 放到最下方"]})]})]})]})]}),E&&v.jsxs("div",{className:"createArea",children:[v.jsxs("div",{className:"top",children:[v.jsxs("div",{className:"titleArea",children:[v.jsx(k,{}),v.jsx("div",{className:"title",children:"AI优化建议"}),v.jsxs("div",{className:"type",children:["[",null==(n=oe.find(e=>e.key===R))?void 0:n.label,"]"]})]}),v.jsx("div",{className:"close",onClick:()=>T(!1),children:v.jsx(ee,{})})]}),v.jsx("div",{className:"content",children:v.jsx(tp,{children:u})}),v.jsxs("div",{className:"bottom",children:[v.jsx(r.Button,{onClick:()=>{se(),T(!1),null==p||p(u)},type:"primary",icon:v.jsx(Ut,{}),disabled:!0===d,children:"替换原文"}),v.jsx(r.Button,{onClick:()=>{se(),T(!1),null==q||q(u)},type:"primary",icon:v.jsx(Vt,{}),disabled:!0===d,children:"插入下方"})]})]})]}),o&&v.jsxs("div",{className:"editArea tailwind-scoped",children:[s&&!b&&v.jsx("button",{onClick:()=>A(!0),className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx(X,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!b&&v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(a),r.message.success("复制成功")},className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx(x,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})}),!b&&v.jsx(r.Dropdown,{menu:{items:oe},children:v.jsx("button",{className:"p-2 hover:bg-gray-50 rounded-lg transition-colors group",children:v.jsx($,{className:"w-5 h-5 text-gray-600 group-hover:text-blue-600"})})}),b&&l&&v.jsx(r.Tooltip,{title:"恢复原文",children:v.jsx("button",{onClick:()=>{r.Modal.confirm({title:"确认恢复原文吗?",okText:"确认",okType:"danger",onOk:()=>{null==l||l(),A(!1)}})},className:"p-2 hover:bg-blue-50 rounded-lg transition-colors group",children:v.jsx(G,{className:"w-5 h-5 text-blue-600"})})}),b&&v.jsx("button",{onClick:()=>{null==s||s({content:S,id:i}),A(!1)},className:"p-2 hover:bg-green-50 rounded-lg transition-colors group",title:"保存",children:v.jsx(H,{className:"w-5 h-5 text-green-600"})}),b&&v.jsx("div",{className:"tailwind-scoped",children:v.jsx("button",{onClick:()=>A(!1),className:"p-2 hover:bg-red-50 rounded-lg transition-colors group",title:"取消",children:v.jsx(ee,{className:"w-5 h-5 text-red-600"})})})]})]})},np=({htmlContent:e})=>{const r=t.useRef(null);return v.jsx("iframe",{ref:r,srcDoc:e,style:{width:"100%",border:"none",minHeight:"calc(100vh - 300px)",display:"block"},sandbox:"allow-scripts",title:"isolated-content"})},ip="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAQAElEQVR4Aex9CZwcR3X+q+65Z+9De6/20Gol2ZJsScZYtoll4wNzhACGEEPA3BgI8DMBQsIfQ+CPTYjDaa4ATgIEX+EI2JKswxhLNli3LGlX0uq+9r5m556ufDXSrmZnZ3ZndnrOrlbXdnfd76t6X72q6mkpJA+JgETAsAhIAjBs00vBJQJEkgBkL5AIGBgBSQAGbnwpurERENJLAhAoSCcRMCgCkgAM2vBSbImAQEASgEBBOomAQRGQBGDQhpdiGxuBSeklAUwiIa8SAQMiIAnAgI0uRZYITCIgCWASCXmVCBgQAUkABmx0KbKxEYiUXhJAJBryXiJgMAQkARiswaW4EoFIBCQBRKIh7yUCBkNAEoDBGlyKa2wEoqWXBBCNiHyWCBgIAUkABmpsKapEIBoBSQDRiMhniYCBEJAEYKDGlqIaG4FY0ksCiIWK9JMIGAQBSQAGaWgppkQgFgKSAGKhIv0kAgZBQBKAQRpaimlsBOJJLwkgHjLSXyJgAAQkARigkaWIEoF4CEgCiIeM9JcIGAABSQAGaGQporERmE16SQCzoSPDJAIFjoAkgAJvYCmeRGA2BCQBzIaODJMIFDgCkgAKvIGleMZGYC7pJQHMhZAMlwgUMAKSAAq4caVoEoG5EJAEMBdCMlwiUMAISAIo4MaVohkbgUSklwSQCEoyjkSgQBGQBFCgDSvFkggkgoAkgERQknEkAgWKgCSAAm1YKZaxEUhUekkAiSIl40kEChABSQAF2KhSJIlAoghIAkgUKRlPIpABBJ7e8nxnBoqZKkISwBQU8kYikHkE1m9+btXGLds/v2HL9ufhuELKE08991x1KjVJJq0kgGTQknElAikgwDm3dB3uuecP23Z8Zv2m7V+C4m9lzPQiJ76Scf4D1Wxuv/3mtcvvfNWr+lMoJqmkkgCSgktGlggkjsCBA9xysOv4Z55/cc8hMbpv3PqC7/S5vp94ff4HmEKfh+KXQemX3H7z9W+57Zbr/+vVN15zLPHc9YkpCUAfHGUuEoEpBMbHxxfsO3Dk0cHR3aN9A4MPFBc7l1RXVYTDqyoq6Ioli+ja1SuGiNhV2VB6ijgkAUSAIW8lAqkicOzUua8cOnLyGEb5t3a0Ndtqa6ppaHiUGP5dubSDWhc2UJHTQR63+9coayecrmeymUkCSBYxGV8iEAOBoSFP8/6DR4/2HDv9uYryMufi9oV0vm+A3G43iXuh+E6HfTLlnpe7e4oURfnupEe2rpIAsoW8LLdgEBgaG7vh+OkTJ/3BYPuaq5ZRVUUZvXzoKNmsFmpraaIIxQ/L3HPizDMhTVNvvemVPw17ZPGPJIAsgi+Lzn8E+vv7686d7f8j1zi1L2wkxhi9tPsA1dVWU33tghkCnjp7/sGBwaGPKcz0wIzALHhIAsgC6LLIwkAA23rm3oGxZ7xeLy1qaw4LdaCrB/dNVFleGn6O/HPmXP+/nb/Q/yGN8wdvW3ftjsgwPe7nk4ckgPmgJtNIBIDAwe5j33a7PVcsaluIJ6KTp8+Rw26j8tISij76BoZ+evb8+XcQ8c+95pbr748Oz9azJIBsIS/LzXsExicmXl9WVhyW48zZC+TCgp9Y7At7RPyByf+vx0+euZ0Yvxd7/g9HBGX9VhJA1ptAViAfETh05Mx1Lpe7vqzk4mhfWVlOSxa1RonCj3YfPfEdLPq9ljh/++3rrn8iKkLWHyUBZL0JZAXyEQHX+Og/YLuPLBZzuPp2m5VUVe33+vwvXOjvf/pQ97Gf/3nXyzQyOt7GGb3+9luufy4cMU1/5putJID5IifTGRoBj9d3Yxnm+uMu9/bunhNbduw9uOFPO/eZ9u7vaj956px1fMI1gFH/fbfffN1r71i39miugiUJIFdbRtYrZxEYHh4uC4ZCZefOnX/kYPfRtaMj4ydDIf9PHeZQ++23rK3BPP+W29at/cRtN6/9Q84KcalikgAuASEvEoFEEYCpvyAQCAxNeP0nLMxXfNvN173n9nU3PHrjjTcOJ5pHrsSTBJArLSHrkTcIlJSUHGZE+25fd90X161b58p2xVMpXxJAKujJtIZFAOb9ukIQXhJAIbSilEEiME8EJAHMEziZTCJQCAhIAiiEVpQyGBaBVAWXBJAqgjJ9wSKwa9/hjTv3dX+kYAWEYJIAAII8CwOBHfu6l+zcf+Qdu/Z3//uufd2/h3tk5/7DX9u1v2tNshLuOnBkGSfeHmD+J5JNm0/xJQHkU2vJusZFAKP1VmzNHSKufYBrdDoU0v6Fk/aspoXcxJXf7d5/+LVxE8cI4CHtw0TsiVcuX95LBXxIAijgxjWKaBj5v8WJ38SJv3X1is5XrV7Z+cVrrl767OoVSx+5ZuXS+4nzT2sa//nzz3dd/OneHMC8tO9wG6J8VFF4To/+qGPKpySAlCGUGWQTgT17uhsw8n9MKP+aFUsej1WXVSs7/5MUNmZ18tWxwqP9FKa9hxj9z9VXdr4UHVZoz5IACq1FDSZPgGsdQuSQmW8R17iOa2fihkUE7N59EPmx91CIHovwLthbSQAF27TGEMykKIswWh+6dunSwXgSY4qwhBirF9OCeHEm/TWT6duc0+7VV3U+OulXyFdJAIXcugaQLURkwRy/djZRGaP/Txr70WxxRNiu/YcfZsSvUUNazm/9ifrq4SQB6IGizCNrCCghBfN+Vr5zf/fbYlUCuwOvYpzuNFHJN2KFT/rt3HPods75h0NB7c1XX730xKR/oV8lARR6Cxe4fKtWdfQzYo/DbH9nLFE14o9w0j6+cmXtRKxw4fenPx2qJEVZz4juS2SaINIUipMEUCgtmaAcjz23q/rxZ3bf9OtNB5YlmCTno3EKPQgz/9pde7u/HlnZHfu6/pmR9iC2A38Q6R95/9Le7r812ZUBKP9Tq1Z0PhQZZoR7SQBGaOUIGZlP+TwjZWuQBw8IIqAcPHYl+ebe6hVLdzJFeS8W+u7Yua/7uZ07u1bA9P85I9aLsJjKv2vfkesQ91GFse8RsQ9B+ZN6UYiyeOhZtCQAPdHMg7wYKctp8tDoJsrJgz0M5Qzs2t/9Hy/tO/zqRKq46oqO32omy60a17aQmT3NuVbLiUPJD//bzr1df797X/edO/Z034f73+7Y132Bk7ad8If7g4tWr1gckyQSKTff40gCyPcWLMD6r1re+QpVU67iGjuMDvrPIIMBuF/t3BdW5k/s2Nf9xpf2db9m576uu7Fy/zEsAH5h177DL7OQ/5iqqE1KSLs+pCn3YfEv/CIPZ3QVdgs+oagktgM3chZ6p4WpzatXdr59zZpl5wsQwoRFAr4Jx5UR8wSBY8d6a/KkqnGredVVHQdWr1z8FYzO1/lcg03Y6vsBY+xlIlaGkft1MN0/juvbsPi3ijgrC/HQE0owtHTV8sXvFav4r7h68Z7VK5d8A+k/uWbFkrvXrOi8bdXyzvevXtH5nWuWL3tm+fJFp0keJAmggDpBV8+5NV09vT/rG+z/1YYt2zas37Ttvt8/s/2yyZ+nsq5du9YDZV6/annHj1ev7Lx/zcrO961evviO1SuXvGH1isX3wH3ympVL77/aANt3ejehJAC9Ec1CfoeO9F7XdfTCo4zUlxjR3RQ+2G1MYV83qbRvw5btR0EID2/Yuv2NRFwNB8s/EgEgIAkAIOTr2X2s78bDPb1PKgpth3n81lnkaCdiHyZOv1KZdiNdOhSFL7h0Ky8GRUASQI41/JOb9n79yU37PjBbtTDa33y4p++3mBc/x4neNFvc2cLMLPThDZu39azfvP17Gzdv/6sNGzY4Z4ufaNhjmw4se+KZvb94bOPudyeaRsbLDgKSALKDe8xSn3hmz0NY1LqPc/6Dxzfsvj86Ekz927uP9j6N0X4zJ/766PB5PTPWxhh9CCvl/0PmYteGrds2bti8/VNPb3pxxXzy++WmPYsVLSh+SPN2hSk/lSQwHxRjp0mHrySAdKA63zw52SeTMkX5wiQJHO7pf213z4VNMPXXE6M7JuOk5crZrSjjXxRF24u1g56NW2EdPCusg71zWgePbdjbauLsl0h/5WTdVEW1TN7La+4hIAkgh9rEpJi/DeU5MFklQQJbXzxygpP2OyJ2C2X+aINF8iGuEayDCdf6LdufASn8/fotf1wZXZX/3rC/SVH4o/C/Gi58wrJ4/M2vXvHD8IP8k5MISALIoWZ546uvOGgi01tVVZnaox4cdy/sHRrPiVpih0G8lfc1RuoeEMExuO8/veWFN/1q8452rCf8kohdQ5eOi8q/craFyUsx5SWbCEgCyCb6UWUf6rnwN0tbKx9pr69ssllMU6F9IxOUKyQwVSmiVtx/ENuKTzKuHiXG1uI5fErlD8Og6590ZaakK2OZb+IIdB/r/dvDx/p2KcR+ThhFrWaVmmvKKddJQMPKoU+zUZArNHmYWZCKVPcarB18f/0z2978m988n9CHOCfTy2tmEbjccpktV5YGBLqOXXgv9vH3E6f/wMr/1NwZQZTrJIDtR/JxK5T/8ntFQvltig9GAW/F2sEHmcqesBUrY1g72LR+y7ZPb9y67Sohm3S5g4AkgCy0RVdP74e6e3q7GGf/DkWaWjGPrko6SMDKfKQyjcwsSFYlEF1kQs8csbzhkT+G8iMs+sTawS2M2IOcs90btmw/DveD9VtefPPzz0vrIBqrTD9LAsgg4t3H+j6KffweRvQ9FNsJN+epNwkI5XcoHrIpGKnnLD1GBFTeG4oz8seIHsOrBX4fYKQ9MeFXxjZu2b5p45YXYB38WVoHACbWmU4/SQDpRBd5w7Rn3T0XPglT/yRxLrb52uCd1BmPBEZc3qTy0SOyL2ShIF1eoBSWxLzJBBWCNXELJw7rILgbU4UTG7Zs++GGTdve8tRTL5YgWJ5pRkASQJoAPnDggKXraO+nsbh3log9hI7eTCkcsUggGAqlkOP8knJ2ucukqvzRNYBxsZCIvZ8U9rhq00YxVdi8fuu2zzzzh+3T1kdIHrohcLk1dcvS2Bnt3XvB2XX0wj+arFVnsR32INCog9PljCSBihIHVZXO+XIe6X1Ymf/SGkJg/tOIxCt1M9ZJHtBCtGvjlu2wDl744YatL77lqReldZA4hLPHlAQwOz4Jh/b0DJV29/R+wVbEoPjsy8SoKuHESUQUJNDRWEUNVdmxkDF3p4trCP4kap16VE4E64C/n7j2uOqGdbB525YNm7d/dv3mF1alnnvu5pDumkkCSBHh7u5zVV1H+74cZAGY+nQ/EZXCyTPdCDC2DiT7Vcb4zg1btp9cv3nbjzZu3n7XM8/skPgngb0kgCTAiox68GB/HbbzHiSTghGf/yNxckaGy/uMItDMGHsfZ/SYpvpHNmx9YcuGrds/u1laB3M2giSAOSGaHuHo0cGmQz0XHlKt2lksWn2aiFlIHrmFAOfrQMhfDYatg22nnt22Y+Ofdu//Wm5VMjdqIwkgwXY4fLK3Dfv43wqx6xlhfwAAEABJREFU4CmF2CeRDPqPv/LMaQQUxbSgqrLi1uqquqkfWOV0hSMql4lbJROF5HMZXcf6O2Hqf48HqYc4/1g+y2K0uldVVdDSJe3Wyooy8ge0O40mfyLySgKIg9LBoxeu7O658O+Ma10Y6j8UJ5r0zkEESoqLvIsXtVB97QJSlYtdXOP8jr1HzjTmYHWzWqWL6GS1CrlV+OHjfVcdPtb3iMrYfiL2XpJH3iBgtVjcC5saqGVhow1HRL2xiYgnk2K6Fxd5RiAgCeASGN0956853NP7c67x3Zzzd13ylpe8QEDRamuqqXNxm6O0dOavjzmHDQc5GLF7jxzhVtzm/JmpChqeAA4d7V0LxX+MSPkzxom/yRTwshx9ECgvL6Wlna3KgurKRDIsDSgD0gqIQMqwBNB1cuAzmOP/r8JoGxT/rghM5G0eIOB02D1tLc3U1FBHZrN59hpztPBUDE0SwBQWGPYi7g1ze+z8yFtUVXlAsVpep1hNE8ykEsNiUWQ3MQwYeSaoqpp8jfV11N620F5U5Eis9mD5iIiLDh7rfWfEs6FvDWkBhELaey63OnMyVSFmVkm1molZTEHxTAojxi7HknfZRwAb+uFtvYqK0qQqM80AuJgyp62Ai1XMzF8lM8XkTilHTw2JL/C8Jl6NGGMmYREoZhMRHAMxiGcGQoiXRvqnF4GS4uLQ4o5Wqq2tBi/Pg5WjGYDTKw8c7YvbB9IrTW7lruRWddJfG67wiNF/9vJABsQwNRAWAQMZqDYLl4QwO2Z6hlqtVm9Ls9jWa1Bt1hQW79lM0oCXtALQWIYigK1bt2JYZ/dA7nmd2B5kkYSgYMqggBjCBCEthHlhGisRYyxUV7uAOjtabSUlM7f1YqWZzQ/tFiOYv+5lbP3GCDCUl6EIoGnRCqH8Zbq2MBQ/PEUAESgWM00SArGZo46u5RZoZhUVZbSks12trqrQT8I4q7uMlJyzAijDh6EIgDOWsPk/r3YQOn+JEBSLiRQQAhNrCKpKJMJIHvEQcDodgfa2Zmqsr8XSiyletPn5x8Ee3u/e23VB/Acn88u3AFIZhgC6Tw3diPZ6JVzmTvSw8JTBpITJIEwIYssRhMAYAjNXk5wtyWw2+Rsbaqm9tdnsdCS4rZekNHEMgHAuJhMztBVgGAJQVCbM/3CjZ+0PdD68XgBCwHYjSMFEYnExTBIMgVmrWHYKrqmupM7F7ZaK8jJK5zErsozf29XVlfpCQzoFSGPehiCA7nNjVcR59gkguiGh9ExhFJ4mYMoQJgVhIShoFoVFxy6Y57LSYizwtVFNzTy39ZJEInoXMDI5I+bQrOUfjvTL1n02ykVPy0axmS2ThYLpnfvrJA5jjEhVSBCCEl5UFBaCSgxThkJYQ7DZrIGW5kZqbmogq9WiE2pzZzPbFCCcWiPDTgOUMAAF/ocplHujfyKYM0bh6QGmDGL9QLGCEISFAJIghSWSQ07EURQWqq+tocWLWs0lJUUZr1MCSC080NOXF4OE3uAVPAEcOzv0euK0RG/gspMfIwblF9uOly0EE5HKiDGWnSrNUWplRXl4W6+qqnyOmOkLjv0ewPTygJ4hrYCCJ4AQUeEyO5SewRJQTCYS6wdhh21Hq8NebYLf9C6e2afioiLe3raQGupryKSaMlt4dGkskW7OV3cdu/CG6KSZes5WOYkgk626pVxuz+nRDoz+b0w5ozzJgDFGTFGoqLR8UXPbImpsaaOqBbVUVFxCaoYIwWIxB5ob66i1pZE5HfbcQG62VcCIGoY0420JFjQBaBQq3NE/ouPGu7VYLFRSVkYL6uppIQihqaUVhFBDzuJiUlQ1XrJ5+9csqKIli9vNZWWllFvHnMuA4eoyRreLD8SEHwzyp6AJgBSWn4t/aep8ZosVhFBONXUN1NLeQY0LWy4SQlERqSkQQnlZCfbzsa0HAqBcPFjildKYsXYECpYAjp4Z/lvs/dck3vTGi2mx2i4SQn0jLQQhNDS3UGV1DTmcRaQoc1sIDrst1LqwiZoa68lqseQugDxxBkDMuw/1nFmcSWGyWVbBEgBWfg1t/s+nU1ltNiotL6fahkZqWdRBghAqqhaQUxACu9xVFEUJ1dfV0KL2FrW42DmfojKaBn0hqfI4N87Xgy+3alIQ5Xbk7tMDryBGf5Hbtcz92glCKKuooBpBCB2LQQxNwarKClra2a5WVZbnvgCXa5jYIsCl+JzYvQcOnK649FjQl4IkAJUpcu6fhm7rsFtO1tctSGm9IA3VSiRLLZFIk3EYI7Nqtxri9eCCI4Cu/v5iXsh7/5O9NBvXYHA4G8WmWibnLCkCEOUhQUZeDBJlZdMVHAEoXpOY+1uyCWohlu33+Ujjmj8vZWMa9Jl6k6o75/WHjvd+MKk0eRi54AgA5ps0/9PQEQN+PzGmhNKQddqztJpV37L2mlqm0vXE6J9R4J/h5j4N8COhgiKAY+dGbiPiK+duWRkjWQT8Xh92VUOYXSWbMvvxUekwcS1tqdm+rK3m/4EMrg1opiZi7H0IewI1HIebcSJsxaGe3jfPCCggj4IigJAW+b3/AmqlLIsSCgYpFAqBAJKfS2e56uHiGacwAYQfLv1Z2VF5Zlnbgh9f0V5zFwihhBjdBuvxXyHkgUtRJi9pWwuYLCCb14IhgJ5zQ80A8m1w8tQZAZ/XG86Rc8KgGL7Nrz+MzyCAaAGWtdU8s7St5lPLFtVeyUjp5Jx/HNbkUxD4pkPH+wt2S7lgCEALJf69f5JHUgiIBUCRQNM06IO4yzfH5iSASImWtlcfvmJR7beWtde+tldxOzUKlUWGF9J9wRAAMSYX/9LQMzWY/sFAMA05ZzTL0HxLW9fa6r2itfY3802f6+kKggCOnh0Upr+YAuQ63nlXPx8W/yYrjTWWydt8u86bANIlaK7kWxAEwDUSe/+5gmlB1cOP7b8pgTiW06Ye8upGEkCc5sp7Aug+M7wS5j+2/+JIKL3njYCmaRTw+abS2+3mm6ce8uomuTWAvBItxcrmPQGoRHLun2IniJdcvPwTGca1JH5XG5kw6/dz7wJkvYpZqkBeE8ABzi2c5Op/uvrO5Op/uvLPYL45NQXIoNxzFpXXBGA+Oyzm/sVzSikjzAsB8fZfZELsjUc+5s099i4lAcRprbwmAEZy6y9Ou6bsLUb/aIWPfk65kAxlwGjmm4AZKjrni8lrAlA4/yJx+i4xOp7zSOdZBf0+f57VeLbqykXAeOjkNQG0N1U81dFU8dGOhoo2RVGuIca+AEH/BCfPFBEIRKz+T2alwZaevM+va+4sAuYabnlNAJFgtteX7ehoKP9SR2PFKyuKzHc5rOrvbGZ1AOZfZDR5nwACwYA//OOfGVF53jKA/D7EjMa86FEQBDAxMVHn8Xj+xuvx/NDjdh9xWNTHK5zm11UVm6vqy21UWWQhp81EqsIuSi3/zoqAv6DMfyKTqqxyu93b3W73V10u1x07duwwzwqAgQKVfJV1fHx8ART/A1D63yuMHSfOf45FqvdDnkVwUyeDztstCpU7TFRXZqVijAVMC5LKpqLImygE4hGAlq9zAHQCNPd1cJ9VFeXpK5Yt6/F4PD/xuFx3gxBqosQ31GPeEQCU/g1ovB+bVPUQFP8HUPo70WJWuIROofj9fYPUe76XXCMjpMHcVShvTduEZE4mkvjdfzAQiJ0EGhQ7ILd9Y1S7CQPGPaQoP0M/6nFPTPzG63Z/zOfzLU2nJLmYd14QAJR+DZT+K3AHoPS/QeO9B2Cm/Nlmr9dHQ4PD1Hehj4b6+ingdZOC9SIMGMjemGf03n8kCpqmRT7mz/0saxcYQJyMsTdgCPiWFgodxBTyj+hv98NdnT8Czr+mOU0AXq/3VjTIz6D0L0HpPwe3bP6izp5SdO7RkXHq6x2gflgHHtc4UTBI6QIIHY98nonZK5WFUL/v4sc/YhYNLYnpX1ieN6C/fQFuFwacjVg3+ChcU2GJeFmadPXvyyXM487ndr/VMzHxFNe0jUh+N1zGzwmXmwYGBqnvQi+NDQ1REIqhkH4jYCgYIIZ/GRdslgI1zPED/kD8GCx+UC6HsPnWm/NbkfTbjLEut9v933B/fe7cOUcuy5ps3XKKAMC492DEfwFq9igx9ppkhUlXfD+UYmR4FGTQT0P9/eRzY+TWQikVJ76zp2Tov+xOtKKzjv7IRBAELnl3coIap1Jrzh3I4a/h/rusrEyQwbcDbvf1yWSZq3FzggAw31qNhZgnYOL/BEC9Ei5nTy2k0fiYiwb6BmgA1oFrdBQLiWLU5EnVWQsFSc05Arj8099YwohpSyx/I/mBBJrgPhoket7rdv8W1qr4GE3eQpBVAhD7sRj1P4/51h9hZuXd55cZekIg4CPX+AimCQNw/TQxOkIE5Z6tR2BqQxrXiLGswj+timKdLOCbnQA0EWlaKmM/gPJfrxH9EkSwC+4+EGRtviGStR6IUf8vsR/7HEb9LwE0O1xenYrCyGxSUH0iv1+LcH4aHR6m4f4B8ky4iMcggwC2Hk0mc07JK5R/Lv0G3+VUnROtjCDqROPOJx6I4Gq4r3s9nn0ggn/z+/2r55NPNtJkhQB8Hs/nFMZ+DYFz2txH/WKejBiZTIwCmA5oUf9XRgjPYmAX++kT4xM02D9Ig719NDYyQiE/Rlj0lAAWFC223OI8v6hbTGkve85FEJdj5tody1SFqtG8n8D6zg7PxMRPsGgYXifIVOHzKSejBAATqQqLfP8FU/Ir86lszqRhnMSCGKz4hKoEuUnsrw8PjWARsQ+7iyEKwNzmiWaQUCmpRRL1mysHtNtcUWT4JAKM3QPaeR4k8AuPy3XLpHeuXTNGAJjr34iRfz0AeAdcwZ5i9J9tpFRVWA7+ICyCMVgG/TQ8MEAT4+NYNsCyUpZQCWJKoiXwkg+fTbAs1T2RYhk0MZF4c8Xx+pJvIxT9dlKUTZgaPOn1esVbq3MVk9HwjBAAWPAuTJbXwzzKm7nRXK3AGMNEYGYsVVVgHcz0Fz5mM8KilCgUDGGtwA0iwFShr5/GR0YpGP4xDtASiTLgfN7EfvvPtczVSU+xeQLklkh5h0+N0tAopnERkXuHPBFP8W+B3JtQj99DFx7HFuLa+DEzG5J2AoDAdzGixyBWwbxAIXRYjIYKRnPINXWKhUEFwoawNjDleenGBOUXaUJBdIVLftEXdBDyeb00gkXEgQt94cVEr8dNPMV3DqLLiX7GolW0V+xnyBY7wBi+gaBGXSeGaf/RITp1wUV/ermXBoZnJ4BoZADhW2BHbINefBNWcUt0eKaf00oAEHJS+TMtV9rLC0KRhTkfSQImEEIQi4CRhQtSECM/I04iTWTYXPcBWAKu0XEa7BugkcEhco+7dJ8qhIJBCsX78U9UBQXxRXnlxSOLaaslX3V/IBROND7hpzO9aIuotg4HJviHEf0dcf4CdOQzGBgsCSbTPVraCACCFazyT7aCP6CFu5bZzEiQgVgkQ2dG4d8AABAASURBVMOGdwhMGPEtFgXTP0YhdJRAIP7ITwkcQSipe2IiPFUYwlTBNTpGfiwkEoglgeRxo/i8003auBERgI5KjAkJ8ZAnp6iuCdu1elTXbFJnZBOMYe3NiBTfoxZoPoC1MUEEb4ofLX0haSGAsbGxxWC3h9NX7RzJGTqtYV6MExXCGI8bMUqG/aD04v2AIMxG8YwIup0a5rRej4fGhkdooLcfC4oj5HV7SEwhki0kEPk//ySQeD5lJJBtWqKoikJFdivFUtz5FGizziSACU+QvL6LlsF88hRp0I1WgQiexKD5XZfLldGXidJCAGZV/RRjrEoIl4+OoTVwzlp1Mdc3YeQ3Y6QXg3AIIwFOLAByOIJDs86ag06BYByxhecaw64CLAMxVcC2E4Vg2s9VghYKUdIEIMCZK+McCBdKX2Q3kyoaSqf61FTEfnfj5IXxmCUk64k+d6+qKH+ARZCxH8DpTgBer/cO2IniyzzJyp9T8cMmPJRbmPFmoegwI024WoSDaa/iWbwEJEb5EEb7XKm8mCpMuC5NFfoHwluMfqwlxKpfssofziNDvBYua55/bFYzOW1mdEOoFOl3VJfbqbLMRtHH4IiXjp/ThwSQ92JMJX/mmZj46cjISDme03rqTgCYJ34qrTXOQOYYVCmA+b2Y408quJjribd6/Vj8E34iHJZ4Bmoz/yLECO+ZcGOqMEzibcTxEUwVMHWYNON94TWE5PLHRCe5BBmMLYwTofg280xTXa9qdC4so/oFzhnZne+foL2HBygkzMAZofPwYOzdFrP52YmJibRunSvzqFrcJNjWeBdxnrNvPcWt+BwBQtEFKYDcSJj7c0TPyWBRd7HgJxYPBzFVGB0aJjF1SLaynPQdVZMtP158FdpfZLPoNt+PV47wb6krppWLK8NEUFFqJZvVRArKD8ES7DoxQr2DbhEtZccYW4F8d2Bt4K6UM4uTga4EgE6Wd7/oi4NLwXvPy/wXqAgmFNcccuH5vsNCqqprd55VQqfdTIIIlrSU06olVfTKFTW0amk1XdFeQTWVDiIdD1DuYyCBz+iY5VRWuiHm9/tXoqKvn8pZ3hQkAiD5nJLLajGlZb6fU0KiMozoAUwH3oBbXU/dCCAUCsnRX9emyc3MeA5VywHT2w4CyKEqpbUqmA78BtPsG/QsRDcCAENJAtCzZXI1rxyYAmCrjIrtFrKYTbmKUvrqxfmTLpdrpV4F6EIAWE1eAdNwmV6VkvnkLgLZtgDMmOcXQfnTPt/XxGfe5tcOaU61QFXV70DfbHqUowsBaIGAboykh1AyjzQikMVvGFiwveeE8jOYm+mSUA2OkcXVRZaJw2R2dRMLJfdjn3TVa1q+nN/g83gemOY3zwddCIAriiH+E4V5YlxgydKofbMgZbeZyWE1UzoO5usnpvlI9ZwOO+IXX+1lPEiqvy8dRaacJyyxj/s9nnemmpEuBIAukTef9ipy2uiqZQups62OqiuKwz/WSRVEI6XXMiysguG+CMpvNan6lxx0kzK8D25/eLQXo390IUrQRWpwJNp76nnyp8FDo14SvwsQ7wJMBab5JkR0a6pF6EIAqMR1cHl12m0WaqitoBVLmml5ZxM11lWS027NKxmyUtkMLgKK/f1ih5VMaVB+xXWclP7txCZOEwU9pPnG4sKpeM4Tu2QVREea/GmweAFIvAl4YXAiOkranrmmpTz11oUAYAEMp03KDGSsYmGpqryIOlprw9ZBR0sNVZYXE2OQjOQxDQHYntOe0/RgFfN9jPzpaALFdZLYyEHM7yN+Cu0fJx6MeI6Qi5FGqq83wufirdsbvHgT8dds0kWlInKMf8sYWxE/NLEQXWrLidJKAIPDY9Tdc4p27e+mF3a+TNtf2k9dR09S38Aw+eL80CUx8WPHcjps1FRXQSuXNtMVixupoaac7Gmaf8auQS77orXTXD2b2N9PE94q5vsmwihtmv7LPo7FTe6fxQoIDIMwXNMkP9uHfKb5EJnNGd2aPBVVfNKPStIpYiTAODkcwztprxNnLpBwA4MjJJxQ+ude3ENHjp0mm81KbQub6Kpli+mq5Z1UXFwUJoCX9nbRDjgRxzXhSbrMuRKYYX5WV5ZQZ3t9mBDaFtZQWalzrmQFG57OGUB4vo9pmG0eSiR+kXfw2DB1nxihnjNjdOLcePizXacuuMLXwYF+otEjFxf1IIRiLZvRRjwwQcLNCLjkoXovWwHnB9zUH+NzYMUOAxIA8EmZiZAHBfwBmoASDwyPUi9IoMhpp7VrVlB7WzOVlBSTxWIm8f/pqaqJqirKqaO9hdZctYwaGmqImEKHjpykwyCLoZExmnB7KRjEMgnpdzDGqMRpo5aGKhDRQlqyqJ5qqkvJinrpV0pu5yQ+RpKOGpowDRP7+yYVw0mSBQRDnLpPjtDIuI8GsRjXO+imc/0T4c92DQyOUbF2geqsfWRRLn/8lJmspFhKZpTEZ1sL0LyYCvSR+BDo8bMzrYXyYgsJOWZkmj6PlPVOFwuAON+kh4ytzfUUCAbJ4/XRotZmqqqsBMuOwcwP0OjYBJ0+30c9J89Oc8dP99L4OEZ+RaGKyjLSNEbneoepDw1/5OR5Onbqgn4/0YwS0gbFr6suo6UggiuxkCiIQRBEVLSCemQseQWdCwAL5s1C+RUl+bwnMA//88u9MYtoKvXQKxqHqabYFzOcbCAApk4L4yEfcd/oNL/IB9XfT/39sXcFKmN8KyAybRruc4MAFLP5RT2EM5lUWtzWFB7pDx3ugTJrVFFWQtVQ7LoFldTSWEftCxumubbmOlrYWEvN9TXUWLuASkucNDQsZiQhWtreiLl8FYlFPj3qN1segvnLMDUQUwSxzdjRUot6l2Sk7NnqpXeYpvMSgN1qIgd2ZJKtZzCkkZiD7+0emJG03O6n1Q2j1F7pJmWWIY4xEynW0hnpw1ZAnFV/EXl5Y4AWVDjE7ZSrr3bO8KM0H2iK36VaxCzwJJ61xWLZhdgpsxHyIIfdhoW3VqquKCNBAmfP91IgMHO1VcSNdCNj43TsxGmsF5yk8rJSam2qCwdneFEmXKb443RYw4uHYotx2aIGEFEFObG4KMLy26Hb6SAAQx4OKL7VbMJd4ueoywer0BP+Pr8Ci2FhXTE11xZRa0MJtdTa6eomL62sG6di69x9RpTKrCWkmG3idspxKL/mGZ56jr5RUe6iphISHwcRYTUVdmqpLxa3GXOc8986HI5tqRaopJrBVHrGxP/6M/WY6k1DXTWsgeawFbD/0GHad/AwHYf5f+ZcLwl3GguG3UePh/137DlA4tkOBVt5ZSctX9KaavG6prdYTOFtxQ5sLwpCaG1eQFXYdlTQkXQtKAOZ6aH+QoHE/r4Fpn+yVS4tspL4NNcCKF1dlYMaFjipsaaIGks81OI8R6XmiWSzJLKUzEjDAy5sC3pm+AuPkLlcXKgSJr8ggfamUgp7ZPIPYz/TozhFj0xEHlgc+qG46unEIuCilga6bvWVtGxxC5WWOEjojIJaC6Wqr6miJR0t9AosBK5Z2UktWAwsLZq+vUM5dojpiKijePFoxZJmEm8khrcZMRrmWFVjVwfbZbEDEvO1mFUqhnWkiIZMLMmssVjQRWb3cSzOXSCaZ92YyUHMUjSjnPBUIMJXM5dSwLmIuOlyXEECEVEycgsS3oHR/3E9CoMq6ZENkdPp3EmM6U4Ck7Vz2m0k1gFaMecX5n1zA0bRilJ0Jhv2XtXJaHl3tUPxw9uMbXWY+jTSQuwwlGMtIWcF4cJ4n1/tbLCEHFbz/BJHpWIUIpP3HJk9J7E/744KTf6RCSsgaoGTBz3E/S4KMSu5TPUUtDUSV6zJZ65zCsbYfXplqRsBiAqlwwoQ+RrFmbEIKpRfkIB4Cam9eQHVLigjm05KoweOIeyhJ5sPOiw5QXSCAJJNGyu+Ehgi8/hhUgLx5+mx0s3mx1QLTVsQVMykOCrJY11Iw6yZyDRzmjBbfmkLY+weu93+nF75K3plJPIJWwGcf1ncS5caAkJpijGdqa0qpSXt9STeOWisq6CyYkdqGWc4tQpT32m3kHke8/3oqrLgBJlg7pu85xGk88+SGKxIcxEJIhALg1pRG41YriA3qyCC0WPB1IXiHBnz5vw/ofyP6FmergQgKmZzOAQB/EncS6cfAjaLGQuHxdTSVE3inYNWXKsrismc6Y6ZxDxbKL2Y75tAAikhgVV5ofRmzwlSQqmb+9F1YfYFpFRfHVZ+bq0ml30ZjarNYdNfxDWruquJyDZpZ3c635V0ojkS6C4ZY8ynSStgDthTCzahQ5YWO6ihtoKu6GikjpZaEi8kFTmnb2elVkpqqcW0RZj9qeVCYTPfPHEE16FUs5qRXsz7lQVriAfGSevbQW4qp2HrMvKz4qm4AmvxrsKUR3ZujtkdDpaOonUnAFFJTAV+R5x/VdxLl34ExDsHNdWltGhhDYl3DprrKqmirIhURdG9cC2BN4HEQp/NrKZUNsNIb3KfCC/0MVgAKWUWnVixkFB8YmpY8f0hFfP8hRQ29yPimkC0DpspwicLt5xvgvK3p6tk/XvIpZranc7PEWO6zlcuZS0vsyAgtkcryououb6SlnU0kHjnYAHWERx2yyypkghiLG5kFaa+MPktZjVunDkDNKzu+y6Q2NpTQvPY05+jAOaoJWavDCt+0Ocil1JLY6wO5v50fCwmhRJR/jmKSy0Yu2rQo5Q/+jFbJdJGAKJQLFjcQ5xvFPfSZR4BVVVIvHNQj52Exa11U+8cCL951ybOLoDZpFIRSEYFCcw3byU4AsU/Sop/cL5ZxE3HrGXhUZ/7holPnA+P9sPKQvJS8bQ0AjOH3Yydl+yN/JzzQU70CejPB6dVLg0PaSUAUV8w2O24PgsnzywjYMdWnHjnQFgF4jsHYruxElMFq9WccM1iTQGs2N932sww+FjC+URGVEIeMmE/3+Q5S4wHI4NSv1dtxEraiEBcYp7v10w0rDSDACqR9+X6MsbIZjVhu9JEphRIDJmmej6qmkx/4XA4vplqRomkTzsBiEpgDrMOjPZ34l663EBAjNjlpU5qwlRhSVsdTb5zMNdCItpxmgBivm8HAUzzTOKBaQFiw/tJfHsviWQJRWXOemLWUuJjxyjod5OLCXO/nkJknZZe7KQUYdS3mDKiDtPKjng4DZL6AHTlr61W64EI/7TeZkxiMNq3TUTifzU5nlaJZOZJI8AYo8l3DsRC4tQ7ByUOEkQRmSHM0/CjglFSmPyWVOb7yIn5YO57+4mDCPCoy8lsFcSKW4h7kK+7lzwMq/sM5n7E6r4oSFFZeJ5vt6iwXoRPck632JjrM7//JrvT+SPd8kwwo4wRgKiP2eHYZrPbr8co8j/iWbrcRGDqnYPGahJfQpp858BuNcOUJjKrSvh/5jHhmrIE3oFwFiFv/N/ghyMk8sfkIFa6iAhkwsdPUECz0AjM/QlWRdEaboPSi68N6yIDzfPpopRyAAAKAUlEQVSA4mPLfI2Y69vKyo5RFg4l02Uyxs7DGngzBL8XZZ+Bk2cOIyAUZPKdA0EGYrvRabdAn1jKtWaan5j/4v4+C7hgpsf5cMdcJTFGrKiRmNlJfPQo8vGEzf1RpZ6CZJ2W2gwzP2zum9Vp/hl9iFB8bJnvzGjZUYVlnAAmy4fg30MvehVx/uNJP3nNfQSKdXzZKGz+B8anhGae84T+MPWcyA2zVUH5m8Ir+8Lk97ByGhGr+9HmvsLIbjWFnZi+UOaPc5zouxj4wiM++n9WFX9S/KwRgKgATJ/jmPe8D5W4C8874ORpEASCGie/q2+GtH7PZUKYERjpYS66uK2HHQQ+for83ArFb6YJmPuc0KOm4nKyYrQXuxRi9J/yTvEm0eSM6LcY6O7xeL3LYPl+NFcUf7L+kUhN+mX8anU4nsDq5zUA6m64DRmvgCwwowgEgiHyTkyQ2d87o1w1MERanO/zhyMzlVhxMzHVGn6ZRwt4aVypoTGlYYa5b8Iin1B8K+b7DJoYTp+BPxjp98CS+YKiqsttDsdfYqB7pKKiQodFDv0rnxMEMCkWgPoF3B1M0+6A3y/g5FlgCPgDIfL4QmQKDJLCAzGl07wjMf2ZfQExZx3xceyYeQfJw8poWG0lH5VMiy+UXezpO2xmUvVYqJyWe+wHxth+RvQQU5TXYKS/Gpbtl6xW68uxY+eOb04RwCQstqKiDbAI7sZ86RoOUOHOTYbJa/4iEAhq5PVf/FS7JTjT/J+UjMGsD/rck4/ELCUXzX2sF3DXGfIzO42yJpj71cQ51G4qJpEF5n6Rw0IWLPZFeKfrdhv66BfRP2/A7tYKjPb32Ww2XT+Nl66KT+abkwQwWTnMl8Snj+4LBALLNc4/Qozp9iGEyTLkNXMI+GH6i9KUkBfmf3wCEHGYt4/EuwHMXkXELv5oRwv6sboPc581UIDZKPIQI70w923C3I8M0PGeMTZKnK+Hwt8X0rQVGKRucDqd9zuwva1jMRnNKqcJYBKJ0tLSIQD9MKYHfwET63YQwU8RNgAnzzxBQHzGOxSC6qC+XFFprORachWtII+9g3zWRgqYK0hT7Ai9fAY9LuKeARLv73upjIaVVvKyEpp2wACwWUzhV3hVlU0L0uHBh772NNw/QeFvtdpsjTDthYn/UFFR0X4d8s96FnlBAJEowcTaCCJ4j9fn60Dl3wZG/gm61dnIOPI+txHgzEwhtQRKX0NeWwu5HUvJVbSaRkvWghjW4v4q8jg6KWAqpVDAR6NKI7kUmPs0XcHFqv7FPX30BL1EZmwL+tTnTYy9CmZ9CfranXBfgcJvYoy59ComV/LREbnMilReXj6C3YPHwMjvRQMtgmXwlyCCh1GLHjh55hgCUB5iynQFnlFFpoAYnBQwV5PX2kxueycNW6+kAE23DMQ+vsNmIrGvr7A58qT4B1Lug7L/BNPLe1XOr4FJz9CXbkGf+rLZbv8jY8wfP3VhhOQtAUTCj4bywjIQ/1HCR9CIi9CYr0CjfhSN+x/E2MHIuPI+OwioCiPxzj0u866Aqiok9vTFqG/CfZIZdaMv/IwRfYIT3XDm7FkbFu1WQtnfi+nl9yxOZ0LvoSRZZs5HLwgCiEYZjfkSGvW7aNx3g9GvwPytDoTwV+gADyDusyCMy0vM8JBnZhAQSlvksJAYvYUiCxPeDEUWI7rCoJqiGhzqiVvxKPxNWM0X8UU6J0Z9Kxb5RLSYjrHjIP1NaOfvI5e/Vzj/K0XFXrzd7sDAsAR94Z02h+ObDizadXR0+GLmYTDPgiSA6DbE/O0CCOHX6AD/gI6wzma3O0XHACm8Dx3mh5zzPdFp5HP6EBBEIBRZmPB2KLUY0YscZipxWqikyEolIIliOOHvsJpIxFcYQa/ZGCfah9vf4PpNuI8zRXltIBhcYrPbTWjfNpD+rbh+GEr+davT+Wsr9uIZYx6SR0wElJi+BvAUHQOk8GN0mA86nM6r0YGs6GE3olPdh+uP0Gm2AIZTcPLMHAJe4H4IpPw0lPxhtMWn4e4CUV8DJa9CG5VCsVfaHI434voJuG9h6vdUSUlJN9JdfMEgc3UtiJIMSwDRrYcO5MfI8Tw61UO4fgCd7RZYCwtxtQRDoWWM89ejM34S7juI+zSsht3IQxDEBK7yjESA8zE8nriE0WZg9gRI9Ye4Pgj3GSj0B9Dx3kKh0C2qpl2NsBbgXAK87bguAynfCSX/CNriX+CeAFHvgJIPIs+snoVYONqhEMXSTyYoe6C4uPiQzen8HTrjN+A+hk56J6yGVeiwC+GK8GxHx27EtGIlOvPNAFWMWh/GSPZPGMkegt8jUIb/Ra22we8Qrr0iX1yzcQZRqDCJxa9uhlAv8UaO2EY9Cf+jcF2o237IIwjuz3jejvr/AXL8L+r+n7h+A9cv4Pox0rR3wAS/E3Gvw7UTRLkAWJigwKXApfUSRq8GZneBVD+I62fhvgaF/hF2cJ60FxdvsRQV7UHYSZQp6oPi5JlJBNBXM1lcYZaFzutFxz6LacU+dOat6Nxi1Po+FOErGMnug989UIY3QClugN8yXGuhKBa3x1MK5WrFrsVqjIbrknA3QenEh1WuRdpVWORcAfJZCiXsQH4tCGtE/jX+QKAS1xI4B5wZ5TI4cRWLYmLErUS9auDXCNcC1wG3FHFXQB5BcNfi+XrU/ybI8QbU/V24fhLXL+H6HXtR0c9hgj+NuC/iehhE2Q8spCmeR91cEkAWG6uysnIMynUCuxa7MBo+m4T7A5RuO9yfkXY3Fjn3g3y6oIRHkd9J+J+FIvaJNyhxHYfzwImRP4vSyqJzEQFJALnYKrJOOYdAoVZIEkChtqyUSyKQAAKSABIASUaRCBQqApIACrVlpVwSgQQQkASQAEgyirERKGTpJQEUcutK2SQCcyAgCWAOgGSwRKCQEZAEUMitK2WTCMyBgCSAOQCSwcZGoNCllwRQ6C0s5ZMIzIKAJIBZwJFBEoFCR0ASQKG3sJRPIjALApIAZgFHBhkbASNILwnACK0sZZQIxEFAEkAcYKS3RMAICEgCMEIrSxklAnEQkAQQBxjpbWwEjCK9JACjtLSUUyIQAwFJADFAkV4SAaMgIAnAKC0t5ZQIxEBAEkAMUKSXsREwkvSSAIzU2lJWiUAUApIAogCRjxIBIyEgCcBIrS1llQhEISAJIAoQ+WhsBIwmvSQAo7W4lFciEIGAJIAIMOStRMBoCEgCMFqLS3klAhEISAKIAEPeGhsBI0ovCcCIrS5llghcQkASwCUg5EUiYEQEJAEYsdWlzBKBSwhIArgEhLwYGwGjSi8JwKgtL+WWCAABSQAAQZ4SAaMiIAnAqC0v5ZYIAAFJAABBnsZGwMjSSwIwcutL2Q2PgCQAw3cBCYCREZAEYOTWl7IbHgFJAIbvAsYGwOjS/x8AAAD//7O8AmQAAAAGSURBVAMA82BfAFdFWJwAAAAASUVORK5CYII=",ap=({animationHtml:e,createAnimationLoading:t,createAnimationLoadingText:n,createAnimation:i})=>v.jsx("div",{className:"animationDemoContainer",children:v.jsx(r.Spin,{spinning:!0===t,tip:n||"动画生成中...",children:e?v.jsx(np,{htmlContent:e}):v.jsx("div",{children:v.jsx(r.Empty,{image:ip,description:v.jsxs("div",{className:"emptyDescription",children:["暂无动画演示 ",i&&v.jsx("span",{onClick:()=>i(),children:"现在生成"})]})})})})}),op=n.Component({createEl:function(e){const t=document.createElement("div");t.className="progress-marker-container";const r=document.createElement("div");r.className="marker-text",t.appendChild(r),e.appendChild(t),this.container=t,this.timeoutId=null},markerDotOver:function(e,t){let r=t.progressMarker;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);const n=this.container.querySelector(".marker-text");document.querySelectorAll(".prism-thumbnail").forEach(e=>{e&&(e.style.opacity="0")}),this.timeoutId=setTimeout(()=>{document.querySelectorAll(".progress-marker-container").forEach(e=>{if(!e)return;const t=parseFloat(e.style.left);t<10?(e.style.transform="none",e.classList.add("leftAfter")):t>80&&(e.style.transform="translateX(-100%)",e.classList.add("rightAfter"))}),this.timeoutId=null},0),n&&(n.textContent=r.text),this.container.style.left=100*t.left+"%",this.container.style.display="flex"},markerDotOut:function(e,t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container.style.display="none",document.querySelectorAll(".prism-thumbnail").forEach(e=>{e.style.opacity="1"}),document.querySelectorAll(".progress-marker-container").forEach(e=>{e.style.transform="translateX(-50%)",e.classList.remove("leftAfter"),e.classList.remove("rightAfter")})},destroy:function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.container=null}}),sp=()=>n.Component({init:function(){this.pipActive=!1,this.video=document.querySelector("video"),this.boundTogglePip=this.togglePip.bind(this),this.boundOnEnterPip=this.onEnterPip.bind(this),this.boundOnLeavePip=this.onLeavePip.bind(this),this.button=document.createElement("div"),this.button&&(this.button.className="prism-pip-btn",this.button.innerHTML='\n <div class="pip-content">\n <div class="pip-content-text">画中画</div>\n <svg t="1751253366278" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2319" width="200" height="200"><path d="M768 213.333333H256a85.333333 85.333333 0 0 0-85.333333 85.333334v426.666666a85.333333 85.333333 0 0 0 85.333333 85.333334h170.666667a42.666667 42.666667 0 1 1 0 85.333333H256a170.666667 170.666667 0 0 1-170.666667-170.666667V298.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h512a170.666667 170.666667 0 0 1 170.666667 170.666667v128a42.666667 42.666667 0 1 1-85.333334 0V298.666667a85.333333 85.333333 0 0 0-85.333333-85.333334z m-128 341.333334a128 128 0 0 0-128 128v85.333333a128 128 0 0 0 128 128h170.666667a128 128 0 0 0 128-128v-85.333333a128 128 0 0 0-128-128h-170.666667z" fill="#ffffff" p-id="2320"></path></svg>\n </div>\n ',this.button.addEventListener("click",this.boundTogglePip))},createEl:function(e){e.appendChild(this.button),this.video.addEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video.addEventListener("leavepictureinpicture",this.boundOnLeavePip)},destroy:function(){this.button&&this.boundTogglePip&&this.button.removeEventListener("click",this.boundTogglePip),this.video&&this.boundOnEnterPip&&this.video.removeEventListener("enterpictureinpicture",this.boundOnEnterPip),this.video&&this.boundOnLeavePip&&this.video.removeEventListener("leavepictureinpicture",this.boundOnLeavePip),this.button=null,this.video=null,this.boundTogglePip=null,this.boundOnEnterPip=null,this.boundOnLeavePip=null},onEnterPip:function(){},onLeavePip:function(){},togglePip:async function(){try{this.pipActive&&document.pictureInPictureElement?await document.exitPictureInPicture():await this.video.requestPictureInPicture()}catch(e){}}}),lp=e=>{const{playerRef:i,url:a,license:o,containerId:s,vidPlayAuth:l}=e,c=t.useRef(null),u=[];t.useEffect(()=>{const e=-1===a.indexOf("http");if((!e||l)&&(e||o))return i.current=new n({id:s,source:e?"":a,vid:e?a:"",playauth:e?l:"",width:"100%",height:"500px",autoplay:!1,isLive:!1,rePlay:!1,playsinline:!0,preload:!0,controlBarVisibility:"hover",progressMarkers:u,useH5Prism:!0,license:{...o},components:[{name:"progressMarkerComponent",type:op},{name:"pipButton",type:sp()}],extraInfo:{crossOrigin:"anonymous"},skinLayout:[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"snapshot",align:"tr",x:45,y:8},{name:"fullScreenButton",align:"tr",x:14,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:15,y:10}]}]}),i.current.on("snapshoted",d),i.current.on("play",()=>{c.current&&clearTimeout(c.current)}),i.current.on("showBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="block")}),i.current.on("hideBar",()=>{const e=document.querySelector(".prism-pip-btn");e&&(e.style.display="none")}),()=>{var e,t;c.current&&clearTimeout(c.current),i.current&&(null==(t=(e=i.current).dispose)||t.call(e),i.current=null)}},[a,o,l]);const d=async e=>{const t=e.paramData.base64;try{const e=t.match(/^data:(image\/\w+);base64,(.*)$/);if(!e)throw new Error("无效的Base64图片格式");const i=e[1],a=e[2];try{return await p(i,a),void r.message.success("图片已成功复制到剪贴板!")}catch(n){}const o=await q(t);await h(o),r.message.success("图片已成功复制到剪贴板!")}catch(n){}},p=async(e,t)=>{const r=atob(t),n=[];for(let a=0;a<r.length;a+=1024){const e=r.slice(a,a+1024),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);const i=new Uint8Array(t);n.push(i)}const i=new Blob(n,{type:e});await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])},q=e=>new Promise((t,r)=>{const n=new Image;n.src=e,n.onload=()=>{const e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),e.toBlob(e=>{e?t(e):r(new Error("无法转换图片为PNG格式"))},"image/png")},n.onerror=()=>{r(new Error("图片加载失败"))}}),h=async e=>{try{await navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(t){}};return v.jsx("div",{className:"videoPlayer",children:v.jsx("div",{id:s,ref:i})})},cp=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e)),up=e=>{try{if(!e||"string"!=typeof e)return null;return JSON.parse(e)}catch(t){return null}},dp=(e,t=500,r=!1)=>{let n=null;return(...i)=>{const a=r&&!n;n&&clearTimeout(n),n=setTimeout(()=>{n=null,r||e(...i)},t),a&&e(...i)}},pp=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return`${t<10?"0"+t:t+""}:${r<10?"0"+r:r+""}:${n<10?"0"+n:n+""}`},qp=e=>{if(!e)return"00:00:00";let t=e;if("string"==typeof t&&-1!==t.indexOf(":"))return t;t=Math.max(0,Math.floor(Number(t)||0));const r=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return[r.toString().padStart(2,"0"),n.toString().padStart(2,"0"),i.toString().padStart(2,"0")].join(":")},hp=e=>{const{videoTitle:r,videoUrl:n,videoLicense:i,playerRef:a,vidPlayAuth:o,videoTime:s}=e;return t.useEffect(()=>{var e;if(s&&a.current){const t=(e=>{if(!e)return 0;if("number"==typeof e)return e;if("string"==typeof e&&-1!==e.indexOf(":")){const t=e.split(":");let r=0,n=0,i=0;return 2===t.length?(n=t[0]?Number(t[0]):0,i=t[1]?Number(t[1]):0):3===t.length&&(r=t[0]?Number(t[0]):0,n=t[1]?Number(t[1]):0,i=t[2]?Number(t[2]):0),3600*r+60*n+i}return 0})(s);null==(e=a.current)||e.seek(t)}},[s,a]),v.jsxs("div",{className:"videoContainer",children:[r&&v.jsx("div",{className:"videoTitle",children:r}),v.jsx("div",{className:"playerArea",children:v.jsx(lp,{url:n,license:i,playerRef:a,containerId:"videoTutorialOfKnowledgeCard",vidPlayAuth:o})})]})};var Vp,fp=(e=>(e.RADIO="radio",e.CHECKBOX="checkbox",e.COMPLETION="completion",e.ANSWER="answer",e.ACM="acm",e.CCM="ccm",e))(fp||{}),mp=(e=>(e.NONE="NONE",e.INPUT_OUTPUT="INPUT_OUTPUT",e.SUBJECTIVE="SUBJECTIVE",e))(mp||{}),gp=(e=>(e.PREADD="preadd",e.ADD="add",e.PREVIEW="preview",e.EXAM="exam",e.MARK="mark",e.VIEW="view",e))(gp||{}),bp={exports:{}};self,bp.exports=(Vp=i,(()=>{var e={857:e=>{e.exports=Vp}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{default:()=>o});var e=r(857),t={"*":"list-item","-":"list-item","+":"list-item",">":"blockquote","#":"header1","##":"header2","###":"header3","####":"header4","#####":"header5"},i={"---":"divider","----":"divider","-----":"divider","------":"divider"};function a(t){var r=t.selection;if(null==r)return{beforeText:"",range:null};var n=r.anchor,i=e.SlateEditor.above(t,{match:function(r){return e.SlateEditor.isBlock(t,r)}});if(null==i)return{beforeText:"",range:null};var a=i[1],o={anchor:n,focus:e.SlateEditor.start(t,a)};return{beforeText:e.SlateEditor.string(t,o)||"",range:o}}const o={editorPlugin:function(r){var n=r.insertBreak,o=r.insertText,s=r;return s.insertText=function(n){var i=r.selection;if(null==i)return o(n);if(e.SlateRange.isExpanded(i))return o(n);if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return o(n);if(" "!==n)return o(n);var s=a(r),l=s.beforeText,c=s.range;if(!l||!c)return o(n);var u=t[l];if(!u)return o(n);e.SlateTransforms.select(r,c),e.SlateTransforms.delete(r);var d={type:u};e.SlateTransforms.setNodes(r,d,{match:function(t){return e.SlateEditor.isBlock(r,t)}}),"list-item"===u&&e.SlateTransforms.wrapNodes(r,{type:"bulleted-list",children:[]},{match:function(t){return"list-item"===e.DomEditor.getNodeType(t)}})},s.insertBreak=function(){var t=r.selection;if(null==t)return n();if(e.SlateRange.isExpanded(t))return n();if(null==e.DomEditor.getSelectedNodeByType(r,"paragraph"))return n();var o=a(r),s=o.beforeText,l=o.range;if(!s||!l)return n();if(0!==s.indexOf("```")){var c=i[s];if(!c)return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var u={type:c};e.SlateTransforms.setNodes(r,u,{match:function(t){return e.SlateEditor.isBlock(r,t)}})}else{var d=s.slice(3).toLowerCase().trim();"js"===d&&(d="javascript"),"ts"===d&&(d="typescript"),"md"===d&&(d="markdown"),"py"===d&&(d="python"),"vb"===d&&(d="visual-basic"),"c#"===d&&(d="csharp");var p=((r.getConfig().MENU_CONF||{}).codeSelectLang||[]).codeLangs;if(d&&!(void 0===p?[]:p).some(function(e){return e.value===d}))return n();e.SlateTransforms.select(r,l),e.SlateTransforms.delete(r);var q={type:"pre",children:[{type:"code",language:d,children:[{text:""}]}]};e.SlateTransforms.insertNodes(r,q)}},s}}})(),n})());const vp=q(bp.exports);function Ap(e,t,r,n,i){return{sel:e,data:t,children:r,text:n,elm:i,key:void 0===t?void 0:t.key}}const Sp=Array.isArray;function yp(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Ep(e,t,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==t)for(let n=0;n<t.length;++n){const e=t[n];if("string"==typeof e)continue;const r=e.data;void 0!==r&&Ep(r,e.children,e.sel)}}function Tp(e,t,r){let n,i,a,o={};if(null!=t&&(Sp(t)?n=t:yp(t)?i=t.toString():t&&t.sel?n=[t]:o=t),void 0!==n)for(a=0;a<n.length;++a)yp(n[a])&&(n[a]=Ap(void 0,void 0,void 0,n[a],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Ep(o,n,e),Ap(e,o,n,i,void 0)}const Cp=[];for(let xj=0;xj<256;++xj)Cp.push((xj+256).toString(16).slice(1));let Up;const Rp=new Uint8Array(16),Np={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kp(e,t,r){return Np.randomUUID&&!e?Np.randomUUID():function(e){var t;const r=(e=e||{}).random??(null==(t=e.rng)?void 0:t.call(e))??function(){if(!Up){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Up=crypto.getRandomValues.bind(crypto)}return Up(Rp)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Cp[e[t+0]]+Cp[e[t+1]]+Cp[e[t+2]]+Cp[e[t+3]]+"-"+Cp[e[t+4]]+Cp[e[t+5]]+"-"+Cp[e[t+6]]+Cp[e[t+7]]+"-"+Cp[e[t+8]]+Cp[e[t+9]]+"-"+Cp[e[t+10]]+Cp[e[t+11]]+Cp[e[t+12]]+Cp[e[t+13]]+Cp[e[t+14]]+Cp[e[t+15]]).toLowerCase()}(r)}(e)}class Fp{constructor(){l(this,"title","插入填空项"),l(this,"tag","button")}getValue(e){return""}isActive(e){return!1}isDisabled(e){var t;return null==e.selection||(null==(t=e.getElemsByType("fill-blank"))?void 0:t.length)>=20}exec(e,t){if(this.isDisabled(e))return;const r=[{text:" "},{type:"fill-blank",key:kp(),children:[{text:""}]},{text:" "}];i.SlateTransforms.insertNodes(e,r)}}let wp=[];const Wp={editorPlugin:function(e){const{isInline:t,isVoid:r}=e,n=e;return n.isInline=e=>"fill-blank"===i.DomEditor.getNodeType(e)||t(e),n.isVoid=e=>"fill-blank"===i.DomEditor.getNodeType(e)||r(e),n},renderElems:[{type:"fill-blank",renderElem:(e,t,r)=>{const n=null==r?void 0:r.getElemsByType("fill-blank"),i=(null==n?void 0:n.findIndex(t=>t.key===e.key&&!wp.includes(t.id)))||0;return i===n.length-1?wp=[]:wp.push(n[i].id),Tp("input",{attrs:{class:"w-e-fill-blank","data-w-e-type":"fill-blank","data-w-e-is-void":"true","data-w-e-is-inline":"true",readonly:!0,placeholder:i+1}})}}],elemsToHtml:[{type:"fill-blank",elemToHtml:(e,t,r)=>'<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">'}],parseElemsHtml:[{selector:"input[data-w-e-type='fill-blank']",parseElemHtml:(e,t,r)=>({type:"fill-blank",key:kp(),children:[{text:""}]})},{selector:"pre:not([data-w-e-type])>code",parseElemHtml:(e,t,r)=>{let n=(null==e?void 0:e.innerHTML)||"";const i='<input class="w-e-fill-blank" data-w-e-type="fill-blank" data-w-e-is-void="true" data-w-e-is-inline="true" readonly="true">',a=(null==t?void 0:t.filter(e=>"fill-blank"===(null==e?void 0:e.type)))||[];let o=[];return(null==a?void 0:a.length)&&(null==t||t.forEach((e,r)=>{var a;if(o.push(e),"fill-blank"===(null==e?void 0:e.type))if("fill-blank"===(null==(a=t[r+1])?void 0:a.type)){const e=null==n?void 0:n.indexOf(i,1);let t=null==n?void 0:n.slice(0,e);n=null==n?void 0:n.replace(t,""),t=t.replace(i,""),o.push({text:t})}else n=null==n?void 0:n.replace(i,"");else n=null==n?void 0:n.replace(null==e?void 0:e.text,"")})),{type:"code",language:"",children:(null==a?void 0:a.length)?o:[{text:(null==e?void 0:e.textContent)||""}]}}}],menus:[{key:"fill-blank",factory:()=>new Fp}]},xp=t.createContext(null);let Op=!1;const Kp=t.forwardRef((e,r)=>{const{topProps:n}=(()=>{const e=t.useContext(xp);if(!e)throw new Error("useMyContext must be used within a MyContext.Provider");return e})(),{uploadImg:o}=n,{defaultValue:s="",readOnly:l=!1,editorHeight:c=300,placeholder:u="请输入内容...",isBorder:d=!0,autoHeight:p,onChange:q,customToolbarKeys:h,mode:V="default",noPadding:f=!1}=e;t.useEffect(()=>{if(!Op)try{i.Boot.registerModule(Wp),i.Boot.registerModule(vp),Op=!0}catch(e){}},[]);const[m,g]=t.useState(null),[b]=t.useState({toolbarKeys:h??["undo","redo","fullScreen","|","headerSelect","bold","underline","italic","color","bgColor","|","bulletedList","numberedList",{key:"group-justify",title:"对齐",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:"缩进",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"insertLink",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable","codeBlock","divider","|"]}),A={placeholder:u,autoFocus:!1,MENU_CONF:{uploadImage:{async customUpload(e,t){if(!e||!o)return;const r=new FormData;r.append("file",e);const n=await o({file:r});(null==n?void 0:n.url)&&t(null==n?void 0:n.url,null==n?void 0:n.url,null==n?void 0:n.url)}}}},S=t.useRef(null);t.useEffect(()=>()=>{null!=m&&(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{null==m||m.destroy(),g(null)},500))},[m]),t.useEffect(()=>{l?null==m||m.disable():null==m||m.enable()},[l,m]);const y=t.useCallback((e="")=>e.replace(/<\/?p>/g,"").replace(/ /gi,"").replace(/<br\/?>/g,""),[]);t.useImperativeHandle(r,()=>({getHtml:()=>{if(null==m?void 0:m.isEmpty())return"";{const e=(null==m?void 0:m.getHtml())??"",t=y(e);return/\S+/.test(t)?e:""}},setValue:(e="")=>!!m&&(null==m||m.setHtml(e),!0)}));const E={};return l&&p?(E.minHeight=p.min+"px",E.maxHeight=p.max+"px",E.overflowY="auto"):E.height="number"==typeof c?c+"px":c,v.jsx(v.Fragment,{children:v.jsxs("div",{"data-nopadding":f,style:{border:d?"1px solid #E5E5E5":"",zIndex:99},className:"richeditor",children:[!l&&v.jsx(a.Toolbar,{editor:m,defaultConfig:b,mode:"default",style:{borderBottom:"1px solid #E5E5E5"}}),v.jsx(a.Editor,{defaultConfig:A,value:s,onCreated:g,mode:V,onChange:e=>{if(null==e?void 0:e.isEmpty())null==q||q("",e);else{const t=(null==e?void 0:e.getHtml())??"",r=y(t);/\S+/.test(r)?null==q||q(t,e):null==q||q("",e)}},style:{fontSize:"16px",...E}})]})})});fp.RADIO,fp.CHECKBOX,fp.COMPLETION,fp.ANSWER,fp.ACM,fp.CCM,fp.RADIO,fp.COMPLETION,fp.ANSWER,fp.CCM;const Ip={low:"简单",middle:"中等",high:"困难"},Dp="https://quiz.cloudlab.top",Lp="https://run.cloudlab.top",Pp=e=>{switch(e){case"radio":case"checkbox":return v.jsx(Q,{className:"w-4 h-4"});case"acm":case"ccm":return v.jsx(W,{className:"w-4 h-4"});case"completion":return v.jsx(X,{className:"w-4 h-4"});case"answer":return v.jsx(B,{className:"w-4 h-4"});default:return v.jsx(O,{className:"w-4 h-4"})}},Bp=e=>{switch(e){case"radio":return"单选题";case"checkbox":return"多选题";case"acm":case"ccm":return"编码测验";case"completion":return"填空题";case"answer":return"问答题";default:return"题目"}},Xp=e=>{switch(e){case"low":return"text-green-600 bg-green-100";case"middle":return"text-yellow-600 bg-yellow-100";case"high":return"text-red-600 bg-red-100";default:return"text-gray-600 bg-gray-100"}},Mp=e=>{const{currentIndex:t,questionsCount:r,type:n,difficulty:i="low",score:a}=e;return v.jsxs("div",{className:"questionHeader tailwind-scoped",children:[t&&r&&v.jsxs("div",{className:"questionIndex itemWrapper",children:["题目 ",t,"/",r]}),v.jsxs("span",{className:"questionType itemWrapper",children:[Pp(n)," ",Bp(n)]}),i&&v.jsx("div",{className:`difficulty itemWrapper ${Xp(i)}`,children:v.jsx("span",{className:"difficulty",children:Ip[i]})}),a&&v.jsxs("div",{className:"score itemWrapper",children:[v.jsx(z,{})," ",a," 分"]})]})},jp=e=>{var n;const{data:i,onSubmit:a,buttonText:o,showQuestionTip:s,showResult:l,onNextQuestion:c}=e,{optionJson:u,answer:d,userAnswer:p,score:q,type:h,topic:V,content:f,auxiliary:m,difficulty:g,currentIndex:b,questionsCount:A}=i,[S,y]=t.useState(!0),[E,T]=t.useState(void 0),[C,U]=t.useState(),[R,N]=t.useState(""),[k,W]=t.useState([]);t.useEffect(()=>{p&&!C&&(U(p),p.indexOf(",")>-1?W(null==p?void 0:p.split(",")):N(p),x(p))},[i]);const x=e=>{if(!C&&!e)return void r.message.warning("请先作答!");const t=C||e;a&&!e&&void 0===E&&a(t),void 0!==E&&(null==c||c()),d&&l&&(t===d||t&&cp(null==t?void 0:t.split(","),null==d?void 0:d.split(","))?T(1):T(0))},O=["A","B","C","D","E","F","G","H","I","J"];return v.jsx("div",{className:"video-player-interaction tailwind-scoped",children:v.jsx("div",{className:"video-player-interaction-content",children:v.jsxs("div",{className:"video-player-interaction-content-main",children:[v.jsx(Mp,{score:q,type:h,difficulty:g,currentIndex:b,questionsCount:A}),v.jsx("div",{className:"video-player-interaction-content-desc",children:v.jsx(Kp,{defaultValue:V||f,readOnly:!0,noPadding:!0})}),v.jsx("div",{className:"video-player-interaction-content-options",children:"radio"===h?null==u?void 0:u.map(({key:e,value:t},r)=>v.jsx("button",{onClick:()=>(e=>{T(void 0),U(e+""),N(e+"")})(e),disabled:void 0!==E,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${R===e?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==E?e===d?"border-green-500 bg-green-50":R===e&&e!==d?"border-red-500 bg-red-50":"border-gray-200":""}`,children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("span",{children:[O[r],"、",t]}),void 0!==E&&e===d&&v.jsx(F,{className:"w-5 h-5 text-green-600"}),void 0!==E&&R===e&&e!==d&&v.jsx(w,{className:"w-5 h-5 text-red-600"})]})},e)):null==u?void 0:u.map(({key:e,value:t},r)=>v.jsx("button",{onClick:()=>(e=>{T(void 0);let t=C||"";if(t&&(null==t?void 0:t.indexOf(e))>-1){let r=t.split(",");r=r.filter(t=>t!==e),t=null==r?void 0:r.join(",")}else t=t?t+","+e:e;U(t)})(String(e)),disabled:void 0!==E,className:`block w-full text-left p-4 rounded-lg border-2 transition-all ${C&&(null==C?void 0:C.indexOf(e))>-1?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300"} ${void 0!==E?d.indexOf(e)>-1?(null==C||C.indexOf(e),"border-green-500 bg-green-50"):C&&(null==C?void 0:C.indexOf(e))>-1&&-1===d.indexOf(e)?"border-red-500 bg-red-50":"border-gray-200":""}`,children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("span",{children:[O[r],"、",t]}),void 0!==E&&d.indexOf(e)>-1&&v.jsx(F,{className:"w-5 h-5 text-green-600"}),void 0!==E&&C&&(null==C?void 0:C.indexOf(e))>-1&&-1===d.indexOf(e)&&v.jsx(w,{className:"w-5 h-5 text-red-600"})]})},e+t))}),s&&0===E&&m&&(null==m?void 0:m.length)>0&&v.jsxs("div",{className:"video-player-interaction-content-tip",children:[v.jsxs("div",{className:"video-player-interaction-content-tip-icons",onClick:()=>{y(!S)},children:[v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.535156'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.53516%201C4.66953%201%201.53516%204.13438%201.53516%208C1.53516%2011.8656%204.66953%2015%208.53516%2015C12.4008%2015%2015.5352%2011.8656%2015.5352%208C15.5352%204.13438%2012.4008%201%208.53516%201ZM8.03516%204.625C8.03516%204.55625%208.09141%204.5%208.16016%204.5H8.91016C8.97891%204.5%209.03516%204.55625%209.03516%204.625V8.875C9.03516%208.94375%208.97891%209%208.91016%209H8.16016C8.09141%209%208.03516%208.94375%208.03516%208.875V4.625ZM8.53516%2011.5C8.12109%2011.5%207.78516%2011.1641%207.78516%2010.75C7.78516%2010.3359%208.12109%2010%208.53516%2010C8.94922%2010%209.28516%2010.3359%209.28516%2010.75C9.28516%2011.1641%208.94922%2011.5%208.53516%2011.5Z'%20fill='%23FAAD14'/%3e%3c/svg%3e"}),v.jsx("span",{children:"提示"}),v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",style:{transform:S?"rotate(0deg)":"rotate(180deg)"}})]}),S&&v.jsxs("div",{className:"video-player-interaction-content-tip-text",children:[v.jsx(Kp,{defaultValue:null==(n=null==m?void 0:m[0])?void 0:n.description,readOnly:!0}),v.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"})]})]}),a&&v.jsx("div",{className:"video-player-interaction-content-actions",children:v.jsx(r.Button,{type:"primary",onClick:()=>x(),children:o||(void 0===E?"提交":"下一题")})})]})})})};var Gp={exports:{}},Hp={exports:{}};"undefined"!=typeof self&&self,Hp.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){return"[object RegExp]"==={}.toString.call(e)}r.r(t),r.d(t,"Promise",function(){return W}),r.d(t,"TYPES",function(){return Qe}),r.d(t,"ProxyWindow",function(){return Te}),r.d(t,"setup",function(){return Ye}),r.d(t,"destroy",function(){return ze}),r.d(t,"serializeMessage",function(){return je}),r.d(t,"deserializeMessage",function(){return Ge}),r.d(t,"createProxyWindow",function(){return He}),r.d(t,"toProxyWindow",function(){return Ze}),r.d(t,"on",function(){return Be}),r.d(t,"once",function(){return Xe}),r.d(t,"send",function(){return Me}),r.d(t,"markWindowKnown",function(){return he}),r.d(t,"cleanUpWindow",function(){return Je}),r.d(t,"bridge",function(){});var i="Call was rejected by callee.\r\n";function a(e){return void 0===e&&(e=window),e.location.protocol}function o(e){if(void 0===e&&(e=window),e.mockDomain){var t=e.mockDomain.split("//")[0];if(t)return t}return a(e)}function s(e){return void 0===e&&(e=window),"about:"===o(e)}function l(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(t){}}function c(e){if(void 0===e&&(e=window),e&&!l(e))try{return e.opener}catch(t){}}function u(e){try{return!0}catch(t){}return!1}function d(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=a(e);if(!r)throw new Error("Can not read window protocol");if("file:"===r)return"file://";if("about:"===r){var n=l(e);return n&&u()?d(n):"about://"}var i=t.host;if(!i)throw new Error("Can not read window host");return r+"//"+i}function p(e){void 0===e&&(e=window);var t=d(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:t}function q(e){if(!function(e){try{if(e===window)return!0}catch(n){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(n){}try{if(s(e)&&u())return!0}catch(n){}try{if(void 0===(r=e)&&(r=window),"mock:"===o(r)&&u())return!0}catch(n){}var r;try{if(d(e)===d(window))return!0}catch(n){}return!1}(e))return!1;try{if(e===window)return!0;if(s(e)&&u())return!0;if(p(window)===p(e))return!0}catch(t){}return!1}function h(e){if(!q(e))throw new Error("Expected window to be same domain");return e}function V(e,t){if(!e||!t)return!1;var r=l(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(r){}return t}(t).indexOf(e)}function f(e){var t,r,n=[];try{t=e.frames}catch(l){t=e}try{r=t.length}catch(l){}if(0===r)return n;if(r){for(var i=0;i<r;i++){var a=void 0;try{a=t[i]}catch(l){continue}n.push(a)}return n}for(var o=0;o<100;o++){var s=void 0;try{s=t[o]}catch(l){return n}if(!s)return n;n.push(s)}return n}var m=[],g=[];function b(e,t){void 0===t&&(t=!0);try{if(e===window)return!1}catch(a){return!0}try{if(!e)return!0}catch(a){return!0}try{if(e.closed)return!0}catch(a){return!a||a.message!==i}if(t&&q(e))try{if(e.mockclosed)return!0}catch(a){}try{if(!e.parent||!e.top)return!0}catch(a){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(a){}return-1}(m,e);if(-1!==r){var n=g[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;if(t&&t.documentElement&&!t.documentElement.contains(e)){for(var r=e;r.parentNode&&r.parentNode!==r;)r=r.parentNode;if(!r.host||!t.documentElement.contains(r.host))return!0}return!1}(n))return!0}return!1}function v(e){return void 0===e&&(e=window),c(e=e||window)||l(e)||void 0}function A(e,t){if("string"==typeof e){if("string"==typeof t)return"*"===e||t===e;if(n(t))return!1;if(Array.isArray(t))return!1}return n(e)?n(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!n(t)&&e.some(function(e){return A(e,t)}))}function S(e){try{if(e===window)return!0}catch(t){if(t&&t.message===i)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(t){if(t&&t.message===i)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.self===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.parent===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&e.top===e)return!0}catch(t){if(t&&t.message===i)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(t){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(t){}return!1}function y(e){if(q(e))return h(e).frameElement;for(var t=0,r=document.querySelectorAll("iframe");t<r.length;t++){var n=r[t];if(n&&n.contentWindow&&n.contentWindow===e)return n}}function E(e){if(void 0===(r=e)&&(r=window),Boolean(l(r))){var t=y(e);if(t&&t.parentElement)return void t.parentElement.removeChild(t)}var r;try{e.close()}catch(n){}}function T(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(n){return!1}return!1}var C,U=[],R=[],N=0;function k(){if(!N&&C){var e=C;C=null,e.resolve()}}function F(){N+=1}function w(){N-=1,k()}var W=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,n,i=!1,a=!1,o=!1;F();try{e(function(e){o?t.resolve(e):(i=!0,r=e)},function(e){o?t.reject(e):(a=!0,n=e)})}catch(s){return w(),void this.reject(s)}w(),o=!0,i?this.resolve(r):a&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(T(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===U.indexOf(e)){U.push(e),setTimeout(function(){throw e},1);for(var r=0;r<R.length;r++)R[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,F();for(var i=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},a=0;a<n.length;a++){var o=n[a],s=o.onSuccess,l=o.onError,c=o.promise,u=void 0;if(t)try{u=s?s(this.value):this.value}catch(p){c.reject(p);continue}else if(r){if(!l){c.reject(this.error);continue}try{u=l(this.error)}catch(p){c.reject(p);continue}}if(u instanceof e&&(u.resolved||u.rejected)){var d=u;d.resolved?c.resolve(d.value):c.reject(d.error),d.errorHandled=!0}else T(u)?u instanceof e&&(u.resolved||u.rejected)?u.resolved?c.resolve(u.value):c.reject(u.error):i(u,c):c.resolve(u)}n.length=0,this.dispatching=!1,w()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},t.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(t){return t instanceof e?t:T(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,i=[].slice();if(!n)return r.resolve(i),r;for(var a=function(e,t,a){return t.then(function(t){i[e]=t,0==(n-=1)&&r.resolve(i)},function(e){a.reject(e)})},o=0;o<t.length;o++){var s=t[o];if(s instanceof e){if(s.resolved){i[o]=s.value,n-=1;continue}}else if(!T(s)){i[o]=s,n-=1;continue}a(o,e.resolve(s),r)}return 0===n&&r.resolve(i),r},e.hash=function(t){var r={},n=[],i=function(e){if(t.hasOwnProperty(e)){var i=t[e];T(i)?n.push(i.then(function(t){r[e]=t})):r[e]=i}};for(var a in t)i(a);return e.all(n).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return t=e,R.push(t),{cancel:function(){R.splice(R.indexOf(t),1)}};var t},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var i;F();try{i=t.apply(r,n||[])}catch(a){return w(),e.reject(a)}return w(),e.resolve(i)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||T(t)},e.flush=function(){return t=C=C||new e,k(),t;var t},e}();function x(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(n){}return-1}var O,K=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(r){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(S(n)&&b(n)){if(e)try{e.delete(n)}catch(i){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!S(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(l){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,i=e[n];return void(i&&i[0]===e?i[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(l){}this._cleanupClosedWindows();var a=this.keys,o=this.values,s=x(a,e);-1===s?(a.push(e),o.push(t)):o[s]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(i){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(i){}this._cleanupClosedWindows();var n=x(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(a){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(a){}this._cleanupClosedWindows();var n=this.keys,i=x(n,e);-1!==i&&(n.splice(i,1),this.values.splice(i,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(n){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(n){}return this._cleanupClosedWindows(),-1!==x(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function I(e){return e.name||e.__name__||e.displayName||"anonymous"}function D(e,t){try{delete e.name,e.name=t}catch(r){}return e.__name__=e.displayName=t,e}function L(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(16*Math.random()))})+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function P(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(O=O||new K,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var t=O.get(e);return t||(t=typeof e+":"+L(),O.set(e,t)),t}(t)+"]":"undefined"!=typeof window&&t instanceof window.Element||null!==t&&"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument?{}:t})}catch(t){throw new Error("Arguments not serializable -- can not be used to memoize")}}function B(){return{}}var X=0,M=0;function j(e,t){void 0===t&&(t={});var r,n,i=t.thisNamespace,a=void 0!==i&&i,o=t.time,s=X;X+=1;var l=function(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];var c,u;s<M&&(r=null,n=null,s=X,X+=1),c=a?(n=n||new K).getOrSet(this,B):r=r||{};try{u=P(i)}catch(h){return e.apply(this,arguments)}var d=c[u];if(d&&o&&Date.now()-d.time<o&&(delete c[u],d=null),d)return d.value;var p=Date.now(),q=e.apply(this,arguments);return c[u]={time:p,value:q},q};return l.reset=function(){r=null,n=null},D(l,(t.name||I(e))+"::memoized")}function G(e){var t={};function r(){for(var r=arguments,n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=P(a);return t.hasOwnProperty(s)||(t[s]=W.try(function(){return e.apply(n,r)}).finally(function(){delete t[s]})),t[s]}return r.reset=function(){t={}},D(r,I(e)+"::promiseMemoized")}function H(){}function Z(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(i){return"Error while stringifying error: "+Z(i,t+1)}}function Y(e){return"string"==typeof e?e:e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function z(e){return"[object RegExp]"==={}.toString.call(e)}function Q(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}function J(){var e=document.body;if(!e)throw new Error("Body element not found");return e}function _(){return Boolean(document.body)&&"complete"===document.readyState}function $(){return Boolean(document.body)&&"interactive"===document.readyState}j.clear=function(){M=X},j(function(e){if(Object.values)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}),j(function(){return new W(function(e){if(_()||$())return e();var t=setInterval(function(){if(_()||$())return clearInterval(t),e()},10)})});var ee="undefined"!=typeof document?document.currentScript:null,te=j(function(){if(ee)return ee;if(ee=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),t=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),r=t&&t[1];if(!r)return;for(var n=0,i=[].slice.call(document.getElementsByTagName("script")).reverse();n<i.length;n++){var a=i[n];if(a.src&&a.src===r)return a}}catch(o){}}())return ee;throw new Error("Can not determine current script")}),re=L();function ne(e){void 0===e&&(e=window);var t="__post_robot_10_0_46__";return e!==window?e[t]:e[t]=e[t]||{}}j(function(){var e;try{e=te()}catch(n){return re}var t=e.getAttribute("data-uid");if(t&&"string"==typeof t)return t;if((t=e.getAttribute("data-uid-auto"))&&"string"==typeof t)return t;if(e.src){var r=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify({src:e.src,dataset:e.dataset}));t="uid_"+r.slice(r.length-30)}else t=L();return e.setAttribute("data-uid-auto",t),t});var ie=function(){return{}};function ae(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),Q(ne(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return Q(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var oe,se=function(){};function le(){var e=ne();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new se,e.WINDOW_WILDCARD}function ce(e,t){return void 0===e&&(e="store"),void 0===t&&(t=ie),ae("windowStore").getOrSet(e,function(){var r=new K,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var i=n(t);return i.hasOwnProperty(e)?i[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return Q(n(t),e,r)}}})}function ue(){return ae("instance").getOrSet("instanceID",L)}function de(e,t){var r=t.domain,n=ce("helloPromises"),i=n.get(e);i&&i.resolve({domain:r});var a=W.resolve({domain:r});return n.set(e,a),a}function pe(e,t){return(0,t.send)(e,"postrobot_hello",{instanceID:ue()},{domain:"*",timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return de(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function qe(e,t){var r=t.send;return ce("windowInstanceIDPromises").getOrSet(e,function(){return pe(e,{send:r}).then(function(e){return e.instanceID})})}function he(e){ce("knownWindows").set(e,!0)}function Ve(e){return"object"==typeof e&&null!==e&&"string"==typeof e.__type__}function fe(e){return void 0===e?"undefined":null===e?"null":Array.isArray(e)?"array":"function"==typeof e?"function":"object"==typeof e?e instanceof Error?"error":"function"==typeof e.then?"promise":"[object RegExp]"==={}.toString.call(e)?"regex":"[object Date]"==={}.toString.call(e)?"date":"object":"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":void 0}function me(e,t){return{__type__:e,__val__:t}}var ge,be=((oe={}).function=function(){},oe.error=function(e){return me("error",{message:e.message,stack:e.stack,code:e.code,data:e.data})},oe.promise=function(){},oe.regex=function(e){return me("regex",e.source)},oe.date=function(e){return me("date",e.toJSON())},oe.array=function(e){return e},oe.object=function(e){return e},oe.string=function(e){return e},oe.number=function(e){return e},oe.boolean=function(e){return e},oe.null=function(e){return e},oe[void 0]=function(e){return me("undefined",e)},oe),ve={},Ae=((ge={}).function=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},ge.error=function(e){var t=e.stack,r=e.code,n=e.data,i=new Error(e.message);return i.code=r,n&&(i.data=n),i.stack=t+"\n\n"+i.stack,i},ge.promise=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},ge.regex=function(e){return new RegExp(e)},ge.date=function(e){return new Date(e)},ge.array=function(e){return e},ge.object=function(e){return e},ge.string=function(e){return e},ge.number=function(e){return e},ge.boolean=function(e){return e},ge.null=function(e){return e},ge[void 0]=function(){},ge),Se={};function ye(){for(var e=ae("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function Ee(e,t){var r=t.send,n=t.id,i=void 0===n?L():n,a=e.then(function(e){if(q(e))return h(e).name}),o=e.then(function(e){if(b(e))throw new Error("Window is closed, can not determine type");return c(e)?"popup":"iframe"});a.catch(H),o.catch(H);var s=function(){return e.then(function(e){if(!b(e))return q(e)?h(e).name:a})};return{id:i,getType:function(){return o},getInstanceID:G(function(){return e.then(function(e){return qe(e,{send:r})})}),close:function(){return e.then(E)},getName:s,focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return b(e)})},setLocation:function(t,r){return void 0===r&&(r={}),e.then(function(e){var n=window.location.protocol+"//"+window.location.host,i=r.method,a=void 0===i?"get":i,o=r.body;if(0===t.indexOf("/"))t=""+n+t;else if(!t.match(/^https?:\/\//)&&0!==t.indexOf(n))throw new Error("Expected url to be http or https url, or absolute path, got "+JSON.stringify(t));if("post"===a)return s().then(function(e){if(!e)throw new Error("Can not post to window without target name");!function(e){var t=e.url,r=e.target,n=e.body,i=e.method,a=void 0===i?"post":i,o=document.createElement("form");if(o.setAttribute("target",r),o.setAttribute("method",a),o.setAttribute("action",t),o.style.display="none",n)for(var s=0,l=Object.keys(n);s<l.length;s++){var c,u=l[s],d=document.createElement("input");d.setAttribute("name",u),d.setAttribute("value",null==(c=n[u])?void 0:c.toString()),o.appendChild(d)}J().appendChild(o),o.submit(),J().removeChild(o)}({url:t,target:e,method:a,body:o})});if("get"!==a)throw new Error("Unsupported method: "+a);if(q(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(l){}e.location=t})},setName:function(t){return e.then(function(e){var r=q(e),n=y(e);if(!r)throw new Error("Can not set name for cross-domain window: "+t);h(e).name=t,n&&n.setAttribute("name",t),a=W.resolve(t)})}}}new W(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});var Te=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new W,this.serializedWindow=n||Ee(this.actualWindowPromise,{send:t}),ae("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType().then(function(e){return"popup"===e})},t.setLocation=function(e,t){var r=this;return this.serializedWindow.setLocation(e,t).then(function(){return r})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this,t=this.isPopup(),r=this.getName(),n=W.hash({isPopup:t,name:r}).then(function(e){var t=e.name;e.isPopup&&t&&window.open("",t,"noopener")}),i=this.serializedWindow.focus();return W.all([n,i]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=Ee(this.actualWindowPromise,{send:r,id:this.getID()}),ce("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return W.try(function(){return r.actualWindow?e===r.actualWindow:W.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:qe(e,{send:n})}).then(function(t){var i=t.proxyInstanceID===t.knownWindowInstanceID;return i&&r.setWindow(e,{send:n}),i})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&b(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return ye(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return ye(),ae("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!S(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(ye(),e.isProxyWindow(t))return t;var i=t;return ce("winToProxyWindow").get(i)||new e({win:i,send:n})},e}();function Ce(e,t,r,n,i){var a=ce("methodStore"),o=ae("proxyWindowMethods");Te.isProxyWindow(n)?o.set(e,{val:t,name:r,domain:i,source:n}):(o.del(e),a.getOrSet(n,function(){return{}})[e]={domain:i,name:r,val:t,source:n})}function Ue(e,t){var r=ce("methodStore"),n=ae("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function Re(e,t,r,n,i){var a,o,s;o=(a={on:i.on,send:i.send}).on,s=a.send,ae("builtinListeners").getOrSet("functionCalls",function(){return o("postrobot_method",{domain:"*"},function(e){var t=e.source,r=e.origin,n=e.data,i=n.id,a=n.name,o=Ue(t,i);if(!o)throw new Error("Could not find method '"+a+"' with id: "+n.id+" in "+p(window));var l=o.source,c=o.domain,u=o.val;return W.try(function(){if(!A(c,r))throw new Error("Method '"+n.name+"' domain "+JSON.stringify(z(o.domain)?o.domain.source:o.domain)+" does not match origin "+r+" in "+p(window));if(Te.isProxyWindow(l))return l.matchWindow(t,{send:s}).then(function(e){if(!e)throw new Error("Method call '"+n.name+"' failed - proxy window does not match source in "+p(window))})}).then(function(){return u.apply({source:t,origin:r},n.args)},function(e){return W.try(function(){if(u.onError)return u.onError(e)}).then(function(){var t,r;throw e.stack&&(e.stack="Remote call to "+a+"("+(void 0===(t=n.args)&&(t=[]),(r=t,[].slice.call(r)).map(function(e){return"string"==typeof e?"'"+e+"'":void 0===e?"undefined":null===e?"null":"boolean"==typeof e?e.toString():Array.isArray(e)?"[ ... ]":"object"==typeof e?"{ ... }":"function"==typeof e?"() => { ... }":"<"+typeof e+">"}).join(", ")+") failed\n\n")+e.stack),e})}).then(function(e){return{result:e,id:i,name:a}})})});var l=r.__id__||L();e=Te.unwrap(e);var c=r.__name__||r.name||n;return"string"==typeof c&&"function"==typeof c.indexOf&&0===c.indexOf("anonymous::")&&(c=c.replace("anonymous::",n+"::")),Te.isProxyWindow(e)?(Ce(l,r,c,e,t),e.awaitWindow().then(function(e){Ce(l,r,c,e,t)})):Ce(l,r,c,e,t),me("cross_domain_function",{id:l,name:c})}function Ne(e,t,r,n){var i,a=n.on,o=n.send;return function(e,t){void 0===t&&(t=ve);var r=JSON.stringify(e,function(e){var r=this[e];if(Ve(this))return r;var n=fe(r);if(!n)return r;var i=t[n]||be[n];return i?i(r,e):r});return void 0===r?"undefined":r}(r,((i={}).promise=function(r,n){return i=r,me("cross_domain_zalgo_promise",{then:Re(e,t,function(e,t){return i.then(e,t)},n,{on:(s={on:a,send:o}).on,send:s.send})});var i,s},i.function=function(r,n){return Re(e,t,r,n,{on:a,send:o})},i.object=function(e){return S(e)||Te.isProxyWindow(e)?me("cross_domain_window",Te.serialize(e,{send:o})):e},i))}function ke(e,t,r,n){var i,a=n.send;return function(e,t){if(void 0===t&&(t=Se),"undefined"!==e)return JSON.parse(e,function(e,r){if(Ve(this))return r;var n,i;if(Ve(r)?(n=r.__type__,i=r.__val__):(n=fe(r),i=r),!n)return i;var a=t[n]||Ae[n];return a?a(i,e):i})}(r,((i={}).cross_domain_zalgo_promise=function(e){return new W(e.then)},i.cross_domain_function=function(r){return n=e,i=t,s={send:a},l=(o=r).id,c=o.name,u=s.send,d=function(e){function t(){var r=arguments;return Te.toProxyWindow(n,{send:u}).awaitWindow().then(function(n){var a=Ue(n,l);if(a&&a.val!==t)return a.val.apply({source:window,origin:p()},r);var o=[].slice.call(r);return e.fireAndForget?u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!0}):u(n,"postrobot_method",{id:l,name:c,args:o},{domain:i,fireAndForget:!1}).then(function(e){return e.data.result})}).catch(function(e){throw e})}return void 0===e&&(e={}),t.__name__=c,t.__origin__=i,t.__source__=n,t.__id__=l,t.origin=i,t},(q=d()).fireAndForget=d({fireAndForget:!0}),q;var n,i,o,s,l,c,u,d,q},i.cross_domain_window=function(e){return Te.deserialize(e,{send:a})},i))}var Fe={};function we(e,t,r,n){var i=n.on,a=n.send;return W.try(function(){var n=ce().getOrSet(e,function(){return{}});return n.buffer=n.buffer||[],n.buffer.push(r),n.flush=n.flush||W.flush().then(function(){if(b(e))throw new Error("Window is closed");var r,o=Ne(e,t,((r={}).__post_robot_10_0_46__=n.buffer||[],r),{on:i,send:a});delete n.buffer;for(var s=Object.keys(Fe),l=[],c=0;c<s.length;c++){var u=s[c];try{Fe[u](e,o,t)}catch(d){l.push(d)}}if(l.length===s.length)throw new Error("All post-robot messaging strategies failed:\n\n"+l.map(function(e,t){return t+". "+Z(e)}).join("\n\n"))}),n.flush.then(function(){delete n.flush})}).then(H)}function We(e){return ae("responseListeners").get(e)}function xe(e){ae("responseListeners").del(e)}function Oe(e){return ae("erroredResponseListeners").has(e)}function Ke(e){var t=e.name,r=e.win,n=e.domain,i=ce("requestListeners");if("*"===r&&(r=null),"*"===n&&(n=null),!t)throw new Error("Name required to get request listener");for(var a=0,o=[r,le()];a<o.length;a++){var s=o[a];if(s){var l=i.get(s);if(l){var c=l[t];if(c){if(n&&"string"==typeof n){if(c[n])return c[n];if(c.__domain_regex__)for(var u=0,d=c.__domain_regex__;u<d.length;u++){var p=d[u],q=p.listener;if(A(p.regex,n))return q}}if(c["*"])return c["*"]}}}}}function Ie(e,t,r,n){var i=n.on,a=n.send,o=Ke({name:r.name,win:e,domain:t}),s="postrobot_method"===r.name&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function l(n,o,l){return W.flush().then(function(){if(!r.fireAndForget&&!b(e))try{return we(e,t,{id:L(),origin:p(window),type:"postrobot_message_response",hash:r.hash,name:r.name,ack:n,data:o,error:l},{on:i,send:a})}catch(c){throw new Error("Send response message failed for "+s+" in "+p()+"\n\n"+Z(c))}})}return W.all([W.flush().then(function(){if(!r.fireAndForget&&!b(e))try{return we(e,t,{id:L(),origin:p(window),type:"postrobot_message_ack",hash:r.hash,name:r.name},{on:i,send:a})}catch(n){throw new Error("Send ack message failed for "+s+" in "+p()+"\n\n"+Z(n))}}),W.try(function(){if(!o)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);return o.handler({source:e,origin:t,data:r.data})}).then(function(e){return l("success",e)},function(e){return l("error",null,e)})]).then(H).catch(function(e){if(o&&o.handleError)return o.handleError(e);throw e})}function De(e,t,r){if(!Oe(r.hash)){var n=We(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!A(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(i){n.promise.reject(i)}n.ack=!0}}function Le(e,t,r){if(!Oe(r.hash)){var i,a=We(r.hash);if(!a)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!A(a.domain,t))throw new Error("Response origin "+t+" does not match domain "+(i=a.domain,Array.isArray(i)?"("+i.join(" | ")+")":n(i)?"RegExp("+i.toString()+")":i.toString()));if(e!==a.win)throw new Error("Response source does not match registered window");xe(r.hash),"error"===r.ack?a.promise.reject(r.error):"success"===r.ack&&a.promise.resolve({source:e,origin:t,data:r.data})}}function Pe(e,t){var r=t.on,n=t.send,i=ae("receivedMessages");try{if(!window||window.closed||!e.source)return}catch(u){return}var a=e.source,o=e.origin,s=function(e,t,r,n){var i,a=n.on,o=n.send;try{i=ke(t,r,e,{on:a,send:o})}catch(u){return}if(i&&"object"==typeof i&&null!==i){var s=i.__post_robot_10_0_46__;if(Array.isArray(s))return s}}(e.data,a,o,{on:r,send:n});if(s){he(a);for(var l=0;l<s.length;l++){var c=s[l];if(i.has(c.id))return;if(i.set(c.id,!0),b(a)&&!c.fireAndForget)return;0===c.origin.indexOf("file:")&&(o="file://");try{"postrobot_message_request"===c.type?Ie(a,o,c,{on:r,send:n}):"postrobot_message_response"===c.type?Le(a,o,c):"postrobot_message_ack"===c.type&&De(a,o,c)}catch(u){setTimeout(function(){throw u},0)}}}}function Be(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof(t=t||{})&&(r=t,t={}),!r)throw new Error("Expected handler");var n=function e(t,r){var n=t.name,i=t.win,a=t.domain,o=ce("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(i&&"*"!==i&&Te.isProxyWindow(i)){var s=i.awaitWindow().then(function(t){return e({name:n,win:t,domain:a},r)});return{cancel:function(){s.then(function(e){return e.cancel()},H)}}}var l=i;if(Array.isArray(l)){for(var c=[],u=0,d=l;u<d.length;u++)c.push(e({name:n,domain:a,win:d[u]},r));return{cancel:function(){for(var e=0;e<c.length;e++)c[e].cancel()}}}if(Array.isArray(a)){for(var p=[],q=0,h=a;q<h.length;q++)p.push(e({name:n,win:l,domain:h[q]},r));return{cancel:function(){for(var e=0;e<p.length;e++)p[e].cancel()}}}var V=Ke({name:n,win:l,domain:a});l&&"*"!==l||(l=le());var f=(a=a||"*").toString();if(V)throw l&&a?new Error("Request listener already exists for "+n+" on domain "+a.toString()+" for "+(l===le()?"wildcard":"specified")+" window"):l?new Error("Request listener already exists for "+n+" for "+(l===le()?"wildcard":"specified")+" window"):a?new Error("Request listener already exists for "+n+" on domain "+a.toString()):new Error("Request listener already exists for "+n);var m,g,b=o.getOrSet(l,function(){return{}}),v=Q(b,n,function(){return{}});return z(a)?(m=Q(v,"__domain_regex__",function(){return[]})).push(g={regex:a,listener:r}):v[f]=r,{cancel:function(){delete v[f],g&&(m.splice(m.indexOf(g,1)),m.length||delete v.__domain_regex__),Object.keys(v).length||delete b[n],l&&!Object.keys(b).length&&o.del(l)}}}({name:e,win:t.window,domain:t.domain||"*"},{handler:r||t.handler,handleError:t.errorHandler||function(e){throw e}});return{cancel:function(){n.cancel()}}}function Xe(e,t,r){"function"==typeof(t=t||{})&&(r=t,t={});var n,i=new W;return t.errorHandler=function(e){n.cancel(),i.reject(e)},n=Be(e,t,function(e){if(n.cancel(),i.resolve(e),r)return r(e)}),i.cancel=n.cancel,i}Fe.postrobot_post_message=function(e,t,r){0===r.indexOf("file:")&&(r="*"),e.postMessage(t,r)};var Me=function e(t,r,n,i){var a=(i=i||{}).domain||"*",o=i.timeout||-1,s=i.timeout||5e3,c=i.fireAndForget||!1;return Te.toProxyWindow(t,{send:e}).awaitWindow().then(function(t){return W.try(function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if("string"!=typeof r&&!Array.isArray(r)&&!z(r))throw new TypeError("Can not send "+e+". Expected domain "+JSON.stringify(r)+" to be a string, array, or regex");if(b(t))throw new Error("Can not send "+e+". Target window is closed")}(r,t,a),function(e,t){var r=v(t);if(r)return r===e;if(t===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(i){}if(l(e)===e)return e;try{if(V(window,e)&&window.top)return window.top}catch(i){}try{if(V(e,window)&&window.top)return window.top}catch(i){}for(var t=0,r=function e(t){for(var r=[],n=0,i=f(t);n<i.length;n++){var a=i[n];r.push(a);for(var o=0,s=e(a);o<s.length;o++)r.push(s[o])}return r}(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(i){}if(l(n)===n)return n}}(t)===t)return!1;for(var n=0,i=f(e);n<i.length;n++)if(i[n]===t)return!0;return!1}(window,t))return function(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n,i=(n=e,ce("helloPromises").getOrSet(n,function(){return new W}));return-1!==t&&(i=i.timeout(t,new Error(r+" did not load after "+t+"ms"))),i}(t,s)}).then(function(r){return n=t,i=a,o=(void 0===r?{}:r).domain,s=e,W.try(function(){return"string"==typeof i?i:W.try(function(){return o||pe(n,{send:s}).then(function(e){return e.domain})}).then(function(e){if(!A(i,i))throw new Error("Domain "+Y(i)+" does not match "+Y(i));return e})});var n,i,o,s}).then(function(i){var a,s,l,u,d=i,q="postrobot_method"===r&&n&&"string"==typeof n.name?n.name+"()":r,h=new W,V=r+"_"+L();if(!c){var f={name:r,win:t,domain:d,promise:h};l=V,u=f,ae("responseListeners").set(l,u);var m=ce("requestPromises").getOrSet(t,function(){return[]});m.push(h),h.catch(function(){!function(e){ae("erroredResponseListeners").set(e,!0)}(V),xe(V)});var g=(s=t,ce("knownWindows").get(s,!1)?1e4:2e3),v=o,A=g,S=v,y=(function e(){a=setTimeout(function(){b(t)?h.reject(new Error("Window closed for "+r+" before "+(f.ack?"response":"ack"))):f.cancelled?h.reject(new Error("Response listener was cancelled for "+r)):(A=Math.max(A-500,0),-1!==S&&(S=Math.max(S-500,0)),f.ack||0!==A?0===S&&h.reject(new Error("No response for postMessage "+q+" in "+p()+" in "+v+"ms")):h.reject(new Error("No ack for postMessage "+q+" in "+p()+" in "+g+"ms"))),e()},500)}(),{cancel:function(){clearTimeout(a)}});h.finally(function(){y.cancel(),m.splice(m.indexOf(h,1))}).catch(H)}return we(t,d,{id:L(),origin:p(window),type:"postrobot_message_request",hash:V,name:r,data:n,fireAndForget:c},{on:Be,send:e}).then(function(){return c?h.resolve():h},function(e){throw new Error("Send request message failed for "+q+" in "+p()+"\n\n"+Z(e))})})})};function je(e,t,r){return Ne(e,t,r,{on:Be,send:Me})}function Ge(e,t,r){return ke(e,t,r,{send:Me})}function He(e){return new Te({send:Me,win:e})}function Ze(e){return Te.toProxyWindow(e,{send:Me})}function Ye(){var e,t,r,n,i,a,o;ne().initialized||(ne().initialized=!0,i=(n={on:Be,send:Me}).on,a=n.send,(o=ne()).receiveMessage=o.receiveMessage||function(e){return Pe(e,{on:i,send:a})},t=(e={on:Be,send:Me}).on,r=e.send,ae().getOrSet("postMessageListener",function(){return e=window,n=function(e){var n,i,a,o;n=e,a=(i={on:t,send:r}).on,o=i.send,W.try(function(){var e=n.source||n.sourceElement,t=n.origin||n.originalEvent&&n.originalEvent.origin,r=n.data;if("null"===t&&(t="file://"),e){if(!t)throw new Error("Post message did not have origin domain");Pe({source:e,origin:t,data:r},{on:a,send:o})}})},e.addEventListener("message",n),{cancel:function(){e.removeEventListener("message",n)}};var e,n}),function(e){var t=e.on,r=e.send;ae("builtinListeners").getOrSet("helloListener",function(){var e=t("postrobot_hello",{domain:"*"},function(e){return de(e.source,{domain:e.origin}),{instanceID:ue()}}),n=v();return n&&pe(n,{send:r}).catch(function(e){}),e})}({on:Be,send:Me}))}function ze(){var e;!function(){for(var e=ae("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],i=e.get(n);i&&(i.cancelled=!0),e.del(n)}}(),(e=ae().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_46__}var Qe=!0;function Je(e){for(var t=0,r=ce("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window "+(b(e)?"closed":"cleaned up")+" before response")).catch(H)}Ye()}]);var Zp=Hp.exports;!function(e){e.exports=Zp,e.exports.default=e.exports}(Gp);const Yp=q(Gp.exports),zp=e=>{const{data:n,buttonText:i,codeTestURL:a=Dp,codeplayerURL:o=Lp,toRunCodeQuestion:s}=e,{verifyMode:l="",content:c="",topic:u,example:d,lang:p,cases:q}=n;t.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const h=t.useRef(null);return v.jsx("div",{className:"question-preview",children:v.jsx("div",{className:"content",children:v.jsx("div",{className:"preview-container",children:v.jsx("div",{className:"preview",children:v.jsxs("div",{className:"preview-content",children:[v.jsx(Mp,{score:n.score,type:n.type,difficulty:n.difficulty,currentIndex:null==n?void 0:n.currentIndex,questionsCount:null==n?void 0:n.questionsCount}),u&&v.jsx("div",{className:"topic",children:u}),c.trim()?v.jsx(Kp,{editorHeight:"fit-content",readOnly:!0,isBorder:!1,defaultValue:c,noPadding:!0}):v.jsx("p",{}),v.jsx(r.Button,{className:"submitBtn",onClick:()=>{if(s)s();else if(l===mp.INPUT_OUTPUT){const e=window.open(a),t=null==q?void 0:q.map(({input:e,output:t})=>Array.isArray(e)?{input:e,output:t}:{input:[e],output:t});Yp.send(e,"send",{title:u,content:c,initCode:d,code:d,lang:null==p?void 0:p.toLocaleLowerCase(),cases:t,submitCases:t,noSubmit:!0,aiEnabled:!0})}else{const e=window.open(`${o}`),t=()=>{let t=[d];if("html"===n.lang&&d)try{const e=JSON.parse(d);t=[e.html??"",e.css??"",e.js??""]}catch(r){}Yp.send(e,"send",{title:u,content:c,lang:null==p?void 0:p.toLocaleLowerCase(),code:t,aiEnabled:!0,run:!1,dark:!0})};t(),Yp.on("refresh",{window:e},async function(){h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{(null==e?void 0:e.closed)||t()},500)}),Yp.on("change",{window:e},e=>{})}},type:"primary",style:{minWidth:"88px"},children:i||"去答题"})]})})})})})},{TextArea:Qp}=r.Input,Jp=e=>{const{status:n,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,{answerOption:l,userAnswer:c,topic:u}=i,[d,p]=t.useState([]),[q,h]=t.useState(),[V,f]=t.useState(!1),m=e=>{if(g&&!e)return void r.message.warning("请先进行填空!");if(V&&!e)return void(null==s||s());const t=e||d,n=null==l?void 0:l.every((e,r)=>{var n;return(null==e?void 0:e.answer)===(null==(n=t[r])?void 0:n.answer)});h(n),f(!0),!e&&(null==a||a(t))},g=t.useMemo(()=>d.every(e=>!(null==e?void 0:e.answer)),[d]);return t.useEffect(()=>{let e;"string"==typeof c&&(e=up(c));const t=(e||c||l||[]).map(e=>({answer:n===gp.ADD||c?null==e?void 0:e.answer:void 0}))??[];p(t),c&&m(t)},[n,c,l]),v.jsxs("div",{className:"completion",children:[v.jsx("div",{className:"completion-title",children:v.jsxs("div",{className:"completion-title-content",children:[v.jsx(Mp,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),v.jsx(Kp,{isBorder:!1,defaultValue:u.indexOf("<code")>-1?u.replace(/<code[^>]*>|<\/code>/g,""):u,readOnly:!0,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),v.jsx("div",{className:"completion-content",children:null==d?void 0:d.map((e,t)=>{var r,i,a;return v.jsxs("div",{className:"item-warpper",children:[v.jsxs("div",{className:"completion-content-item",children:[v.jsxs("span",{children:["填空",t+1]}),v.jsx(Qp,{style:{resize:"none"},placeholder:n===gp.EXAM||n===gp.PREVIEW?"请输入答案":"",disabled:n===gp.ADD||V,autoSize:{maxRows:3},value:null==e?void 0:e.answer,onChange:e=>((e,t)=>{h(void 0),f(!1);const r=e.target.value,n=[...d];n[t].answer=r,p(n)})(e,t)})]}),V&&v.jsx("div",{className:"item-result "+((null==e?void 0:e.answer)===(null==(r=l[t])?void 0:r.answer)?"right":"error"),children:(null==e?void 0:e.answer)===(null==(i=l[t])?void 0:i.answer)?v.jsxs("span",{children:[v.jsx(ze,{})," 正确"]}):v.jsxs("span",{children:[v.jsx(nt,{})," 错误, ",v.jsxs("span",{className:"answer",children:["正确答案:",null==(a=l[t])?void 0:a.answer]})]})})]},String(t))})}),a&&v.jsx("div",{className:"submit-btn",children:v.jsx(r.Button,{type:"primary",onClick:()=>m(),children:o||(V?"下一题":"提交")})})]})},_p=e=>{const{status:n=gp.EXAM,data:i,onSubmit:a,buttonText:o,onNextQuestion:s}=e,[l,c]=t.useState(),[u,d]=t.useState(!1),p=t.useRef(null);t.useEffect(()=>{i.userAnswer&&(c(i.userAnswer),q(i.userAnswer))},[i]);const q=e=>{if(u&&!e)return void(null==s||s());const t=e||l;t?(d(!0),!e&&a&&a(t)):r.message.warning("请输入答案!")},h=[];return[gp.ADD,gp.MARK].includes(n)&&i&&(i.answer&&h.push({key:"1",label:v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{fontWeight:"bold"},children:"参考答案"}),v.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:v.jsx(Kp,{readOnly:!0,isBorder:!1,defaultValue:i.answer,autoHeight:{min:0,max:1e4}})}),i.judgeNorm&&h.push({key:"2",label:v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{fontWeight:"bold"},children:"判分标准"}),v.jsx("span",{style:{fontSize:"12px",color:"#999999"},children:"(学生不可见)"})]}),children:v.jsx(Kp,{readOnly:!0,defaultValue:i.judgeNorm,isBorder:!1,autoHeight:{min:0,max:1e4}})})),v.jsxs("div",{className:"essay-question",children:[v.jsx("div",{className:"essay-question-title",children:v.jsxs("div",{className:"essay-question-title-content",children:[v.jsx(Mp,{score:i.score,type:i.type,difficulty:i.difficulty,currentIndex:null==i?void 0:i.currentIndex,questionsCount:null==i?void 0:i.questionsCount}),v.jsx(Kp,{defaultValue:null==i?void 0:i.topic,readOnly:!0,isBorder:!1,autoHeight:{min:0,max:1e5},noPadding:!0})]})}),v.jsxs("div",{className:"essay-question-content",children:[[gp.MARK,gp.VIEW,gp.EXAM,gp.PREVIEW].includes(n)&&v.jsx(Kp,{ref:p,readOnly:n===gp.ADD||n===gp.MARK||n===gp.VIEW,editorHeight:220,defaultValue:(null==i?void 0:i.userAnswer)||"",placeholder:n===gp.EXAM||n===gp.PREVIEW?"请输入回答":"",onChange:e=>{c(e)},customToolbarKeys:["undo","redo","fullScreen","|","headerSelect","bold",{key:"group-image",title:"图片",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},"insertTable"],uploadImageLimit:e=>e.size>3145728&&(r.message.destroy(),r.message.warning("仅能上传大小为3MB内的图片噢~"),!0)}),[gp.ADD,gp.MARK].includes(n)&&v.jsx(r.Collapse,{defaultActiveKey:n===gp.ADD?["1","2"].filter(e=>!("1"===e&&!(null==i?void 0:i.answer)||"2"===e&&!(null==i?void 0:i.judgeNorm))):[],ghost:!0,expandIcon:({isActive:e})=>v.jsx(Ge,{rotate:e?90:0}),items:h})]}),a&&v.jsx("div",{className:"submit-btn",children:v.jsx(r.Button,{type:"primary",onClick:()=>q(),children:o||u?"下一题":"提交"})})]})},$p=t.forwardRef((e,r)=>{const{data:n,questionProps:i={}}=e,{onSubmit:a,onNextQuestion:o,buttonText:s="",showQuestionTip:l=!1,showResult:c,status:u=gp.PREVIEW,className:d="",styles:p={},uploadImg:q,codeTestURL:h,codeplayerURL:V,unknowQesutionRender:f,toRunCodeQuestion:m}=i,g=t.useMemo(()=>{const e={...n},{optionJson:t,type:r}=n;return!t||r!==fp.ACM&&r!==fp.CCM||(e.lang=null==t?void 0:t.defaultLanguage),e},[n]),b=e=>v.jsx(xp.Provider,{value:{topProps:{uploadImg:q}},children:v.jsx("div",{className:`question-wrapper ${d}`,style:{...p},children:e})}),A={data:g,onSubmit:a,buttonText:s,status:u,onNextQuestion:o};switch(g.type){case fp.RADIO:case fp.CHECKBOX:return(()=>{const e=v.jsx(jp,{showQuestionTip:l,showResult:c,...A});return b(e)})();case fp.ACM:case fp.CCM:return(()=>{const e=v.jsx(zp,{codeTestURL:h,codeplayerURL:V,toRunCodeQuestion:m,...A});return b(e)})();case fp.COMPLETION:return(()=>{const e=v.jsx(Jp,{showResult:c,...A});return b(e)})();case fp.ANSWER:return(()=>{const e=v.jsx(_p,{...A});return b(e)})();default:return f?f(g):v.jsx("div",{children:"未知题型"})}});var eq={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function tq(e){eq=e}var rq={exec:()=>null};function nq(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(iq.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var iq={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},aq=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,oq=/(?:[*+-]|\d{1,9}[.)])/,sq=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lq=nq(sq).replace(/bull/g,oq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),cq=nq(sq).replace(/bull/g,oq).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uq=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dq=/(?!\s*\])(?:\\.|[^\[\]\\])+/,pq=nq(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dq).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qq=nq(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,oq).getRegex(),hq="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Vq=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fq=nq("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Vq).replace("tag",hq).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mq=nq(uq).replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex(),gq={blockquote:nq(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mq).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:pq,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:aq,html:fq,lheading:lq,list:qq,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:mq,table:rq,text:/^[^\n]+/},bq=nq("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex(),vq={...gq,lheading:cq,table:bq,paragraph:nq(uq).replace("hr",aq).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bq).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",hq).getRegex()},Aq={...gq,html:nq("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Vq).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rq,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nq(uq).replace("hr",aq).replace("heading"," *#{1,6} *[^\n]").replace("lheading",lq).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Sq=/^( {2,}|\\)\n(?!\s*$)/,yq=/[\p{P}\p{S}]/u,Eq=/[\s\p{P}\p{S}]/u,Tq=/[^\s\p{P}\p{S}]/u,Cq=nq(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Eq).getRegex(),Uq=/(?!~)[\p{P}\p{S}]/u,Rq=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Nq=nq(Rq,"u").replace(/punct/g,yq).getRegex(),kq=nq(Rq,"u").replace(/punct/g,Uq).getRegex(),Fq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wq=nq(Fq,"gu").replace(/notPunctSpace/g,Tq).replace(/punctSpace/g,Eq).replace(/punct/g,yq).getRegex(),Wq=nq(Fq,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Uq).getRegex(),xq=nq("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tq).replace(/punctSpace/g,Eq).replace(/punct/g,yq).getRegex(),Oq=nq(/\\(punct)/,"gu").replace(/punct/g,yq).getRegex(),Kq=nq(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Iq=nq(Vq).replace("(?:--\x3e|$)","--\x3e").getRegex(),Dq=nq("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Iq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Lq=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Pq=nq(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Lq).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bq=nq(/^!?\[(label)\]\[(ref)\]/).replace("label",Lq).replace("ref",dq).getRegex(),Xq=nq(/^!?\[(ref)\](?:\[\])?/).replace("ref",dq).getRegex(),Mq={_backpedal:rq,anyPunctuation:Oq,autolink:Kq,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:Sq,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:rq,emStrongLDelim:Nq,emStrongRDelimAst:wq,emStrongRDelimUnd:xq,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Pq,nolink:Xq,punctuation:Cq,reflink:Bq,reflinkSearch:nq("reflink|nolink(?!\\()","g").replace("reflink",Bq).replace("nolink",Xq).getRegex(),tag:Dq,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:rq},jq={...Mq,link:nq(/^!?\[(label)\]\((.*?)\)/).replace("label",Lq).getRegex(),reflink:nq(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Lq).getRegex()},Gq={...Mq,emStrongRDelimAst:Wq,emStrongLDelim:kq,url:nq(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Hq={...Gq,br:nq(Sq).replace("{2,}","*").getRegex(),text:nq(Gq.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zq={normal:gq,gfm:vq,pedantic:Aq},Yq={normal:Mq,gfm:Gq,breaks:Hq,pedantic:jq},zq={"&":"&","<":"<",">":">",'"':""","'":"'"},Qq=e=>zq[e];function Jq(e,t){if(t){if(iq.escapeTest.test(e))return e.replace(iq.escapeReplace,Qq)}else if(iq.escapeTestNoEncode.test(e))return e.replace(iq.escapeReplaceNoEncode,Qq);return e}function _q(e){try{e=encodeURI(e).replace(iq.percentDecode,"%")}catch{return null}return e}function $q(e,t){var r;let n=e.replace(iq.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(iq.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(iq.slashPipe,"|");return n}function eh(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function th(e,t,r,n,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var rh=class{constructor(e){l(this,"options"),l(this,"rules"),l(this,"lexer"),this.options=e||eq}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eh(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eh(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eh(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eh(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,a=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),a=!0;else{if(a)break;o.push(e[t])}e=e.slice(t);let s=o.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.blockquote(a);i[i.length-1]=o,r=r.substring(0,r.length-t.raw.length)+o.raw,n=n.substring(0,n.length-t.text.length)+o.text;break}if("list"===(null==u?void 0:u.type)){let t=u,a=t.raw+"\n"+e.join("\n"),o=this.list(a);i[i.length-1]=o,r=r.substring(0,r.length-u.raw.length)+o.raw,n=n.substring(0,n.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;e;){let r=!1,n="",s="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,s=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let p,q=e.split("\n",1)[0];if(c=q,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||t.test(c)||r.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())s+="\n"+p.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),n+=q+"\n",e=e.substring(q.length+1),l=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let p,q=null;this.options.gfm&&(q=this.rules.other.listIsTask.exec(s),q&&(p="[ ] "!==q[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:n,task:!!q,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=$q(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push($q(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eh(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),th(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return th(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,a=[...n[0]].length-1,o=a,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&a%3&&!((a+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);let t=[...n[0]][0].length,l=e.slice(0,a+n.index+t+i);if(Math.min(a,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let i;do{i=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(i!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},nh=class e{constructor(e){l(this,"tokens"),l(this,"options"),l(this,"state"),l(this,"tokenizer"),l(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eq,this.options.tokenizer=this.options.tokenizer||new rh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:iq,block:Zq.normal,inline:Yq.normal};this.options.pedantic?(t.block=Zq.pedantic,t.inline=Yq.pedantic):this.options.gfm&&(t.block=Zq.gfm,this.options.breaks?t.inline=Yq.breaks:t.inline=Yq.gfm),this.tokenizer.rules=t}static get rules(){return{block:Zq,inline:Yq}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(iq.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,i,a;for(this.options.pedantic&&(e=e.replace(iq.tabCharGlobal," ").replace(iq.spaceLine,""));e;){let o;if(null==(i=null==(n=this.options.extensions)?void 0:n.block)?void 0:i.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let r=t.at(-1);1===o.raw.length&&void 0!==r?r.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(s=e.substring(0,r+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o),r=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,i;let a=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;e;){let o;if(s||(l=""),s=!1,null==(n=null==(r=this.options.extensions)?void 0:r.inline)?void 0:n.some(r=>!!(o=r.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let r=t.at(-1);"text"===o.type&&"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,a,l)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let c=e;if(null==(i=this.options.extensions)?void 0:i.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(c=e.substring(0,r+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(l=o.raw.slice(-1)),s=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=o.raw,r.text+=o.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},ih=class{constructor(e){l(this,"options"),l(this,"parser"),this.options=e||eq}space(e){return""}code({text:e,lang:t,escaped:r}){var n;let i=null==(n=(t||"").match(iq.notSpaceStart))?void 0:n[0],a=e.replace(iq.endingNewline,"")+"\n";return i?'<pre><code class="language-'+Jq(i)+'">'+(r?a:Jq(a,!0))+"</code></pre>\n":"<pre><code>"+(r?a:Jq(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let a=0;a<e.items.length;a++){let t=e.items[a];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){var t;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Jq(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Jq(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=_q(e);if(null===i)return n;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+Jq(t)+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=_q(e);if(null===i)return Jq(r);let a=`<img src="${e=i}" alt="${r}"`;return t&&(a+=` title="${Jq(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Jq(e.text)}},ah=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},oh=class e{constructor(e){l(this,"options"),l(this,"renderer"),l(this,"textRenderer"),this.options=e||eq,this.options.renderer=this.options.renderer||new ih,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ah}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=o;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,n=this.renderer.text(r);for(;a+1<e.length&&"text"===e[a+1].type;)r=e[++a],n+="\n"+this.renderer.text(r);i+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var r,n;let i="";for(let a=0;a<e.length;a++){let o=e[a];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=e||"";continue}}let s=o;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return i}},sh=(o=class{constructor(e){l(this,"options"),l(this,"block"),this.options=e||eq}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?nh.lex:nh.lexInline}provideParser(){return this.block?oh.parse:oh.parseInline}},l(o,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),o),lh=new class{constructor(...e){l(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),l(this,"options",this.setOptions),l(this,"parse",this.parseMarkdown(!0)),l(this,"parseInline",this.parseMarkdown(!1)),l(this,"Parser",oh),l(this,"Renderer",ih),l(this,"TextRenderer",ah),l(this,"Lexer",nh),l(this,"Tokenizer",rh),l(this,"Hooks",sh),this.use(...e)}walkTokens(e,t){var r,n;let i=[];for(let a of e)switch(i=i.concat(t.call(this,a)),a.type){case"table":{let e=a;for(let r of e.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=a;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=a;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new ih(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new rh(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],a=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new sh;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],a=t[n];sh.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let r=i.call(t,e);return a.call(t,r)}:t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=a.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nh.lex(e,t??this.defaults)}parser(e,t){return oh.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?nh.lex:nh.lexInline,s=i.hooks?i.hooks.provideParser():e?oh.parse:oh.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let r=s(e,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(l){return a(l)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Jq(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ch(e,t){return lh.parse(e,t)}ch.options=ch.setOptions=function(e){return lh.setOptions(e),ch.defaults=lh.defaults,tq(ch.defaults),ch},ch.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},ch.defaults=eq,ch.use=function(...e){return lh.use(...e),ch.defaults=lh.defaults,tq(ch.defaults),ch},ch.walkTokens=function(e,t){return lh.walkTokens(e,t)},ch.parseInline=lh.parseInline,ch.Parser=oh,ch.parser=oh.parse,ch.Renderer=ih,ch.TextRenderer=ah,ch.Lexer=nh,ch.lexer=nh.lex,ch.Tokenizer=rh,ch.Hooks=sh,ch.parse=ch,ch.options,ch.setOptions,ch.use,ch.walkTokens,ch.parseInline,oh.parse,nh.lex;const uh=t.forwardRef((e,n)=>{const{envStatus:i,podName:a,runnerBaseUrl:o}=t.useContext(Cx),{data:s,hasTitle:l=!0,toScore:c,errorHanle:u,codeChange:d}=e,p=t.useRef(null),[q,h]=t.useState(!0),[V,f]=t.useState(!1),m=dp(e=>{null==d||d(e.code)}),g=t.useRef(null);return t.useEffect(()=>(f(!1),h(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{f(!0)},1e3),()=>{g.current&&clearTimeout(g.current)}),[s]),t.useImperativeHandle(n,()=>({toInstallPackage:e=>{var t,r;(null==(t=p.current)?void 0:t.contentWindow)&&Yp.send(null==(r=p.current)?void 0:r.contentWindow,"vgenPackages",{packages:e})}})),v.jsx(r.Spin,{spinning:q,children:v.jsx("div",{className:"codePlayer",children:v.jsx("div",{className:"codePlayerContent",style:{height:l?"":"100%"},children:V&&v.jsx("iframe",{ref:p,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${o||"https://run.cloudlab.top"}/embedded?fromVgen=true`,style:{border:"none"},title:"CodeRunner",className:"CodeRunner-iframe",onLoad:async()=>{var e,t,n,o;try{h(!1);const d=null==(e=p.current)?void 0:e.contentWindow,{topic:q="",content:V="",lang:f="",code:g="",cases:b=[],css:v="",js:A=""}=s;let S=V;try{S=ch.parse(V)}catch(l){}let y=[];if("html"===f)if(v||A)y=[g,v||"",A||""];else try{const e=JSON.parse(g);y=[e.html,e.css,e.js]}catch(l){}"html"!==f||y.length||(y=[g,"",""]);let E={...s};const T={title:q,content:S,lang:f,code:"html"===f?y:g,aiEnabled:!1,run:!1,cases:b,customButtons:c?[{name:"提交",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]};i&&a&&(T.podName=a,T.nameSpace="pty-prod"),Yp.send(d,"send",T),c&&Yp.on("submit",{window:d},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),c(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),Yp.on("change",{window:null==(t=p.current)?void 0:t.contentWindow},async function(e){var t,r,n,i,a;if("html"===f)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};E.code=JSON.stringify(i)}catch(l){E.code=(null==(i=e.data)?void 0:i[0])??""}else E.code=(null==(a=e.data)?void 0:a[0])??"";m(E)}),Yp.on("errorHandle",{window:null==(n=p.current)?void 0:n.contentWindow},async function(e){var t,r,n;null==u||u({lang:null==(t=e.data)?void 0:t.lang,code:null==(r=e.data)?void 0:r.code,error:null==(n=e.data)?void 0:n.error})}),Yp.on("getToken",{window:null==(o=p.current)?void 0:o.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(l){}}})})})})}),dh=e=>{const{data:n,hasTitle:i=!0,toScore:a,codeChange:o}=e,{quizBaseUrl:s}=t.useContext(Cx),l=t.useRef(null),[c,u]=t.useState(!0),[d,p]=t.useState(!1),q=dp(e=>{null==o||o(e.code)}),h=t.useRef(null);return t.useEffect(()=>(p(!1),u(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{p(!0)},1e3),()=>{h.current&&clearTimeout(h.current)}),[n]),v.jsx(r.Spin,{spinning:c,children:v.jsxs("div",{className:"codeQuiz",children:[i&&v.jsx("div",{className:"codeQuizTitle",children:"CodeQuiz"}),v.jsx("div",{className:"codeQuizContent",style:{height:i?"":"100%"},children:d&&v.jsx("iframe",{ref:l,allowFullScreen:!0,allow:"clipboard-write;clipboard-read",src:`${s||"https://quiz.cloudlab.top"}`,style:{border:"none"},title:"CodeQuiz",className:"codeQuiz-iframe",onLoad:async()=>{var e,t,i;try{u(!1);const s=null==(e=l.current)?void 0:e.contentWindow,{topic:c="",content:d="",lang:p="",code:h="",cases:V=[]}=n;let f=V;f=V.map(e=>"string"==typeof e.input?{...e,input:up(e.input)||[]}:{...e});let m=d;try{m=ch.parse(d)}catch(o){}let g={...n};Yp.send(s,"send",{title:c,content:m,lang:p,code:h,cases:f,aiEnabled:!1,run:!1,customButtons:a?[{name:"判分",value:"submit",style:{background:"#0064ff",color:"#ffffff"}}]:[]}),a&&Yp.on("submit",{window:s},async function(e){var t,n;(null==(t=e.data)?void 0:t.code)?(r.message.success("提交成功,AI开始自动评分..."),a(null==(n=e.data)?void 0:n.code)):r.message.warning("请先作答!")}),Yp.on("change",{window:null==(t=l.current)?void 0:t.contentWindow},async function(e){var t,r,n,i;if("html"===p)try{const i={html:(null==(t=e.data)?void 0:t[0])??"",css:(null==(r=e.data)?void 0:r[1])??"",js:(null==(n=e.data)?void 0:n[2])??""};g.code=JSON.stringify(i)}catch(o){g.code=(null==(i=e.data)?void 0:i[0])??""}else g.code=e.data??"";q(g)}),Yp.on("getToken",{window:null==(i=l.current)?void 0:i.contentWindow},async e=>({token:localStorage.getItem("token")}))}catch(o){}}})})]})})};var ph={exports:{}};
|
|
27
27
|
/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var a in e)t.call(e,a)&&e[a]&&(n=i(n,a));return n}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(ph);const qh=q(ph.exports),hh=e=>{const{title:t,content:n,cancelText:i,okText:a,onOk:o,onCancel:s,onCancelCallback:l,footer:c=!0,contentType:u="center",noIcon:d=!1,blackMode:p=!1}=e;return v.jsx("div",{children:v.jsxs(r.Modal,{...e,title:null,footer:null,classNames:{container:qh("vgenModal","left"===u&&"modalLeft",p&&"blackMode")},className:qh("modalWrapper",p&&"blackMode"),children:[v.jsxs("div",{className:qh("modalContent","center"===u&&"modalContentCenter"),children:[t&&v.jsxs("div",{className:qh("modalTitle","left"===u&&"modalTitleLeft"),children:[!d&&v.jsx("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e注意%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='解析合集'%20transform='translate(-347.000000,%20-127.000000)'%20fill-rule='nonzero'%3e%3cg%20id='编组-5'%20transform='translate(347.000000,%20125.000000)'%3e%3cg%20id='注意'%20transform='translate(0.000000,%202.000000)'%3e%3cpath%20d='M0,9%20C0,12.2153903%201.71539025,15.1865334%204.5,16.7942286%20C7.28460967,18.4019238%2010.7153903,18.4019238%2013.5,16.7942286%20C16.2846097,15.1865334%2018,12.2153903%2018,9%20C18,4.02943722%2013.9705627,0%209,0%20C4.02943725,0%200,4.02943722%200,9%20Z'%20id='路径'%20fill='%230064FF'%3e%3c/path%3e%3cpath%20d='M9,13.090909%20C9.29230822,13.090909%209.56241216,13.2468535%209.70856628,13.4999999%20C9.8547204,13.7531462%209.8547204,14.0650354%209.70856628,14.3181817%20C9.56241216,14.5713281%209.29230822,14.7272726%209,14.7272726%20C8.54813066,14.7272726%208.18181818,14.3609601%208.18181818,13.9090908%20C8.18181818,13.4572215%208.54813066,13.090909%209,13.090909%20L9,13.090909%20Z%20M9,3.27272725%20C9.45186934,3.27272725%209.81818182,3.63903972%209.81818182,4.09090906%20L9.81818182,11.0454545%20C9.81818182,11.4973238%209.45186934,11.8636363%209,11.8636363%20C8.54813066,11.8636363%208.18181818,11.4973238%208.18181818,11.0454545%20L8.18181818,4.09090906%20C8.18181818,3.63903972%208.54813066,3.27272725%209,3.27272725%20L9,3.27272725%20Z'%20id='形状'%20fill='%23FFFFFF'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"}),t]}),v.jsx("div",{className:qh("modalContentText","center"===u&&"modalContentTextCenter"),children:n})]}),c&&v.jsxs("div",{className:qh("modalFooter",p&&"blackMode"),children:[v.jsx(r.Button,{type:"primary",className:qh("btnOk",p&&"blackMode"),onClick:o,children:a}),v.jsx(r.Button,{className:qh("btnCancel",p&&"blackMode"),onClick:()=>{null==s||s(),null==l||l()},children:i})]})]})})};function Vh(e){return v.jsx("svg",{style:e.style,className:e.className,width:e.width||16,height:e.height||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2200",children:v.jsx("path",{d:"M256 170.666667a128 128 0 0 0-128 128v213.333333a42.666667 42.666667 0 1 0 85.333333 0V298.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h213.333333a42.666667 42.666667 0 1 0 0-85.333333H256z m512 682.666666a128 128 0 0 0 128-128v-170.666666a42.666667 42.666667 0 1 0-85.333333 0v170.666666a42.666667 42.666667 0 0 1-42.666667 42.666667h-192a42.666667 42.666667 0 1 0 0 85.333333H768z",fill:e.fill||"#2c2c2c","p-id":"2201"})})}function fh(e){return v.jsx("svg",{style:e.style,className:e.className,width:e.width||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5049",children:v.jsx("path",{d:"M492.288 37.632a486.2464 486.2464 0 0 1 202.3936 44.2368 479.9488 479.9488 0 0 1 115.712 75.264 468.48 468.48 0 0 1 99.9936 124.672 458.8032 458.8032 0 0 1 47.104 128.0512 451.5328 451.5328 0 0 1 4.0448 158.4128 42.496 42.496 0 0 1-14.7456 26.7776 42.3936 42.3936 0 0 1-28.5184 10.5472 42.1376 42.1376 0 0 1-30.9248-12.8 42.1376 42.1376 0 0 1-12.288-37.5296 366.08 366.08 0 0 0-7.3728-145.8176 365.1584 365.1584 0 0 0-43.264-101.5808 374.9376 374.9376 0 0 0-71.8848-85.1968 384.5632 384.5632 0 0 0-94.4128-61.3888 393.216 393.216 0 0 0-127.7952-34.4064 398.6944 398.6944 0 0 0-203.8784 34.4064 391.5264 391.5264 0 0 0-94.464 61.44 381.2352 381.2352 0 0 0-71.8336 85.1456 372.0192 372.0192 0 0 0-47.4112 119.5008 365.1584 365.1584 0 0 0 60.8256 285.7472 376.4736 376.4736 0 0 0 50.2784 57.5488l13.0048 12.1344 5.12 109.7728a6.144 6.144 0 0 0 3.072 5.0176 7.8336 7.8336 0 0 0 7.3728 0.768l114.7904-42.5472 13.8752 4.0448a399.9744 399.9744 0 0 0 40.7552 9.5744l7.0656 1.1776 4.4544 0.7168 2.3552 0.3584 7.168 0.9216 3.4304 0.4608 3.8912 0.4096a42.3424 42.3424 0 0 1 27.7504 14.336 42.3424 42.3424 0 0 1 11.1616 29.1328 42.1376 42.1376 0 0 1-12.8 30.9248 42.1376 42.1376 0 0 1-35.7888 12.544l-3.8912-0.4608-4.2496-0.512-8.2944-1.0752-3.3792-0.512-5.2736-0.8192-8.2944-1.3824a489.3696 489.3696 0 0 1-36.2496-7.936l-88.064 32.6144a90.9824 90.9824 0 0 1-85.1968-9.2672c-27.136-17.5616-41.472-42.3424-43.008-74.3936l-3.5328-74.752a467.4048 467.4048 0 0 1-74.0864-97.792 457.5232 457.5232 0 0 1-49.4592-130.9696 451.84 451.84 0 0 1 46.592-311.3472 459.264 459.264 0 0 1 83.1488-109.056A468.3264 468.3264 0 0 1 248.832 103.168 477.952 477.952 0 0 1 399.872 46.4896 484.6592 484.6592 0 0 1 492.3392 37.632z m165.7856 589.2608l79.872 245.1968h-71.168l-15.6672-56.832h-53.4016l-15.7184 56.832H512l77.6192-245.248h68.4544z m166.2464 0v245.248h-67.584v-245.248h67.584z m106.24 31.5904c5.0688 0 8.2432 2.56 9.6768 7.5776l9.984 36.0448c3.7376 13.4656 11.5712 22.272 23.552 26.368l32.6144 11.0592c4.608 1.536 6.9632 4.864 6.9632 9.9328 0 5.12-2.304 8.3968-6.9632 9.984l-32.5632 11.0592c-12.032 4.096-19.8656 12.8512-23.6032 26.368l-9.984 36.0448c-1.4336 5.0688-4.608 7.5776-9.6768 7.5776-5.0176 0-8.192-2.56-9.6256-7.5776l-9.984-36.0448c-3.7376-13.5168-11.6224-22.272-23.6032-26.368l-32.6144-11.0592c-4.608-1.536-6.912-4.864-6.912-9.984 0-5.0688 2.304-8.3968 6.912-9.9328l32.6144-11.0592c11.9808-4.096 19.8656-12.9024 23.552-26.368l10.0352-36.0448c1.3824-5.0688 4.608-7.5776 9.6256-7.5776z m-305.6128 29.4912c-4.9664 19.5072-10.24 38.9632-15.8208 58.368l-4.7104 18.8928h41.0112l-4.7104-18.8928a689.152 689.152 0 0 1-6.7072-24.6272 1065.8816 1065.8816 0 0 0-7.936-29.696 1275.2896 1275.2896 0 0 1-1.1264-4.0448zM343.04 334.336c15.7696 0 29.184 5.5808 40.3968 16.6912 11.1104 11.1616 16.6912 24.576 16.6912 40.3968V460.288c0 15.7696-5.5808 29.2352-16.6912 40.3968-11.1616 11.1616-24.6272 16.6912-40.3968 16.6912-15.7696 0-29.184-5.5296-40.3456-16.6912a54.9888 54.9888 0 0 1-16.7424-40.3968V391.424c0-15.7696 5.5808-29.2352 16.7424-40.3968 11.1104-11.1104 24.576-16.6912 40.3456-16.6912z m318.6688 0c15.7696 0 29.184 5.5808 40.3968 16.6912 11.1104 11.1616 16.6912 24.576 16.6912 40.3968V460.288c0 15.7696-5.5808 29.2352-16.6912 40.3968-11.1616 11.1616-24.576 16.6912-40.3968 16.6912-15.7696 0-29.184-5.5296-40.3456-16.6912a54.9888 54.9888 0 0 1-16.7424-40.3968V391.424c0-15.7696 5.632-29.2352 16.7424-40.3968 11.1616-11.1104 24.576-16.6912 40.3456-16.6912z",fill:e.fill||"#2c2c2c","p-id":"5050"})})}const mh=({questionsList:e,questionOperations:n,submitQuestion:i,getCodeSaveAnswer:a,createQuestionCallback:o,saveQuetionCode:s,temScoreData:l,scoreData:c,problemSloving:u,createQuestionLoading:d,createQuestionLoadingText:p,toRunCodeQuestionCallback:q,runCodeErrorCallback:h,mode:V})=>{var f,m,g,b,A;const[S,y]=t.useState(0),[E,T]=t.useState(!1),[C,U]=t.useState(),[R,N]=t.useState(),[k,W]=t.useState(!1),[x,O]=t.useState(!1),[K,I]=t.useState(!1);t.useEffect(()=>{(null==B?void 0:B.userAnswer)?O(!0):O(!1)},[S,e]);const D=t.useRef(null),L=()=>{T(!0),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{T(!1)},0)},P=e=>{const t=B,r=e||t.userAnswer,{answer:n,answerOption:i}=t;switch(t.type){case fp.CHECKBOX:case fp.RADIO:return r===n||r&&cp(null==r?void 0:r.split(","),null==n?void 0:n.split(","));case fp.COMPLETION:return null==i?void 0:i.every((e,t)=>{var n;return(null==e?void 0:e.answer)===(null==(n=null==r?void 0:r[t])?void 0:n.answer)});default:return!0}},B=t.useMemo(()=>e?e[S]:{},[S,e]),X=e=>{i(C,e)},M=e=>{null==s||s(e,C)};return v.jsx(r.Spin,{spinning:!0===d,tip:p||"题目生成中...",styles:{wrapper:{height:"vertical"===V?"calc(100% - 60px)":"100%"}},children:v.jsxs("div",{className:"questionPractice",children:[(null==e?void 0:e.length)>0?v.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:v.jsxs(r.Splitter,{style:{maxHeight:"100%"},children:[v.jsx(r.Splitter.Panel,{min:275,max:400,defaultSize:300,children:v.jsx("div",{className:"mr",style:{height:"100%"},children:v.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm overflow-y-auto h-full",children:[v.jsx("h3",{className:"font-semibold text-gray-800 mb-4",children:"题目列表"}),(null==e?void 0:e.length)>0&&v.jsx("div",{className:"space-y-3 pr-[12px] left-que-item",children:e.map((t,n)=>{var i,a,o;return v.jsxs("button",{onClick:()=>{y(n),L()},className:"w-full text-left p-4 rounded-lg border-2 transition-all "+(S===n?"border-blue-500 bg-blue-50 shadow-md":"border-gray-200 hover:border-gray-300 hover:bg-gray-50"),children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("span",{className:"w-6 h-6 rounded-full flex items-center justify-center text-xs font-medium "+(S===n?"bg-blue-600 text-white":"bg-gray-200 text-gray-600"),children:n+1}),v.jsx("div",{className:"p-1 rounded "+(S===n?"bg-blue-100":"bg-gray-100"),children:Pp(t.type)}),e[n].userAnswer&&v.jsx("div",{className:"text-xs px-2 py-1 rounded-1 font-medium text-green-500 bg-green-100}",children:"已完成"})]}),v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("span",{className:`text-xs px-2 py-1 rounded-full font-medium ${Xp(t.difficulty||"")}`,children:"low"===t.difficulty?"简单":"middle"===t.difficulty?"中等":"困难"}),t.score?v.jsxs("div",{className:"flex items-center space-x-1 text-xs text-gray-500",children:[v.jsx(z,{className:"w-3 h-3"}),v.jsx("span",{children:t.score})]}):null]})]}),v.jsx(r.Tooltip,{title:(t.topic||t.content||"").replace(/<[^>]*>/g,""),children:v.jsx("h4",{className:"font-medium text-sm mb-1 text-ellipsis line-clamp-2 "+(S===n?"text-blue-800":"text-gray-800"),children:v.jsx("span",{dangerouslySetInnerHTML:{__html:t.topic||t.content||""}})})}),v.jsxs("div",{className:"flex items-center justify-between",children:[(null==(i=null==t?void 0:t.labels)?void 0:i.length)?v.jsx("span",{className:"text-xs text-blue-600 bg-blue-100 px-2 py-1 rounded-full",children:null==(o=null==(a=null==t?void 0:t.labels)?void 0:a[0])?void 0:o.labelName}):v.jsx("span",{}),v.jsx("span",{className:"text-xs text-gray-500",children:Bp(t.type)})]})]},t.content||""+n)})})]})})}),v.jsx(r.Splitter.Panel,{children:v.jsx("div",{className:"h-full",children:v.jsxs("div",{className:"h-full bg-white rounded-lg pb-5 pt-4 relative",children:[!E&&B&&v.jsxs("div",{children:[v.jsx("div",{className:"flex justify-end ant-btn-important absolute top-0 right-0 z-10",children:null==n?void 0:n(B)}),v.jsx($p,{data:B,questionProps:{onSubmit:e=>{null==i||i(B,e)},toRunCodeQuestion:()=>(async e=>{var t,r;null==q||q(e),U(e);const{lang:n="",topic:i,content:o,title:s,exampleList:l,verifyMode:c,userAnswer:u,optionJson:d,code:p}=e;let h=u||(null==a?void 0:a(C))||p;N({lang:n||(null==(t=null==d?void 0:d.languages)?void 0:t[0]),topic:i||s,content:o,verifyMode:c||(null==d?void 0:d.verifyMode)||(null==(r=null==e?void 0:e.optionJson)?void 0:r.verifyMode),code:h,cases:l||e.testCaseList||e.exampleList}),W(!0)})(B),showResult:!0,onNextQuestion:()=>{S<e.length-1?(y(S+1),L(),O(!1)):r.message.warning("已经是最后一题了")}}})]},B.id+B.questionId+B.userAnswer),x&&(null==B?void 0:B.type)!==fp.CCM&&(null==B?void 0:B.type)!==fp.ACM&&v.jsxs("div",{className:"question-result mt-6 p-4 rounded-lg "+(P()?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"),children:[[fp.RADIO,fp.CHECKBOX,fp.COMPLETION].includes(B.type)&&v.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[P()?v.jsx(F,{className:"w-5 h-5 text-green-600"}):v.jsx(w,{className:"w-5 h-5 text-red-600"}),v.jsx("span",{className:"font-medium "+(P()?"text-green-800":"text-red-800"),children:P()?"回答正确!":"回答错误"}),!P()&&v.jsx("span",{className:"text-red-600 text-sm bg-red-100 px-2 py-1 rounded-full",children:"已加入错题本"})]}),v.jsx("div",{className:"text-gray-700 text-sm",children:(null==B?void 0:B.analyze)&&v.jsxs("div",{className:"analyze",children:[v.jsx("div",{className:"analyzeTitle",children:"答案分析"}),v.jsx("div",{className:"analyzeContent",children:"answer"===B.type?v.jsx(tp,{children:(null==(f=null==B?void 0:B.analyze)?void 0:f.answerAnalysis)||(null==(m=null==B?void 0:B.analyze)?void 0:m.answer)}):v.jsx(tp,{children:null==(g=null==B?void 0:B.analyze)?void 0:g.answerAnalysis})})]})})]})]})})})]})}):v.jsx(r.Empty,{image:ip,description:v.jsxs("div",{className:"emptyDescription",children:["暂无相关题目 ",o&&v.jsx("span",{onClick:()=>o(),children:"现在生成"})]})}),v.jsx(hh,{contentType:"left",open:k,onCancel:()=>{W(!1)},blackMode:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT,maskClosable:!1,footer:!1,content:v.jsxs("div",{className:"codePlayerModal",id:"codePlayerModal",style:{background:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT?"black":"#ffffff"},children:[v.jsx(r.Button,{className:"fullScreenBtn",icon:K?(j={fill:"#919191"},v.jsx("svg",{style:j.style,className:j.className,width:j.width||16,height:j.height||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2410",children:v.jsx("path",{d:"M384 512a128 128 0 0 0 128-128V170.666667a42.666667 42.666667 0 1 0-85.333333 0v213.333333a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 1 0 0 85.333333h213.333333z m277.333333 42.666667a128 128 0 0 0-128 128v170.666666a42.666667 42.666667 0 1 0 85.333334 0v-170.666666a42.666667 42.666667 0 0 1 42.666666-42.666667H853.333333a42.666667 42.666667 0 1 0 0-85.333333h-192z",fill:j.fill||"#2c2c2c","p-id":"2411"})})):Vh({fill:"#919191"}),type:"text",onClick:()=>{var e;I(e=>!e),K?null==document||document.exitFullscreen():null==(e=document.querySelector("#codePlayerModal"))||e.requestFullscreen()}}),v.jsx("div",{className:"code",children:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT?v.jsx(dh,{data:R,hasTitle:!1,toScore:X,codeChange:M}):v.jsx(uh,{data:R,hasTitle:!1,toScore:X,codeChange:M,errorHanle:h})}),(l||c)&&v.jsx("div",{className:`${(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT&&"quiz-wrapper"}`,children:v.jsxs("div",{className:`scoreArea ${(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT&&"quiz-theme"}`,children:[v.jsx("div",{className:"header",children:"AI分析区"}),l?v.jsx("div",{className:"content",children:v.jsx(tp,{children:l})}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"content",children:[v.jsxs(r.Row,{children:[v.jsx(r.Col,{span:12,children:v.jsx(r.Statistic,{title:"总分",value:(null==c?void 0:c.score)??10})}),v.jsx(r.Col,{span:12,children:v.jsx(r.Statistic,{title:"最终得分",value:(null==c?void 0:c.userScore)??0})})]}),v.jsx(r.List,{header:"判分依据:",children:(null==(b=null==c?void 0:c.reasons)?void 0:b.length)&&v.jsx(v.Fragment,{children:null==(A=null==c?void 0:c.reasons)?void 0:A.map(e=>v.jsx(r.List.Item,{children:v.jsx(r.List.Item.Meta,{title:v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:["条目:",e.item]}),v.jsxs("div",{children:["得分:",e.score]})]}),description:v.jsxs("span",{children:["原因:",e.reason]})})},e.item))})})]}),u&&v.jsxs("div",{className:"content",children:[v.jsx("h3",{children:"思考过程&答题思路"}),v.jsx(tp,{children:u})]})]})]})})]})})]})});var j};var gh={exports:{}},bh={exports:{}};const vh=h(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ah;function Sh(){return Ah||(Ah=1,function(e){var t;e.exports=(t=t||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==p&&p.crypto&&(t=p.crypto),!t)try{t=vh}catch(V){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(V){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(V){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},o=a.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new s.init(t,e)}}),l=i.enc={},c=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(r,t/2)}},u=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(r,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(Vp){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},q=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,l=a/(4*o),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*o,u=e.min(4*c,a);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(i,d);r=i.splice(0,c),n.sigBytes-=u}return new s.init(r,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=q.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math),t)}(bh)),bh.exports}var yh,Eh={exports:{}};function Th(){return yh||(yh=1,function(e){var t,r,n,i,a,o;e.exports=(r=(t=o=Sh()).lib,n=r.Base,i=r.WordArray,(a=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var a=e[n];r.push(a.high),r.push(a.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),o)}(Eh)),Eh.exports}var Ch,Uh={exports:{}};var Rh,Nh={exports:{}};var kh,Fh={exports:{}};function wh(){return kh||(kh=1,function(e){var t,r,n;e.exports=(t=Sh(),n=(r=t).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(n.charAt(o>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return function(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64)}(Fh)),Fh.exports}var Wh,xh={exports:{}};function Oh(){return Wh||(Wh=1,function(e){var t,r,n;e.exports=(t=Sh(),n=(r=t).lib.WordArray,r.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o<n;o+=3)for(var s=(r[o>>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<n;l++)a.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return function(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}(e,r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc.Base64url)}(xh)),xh.exports}var Kh,Ih={exports:{}};function Dh(){return Kh||(Kh=1,function(e){var t;e.exports=(t=Sh(),function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,o=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],l=e[t+1],q=e[t+2],h=e[t+3],V=e[t+4],f=e[t+5],m=e[t+6],g=e[t+7],b=e[t+8],v=e[t+9],A=e[t+10],S=e[t+11],y=e[t+12],E=e[t+13],T=e[t+14],C=e[t+15],U=a[0],R=a[1],N=a[2],k=a[3];U=c(U,R,N,k,o,7,s[0]),k=c(k,U,R,N,l,12,s[1]),N=c(N,k,U,R,q,17,s[2]),R=c(R,N,k,U,h,22,s[3]),U=c(U,R,N,k,V,7,s[4]),k=c(k,U,R,N,f,12,s[5]),N=c(N,k,U,R,m,17,s[6]),R=c(R,N,k,U,g,22,s[7]),U=c(U,R,N,k,b,7,s[8]),k=c(k,U,R,N,v,12,s[9]),N=c(N,k,U,R,A,17,s[10]),R=c(R,N,k,U,S,22,s[11]),U=c(U,R,N,k,y,7,s[12]),k=c(k,U,R,N,E,12,s[13]),N=c(N,k,U,R,T,17,s[14]),U=u(U,R=c(R,N,k,U,C,22,s[15]),N,k,l,5,s[16]),k=u(k,U,R,N,m,9,s[17]),N=u(N,k,U,R,S,14,s[18]),R=u(R,N,k,U,o,20,s[19]),U=u(U,R,N,k,f,5,s[20]),k=u(k,U,R,N,A,9,s[21]),N=u(N,k,U,R,C,14,s[22]),R=u(R,N,k,U,V,20,s[23]),U=u(U,R,N,k,v,5,s[24]),k=u(k,U,R,N,T,9,s[25]),N=u(N,k,U,R,h,14,s[26]),R=u(R,N,k,U,b,20,s[27]),U=u(U,R,N,k,E,5,s[28]),k=u(k,U,R,N,q,9,s[29]),N=u(N,k,U,R,g,14,s[30]),U=d(U,R=u(R,N,k,U,y,20,s[31]),N,k,f,4,s[32]),k=d(k,U,R,N,b,11,s[33]),N=d(N,k,U,R,S,16,s[34]),R=d(R,N,k,U,T,23,s[35]),U=d(U,R,N,k,l,4,s[36]),k=d(k,U,R,N,V,11,s[37]),N=d(N,k,U,R,g,16,s[38]),R=d(R,N,k,U,A,23,s[39]),U=d(U,R,N,k,E,4,s[40]),k=d(k,U,R,N,o,11,s[41]),N=d(N,k,U,R,h,16,s[42]),R=d(R,N,k,U,m,23,s[43]),U=d(U,R,N,k,v,4,s[44]),k=d(k,U,R,N,y,11,s[45]),N=d(N,k,U,R,C,16,s[46]),U=p(U,R=d(R,N,k,U,q,23,s[47]),N,k,o,6,s[48]),k=p(k,U,R,N,g,10,s[49]),N=p(N,k,U,R,T,15,s[50]),R=p(R,N,k,U,f,21,s[51]),U=p(U,R,N,k,y,6,s[52]),k=p(k,U,R,N,h,10,s[53]),N=p(N,k,U,R,A,15,s[54]),R=p(R,N,k,U,l,21,s[55]),U=p(U,R,N,k,b,6,s[56]),k=p(k,U,R,N,C,10,s[57]),N=p(N,k,U,R,m,15,s[58]),R=p(R,N,k,U,E,21,s[59]),U=p(U,R,N,k,V,6,s[60]),k=p(k,U,R,N,S,10,s[61]),N=p(N,k,U,R,q,15,s[62]),R=p(R,N,k,U,v,21,s[63]),a[0]=a[0]+U|0,a[1]=a[1]+R|0,a[2]=a[2]+N|0,a[3]=a[3]+k|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<<a|s>>>32-a)+t}function p(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<<a|s>>>32-a)+t}r.MD5=a._createHelper(l),r.HmacMD5=a._createHmacHelper(l)}(Math),t.MD5)}(Ih)),Ih.exports}var Lh,Ph={exports:{}};function Bh(){return Lh||(Lh=1,function(e){var t,r,n,i,a,o,s,l;e.exports=(r=(t=l=Sh()).lib,n=r.WordArray,i=r.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var u=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+o[c];d+=c<20?1518500249+(i&a|~i&s):c<40?1859775393+(i^a^s):c<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),l.SHA1)}(Ph)),Ph.exports}var Xh,Mh={exports:{}};function jh(){return Xh||(Xh=1,function(e){var t;e.exports=(t=Sh(),function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,o=r.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),l[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],d=r[6],p=r[7],q=0;q<64;q++){if(q<16)c[q]=0|e[t+q];else{var h=c[q-15],V=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=c[q-2],m=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[q]=V+c[q-7]+m+c[q-16]}var g=n&i^n&a^i&a,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[q]+c[q];p=d,d=u,u=s,s=o+v|0,o=a,a=i,i=n,n=v+(b+g)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=a._createHelper(u),r.HmacSHA256=a._createHmacHelper(u)}(Math),t.SHA256)}(Mh)),Mh.exports}var Gh,Hh,Zh={exports:{}},Yh={exports:{}};function zh(){return Hh||(Hh=1,function(e){var t;e.exports=(t=Sh(),Th(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,a=n.WordArray,o=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=o.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],d=r[6],p=r[7],q=n.high,h=n.low,V=i.high,f=i.low,m=a.high,g=a.low,b=o.high,v=o.low,A=s.high,S=s.low,y=u.high,E=u.low,T=d.high,C=d.low,U=p.high,R=p.low,N=q,k=h,F=V,w=f,W=m,x=g,O=b,K=v,I=A,D=S,L=y,P=E,B=T,X=C,M=U,j=R,G=0;G<80;G++){var H,Z,Y=c[G];if(G<16)Z=Y.high=0|e[t+2*G],H=Y.low=0|e[t+2*G+1];else{var z=c[G-15],Q=z.high,J=z.low,_=(Q>>>1|J<<31)^(Q>>>8|J<<24)^Q>>>7,$=(J>>>1|Q<<31)^(J>>>8|Q<<24)^(J>>>7|Q<<25),ee=c[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ae=c[G-7],oe=ae.high,se=ae.low,le=c[G-16],ce=le.high,ue=le.low;Z=(Z=(Z=_+oe+((H=$+se)>>>0<$>>>0?1:0))+ne+((H+=ie)>>>0<ie>>>0?1:0))+ce+((H+=ue)>>>0<ue>>>0?1:0),Y.high=Z,Y.low=H}var de,pe=I&L^~I&B,qe=D&P^~D&X,he=N&F^N&W^F&W,Ve=k&w^k&x^w&x,fe=(N>>>28|k<<4)^(N<<30|k>>>2)^(N<<25|k>>>7),me=(k>>>28|N<<4)^(k<<30|N>>>2)^(k<<25|N>>>7),ge=(I>>>14|D<<18)^(I>>>18|D<<14)^(I<<23|D>>>9),be=(D>>>14|I<<18)^(D>>>18|I<<14)^(D<<23|I>>>9),ve=l[G],Ae=ve.high,Se=ve.low,ye=M+ge+((de=j+be)>>>0<j>>>0?1:0),Ee=me+Ve;M=B,j=X,B=L,X=P,L=I,P=D,I=O+(ye=(ye=(ye=ye+pe+((de+=qe)>>>0<qe>>>0?1:0))+Ae+((de+=Se)>>>0<Se>>>0?1:0))+Z+((de+=H)>>>0<H>>>0?1:0))+((D=K+de|0)>>>0<K>>>0?1:0)|0,O=W,K=x,W=F,x=w,F=N,w=k,N=ye+(fe+he+(Ee>>>0<me>>>0?1:0))+((k=de+Ee|0)>>>0<de>>>0?1:0)|0}h=n.low=h+k,n.high=q+N+(h>>>0<k>>>0?1:0),f=i.low=f+w,i.high=V+F+(f>>>0<w>>>0?1:0),g=a.low=g+x,a.high=m+W+(g>>>0<x>>>0?1:0),v=o.low=v+K,o.high=b+O+(v>>>0<K>>>0?1:0),S=s.low=S+D,s.high=A+I+(S>>>0<D>>>0?1:0),E=u.low=E+P,u.high=y+L+(E>>>0<P>>>0?1:0),C=d.low=C+X,d.high=T+B+(C>>>0<X>>>0?1:0),R=p.low=R+j,p.high=U+M+(R>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)}(Yh)),Yh.exports}var Qh,Jh,_h={exports:{}},$h={exports:{}};var eV,tV,rV={exports:{}},nV={exports:{}};function iV(){return tV||(tV=1,function(e){var t,r,n;e.exports=(r=(t=Sh()).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(nV)),nV.exports}var aV,oV,sV={exports:{}},lV={exports:{}};function cV(){return oV||(oV=1,function(e){var t,r,n,i,a,o,s,l;e.exports=(l=Sh(),Bh(),iV(),n=(r=(t=l).lib).Base,i=r.WordArray,o=(a=t.algo).MD5,s=a.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,a=n.hasher.create(),o=i.create(),s=o.words,l=n.keySize,c=n.iterations;s.length<l;){r&&a.update(r),r=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)r=a.finalize(r),a.reset();o.concat(r)}return o.sigBytes=4*l,o}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},l.EvpKDF)}(lV)),lV.exports}var uV,dV={exports:{}};function pV(){return uV||(uV=1,function(e){var t;e.exports=(t=Sh(),cV(),void(t.lib.Cipher||function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,o=e.enc;o.Utf8;var s=o.Base64,l=e.algo.EvpKDF,c=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?g:f}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=e.mode={},d=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=u.CBC=function(){var e=d.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=undefined):n=this._prevBlock;for(var a=0;a<r;a++)e[t+a]^=n[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,a=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=a}}),e}(),q=(e.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,a=n<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(a);var l=i.create(o,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:q}),reset:function(){var e;c.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),V=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(s)},parse:function(e){var t,r=s.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},f=r.SerializableCipher=n.extend({cfg:n.extend({format:V}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),a=i.finalize(t),o=i.cfg;return h.create({ciphertext:a,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),m=(e.kdf={}).OpenSSL={execute:function(e,t,r,n,a){if(n||(n=i.random(8)),a)o=l.create({keySize:t+r,hasher:a}).compute(e,n);else var o=l.create({keySize:t+r}).compute(e,n);var s=i.create(o.words.slice(t),4*r);return o.sigBytes=4*t,h.create({key:o,iv:s,salt:n})}},g=r.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:m}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var a=f.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,f.decrypt.call(this,e,t,i.key,n)}})}()))}(dV)),dV.exports}var qV,hV,VV,fV={exports:{}},mV={exports:{}},gV={exports:{}};function bV(){return VV||(VV=1,function(e){var t;e.exports=(t=Sh(),pV(),
|
|
31
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var a in e)t.call(e,a)&&e[a]&&(n=i(n,a));return n}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(ph);const qh=q(ph.exports),hh=e=>{const{title:t,content:n,cancelText:i,okText:a,onOk:o,onCancel:s,onCancelCallback:l,footer:c=!0,contentType:u="center",noIcon:d=!1,blackMode:p=!1}=e;return v.jsx("div",{children:v.jsxs(r.Modal,{...e,title:null,footer:null,classNames:{container:qh("vgenModal","left"===u&&"modalLeft",p&&"blackMode")},className:qh("modalWrapper",p&&"blackMode"),children:[v.jsxs("div",{className:qh("modalContent","center"===u&&"modalContentCenter"),children:[t&&v.jsxs("div",{className:qh("modalTitle","left"===u&&"modalTitleLeft"),children:[!d&&v.jsx("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e注意%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='解析合集'%20transform='translate(-347.000000,%20-127.000000)'%20fill-rule='nonzero'%3e%3cg%20id='编组-5'%20transform='translate(347.000000,%20125.000000)'%3e%3cg%20id='注意'%20transform='translate(0.000000,%202.000000)'%3e%3cpath%20d='M0,9%20C0,12.2153903%201.71539025,15.1865334%204.5,16.7942286%20C7.28460967,18.4019238%2010.7153903,18.4019238%2013.5,16.7942286%20C16.2846097,15.1865334%2018,12.2153903%2018,9%20C18,4.02943722%2013.9705627,0%209,0%20C4.02943725,0%200,4.02943722%200,9%20Z'%20id='路径'%20fill='%230064FF'%3e%3c/path%3e%3cpath%20d='M9,13.090909%20C9.29230822,13.090909%209.56241216,13.2468535%209.70856628,13.4999999%20C9.8547204,13.7531462%209.8547204,14.0650354%209.70856628,14.3181817%20C9.56241216,14.5713281%209.29230822,14.7272726%209,14.7272726%20C8.54813066,14.7272726%208.18181818,14.3609601%208.18181818,13.9090908%20C8.18181818,13.4572215%208.54813066,13.090909%209,13.090909%20L9,13.090909%20Z%20M9,3.27272725%20C9.45186934,3.27272725%209.81818182,3.63903972%209.81818182,4.09090906%20L9.81818182,11.0454545%20C9.81818182,11.4973238%209.45186934,11.8636363%209,11.8636363%20C8.54813066,11.8636363%208.18181818,11.4973238%208.18181818,11.0454545%20L8.18181818,4.09090906%20C8.18181818,3.63903972%208.54813066,3.27272725%209,3.27272725%20L9,3.27272725%20Z'%20id='形状'%20fill='%23FFFFFF'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"}),t]}),v.jsx("div",{className:qh("modalContentText","center"===u&&"modalContentTextCenter"),children:n})]}),c&&v.jsxs("div",{className:qh("modalFooter",p&&"blackMode"),children:[v.jsx(r.Button,{type:"primary",className:qh("btnOk",p&&"blackMode"),onClick:o,children:a}),v.jsx(r.Button,{className:qh("btnCancel",p&&"blackMode"),onClick:()=>{null==s||s(),null==l||l()},children:i})]})]})})};function Vh(e){return v.jsx("svg",{style:e.style,className:e.className,width:e.width||16,height:e.height||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2200",children:v.jsx("path",{d:"M256 170.666667a128 128 0 0 0-128 128v213.333333a42.666667 42.666667 0 1 0 85.333333 0V298.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h213.333333a42.666667 42.666667 0 1 0 0-85.333333H256z m512 682.666666a128 128 0 0 0 128-128v-170.666666a42.666667 42.666667 0 1 0-85.333333 0v170.666666a42.666667 42.666667 0 0 1-42.666667 42.666667h-192a42.666667 42.666667 0 1 0 0 85.333333H768z",fill:e.fill||"#2c2c2c","p-id":"2201"})})}function fh(e){return v.jsx("svg",{style:e.style,className:e.className,width:e.width||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5049",children:v.jsx("path",{d:"M492.288 37.632a486.2464 486.2464 0 0 1 202.3936 44.2368 479.9488 479.9488 0 0 1 115.712 75.264 468.48 468.48 0 0 1 99.9936 124.672 458.8032 458.8032 0 0 1 47.104 128.0512 451.5328 451.5328 0 0 1 4.0448 158.4128 42.496 42.496 0 0 1-14.7456 26.7776 42.3936 42.3936 0 0 1-28.5184 10.5472 42.1376 42.1376 0 0 1-30.9248-12.8 42.1376 42.1376 0 0 1-12.288-37.5296 366.08 366.08 0 0 0-7.3728-145.8176 365.1584 365.1584 0 0 0-43.264-101.5808 374.9376 374.9376 0 0 0-71.8848-85.1968 384.5632 384.5632 0 0 0-94.4128-61.3888 393.216 393.216 0 0 0-127.7952-34.4064 398.6944 398.6944 0 0 0-203.8784 34.4064 391.5264 391.5264 0 0 0-94.464 61.44 381.2352 381.2352 0 0 0-71.8336 85.1456 372.0192 372.0192 0 0 0-47.4112 119.5008 365.1584 365.1584 0 0 0 60.8256 285.7472 376.4736 376.4736 0 0 0 50.2784 57.5488l13.0048 12.1344 5.12 109.7728a6.144 6.144 0 0 0 3.072 5.0176 7.8336 7.8336 0 0 0 7.3728 0.768l114.7904-42.5472 13.8752 4.0448a399.9744 399.9744 0 0 0 40.7552 9.5744l7.0656 1.1776 4.4544 0.7168 2.3552 0.3584 7.168 0.9216 3.4304 0.4608 3.8912 0.4096a42.3424 42.3424 0 0 1 27.7504 14.336 42.3424 42.3424 0 0 1 11.1616 29.1328 42.1376 42.1376 0 0 1-12.8 30.9248 42.1376 42.1376 0 0 1-35.7888 12.544l-3.8912-0.4608-4.2496-0.512-8.2944-1.0752-3.3792-0.512-5.2736-0.8192-8.2944-1.3824a489.3696 489.3696 0 0 1-36.2496-7.936l-88.064 32.6144a90.9824 90.9824 0 0 1-85.1968-9.2672c-27.136-17.5616-41.472-42.3424-43.008-74.3936l-3.5328-74.752a467.4048 467.4048 0 0 1-74.0864-97.792 457.5232 457.5232 0 0 1-49.4592-130.9696 451.84 451.84 0 0 1 46.592-311.3472 459.264 459.264 0 0 1 83.1488-109.056A468.3264 468.3264 0 0 1 248.832 103.168 477.952 477.952 0 0 1 399.872 46.4896 484.6592 484.6592 0 0 1 492.3392 37.632z m165.7856 589.2608l79.872 245.1968h-71.168l-15.6672-56.832h-53.4016l-15.7184 56.832H512l77.6192-245.248h68.4544z m166.2464 0v245.248h-67.584v-245.248h67.584z m106.24 31.5904c5.0688 0 8.2432 2.56 9.6768 7.5776l9.984 36.0448c3.7376 13.4656 11.5712 22.272 23.552 26.368l32.6144 11.0592c4.608 1.536 6.9632 4.864 6.9632 9.9328 0 5.12-2.304 8.3968-6.9632 9.984l-32.5632 11.0592c-12.032 4.096-19.8656 12.8512-23.6032 26.368l-9.984 36.0448c-1.4336 5.0688-4.608 7.5776-9.6768 7.5776-5.0176 0-8.192-2.56-9.6256-7.5776l-9.984-36.0448c-3.7376-13.5168-11.6224-22.272-23.6032-26.368l-32.6144-11.0592c-4.608-1.536-6.912-4.864-6.912-9.984 0-5.0688 2.304-8.3968 6.912-9.9328l32.6144-11.0592c11.9808-4.096 19.8656-12.9024 23.552-26.368l10.0352-36.0448c1.3824-5.0688 4.608-7.5776 9.6256-7.5776z m-305.6128 29.4912c-4.9664 19.5072-10.24 38.9632-15.8208 58.368l-4.7104 18.8928h41.0112l-4.7104-18.8928a689.152 689.152 0 0 1-6.7072-24.6272 1065.8816 1065.8816 0 0 0-7.936-29.696 1275.2896 1275.2896 0 0 1-1.1264-4.0448zM343.04 334.336c15.7696 0 29.184 5.5808 40.3968 16.6912 11.1104 11.1616 16.6912 24.576 16.6912 40.3968V460.288c0 15.7696-5.5808 29.2352-16.6912 40.3968-11.1616 11.1616-24.6272 16.6912-40.3968 16.6912-15.7696 0-29.184-5.5296-40.3456-16.6912a54.9888 54.9888 0 0 1-16.7424-40.3968V391.424c0-15.7696 5.5808-29.2352 16.7424-40.3968 11.1104-11.1104 24.576-16.6912 40.3456-16.6912z m318.6688 0c15.7696 0 29.184 5.5808 40.3968 16.6912 11.1104 11.1616 16.6912 24.576 16.6912 40.3968V460.288c0 15.7696-5.5808 29.2352-16.6912 40.3968-11.1616 11.1616-24.576 16.6912-40.3968 16.6912-15.7696 0-29.184-5.5296-40.3456-16.6912a54.9888 54.9888 0 0 1-16.7424-40.3968V391.424c0-15.7696 5.632-29.2352 16.7424-40.3968 11.1616-11.1104 24.576-16.6912 40.3456-16.6912z",fill:e.fill||"#2c2c2c","p-id":"5050"})})}const mh=({questionsList:e,questionOperations:n,submitQuestion:i,getCodeSaveAnswer:a,createQuestionCallback:o,saveQuetionCode:s,temScoreData:l,scoreData:c,problemSloving:u,createQuestionLoading:d,createQuestionLoadingText:p,toRunCodeQuestionCallback:q,runCodeErrorCallback:h,mode:V})=>{var f,m,g,b,A;const[S,y]=t.useState(0),[E,T]=t.useState(!1),[C,U]=t.useState(),[R,N]=t.useState(),[k,W]=t.useState(!1),[x,O]=t.useState(!1),[K,I]=t.useState(!1);t.useEffect(()=>{(null==B?void 0:B.userAnswer)?O(!0):O(!1)},[S,e]);const D=t.useRef(null),L=()=>{T(!0),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{T(!1)},0)},P=e=>{const t=B,r=e||t.userAnswer,{answer:n,answerOption:i}=t;switch(t.type){case fp.CHECKBOX:case fp.RADIO:return r===n||r&&cp(null==r?void 0:r.split(","),null==n?void 0:n.split(","));case fp.COMPLETION:return null==i?void 0:i.every((e,t)=>{var n;return(null==e?void 0:e.answer)===(null==(n=null==r?void 0:r[t])?void 0:n.answer)});default:return!0}},B=t.useMemo(()=>e?e[S]:{},[S,e]),X=e=>{i(C,e)},M=e=>{null==s||s(e,C)};return v.jsx(r.Spin,{spinning:!0===d,tip:p||"题目生成中...",styles:{wrapper:{height:"vertical"===V?"calc(100% - 60px)":"100%"}},children:v.jsxs("div",{className:"questionPractice",children:[(null==e?void 0:e.length)>0?v.jsx("div",{className:"tailwind-scoped",style:{height:"100%"},children:v.jsxs(r.Splitter,{style:{maxHeight:"100%"},children:[v.jsx(r.Splitter.Panel,{min:275,max:400,defaultSize:300,children:v.jsx("div",{className:"mr",style:{height:"100%"},children:v.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm overflow-y-auto h-full",children:[v.jsx("h3",{className:"font-semibold text-gray-800 mb-4",children:"题目列表"}),(null==e?void 0:e.length)>0&&v.jsx("div",{className:"space-y-3 pr-[12px] left-que-item",children:e.map((t,n)=>{var i,a,o;return v.jsxs("button",{onClick:()=>{y(n),L()},className:"block w-full text-left p-4 rounded-lg border-2 transition-all "+(S===n?"border-blue-500 bg-blue-50 shadow-md":"border-gray-200 hover:border-gray-300 hover:bg-gray-50"),children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("span",{className:"w-6 h-6 rounded-full flex items-center justify-center text-xs font-medium "+(S===n?"bg-blue-600 text-white":"bg-gray-200 text-gray-600"),children:n+1}),v.jsx("div",{className:"p-1 rounded "+(S===n?"bg-blue-100":"bg-gray-100"),children:Pp(t.type)}),e[n].userAnswer&&v.jsx("div",{className:"text-xs px-2 py-1 rounded-1 font-medium text-green-500 bg-green-100}",children:"已完成"})]}),v.jsxs("div",{className:"flex items-center space-x-2",children:[v.jsx("span",{className:`text-xs px-2 py-1 rounded-full font-medium ${Xp(t.difficulty||"")}`,children:"low"===t.difficulty?"简单":"middle"===t.difficulty?"中等":"困难"}),t.score?v.jsxs("div",{className:"flex items-center space-x-1 text-xs text-gray-500",children:[v.jsx(z,{className:"w-3 h-3"}),v.jsx("span",{children:t.score})]}):null]})]}),v.jsx(r.Tooltip,{title:(t.topic||t.content||"").replace(/<[^>]*>/g,""),children:v.jsx("h4",{className:"font-medium text-sm mb-1 text-ellipsis line-clamp-2 "+(S===n?"text-blue-800":"text-gray-800"),children:v.jsx("span",{dangerouslySetInnerHTML:{__html:t.topic||t.content||""}})})}),v.jsxs("div",{className:"flex items-center justify-between",children:[(null==(i=null==t?void 0:t.labels)?void 0:i.length)?v.jsx("span",{className:"text-xs text-blue-600 bg-blue-100 px-2 py-1 rounded-full",children:null==(o=null==(a=null==t?void 0:t.labels)?void 0:a[0])?void 0:o.labelName}):v.jsx("span",{}),v.jsx("span",{className:"text-xs text-gray-500",children:Bp(t.type)})]})]},t.content||""+n)})})]})})}),v.jsx(r.Splitter.Panel,{children:v.jsx("div",{className:"h-full",children:v.jsxs("div",{className:"h-full bg-white rounded-lg pb-5 pt-4 relative",children:[!E&&B&&v.jsxs("div",{children:[v.jsx("div",{className:"flex justify-end ant-btn-important absolute top-0 right-0 z-10",children:null==n?void 0:n(B)}),v.jsx($p,{data:B,questionProps:{onSubmit:e=>{null==i||i(B,e)},toRunCodeQuestion:()=>(async e=>{var t,r;null==q||q(e),U(e);const{lang:n="",topic:i,content:o,title:s,exampleList:l,verifyMode:c,userAnswer:u,optionJson:d,code:p}=e;let h=u||(null==a?void 0:a(C))||p;N({lang:n||(null==(t=null==d?void 0:d.languages)?void 0:t[0]),topic:i||s,content:o,verifyMode:c||(null==d?void 0:d.verifyMode)||(null==(r=null==e?void 0:e.optionJson)?void 0:r.verifyMode),code:h,cases:l||e.testCaseList||e.exampleList}),W(!0)})(B),showResult:!0,onNextQuestion:()=>{S<e.length-1?(y(S+1),L(),O(!1)):r.message.warning("已经是最后一题了")}}})]},B.id+B.questionId+B.userAnswer),x&&(null==B?void 0:B.type)!==fp.CCM&&(null==B?void 0:B.type)!==fp.ACM&&v.jsxs("div",{className:"question-result mt-6 p-4 rounded-lg "+(P()?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"),children:[[fp.RADIO,fp.CHECKBOX,fp.COMPLETION].includes(B.type)&&v.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[P()?v.jsx(F,{className:"w-5 h-5 text-green-600"}):v.jsx(w,{className:"w-5 h-5 text-red-600"}),v.jsx("span",{className:"font-medium "+(P()?"text-green-800":"text-red-800"),children:P()?"回答正确!":"回答错误"}),!P()&&v.jsx("span",{className:"text-red-600 text-sm bg-red-100 px-2 py-1 rounded-full",children:"已加入错题本"})]}),v.jsx("div",{className:"text-gray-700 text-sm",children:(null==B?void 0:B.analyze)&&v.jsxs("div",{className:"analyze",children:[v.jsx("div",{className:"analyzeTitle",children:"答案分析"}),v.jsx("div",{className:"analyzeContent",children:"answer"===B.type?v.jsx(tp,{children:(null==(f=null==B?void 0:B.analyze)?void 0:f.answerAnalysis)||(null==(m=null==B?void 0:B.analyze)?void 0:m.answer)}):v.jsx(tp,{children:null==(g=null==B?void 0:B.analyze)?void 0:g.answerAnalysis})})]})})]})]})})})]})}):v.jsx(r.Empty,{image:ip,description:v.jsxs("div",{className:"emptyDescription",children:["暂无相关题目 ",o&&v.jsx("span",{onClick:()=>o(),children:"现在生成"})]})}),v.jsx(hh,{contentType:"left",open:k,onCancel:()=>{W(!1)},blackMode:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT,maskClosable:!1,footer:!1,content:v.jsxs("div",{className:"codePlayerModal",id:"codePlayerModal",style:{background:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT?"black":"#ffffff"},children:[v.jsx(r.Button,{className:"fullScreenBtn",icon:K?(j={fill:"#919191"},v.jsx("svg",{style:j.style,className:j.className,width:j.width||16,height:j.height||16,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2410",children:v.jsx("path",{d:"M384 512a128 128 0 0 0 128-128V170.666667a42.666667 42.666667 0 1 0-85.333333 0v213.333333a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 1 0 0 85.333333h213.333333z m277.333333 42.666667a128 128 0 0 0-128 128v170.666666a42.666667 42.666667 0 1 0 85.333334 0v-170.666666a42.666667 42.666667 0 0 1 42.666666-42.666667H853.333333a42.666667 42.666667 0 1 0 0-85.333333h-192z",fill:j.fill||"#2c2c2c","p-id":"2411"})})):Vh({fill:"#919191"}),type:"text",onClick:()=>{var e;I(e=>!e),K?null==document||document.exitFullscreen():null==(e=document.querySelector("#codePlayerModal"))||e.requestFullscreen()}}),v.jsx("div",{className:"code",children:(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT?v.jsx(dh,{data:R,hasTitle:!1,toScore:X,codeChange:M}):v.jsx(uh,{data:R,hasTitle:!1,toScore:X,codeChange:M,errorHanle:h})}),(l||c)&&v.jsx("div",{className:`${(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT&&"quiz-wrapper"}`,children:v.jsxs("div",{className:`scoreArea ${(null==R?void 0:R.verifyMode)===mp.INPUT_OUTPUT&&"quiz-theme"}`,children:[v.jsx("div",{className:"header",children:"AI分析区"}),l?v.jsx("div",{className:"content",children:v.jsx(tp,{children:l})}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"content",children:[v.jsxs(r.Row,{children:[v.jsx(r.Col,{span:12,children:v.jsx(r.Statistic,{title:"总分",value:(null==c?void 0:c.score)??10})}),v.jsx(r.Col,{span:12,children:v.jsx(r.Statistic,{title:"最终得分",value:(null==c?void 0:c.userScore)??0})})]}),v.jsx(r.List,{header:"判分依据:",children:(null==(b=null==c?void 0:c.reasons)?void 0:b.length)&&v.jsx(v.Fragment,{children:null==(A=null==c?void 0:c.reasons)?void 0:A.map(e=>v.jsx(r.List.Item,{children:v.jsx(r.List.Item.Meta,{title:v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:["条目:",e.item]}),v.jsxs("div",{children:["得分:",e.score]})]}),description:v.jsxs("span",{children:["原因:",e.reason]})})},e.item))})})]}),u&&v.jsxs("div",{className:"content",children:[v.jsx("h3",{children:"思考过程&答题思路"}),v.jsx(tp,{children:u})]})]})]})})]})})]})});var j};var gh={exports:{}},bh={exports:{}};const vh=h(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ah;function Sh(){return Ah||(Ah=1,function(e){var t;e.exports=(t=t||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==p&&p.crypto&&(t=p.crypto),!t)try{t=vh}catch(V){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(V){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(V){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},o=a.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new s.init(t,e)}}),l=i.enc={},c=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(r,t/2)}},u=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(r,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(Vp){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},q=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,l=a/(4*o),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*o,u=e.min(4*c,a);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(i,d);r=i.splice(0,c),n.sigBytes-=u}return new s.init(r,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=q.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math),t)}(bh)),bh.exports}var yh,Eh={exports:{}};function Th(){return yh||(yh=1,function(e){var t,r,n,i,a,o;e.exports=(r=(t=o=Sh()).lib,n=r.Base,i=r.WordArray,(a=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var a=e[n];r.push(a.high),r.push(a.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),o)}(Eh)),Eh.exports}var Ch,Uh={exports:{}};var Rh,Nh={exports:{}};var kh,Fh={exports:{}};function wh(){return kh||(kh=1,function(e){var t,r,n;e.exports=(t=Sh(),n=(r=t).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(n.charAt(o>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return function(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64)}(Fh)),Fh.exports}var Wh,xh={exports:{}};function Oh(){return Wh||(Wh=1,function(e){var t,r,n;e.exports=(t=Sh(),n=(r=t).lib.WordArray,r.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o<n;o+=3)for(var s=(r[o>>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<n;l++)a.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return function(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}(e,r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc.Base64url)}(xh)),xh.exports}var Kh,Ih={exports:{}};function Dh(){return Kh||(Kh=1,function(e){var t;e.exports=(t=Sh(),function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,o=r.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],l=e[t+1],q=e[t+2],h=e[t+3],V=e[t+4],f=e[t+5],m=e[t+6],g=e[t+7],b=e[t+8],v=e[t+9],A=e[t+10],S=e[t+11],y=e[t+12],E=e[t+13],T=e[t+14],C=e[t+15],U=a[0],R=a[1],N=a[2],k=a[3];U=c(U,R,N,k,o,7,s[0]),k=c(k,U,R,N,l,12,s[1]),N=c(N,k,U,R,q,17,s[2]),R=c(R,N,k,U,h,22,s[3]),U=c(U,R,N,k,V,7,s[4]),k=c(k,U,R,N,f,12,s[5]),N=c(N,k,U,R,m,17,s[6]),R=c(R,N,k,U,g,22,s[7]),U=c(U,R,N,k,b,7,s[8]),k=c(k,U,R,N,v,12,s[9]),N=c(N,k,U,R,A,17,s[10]),R=c(R,N,k,U,S,22,s[11]),U=c(U,R,N,k,y,7,s[12]),k=c(k,U,R,N,E,12,s[13]),N=c(N,k,U,R,T,17,s[14]),U=u(U,R=c(R,N,k,U,C,22,s[15]),N,k,l,5,s[16]),k=u(k,U,R,N,m,9,s[17]),N=u(N,k,U,R,S,14,s[18]),R=u(R,N,k,U,o,20,s[19]),U=u(U,R,N,k,f,5,s[20]),k=u(k,U,R,N,A,9,s[21]),N=u(N,k,U,R,C,14,s[22]),R=u(R,N,k,U,V,20,s[23]),U=u(U,R,N,k,v,5,s[24]),k=u(k,U,R,N,T,9,s[25]),N=u(N,k,U,R,h,14,s[26]),R=u(R,N,k,U,b,20,s[27]),U=u(U,R,N,k,E,5,s[28]),k=u(k,U,R,N,q,9,s[29]),N=u(N,k,U,R,g,14,s[30]),U=d(U,R=u(R,N,k,U,y,20,s[31]),N,k,f,4,s[32]),k=d(k,U,R,N,b,11,s[33]),N=d(N,k,U,R,S,16,s[34]),R=d(R,N,k,U,T,23,s[35]),U=d(U,R,N,k,l,4,s[36]),k=d(k,U,R,N,V,11,s[37]),N=d(N,k,U,R,g,16,s[38]),R=d(R,N,k,U,A,23,s[39]),U=d(U,R,N,k,E,4,s[40]),k=d(k,U,R,N,o,11,s[41]),N=d(N,k,U,R,h,16,s[42]),R=d(R,N,k,U,m,23,s[43]),U=d(U,R,N,k,v,4,s[44]),k=d(k,U,R,N,y,11,s[45]),N=d(N,k,U,R,C,16,s[46]),U=p(U,R=d(R,N,k,U,q,23,s[47]),N,k,o,6,s[48]),k=p(k,U,R,N,g,10,s[49]),N=p(N,k,U,R,T,15,s[50]),R=p(R,N,k,U,f,21,s[51]),U=p(U,R,N,k,y,6,s[52]),k=p(k,U,R,N,h,10,s[53]),N=p(N,k,U,R,A,15,s[54]),R=p(R,N,k,U,l,21,s[55]),U=p(U,R,N,k,b,6,s[56]),k=p(k,U,R,N,C,10,s[57]),N=p(N,k,U,R,m,15,s[58]),R=p(R,N,k,U,E,21,s[59]),U=p(U,R,N,k,V,6,s[60]),k=p(k,U,R,N,S,10,s[61]),N=p(N,k,U,R,q,15,s[62]),R=p(R,N,k,U,v,21,s[63]),a[0]=a[0]+U|0,a[1]=a[1]+R|0,a[2]=a[2]+N|0,a[3]=a[3]+k|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<<a|s>>>32-a)+t}function p(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<<a|s>>>32-a)+t}r.MD5=a._createHelper(l),r.HmacMD5=a._createHmacHelper(l)}(Math),t.MD5)}(Ih)),Ih.exports}var Lh,Ph={exports:{}};function Bh(){return Lh||(Lh=1,function(e){var t,r,n,i,a,o,s,l;e.exports=(r=(t=l=Sh()).lib,n=r.WordArray,i=r.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var u=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+o[c];d+=c<20?1518500249+(i&a|~i&s):c<40?1859775393+(i^a^s):c<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),l.SHA1)}(Ph)),Ph.exports}var Xh,Mh={exports:{}};function jh(){return Xh||(Xh=1,function(e){var t;e.exports=(t=Sh(),function(e){var r=t,n=r.lib,i=n.WordArray,a=n.Hasher,o=r.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),l[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],d=r[6],p=r[7],q=0;q<64;q++){if(q<16)c[q]=0|e[t+q];else{var h=c[q-15],V=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=c[q-2],m=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[q]=V+c[q-7]+m+c[q-16]}var g=n&i^n&a^i&a,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[q]+c[q];p=d,d=u,u=s,s=o+v|0,o=a,a=i,i=n,n=v+(b+g)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=a._createHelper(u),r.HmacSHA256=a._createHmacHelper(u)}(Math),t.SHA256)}(Mh)),Mh.exports}var Gh,Hh,Zh={exports:{}},Yh={exports:{}};function zh(){return Hh||(Hh=1,function(e){var t;e.exports=(t=Sh(),Th(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,a=n.WordArray,o=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=o.SHA512=r.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],d=r[6],p=r[7],q=n.high,h=n.low,V=i.high,f=i.low,m=a.high,g=a.low,b=o.high,v=o.low,A=s.high,S=s.low,y=u.high,E=u.low,T=d.high,C=d.low,U=p.high,R=p.low,N=q,k=h,F=V,w=f,W=m,x=g,O=b,K=v,I=A,D=S,L=y,P=E,B=T,X=C,M=U,j=R,G=0;G<80;G++){var H,Z,Y=c[G];if(G<16)Z=Y.high=0|e[t+2*G],H=Y.low=0|e[t+2*G+1];else{var z=c[G-15],Q=z.high,J=z.low,_=(Q>>>1|J<<31)^(Q>>>8|J<<24)^Q>>>7,$=(J>>>1|Q<<31)^(J>>>8|Q<<24)^(J>>>7|Q<<25),ee=c[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ae=c[G-7],oe=ae.high,se=ae.low,le=c[G-16],ce=le.high,ue=le.low;Z=(Z=(Z=_+oe+((H=$+se)>>>0<$>>>0?1:0))+ne+((H+=ie)>>>0<ie>>>0?1:0))+ce+((H+=ue)>>>0<ue>>>0?1:0),Y.high=Z,Y.low=H}var de,pe=I&L^~I&B,qe=D&P^~D&X,he=N&F^N&W^F&W,Ve=k&w^k&x^w&x,fe=(N>>>28|k<<4)^(N<<30|k>>>2)^(N<<25|k>>>7),me=(k>>>28|N<<4)^(k<<30|N>>>2)^(k<<25|N>>>7),ge=(I>>>14|D<<18)^(I>>>18|D<<14)^(I<<23|D>>>9),be=(D>>>14|I<<18)^(D>>>18|I<<14)^(D<<23|I>>>9),ve=l[G],Ae=ve.high,Se=ve.low,ye=M+ge+((de=j+be)>>>0<j>>>0?1:0),Ee=me+Ve;M=B,j=X,B=L,X=P,L=I,P=D,I=O+(ye=(ye=(ye=ye+pe+((de+=qe)>>>0<qe>>>0?1:0))+Ae+((de+=Se)>>>0<Se>>>0?1:0))+Z+((de+=H)>>>0<H>>>0?1:0))+((D=K+de|0)>>>0<K>>>0?1:0)|0,O=W,K=x,W=F,x=w,F=N,w=k,N=ye+(fe+he+(Ee>>>0<me>>>0?1:0))+((k=de+Ee|0)>>>0<de>>>0?1:0)|0}h=n.low=h+k,n.high=q+N+(h>>>0<k>>>0?1:0),f=i.low=f+w,i.high=V+F+(f>>>0<w>>>0?1:0),g=a.low=g+x,a.high=m+W+(g>>>0<x>>>0?1:0),v=o.low=v+K,o.high=b+O+(v>>>0<K>>>0?1:0),S=s.low=S+D,s.high=A+I+(S>>>0<D>>>0?1:0),E=u.low=E+P,u.high=y+L+(E>>>0<P>>>0?1:0),C=d.low=C+X,d.high=T+B+(C>>>0<X>>>0?1:0),R=p.low=R+j,p.high=U+M+(R>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)}(Yh)),Yh.exports}var Qh,Jh,_h={exports:{}},$h={exports:{}};var eV,tV,rV={exports:{}},nV={exports:{}};function iV(){return tV||(tV=1,function(e){var t,r,n;e.exports=(r=(t=Sh()).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(nV)),nV.exports}var aV,oV,sV={exports:{}},lV={exports:{}};function cV(){return oV||(oV=1,function(e){var t,r,n,i,a,o,s,l;e.exports=(l=Sh(),Bh(),iV(),n=(r=(t=l).lib).Base,i=r.WordArray,o=(a=t.algo).MD5,s=a.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,a=n.hasher.create(),o=i.create(),s=o.words,l=n.keySize,c=n.iterations;s.length<l;){r&&a.update(r),r=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)r=a.finalize(r),a.reset();o.concat(r)}return o.sigBytes=4*l,o}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},l.EvpKDF)}(lV)),lV.exports}var uV,dV={exports:{}};function pV(){return uV||(uV=1,function(e){var t;e.exports=(t=Sh(),cV(),void(t.lib.Cipher||function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,o=e.enc;o.Utf8;var s=o.Base64,l=e.algo.EvpKDF,c=r.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?g:f}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=e.mode={},d=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=u.CBC=function(){var e=d.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=undefined):n=this._prevBlock;for(var a=0;a<r;a++)e[t+a]^=n[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,a=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=a}}),e}(),q=(e.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,a=n<<24|n<<16|n<<8|n,o=[],s=0;s<n;s+=4)o.push(a);var l=i.create(o,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:q}),reset:function(){var e;c.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),V=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(s)},parse:function(e){var t,r=s.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},f=r.SerializableCipher=n.extend({cfg:n.extend({format:V}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),a=i.finalize(t),o=i.cfg;return h.create({ciphertext:a,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),m=(e.kdf={}).OpenSSL={execute:function(e,t,r,n,a){if(n||(n=i.random(8)),a)o=l.create({keySize:t+r,hasher:a}).compute(e,n);else var o=l.create({keySize:t+r}).compute(e,n);var s=i.create(o.words.slice(t),4*r);return o.sigBytes=4*t,h.create({key:o,iv:s,salt:n})}},g=r.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:m}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var a=f.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,f.decrypt.call(this,e,t,i.key,n)}})}()))}(dV)),dV.exports}var qV,hV,VV,fV={exports:{}},mV={exports:{}},gV={exports:{}};function bV(){return VV||(VV=1,function(e){var t;e.exports=(t=Sh(),pV(),
|
|
32
32
|
/** @preserve
|
|
33
33
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
34
34
|
* derived from CryptoJS.mode.CTR
|