@outmarket-ai/react-sdk 0.1.0-alpha.9 → 0.2.0-alpha.0
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/README.md +61 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/pdf.worker.min.mjs +2 -21
- package/dist/styles.css +1 -11
- package/package.json +11 -5
- package/dist/AddNoteDialog-DhseSUVW.js +0 -1
- package/dist/AlertDialog-Dx1Z4OrM.js +0 -1
- package/dist/ApproveWorkflowsList-Cx2xNqu9.js +0 -5
- package/dist/BORLetterEditor-CpXL7MT-.js +0 -119
- package/dist/BillDetailModal-Cj9d5gIA.js +0 -1
- package/dist/CoiIssueHolderModal-CE854JKK.js +0 -1
- package/dist/DeletePromptDialog-C3Shx90V.js +0 -1
- package/dist/EmailFormatSelectionDialog-Bo3-G8L0.js +0 -1
- package/dist/ExcelExportPreviewDialog-NvbX8KK1.js +0 -1
- package/dist/ExplainPanel-BQwsIk-9.js +0 -1
- package/dist/ExportDialog-CGnw6GPb.js +0 -30
- package/dist/ExportToAmsDialog-CuW-XMnY.js +0 -1
- package/dist/ExportToDriveDialog-oEm9wL-h.js +0 -1
- package/dist/FeedbackTool-la43Nk0I.js +0 -30
- package/dist/LayerDetailModal-B-gtAIMb.js +0 -1
- package/dist/LogoEditor-CiD5nrq_.js +0 -1
- package/dist/MarkdownExportPreviewDialog-CVlZsnV-.js +0 -5
- package/dist/NotificationDrawer-DkiU4k1-.js +0 -7
- package/dist/PhoneNumbersDisplay-BcKFVIhh.js +0 -1
- package/dist/PlanSelector-CbuGEmUO.js +0 -26
- package/dist/PlanSettingsModal-CYLAXbUO.js +0 -1
- package/dist/PlanWizardModal-D9GRljeC.js +0 -1
- package/dist/RenameAssetDialog-Rx-mnefu.js +0 -1
- package/dist/SaveBlockDialog-T9mHc5hu.js +0 -1
- package/dist/SaveOutlineDialog-Ce0eEWTR.js +0 -1
- package/dist/SavePromptDialog-D3lm7H51.js +0 -1
- package/dist/ShareResourceDialog-ACYRf6LZ.js +0 -1
- package/dist/TermsNoticeModal-AgvfPy5K.js +0 -1
- package/dist/TowerAlertModal-sRGrwqdf.js +0 -1
- package/dist/TowerSummaryModal-4Dk1iV4z.js +0 -1
- package/dist/VaultSettingsDialog-DddN5Jq6.js +0 -1
- package/dist/ViewNoteDialog-D0V651HA.js +0 -1
- package/dist/WhatsNewProvider-CcmOzaKL.js +0 -36
- package/dist/WidgetRawDataView-DUzIDMuO.js +0 -1
- package/dist/abap-V7zjtt5B.js +0 -1
- package/dist/abnf-Cs8-oUtO.js +0 -1
- package/dist/actionscript-T2YELVMS.js +0 -1
- package/dist/activityLog-Dh4AWnxR.js +0 -1
- package/dist/ada-DnnX8eVy.js +0 -1
- package/dist/agda-B11duiie.js +0 -1
- package/dist/al-CQYsuVVM.js +0 -1
- package/dist/antlr4-4B1Sc4kw.js +0 -1
- package/dist/apacheconf-CEWWS0Xl.js +0 -1
- package/dist/apex-Bw9Gtufo.js +0 -1
- package/dist/apl-GPUaXahd.js +0 -1
- package/dist/applescript-ClGuMaSV.js +0 -1
- package/dist/aql-B0NbAClI.js +0 -1
- package/dist/arduino-ClbHu-uo.js +0 -1
- package/dist/arff-DuOU54aX.js +0 -1
- package/dist/asciidoc-BhtWnAkY.js +0 -1
- package/dist/asm6502-DQTasU9k.js +0 -1
- package/dist/asmatmel-DTAwUCm0.js +0 -1
- package/dist/aspnet-By_Uv-R2.js +0 -1
- package/dist/autohotkey--_I21FCo.js +0 -1
- package/dist/autoit-CvH4ufrU.js +0 -1
- package/dist/avisynth-DFZaFA4R.js +0 -1
- package/dist/avro-idl-BSSj5FmU.js +0 -1
- package/dist/bash-Dq5JElW2.js +0 -1
- package/dist/bash-Jzmc6JlP.js +0 -1
- package/dist/basic-CC56mfFq.js +0 -1
- package/dist/basic-CJsDLcso.js +0 -1
- package/dist/batch-BYpJ9kPS.js +0 -1
- package/dist/bbcode-UXb4O2FT.js +0 -1
- package/dist/bell-B4nDPvYM.js +0 -7
- package/dist/bicep-ha95m6NM.js +0 -1
- package/dist/birb-BM8QRfSV.js +0 -1
- package/dist/bison-BaRrGKdN.js +0 -1
- package/dist/blockEditorContent-BL5d7zzw.js +0 -166
- package/dist/bnf-bWLwOaU4.js +0 -1
- package/dist/brainfuck-COJQXt-t.js +0 -1
- package/dist/brightscript-BsJBKxjD.js +0 -1
- package/dist/bro-Bp53uiUK.js +0 -1
- package/dist/bsl-tLrmQ80l.js +0 -1
- package/dist/c-C4WJRAOR.js +0 -1
- package/dist/c-DA5TVlGb.js +0 -1
- package/dist/calendar-CCDvKYJL.js +0 -7
- package/dist/cfscript-iUOvrdw6.js +0 -1
- package/dist/chaiscript-Bdsn6xqe.js +0 -1
- package/dist/cil-Bg4_FSZp.js +0 -1
- package/dist/clike-CStN-Ul5.js +0 -1
- package/dist/clike-fTAcdHbS.js +0 -1
- package/dist/clojure-CP23saqo.js +0 -1
- package/dist/cmake-CUC1Yn75.js +0 -1
- package/dist/cobol-DRCg5sRL.js +0 -1
- package/dist/coffeescript-c3ArqojV.js +0 -1
- package/dist/concurnas-BkGymU0R.js +0 -1
- package/dist/confetti.module-gccwWOTG.js +0 -2
- package/dist/contactsList-CSPk7SYS.js +0 -18
- package/dist/copyPreviewToClipboard-CrY57HL-.js +0 -170
- package/dist/coq-DfqiQwQs.js +0 -1
- package/dist/core-DnSu5wN6.js +0 -9
- package/dist/cpp-C2xoosyb.js +0 -1
- package/dist/cpp-DBmYs6pK.js +0 -1
- package/dist/crystal-_Ltdvkfv.js +0 -1
- package/dist/csharp-CzFXtKq-.js +0 -1
- package/dist/csharp-DhrYzyQg.js +0 -1
- package/dist/cshtml-CPggulxs.js +0 -1
- package/dist/csp-C5jhDYKS.js +0 -1
- package/dist/css-CHGm_5Ug.js +0 -1
- package/dist/css-Dr8mrUZQ.js +0 -1
- package/dist/css-extras-CR_At87f.js +0 -1
- package/dist/csv-BjMjkdsd.js +0 -1
- package/dist/cypher-Cz3MYOsR.js +0 -1
- package/dist/d-U3DXoBKs.js +0 -1
- package/dist/dart-nkmISAms.js +0 -1
- package/dist/dataweave-Bqffbm3l.js +0 -1
- package/dist/dax-BUmQo96b.js +0 -1
- package/dist/dhall-tqKETJ5N.js +0 -1
- package/dist/diff-BN3mhZNK.js +0 -3
- package/dist/django-XpzvhI3_.js +0 -1
- package/dist/dns-zone-file-BvWpwvpy.js +0 -1
- package/dist/docker-8-TsERHq.js +0 -1
- package/dist/dot-Bedmh4He.js +0 -1
- package/dist/ebnf-CQ1Owm1r.js +0 -1
- package/dist/editCarrierDialog-qiULFMcT.js +0 -1
- package/dist/editorconfig-D11MkCqN.js +0 -1
- package/dist/eiffel-5RW8i1s_.js +0 -1
- package/dist/ejs-CnXtml3v.js +0 -1
- package/dist/elixir-C65-GKuK.js +0 -1
- package/dist/elm-DzDSmMCu.js +0 -1
- package/dist/erb-v570YtNg.js +0 -1
- package/dist/erlang-COVM6kne.js +0 -1
- package/dist/etlua-CYTkdOD8.js +0 -1
- package/dist/excel-formula-CVF6JFUc.js +0 -1
- package/dist/exportFileGeneration-BryemPIm.js +0 -1
- package/dist/exportImageReadiness-BIPaS2Oz.js +0 -1
- package/dist/exportImageReadinessNotifier-CDPE8TMc.js +0 -1
- package/dist/exportPageHtml-BnFgCZsS.js +0 -5
- package/dist/exportPreviewToDocx-CNUCdnzi.js +0 -11
- package/dist/exportPreviewToPdf-CVhRJw77.js +0 -1
- package/dist/factor-BYWyb9mM.js +0 -1
- package/dist/false-PO5fTmEz.js +0 -1
- package/dist/firestore-security-rules-Dhmp_MBi.js +0 -1
- package/dist/flask-conical-DfeNzqKY.js +0 -7
- package/dist/flow-Jw0KAy-j.js +0 -1
- package/dist/fortran-DOu6I6CX.js +0 -1
- package/dist/fsharp-Bg82wKKC.js +0 -1
- package/dist/ftl-B4QashNa.js +0 -1
- package/dist/gap-B-C4phMB.js +0 -1
- package/dist/gcode-C7cgkMxN.js +0 -1
- package/dist/gdscript-BZGfyeaC.js +0 -1
- package/dist/gedcom-hWBLXHFN.js +0 -1
- package/dist/gherkin-C0cPQhL5.js +0 -1
- package/dist/git-CvbRDRuD.js +0 -1
- package/dist/glsl-Dio579_l.js +0 -1
- package/dist/gml-DMy1gp8J.js +0 -1
- package/dist/gn-CXmdkSGX.js +0 -1
- package/dist/go-BK7Ey8q8.js +0 -1
- package/dist/go-module-DGHMlQxT.js +0 -1
- package/dist/graphql-C3tOz3S9.js +0 -1
- package/dist/groovy-BWSmsMKq.js +0 -1
- package/dist/haml-D761Lwkw.js +0 -1
- package/dist/handlebars-CFzuNVeU.js +0 -1
- package/dist/haskell-D2HwqYTs.js +0 -1
- package/dist/haskell-fKcSYgFk.js +0 -1
- package/dist/haxe-BsTBOPWq.js +0 -1
- package/dist/hcl-CjEa7mhm.js +0 -1
- package/dist/highlighter-Bi2kuv8f.js +0 -7
- package/dist/hlsl-B3Bf2Jd1.js +0 -1
- package/dist/hoon-DdoFvX8i.js +0 -1
- package/dist/hpkp-BPcGR8EQ.js +0 -1
- package/dist/hsts-oLeDVYg4.js +0 -1
- package/dist/http-C65ao8FS.js +0 -1
- package/dist/ichigojam-NdH0fggR.js +0 -1
- package/dist/icon-CjpIDepR.js +0 -1
- package/dist/icu-message-format-A3pDj87f.js +0 -1
- package/dist/idris-CRHPBU_F.js +0 -1
- package/dist/iecst-DitcXByQ.js +0 -1
- package/dist/ignore-CmXNr-En.js +0 -1
- package/dist/image-plus-B3MMgEPL.js +0 -7
- package/dist/index-BYll8ylX.js +0 -2
- package/dist/index-BtR975tI.js +0 -1
- package/dist/index-CVaFIPrZ.js +0 -13
- package/dist/index-CkWdb2Ws.js +0 -1
- package/dist/index-Ct2s_UPb.js +0 -1
- package/dist/index-OBC-S4JF.js +0 -3
- package/dist/index-pjV8dzev.js +0 -1
- package/dist/index-s1LikHjO.js +0 -1
- package/dist/index.client-D86od2fV.js +0 -501
- package/dist/inform7-sEqx2-7g.js +0 -1
- package/dist/ini-DfvMWacy.js +0 -1
- package/dist/io-CfaIzWvO.js +0 -1
- package/dist/j-D_qDpCvj.js +0 -1
- package/dist/java-CZIvhO6U.js +0 -1
- package/dist/java-D5YF95hZ.js +0 -1
- package/dist/javadoc-4Rdti3Lf.js +0 -1
- package/dist/javadoclike-gz6ZNgII.js +0 -1
- package/dist/javadoclike-odLU89VS.js +0 -1
- package/dist/javascript-BHdRPnNL.js +0 -1
- package/dist/javascript-CEunhhi4.js +0 -1
- package/dist/javastacktrace-DTySuujE.js +0 -1
- package/dist/jexl-B-55AiTX.js +0 -1
- package/dist/jolie-Cerm6rPa.js +0 -1
- package/dist/jq-CxYM2bpe.js +0 -1
- package/dist/js-extras-B96Xzdzr.js +0 -1
- package/dist/js-templates-BJfSNsZD.js +0 -1
- package/dist/jsdoc-oC7vbq5i.js +0 -1
- package/dist/json-D4kK7Ph_.js +0 -1
- package/dist/json-DROiTAr2.js +0 -1
- package/dist/json5-DxXL3eT7.js +0 -1
- package/dist/jsonp-ar2fV8fZ.js +0 -1
- package/dist/jsstacktrace-BINMgU-E.js +0 -1
- package/dist/jsx-CqAdGZ8z.js +0 -1
- package/dist/jsx-DjXnni8N.js +0 -1
- package/dist/julia-DqnOG3a3.js +0 -1
- package/dist/keepalived-ByxR9AfG.js +0 -1
- package/dist/keyman-B0WzsmDf.js +0 -1
- package/dist/kotlin-cdNFHPRk.js +0 -1
- package/dist/kumir-dCYrmqEc.js +0 -1
- package/dist/kusto-BiAufrSD.js +0 -1
- package/dist/latex-Clo76c6g.js +0 -1
- package/dist/latte-BClgsIsm.js +0 -1
- package/dist/less-D0ZziKfg.js +0 -1
- package/dist/lilypond-D-j7r1t-.js +0 -1
- package/dist/link-2-off-B6MiQbkR.js +0 -7
- package/dist/liquid-B6DAEC2l.js +0 -1
- package/dist/lisp-CEcGfDXG.js +0 -1
- package/dist/livescript-Tz5wJNbl.js +0 -1
- package/dist/llvm-Dv3C4y-V.js +0 -1
- package/dist/lock-keyhole-p1wVc-9Y.js +0 -7
- package/dist/log-NVPAjhVz.js +0 -1
- package/dist/lolcode-De45ux4z.js +0 -1
- package/dist/lua-BeIBSVZf.js +0 -1
- package/dist/lua-CSN67GiU.js +0 -1
- package/dist/lucide-react-Dwxi-V4B.js +0 -7
- package/dist/luckyexcel.umd-JVs96sZB.js +0 -12
- package/dist/magma-CaUgW-If.js +0 -1
- package/dist/makefile-C_Q-8hQ9.js +0 -1
- package/dist/markdown-BSGp8L4I.js +0 -1
- package/dist/markup-C46YaeBf.js +0 -1
- package/dist/markup-D_Wa_fyo.js +0 -1
- package/dist/markup-templating-D-FRJF7C.js +0 -1
- package/dist/markup-templating-RD0xxf_6.js +0 -1
- package/dist/matlab-BaDneZBA.js +0 -1
- package/dist/maxscript-fnWefuCx.js +0 -1
- package/dist/mel-BfRfAwlY.js +0 -1
- package/dist/mermaid-BQn_FD9x.js +0 -1
- package/dist/mizar-DEGTGWko.js +0 -1
- package/dist/mongodb-BfLZtkrZ.js +0 -1
- package/dist/monkey-B64xijTv.js +0 -1
- package/dist/moonscript-DB17HjmC.js +0 -1
- package/dist/n1ql-hqkhi-L2.js +0 -1
- package/dist/n4js-BYUcZZDj.js +0 -1
- package/dist/nand2tetris-hdl-Deux5UAx.js +0 -1
- package/dist/naniscript-jeJO_Cwe.js +0 -1
- package/dist/nasm-DO__GDMC.js +0 -1
- package/dist/neon-k-XmqJK1.js +0 -1
- package/dist/nevod-CVbTPaTU.js +0 -1
- package/dist/nginx-Tr7fUd5Q.js +0 -1
- package/dist/nim-DoVTJHY6.js +0 -1
- package/dist/nix-D3dcpYSM.js +0 -1
- package/dist/nsis-Dg9SRrGb.js +0 -1
- package/dist/objectivec-DR-DvLAX.js +0 -1
- package/dist/ocaml-F3JoCAcv.js +0 -1
- package/dist/opencl-7oQl32PR.js +0 -1
- package/dist/openqasm-CKAaKI3L.js +0 -1
- package/dist/oz-BRgcnbzh.js +0 -1
- package/dist/paintbrush-CTOxtIk9.js +0 -7
- package/dist/parigp-bc7o-JYX.js +0 -1
- package/dist/parser-Dh9T84aa.js +0 -1
- package/dist/pascal-Mc9TrqVN.js +0 -1
- package/dist/pascaligo-Bu5Nfubu.js +0 -1
- package/dist/pcaxis-CeA8o0Aa.js +0 -1
- package/dist/pen-tool-BG-0jVP8.js +0 -7
- package/dist/peoplecode-DMMP6xme.js +0 -1
- package/dist/perl-pjwABpJK.js +0 -1
- package/dist/php-B9N6PoaM.js +0 -1
- package/dist/php-D0A5Cwxv.js +0 -1
- package/dist/php-extras-WT2OUkhI.js +0 -1
- package/dist/phpdoc-BXRRdQyT.js +0 -1
- package/dist/plsql-BhY3w0-9.js +0 -1
- package/dist/plyr-DCr4Ncz4.js +0 -2
- package/dist/powerquery-DF59uGya.js +0 -1
- package/dist/powershell-BNMQ_G2y.js +0 -1
- package/dist/processing-JexFWMaq.js +0 -1
- package/dist/prolog--bkGGaUb.js +0 -1
- package/dist/promql-BguTah4b.js +0 -1
- package/dist/properties-21I9dpC7.js +0 -1
- package/dist/protobuf-C0LuKyr-.js +0 -1
- package/dist/psl-_DpEFNrY.js +0 -1
- package/dist/pug-C-A1gqPF.js +0 -1
- package/dist/puppet-ChOfG5zw.js +0 -1
- package/dist/pure-Bix-aADQ.js +0 -1
- package/dist/purebasic-DOms9tc7.js +0 -1
- package/dist/purescript-L-AGCGHP.js +0 -1
- package/dist/python-ChreXwvT.js +0 -1
- package/dist/q-w16v1aiR.js +0 -1
- package/dist/qml-DiMezLXL.js +0 -1
- package/dist/qore-DR2g9gsH.js +0 -1
- package/dist/qsharp-C0P6--Sc.js +0 -1
- package/dist/quill-C2A8QePO.js +0 -49
- package/dist/r-HQDwuLXo.js +0 -1
- package/dist/racket-Gz0Tynq_.js +0 -1
- package/dist/react-sdk.css +0 -7
- package/dist/reason-DBZ2sbZf.js +0 -1
- package/dist/regex-lCxC2f-X.js +0 -1
- package/dist/rego-CK6sX92A.js +0 -1
- package/dist/renpy-DtMBoTkk.js +0 -1
- package/dist/rest-DT-jpd1T.js +0 -1
- package/dist/rip-BeCJeoFQ.js +0 -1
- package/dist/roboconf-DQznEGKV.js +0 -1
- package/dist/robotframework-DXfgQqPU.js +0 -1
- package/dist/ruby-3lCor9Ik.js +0 -1
- package/dist/ruby-DPvt_xbw.js +0 -1
- package/dist/runtime-Dn4RiA4k.js +0 -6691
- package/dist/rust-BMc_Yoiv.js +0 -1
- package/dist/sas-0PXWaOIL.js +0 -1
- package/dist/sass-eNYNq8W7.js +0 -1
- package/dist/scala-CyhPM_cs.js +0 -1
- package/dist/scheme-CdQ15Dry.js +0 -1
- package/dist/scheme-DkN0sF0_.js +0 -1
- package/dist/scss-Dy6G_PiM.js +0 -1
- package/dist/shell-session-1NCwql3m.js +0 -1
- package/dist/smali-j9qYXhoq.js +0 -1
- package/dist/smalltalk-D8MDc5CV.js +0 -1
- package/dist/smarty-Bc1ihKhR.js +0 -1
- package/dist/sml-C6hRyyWz.js +0 -1
- package/dist/solidity-BQQmiGFI.js +0 -1
- package/dist/solution-file-MWLYI-NZ.js +0 -1
- package/dist/soy-CXN6tOb4.js +0 -1
- package/dist/sparql-C-R8Gias.js +0 -1
- package/dist/splunk-spl-B_ygCXaC.js +0 -1
- package/dist/sqf-Zq41ozXt.js +0 -1
- package/dist/sql-BxmFV8oZ.js +0 -1
- package/dist/sql-aYT6xcy6.js +0 -1
- package/dist/squirrel-go-JCyyj.js +0 -1
- package/dist/stan-DgTU6nBX.js +0 -1
- package/dist/stylus-D8xMSxFz.js +0 -1
- package/dist/swift-DDKLVbtw.js +0 -1
- package/dist/systemd-CVI591rs.js +0 -2
- package/dist/t4-cs-D4CxVwOS.js +0 -1
- package/dist/t4-templating-BzJ2F4We.js +0 -1
- package/dist/t4-templating-DCXEabnB.js +0 -1
- package/dist/t4-vb-Bxs17kz4.js +0 -1
- package/dist/table-C4pYCXjv.js +0 -7
- package/dist/tableToMarkdown-CNmfuY27.js +0 -3
- package/dist/tap-qeDv6-X-.js +0 -1
- package/dist/tcl-B4LiNtEH.js +0 -1
- package/dist/templateSelectorDialog-DkOR3EVS.js +0 -2
- package/dist/textile-fSaG4-pZ.js +0 -1
- package/dist/toml-Dkmu12eX.js +0 -1
- package/dist/tremor-DdjJs31u.js +0 -1
- package/dist/tsx-Do1jr-aP.js +0 -1
- package/dist/tt2-BlqLFdd5.js +0 -1
- package/dist/turtle-BfhtjCXi.js +0 -1
- package/dist/turtle-UC3jR8N2.js +0 -1
- package/dist/twig-Dfr2sL0m.js +0 -1
- package/dist/typescript-fgz3QQiH.js +0 -1
- package/dist/typescript-y5LBWDhp.js +0 -1
- package/dist/typoscript-DqDEKl5c.js +0 -1
- package/dist/unrealscript-e9RCjvlz.js +0 -1
- package/dist/uorazor-CoHM_uv6.js +0 -1
- package/dist/uri-B4z44HxE.js +0 -1
- package/dist/usePromptLibraryMutations-DK7AzgzY.js +0 -1
- package/dist/useSupabaseBlobUrl-D9O3nyTh.js +0 -1
- package/dist/useTermsNotice-BJqwp7Hj.js +0 -1
- package/dist/user-plus-DXpUkE2I.js +0 -7
- package/dist/user-round-plus-DE6UUMZ6.js +0 -7
- package/dist/v-49Lixibt.js +0 -1
- package/dist/vala-BkpQ1izY.js +0 -1
- package/dist/vbnet-DUoEkDlO.js +0 -1
- package/dist/vbnet-LHlE90my.js +0 -1
- package/dist/velocity-c4kJdiwm.js +0 -1
- package/dist/verilog-CJyeWxAh.js +0 -1
- package/dist/vhdl-LArWr_il.js +0 -1
- package/dist/vim-Dv7JUrwn.js +0 -1
- package/dist/visual-basic-7MKQqLwe.js +0 -1
- package/dist/warpscript-_8Izrgfd.js +0 -1
- package/dist/wasm-znUgjSxD.js +0 -1
- package/dist/web-idl-jFkNLO1i.js +0 -1
- package/dist/wiki-CFXfbO63.js +0 -1
- package/dist/wolfram-Ch26p3vt.js +0 -1
- package/dist/wren-ChmtUIOJ.js +0 -1
- package/dist/xeora-C44TNzQZ.js +0 -1
- package/dist/xlsx-uaO0TYvF.js +0 -142
- package/dist/xml-doc-CbcCzx5D.js +0 -1
- package/dist/xojo-BgNHj7YG.js +0 -1
- package/dist/xquery-y_0Tk4Bz.js +0 -1
- package/dist/yaml-DbYRgcYc.js +0 -1
- package/dist/yaml-GRhlHhYd.js +0 -1
- package/dist/yang-BLo0KhOp.js +0 -1
- package/dist/zig-DLqaTzcX.js +0 -1
package/dist/quill-C2A8QePO.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var Hl=Object.defineProperty,$l=(s,t,e)=>t in s?Hl(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,_=(s,t,e)=>$l(s,typeof t!="symbol"?t+"":t,e);import{dy as Li}from"./runtime-Dn4RiA4k.js";var _i=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Fl=typeof self=="object"&&self&&self.Object===Object&&self,Kt=_i||Fl||Function("return this")(),ce=Kt.Symbol,Si=Object.prototype,Vl=Si.hasOwnProperty,Kl=Si.toString,Er=ce?ce.toStringTag:void 0;function Zl(s){var t=Vl.call(s,Er),e=s[Er];try{s[Er]=void 0;var r=!0}catch{}var n=Kl.call(s);return r&&(t?s[Er]=e:delete s[Er]),n}var Wl=Object.prototype,Gl=Wl.toString;function Xl(s){return Gl.call(s)}var Ql="[object Null]",Yl="[object Undefined]",Ti=ce?ce.toStringTag:void 0;function Ve(s){return s==null?s===void 0?Yl:Ql:Ti&&Ti in Object(s)?Zl(s):Xl(s)}function te(s){return s!=null&&typeof s=="object"}var qe=Array.isArray;function ue(s){var t=typeof s;return s!=null&&(t=="object"||t=="function")}function Ci(s){return s}var Jl="[object AsyncFunction]",ta="[object Function]",ea="[object GeneratorFunction]",ra="[object Proxy]";function An(s){if(!ue(s))return!1;var t=Ve(s);return t==ta||t==ea||t==Jl||t==ra}var qn=Kt["__core-js_shared__"],ji=(function(){var s=/[^.]+$/.exec(qn&&qn.keys&&qn.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function sa(s){return!!ji&&ji in s}var na=Function.prototype,ia=na.toString;function ke(s){if(s!=null){try{return ia.call(s)}catch{}try{return s+""}catch{}}return""}var oa=/[\\^$.*+?()[\]{}|]/g,la=/^\[object .+?Constructor\]$/,aa=Function.prototype,ca=Object.prototype,ua=aa.toString,ha=ca.hasOwnProperty,da=RegExp("^"+ua.call(ha).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fa(s){if(!ue(s)||sa(s))return!1;var t=An(s)?da:la;return t.test(ke(s))}function pa(s,t){return s==null?void 0:s[t]}function Oe(s,t){var e=pa(s,t);return fa(e)?e:void 0}var kn=Oe(Kt,"WeakMap"),Ri=Object.create,ma=(function(){function s(){}return function(t){if(!ue(t))return{};if(Ri)return Ri(t);s.prototype=t;var e=new s;return s.prototype=void 0,e}})();function ga(s,t,e){switch(e.length){case 0:return s.call(t);case 1:return s.call(t,e[0]);case 2:return s.call(t,e[0],e[1]);case 3:return s.call(t,e[0],e[1],e[2])}return s.apply(t,e)}function ba(s,t){var e=-1,r=s.length;for(t||(t=Array(r));++e<r;)t[e]=s[e];return t}var ya=800,va=16,xa=Date.now;function Na(s){var t=0,e=0;return function(){var r=xa(),n=va-(r-e);if(e=r,n>0){if(++t>=ya)return arguments[0]}else t=0;return s.apply(void 0,arguments)}}function Ea(s){return function(){return s}}var os=(function(){try{var s=Oe(Object,"defineProperty");return s({},"",{}),s}catch{}})(),wa=os?function(s,t){return os(s,"toString",{configurable:!0,enumerable:!1,value:Ea(t),writable:!0})}:Ci,Aa=Na(wa);function qa(s,t){for(var e=-1,r=s==null?0:s.length;++e<r&&t(s[e],e,s)!==!1;);return s}var ka=9007199254740991,Oa=/^(?:0|[1-9]\d*)$/;function Ii(s,t){var e=typeof s;return t=t??ka,!!t&&(e=="number"||e!="symbol"&&Oa.test(s))&&s>-1&&s%1==0&&s<t}function On(s,t,e){t=="__proto__"&&os?os(s,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):s[t]=e}function wr(s,t){return s===t||s!==s&&t!==t}var La=Object.prototype,_a=La.hasOwnProperty;function Mi(s,t,e){var r=s[t];(!(_a.call(s,t)&&wr(r,e))||e===void 0&&!(t in s))&&On(s,t,e)}function Sa(s,t,e,r){var n=!e;e||(e={});for(var i=-1,l=t.length;++i<l;){var a=t[i],u=void 0;u===void 0&&(u=s[a]),n?On(e,a,u):Mi(e,a,u)}return e}var Bi=Math.max;function Ta(s,t,e){return t=Bi(t===void 0?s.length-1:t,0),function(){for(var r=arguments,n=-1,i=Bi(r.length-t,0),l=Array(i);++n<i;)l[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=e(l),ga(s,this,a)}}function Ca(s,t){return Aa(Ta(s,t,Ci),s+"")}var ja=9007199254740991;function Di(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ja}function ls(s){return s!=null&&Di(s.length)&&!An(s)}function Ra(s,t,e){if(!ue(e))return!1;var r=typeof t;return(r=="number"?ls(e)&&Ii(t,e.length):r=="string"&&t in e)?wr(e[t],s):!1}function Ia(s){return Ca(function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,l=n>2?e[2]:void 0;for(i=s.length>3&&typeof i=="function"?(n--,i):void 0,l&&Ra(e[0],e[1],l)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&s(t,a,r,i)}return t})}var Ma=Object.prototype;function Ln(s){var t=s&&s.constructor,e=typeof t=="function"&&t.prototype||Ma;return s===e}function Ba(s,t){for(var e=-1,r=Array(s);++e<s;)r[e]=t(e);return r}var Da="[object Arguments]";function Ui(s){return te(s)&&Ve(s)==Da}var zi=Object.prototype,Ua=zi.hasOwnProperty,za=zi.propertyIsEnumerable,_n=Ui((function(){return arguments})())?Ui:function(s){return te(s)&&Ua.call(s,"callee")&&!za.call(s,"callee")};function Pa(){return!1}var Pi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hi=Pi&&typeof module=="object"&&module&&!module.nodeType&&module,Ha=Hi&&Hi.exports===Pi,$i=Ha?Kt.Buffer:void 0,$a=$i?$i.isBuffer:void 0,Ar=$a||Pa,Fa="[object Arguments]",Va="[object Array]",Ka="[object Boolean]",Za="[object Date]",Wa="[object Error]",Ga="[object Function]",Xa="[object Map]",Qa="[object Number]",Ya="[object Object]",Ja="[object RegExp]",tc="[object Set]",ec="[object String]",rc="[object WeakMap]",sc="[object ArrayBuffer]",nc="[object DataView]",ic="[object Float32Array]",oc="[object Float64Array]",lc="[object Int8Array]",ac="[object Int16Array]",cc="[object Int32Array]",uc="[object Uint8Array]",hc="[object Uint8ClampedArray]",dc="[object Uint16Array]",fc="[object Uint32Array]",ot={};ot[ic]=ot[oc]=ot[lc]=ot[ac]=ot[cc]=ot[uc]=ot[hc]=ot[dc]=ot[fc]=!0,ot[Fa]=ot[Va]=ot[sc]=ot[Ka]=ot[nc]=ot[Za]=ot[Wa]=ot[Ga]=ot[Xa]=ot[Qa]=ot[Ya]=ot[Ja]=ot[tc]=ot[ec]=ot[rc]=!1;function pc(s){return te(s)&&Di(s.length)&&!!ot[Ve(s)]}function Sn(s){return function(t){return s(t)}}var Fi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qr=Fi&&typeof module=="object"&&module&&!module.nodeType&&module,mc=qr&&qr.exports===Fi,Tn=mc&&_i.process,Ke=(function(){try{var s=qr&&qr.require&&qr.require("util").types;return s||Tn&&Tn.binding&&Tn.binding("util")}catch{}})(),Vi=Ke&&Ke.isTypedArray,Cn=Vi?Sn(Vi):pc,gc=Object.prototype,bc=gc.hasOwnProperty;function Ki(s,t){var e=qe(s),r=!e&&_n(s),n=!e&&!r&&Ar(s),i=!e&&!r&&!n&&Cn(s),l=e||r||n||i,a=l?Ba(s.length,String):[],u=a.length;for(var h in s)(t||bc.call(s,h))&&!(l&&(h=="length"||n&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Ii(h,u)))&&a.push(h);return a}function Zi(s,t){return function(e){return s(t(e))}}var yc=Zi(Object.keys,Object),vc=Object.prototype,xc=vc.hasOwnProperty;function Nc(s){if(!Ln(s))return yc(s);var t=[];for(var e in Object(s))xc.call(s,e)&&e!="constructor"&&t.push(e);return t}function Ec(s){return ls(s)?Ki(s):Nc(s)}function wc(s){var t=[];if(s!=null)for(var e in Object(s))t.push(e);return t}var Ac=Object.prototype,qc=Ac.hasOwnProperty;function kc(s){if(!ue(s))return wc(s);var t=Ln(s),e=[];for(var r in s)r=="constructor"&&(t||!qc.call(s,r))||e.push(r);return e}function Wi(s){return ls(s)?Ki(s,!0):kc(s)}var kr=Oe(Object,"create");function Oc(){this.__data__=kr?kr(null):{},this.size=0}function Lc(s){var t=this.has(s)&&delete this.__data__[s];return this.size-=t?1:0,t}var _c="__lodash_hash_undefined__",Sc=Object.prototype,Tc=Sc.hasOwnProperty;function Cc(s){var t=this.__data__;if(kr){var e=t[s];return e===_c?void 0:e}return Tc.call(t,s)?t[s]:void 0}var jc=Object.prototype,Rc=jc.hasOwnProperty;function Ic(s){var t=this.__data__;return kr?t[s]!==void 0:Rc.call(t,s)}var Mc="__lodash_hash_undefined__";function Bc(s,t){var e=this.__data__;return this.size+=this.has(s)?0:1,e[s]=kr&&t===void 0?Mc:t,this}function Le(s){var t=-1,e=s==null?0:s.length;for(this.clear();++t<e;){var r=s[t];this.set(r[0],r[1])}}Le.prototype.clear=Oc,Le.prototype.delete=Lc,Le.prototype.get=Cc,Le.prototype.has=Ic,Le.prototype.set=Bc;function Dc(){this.__data__=[],this.size=0}function as(s,t){for(var e=s.length;e--;)if(wr(s[e][0],t))return e;return-1}var Uc=Array.prototype,zc=Uc.splice;function Pc(s){var t=this.__data__,e=as(t,s);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():zc.call(t,e,1),--this.size,!0}function Hc(s){var t=this.__data__,e=as(t,s);return e<0?void 0:t[e][1]}function $c(s){return as(this.__data__,s)>-1}function Fc(s,t){var e=this.__data__,r=as(e,s);return r<0?(++this.size,e.push([s,t])):e[r][1]=t,this}function ee(s){var t=-1,e=s==null?0:s.length;for(this.clear();++t<e;){var r=s[t];this.set(r[0],r[1])}}ee.prototype.clear=Dc,ee.prototype.delete=Pc,ee.prototype.get=Hc,ee.prototype.has=$c,ee.prototype.set=Fc;var Or=Oe(Kt,"Map");function Vc(){this.size=0,this.__data__={hash:new Le,map:new(Or||ee),string:new Le}}function Kc(s){var t=typeof s;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?s!=="__proto__":s===null}function cs(s,t){var e=s.__data__;return Kc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Zc(s){var t=cs(this,s).delete(s);return this.size-=t?1:0,t}function Wc(s){return cs(this,s).get(s)}function Gc(s){return cs(this,s).has(s)}function Xc(s,t){var e=cs(this,s),r=e.size;return e.set(s,t),this.size+=e.size==r?0:1,this}function _e(s){var t=-1,e=s==null?0:s.length;for(this.clear();++t<e;){var r=s[t];this.set(r[0],r[1])}}_e.prototype.clear=Vc,_e.prototype.delete=Zc,_e.prototype.get=Wc,_e.prototype.has=Gc,_e.prototype.set=Xc;function Qc(s,t){for(var e=-1,r=t.length,n=s.length;++e<r;)s[n+e]=t[e];return s}var Gi=Zi(Object.getPrototypeOf,Object),Yc="[object Object]",Jc=Function.prototype,tu=Object.prototype,Xi=Jc.toString,eu=tu.hasOwnProperty,ru=Xi.call(Object);function su(s){if(!te(s)||Ve(s)!=Yc)return!1;var t=Gi(s);if(t===null)return!0;var e=eu.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Xi.call(e)==ru}function nu(){this.__data__=new ee,this.size=0}function iu(s){var t=this.__data__,e=t.delete(s);return this.size=t.size,e}function ou(s){return this.__data__.get(s)}function lu(s){return this.__data__.has(s)}var au=200;function cu(s,t){var e=this.__data__;if(e instanceof ee){var r=e.__data__;if(!Or||r.length<au-1)return r.push([s,t]),this.size=++e.size,this;e=this.__data__=new _e(r)}return e.set(s,t),this.size=e.size,this}function Zt(s){var t=this.__data__=new ee(s);this.size=t.size}Zt.prototype.clear=nu,Zt.prototype.delete=iu,Zt.prototype.get=ou,Zt.prototype.has=lu,Zt.prototype.set=cu;var Qi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yi=Qi&&typeof module=="object"&&module&&!module.nodeType&&module,uu=Yi&&Yi.exports===Qi,Ji=uu?Kt.Buffer:void 0,to=Ji?Ji.allocUnsafe:void 0;function eo(s,t){if(t)return s.slice();var e=s.length,r=to?to(e):new s.constructor(e);return s.copy(r),r}function hu(s,t){for(var e=-1,r=s==null?0:s.length,n=0,i=[];++e<r;){var l=s[e];t(l,e,s)&&(i[n++]=l)}return i}function du(){return[]}var fu=Object.prototype,pu=fu.propertyIsEnumerable,ro=Object.getOwnPropertySymbols,mu=ro?function(s){return s==null?[]:(s=Object(s),hu(ro(s),function(t){return pu.call(s,t)}))}:du;function gu(s,t,e){var r=t(s);return qe(s)?r:Qc(r,e(s))}function jn(s){return gu(s,Ec,mu)}var Rn=Oe(Kt,"DataView"),In=Oe(Kt,"Promise"),Mn=Oe(Kt,"Set"),so="[object Map]",bu="[object Object]",no="[object Promise]",io="[object Set]",oo="[object WeakMap]",lo="[object DataView]",yu=ke(Rn),vu=ke(Or),xu=ke(In),Nu=ke(Mn),Eu=ke(kn),Mt=Ve;(Rn&&Mt(new Rn(new ArrayBuffer(1)))!=lo||Or&&Mt(new Or)!=so||In&&Mt(In.resolve())!=no||Mn&&Mt(new Mn)!=io||kn&&Mt(new kn)!=oo)&&(Mt=function(s){var t=Ve(s),e=t==bu?s.constructor:void 0,r=e?ke(e):"";if(r)switch(r){case yu:return lo;case vu:return so;case xu:return no;case Nu:return io;case Eu:return oo}return t});var wu=Object.prototype,Au=wu.hasOwnProperty;function qu(s){var t=s.length,e=new s.constructor(t);return t&&typeof s[0]=="string"&&Au.call(s,"index")&&(e.index=s.index,e.input=s.input),e}var us=Kt.Uint8Array;function Bn(s){var t=new s.constructor(s.byteLength);return new us(t).set(new us(s)),t}function ku(s,t){var e=Bn(s.buffer);return new s.constructor(e,s.byteOffset,s.byteLength)}var Ou=/\w*$/;function Lu(s){var t=new s.constructor(s.source,Ou.exec(s));return t.lastIndex=s.lastIndex,t}var ao=ce?ce.prototype:void 0,co=ao?ao.valueOf:void 0;function _u(s){return co?Object(co.call(s)):{}}function uo(s,t){var e=t?Bn(s.buffer):s.buffer;return new s.constructor(e,s.byteOffset,s.length)}var Su="[object Boolean]",Tu="[object Date]",Cu="[object Map]",ju="[object Number]",Ru="[object RegExp]",Iu="[object Set]",Mu="[object String]",Bu="[object Symbol]",Du="[object ArrayBuffer]",Uu="[object DataView]",zu="[object Float32Array]",Pu="[object Float64Array]",Hu="[object Int8Array]",$u="[object Int16Array]",Fu="[object Int32Array]",Vu="[object Uint8Array]",Ku="[object Uint8ClampedArray]",Zu="[object Uint16Array]",Wu="[object Uint32Array]";function Gu(s,t,e){var r=s.constructor;switch(t){case Du:return Bn(s);case Su:case Tu:return new r(+s);case Uu:return ku(s);case zu:case Pu:case Hu:case $u:case Fu:case Vu:case Ku:case Zu:case Wu:return uo(s,e);case Cu:return new r;case ju:case Mu:return new r(s);case Ru:return Lu(s);case Iu:return new r;case Bu:return _u(s)}}function ho(s){return typeof s.constructor=="function"&&!Ln(s)?ma(Gi(s)):{}}var Xu="[object Map]";function Qu(s){return te(s)&&Mt(s)==Xu}var fo=Ke&&Ke.isMap,Yu=fo?Sn(fo):Qu,Ju="[object Set]";function th(s){return te(s)&&Mt(s)==Ju}var po=Ke&&Ke.isSet,eh=po?Sn(po):th,rh=1,mo="[object Arguments]",sh="[object Array]",nh="[object Boolean]",ih="[object Date]",oh="[object Error]",go="[object Function]",lh="[object GeneratorFunction]",ah="[object Map]",ch="[object Number]",bo="[object Object]",uh="[object RegExp]",hh="[object Set]",dh="[object String]",fh="[object Symbol]",ph="[object WeakMap]",mh="[object ArrayBuffer]",gh="[object DataView]",bh="[object Float32Array]",yh="[object Float64Array]",vh="[object Int8Array]",xh="[object Int16Array]",Nh="[object Int32Array]",Eh="[object Uint8Array]",wh="[object Uint8ClampedArray]",Ah="[object Uint16Array]",qh="[object Uint32Array]",nt={};nt[mo]=nt[sh]=nt[mh]=nt[gh]=nt[nh]=nt[ih]=nt[bh]=nt[yh]=nt[vh]=nt[xh]=nt[Nh]=nt[ah]=nt[ch]=nt[bo]=nt[uh]=nt[hh]=nt[dh]=nt[fh]=nt[Eh]=nt[wh]=nt[Ah]=nt[qh]=!0,nt[oh]=nt[go]=nt[ph]=!1;function hs(s,t,e,r,n,i){var l,a=t&rh;if(l!==void 0)return l;if(!ue(s))return s;var u=qe(s);if(u)l=qu(s);else{var h=Mt(s),g=h==go||h==lh;if(Ar(s))return eo(s,a);if(h==bo||h==mo||g&&!n)l=g?{}:ho(s);else{if(!nt[h])return n?s:{};l=Gu(s,h,a)}}i||(i=new Zt);var x=i.get(s);if(x)return x;i.set(s,l),eh(s)?s.forEach(function(b){l.add(hs(b,t,e,b,s,i))}):Yu(s)&&s.forEach(function(b,v){l.set(v,hs(b,t,e,v,s,i))});var f=jn,m=u?void 0:f(s);return qa(m||s,function(b,v){m&&(v=b,b=s[v]),Mi(l,v,hs(b,t,e,v,s,i))}),l}var kh=1,Oh=4;function Ze(s){return hs(s,kh|Oh)}var Lh="__lodash_hash_undefined__";function _h(s){return this.__data__.set(s,Lh),this}function Sh(s){return this.__data__.has(s)}function ds(s){var t=-1,e=s==null?0:s.length;for(this.__data__=new _e;++t<e;)this.add(s[t])}ds.prototype.add=ds.prototype.push=_h,ds.prototype.has=Sh;function Th(s,t){for(var e=-1,r=s==null?0:s.length;++e<r;)if(t(s[e],e,s))return!0;return!1}function Ch(s,t){return s.has(t)}var jh=1,Rh=2;function yo(s,t,e,r,n,i){var l=e&jh,a=s.length,u=t.length;if(a!=u&&!(l&&u>a))return!1;var h=i.get(s),g=i.get(t);if(h&&g)return h==t&&g==s;var x=-1,f=!0,m=e&Rh?new ds:void 0;for(i.set(s,t),i.set(t,s);++x<a;){var b=s[x],v=t[x];if(r)var L=l?r(v,b,x,t,s,i):r(b,v,x,s,t,i);if(L!==void 0){if(L)continue;f=!1;break}if(m){if(!Th(t,function(T,C){if(!Ch(m,C)&&(b===T||n(b,T,e,r,i)))return m.push(C)})){f=!1;break}}else if(!(b===v||n(b,v,e,r,i))){f=!1;break}}return i.delete(s),i.delete(t),f}function Ih(s){var t=-1,e=Array(s.size);return s.forEach(function(r,n){e[++t]=[n,r]}),e}function Mh(s){var t=-1,e=Array(s.size);return s.forEach(function(r){e[++t]=r}),e}var Bh=1,Dh=2,Uh="[object Boolean]",zh="[object Date]",Ph="[object Error]",Hh="[object Map]",$h="[object Number]",Fh="[object RegExp]",Vh="[object Set]",Kh="[object String]",Zh="[object Symbol]",Wh="[object ArrayBuffer]",Gh="[object DataView]",vo=ce?ce.prototype:void 0,Dn=vo?vo.valueOf:void 0;function Xh(s,t,e,r,n,i,l){switch(e){case Gh:if(s.byteLength!=t.byteLength||s.byteOffset!=t.byteOffset)return!1;s=s.buffer,t=t.buffer;case Wh:return!(s.byteLength!=t.byteLength||!i(new us(s),new us(t)));case Uh:case zh:case $h:return wr(+s,+t);case Ph:return s.name==t.name&&s.message==t.message;case Fh:case Kh:return s==t+"";case Hh:var a=Ih;case Vh:var u=r&Bh;if(a||(a=Mh),s.size!=t.size&&!u)return!1;var h=l.get(s);if(h)return h==t;r|=Dh,l.set(s,t);var g=yo(a(s),a(t),r,n,i,l);return l.delete(s),g;case Zh:if(Dn)return Dn.call(s)==Dn.call(t)}return!1}var Qh=1,Yh=Object.prototype,Jh=Yh.hasOwnProperty;function td(s,t,e,r,n,i){var l=e&Qh,a=jn(s),u=a.length,h=jn(t),g=h.length;if(u!=g&&!l)return!1;for(var x=u;x--;){var f=a[x];if(!(l?f in t:Jh.call(t,f)))return!1}var m=i.get(s),b=i.get(t);if(m&&b)return m==t&&b==s;var v=!0;i.set(s,t),i.set(t,s);for(var L=l;++x<u;){f=a[x];var T=s[f],C=t[f];if(r)var F=l?r(C,T,f,t,s,i):r(T,C,f,s,t,i);if(!(F===void 0?T===C||n(T,C,e,r,i):F)){v=!1;break}L||(L=f=="constructor")}if(v&&!L){var z=s.constructor,$=t.constructor;z!=$&&"constructor"in s&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof $=="function"&&$ instanceof $)&&(v=!1)}return i.delete(s),i.delete(t),v}var ed=1,xo="[object Arguments]",No="[object Array]",fs="[object Object]",rd=Object.prototype,Eo=rd.hasOwnProperty;function sd(s,t,e,r,n,i){var l=qe(s),a=qe(t),u=l?No:Mt(s),h=a?No:Mt(t);u=u==xo?fs:u,h=h==xo?fs:h;var g=u==fs,x=h==fs,f=u==h;if(f&&Ar(s)){if(!Ar(t))return!1;l=!0,g=!1}if(f&&!g)return i||(i=new Zt),l||Cn(s)?yo(s,t,e,r,n,i):Xh(s,t,u,e,r,n,i);if(!(e&ed)){var m=g&&Eo.call(s,"__wrapped__"),b=x&&Eo.call(t,"__wrapped__");if(m||b){var v=m?s.value():s,L=b?t.value():t;return i||(i=new Zt),n(v,L,e,r,i)}}return f?(i||(i=new Zt),td(s,t,e,r,n,i)):!1}function wo(s,t,e,r,n){return s===t?!0:s==null||t==null||!te(s)&&!te(t)?s!==s&&t!==t:sd(s,t,e,r,wo,n)}function nd(s){return function(t,e,r){for(var n=-1,i=Object(t),l=r(t),a=l.length;a--;){var u=l[++n];if(e(i[u],u,i)===!1)break}return t}}var id=nd();function Un(s,t,e){(e!==void 0&&!wr(s[t],e)||e===void 0&&!(t in s))&&On(s,t,e)}function od(s){return te(s)&&ls(s)}function zn(s,t){if(!(t==="constructor"&&typeof s[t]=="function")&&t!="__proto__")return s[t]}function ld(s){return Sa(s,Wi(s))}function ad(s,t,e,r,n,i,l){var a=zn(s,e),u=zn(t,e),h=l.get(u);if(h){Un(s,e,h);return}var g=i?i(a,u,e+"",s,t,l):void 0,x=g===void 0;if(x){var f=qe(u),m=!f&&Ar(u),b=!f&&!m&&Cn(u);g=u,f||m||b?qe(a)?g=a:od(a)?g=ba(a):m?(x=!1,g=eo(u,!0)):b?(x=!1,g=uo(u,!0)):g=[]:su(u)||_n(u)?(g=a,_n(a)?g=ld(a):(!ue(a)||An(a))&&(g=ho(u))):x=!1}x&&(l.set(u,g),n(g,u,r,i,l),l.delete(u)),Un(s,e,g)}function Ao(s,t,e,r,n){s!==t&&id(t,function(i,l){if(n||(n=new Zt),ue(i))ad(s,t,l,e,Ao,r,n);else{var a=r?r(zn(s,l),i,l+"",s,t,n):void 0;a===void 0&&(a=i),Un(s,l,a)}},Wi)}function Pn(s,t){return wo(s,t)}var he=Ia(function(s,t,e){Ao(s,t,e)}),M=(s=>(s[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY",s))(M||{});class Wt{constructor(t,e,r={}){this.attrName=t,this.keyName=e;const n=M.TYPE&M.ATTRIBUTE;this.scope=r.scope!=null?r.scope&M.LEVEL|n:M.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class We extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const qo=class qi{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let r=null;try{r=t.parentNode}catch{return null}return this.find(r,e)}return null}create(t,e,r){const n=this.query(e);if(n==null)throw new We(`Unable to create ${e} blot`);const i=n,l=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(r),a=new i(t,l,r);return qi.blots.set(a.domNode,a),a}find(t,e=!1){return qi.find(t,e)}query(t,e=M.ANY){let r;return typeof t=="string"?r=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?r=this.types.text:typeof t=="number"?t&M.LEVEL&M.BLOCK?r=this.types.block:t&M.LEVEL&M.INLINE&&(r=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[t.tagName]),r==null?null:"scope"in r&&e&M.LEVEL&r.scope&&e&M.TYPE&r.scope?r:null}register(...t){return t.map(e=>{const r="blotName"in e,n="attrName"in e;if(!r&&!n)throw new We("Invalid definition");if(r&&e.blotName==="abstract")throw new We("Cannot register abstract class");const i=r?e.blotName:n?e.attrName:void 0;return this.types[i]=e,n?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):r&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(l=>l.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(l=>{(this.tags[l]==null||e.className==null)&&(this.tags[l]=e)}))),e})}};qo.blots=new WeakMap;let Ge=qo;function ko(s,t){return(s.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class cd extends Wt{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){ko(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(ko(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Bt=cd;function Hn(s){const t=s.split("-"),e=t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return t[0]+e}class ud extends Wt{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Hn(this.keyName)]=e,!0):!1}remove(t){t.style[Hn(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Hn(this.keyName)];return this.canAdd(t,e)?e:""}}const de=ud;class hd{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Ge.find(this.domNode);if(t==null)return;const e=Wt.keys(this.domNode),r=Bt.keys(this.domNode),n=de.keys(this.domNode);e.concat(r).concat(n).forEach(i=>{const l=t.scroll.query(i,M.ATTRIBUTE);l instanceof Wt&&(this.attributes[l.attrName]=l)})}copy(t){Object.keys(this.attributes).forEach(e=>{const r=this.attributes[e].value(this.domNode);t.format(e,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const ps=hd,Oo=class{constructor(s,t){this.scroll=s,this.domNode=t,Ge.blots.set(t,this),this.prev=null,this.next=null}static create(s){if(this.tagName==null)throw new We("Blot definition missing tagName");let t,e;return Array.isArray(this.tagName)?(typeof s=="string"?(e=s.toUpperCase(),parseInt(e,10).toString()===e&&(e=parseInt(e,10))):typeof s=="number"&&(e=s),typeof e=="number"?t=document.createElement(this.tagName[e-1]):e&&this.tagName.indexOf(e)>-1?t=document.createElement(e):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const s=this.domNode.cloneNode(!1);return this.scroll.create(s)}detach(){this.parent!=null&&this.parent.removeChild(this),Ge.blots.delete(this.domNode)}deleteAt(s,t){this.isolate(s,t).remove()}formatAt(s,t,e,r){const n=this.isolate(s,t);if(this.scroll.query(e,M.BLOT)!=null&&r)n.wrap(e,r);else if(this.scroll.query(e,M.ATTRIBUTE)!=null){const i=this.scroll.create(this.statics.scope);n.wrap(i),i.format(e,r)}}insertAt(s,t,e){const r=e==null?this.scroll.create("text",t):this.scroll.create(t,e),n=this.split(s);this.parent.insertBefore(r,n||void 0)}isolate(s,t){const e=this.split(s);if(e==null)throw new Error("Attempt to isolate at end");return e.split(t),e}length(){return 1}offset(s=this.parent){return this.parent==null||this===s?0:this.parent.children.offset(this)+this.parent.offset(s)}optimize(s){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(s,t){const e=typeof s=="string"?this.scroll.create(s,t):s;return this.parent!=null&&(this.parent.insertBefore(e,this.next||void 0),this.remove()),e}split(s,t){return s===0?this:this.next}update(s,t){}wrap(s,t){const e=typeof s=="string"?this.scroll.create(s,t):s;if(this.parent!=null&&this.parent.insertBefore(e,this.next||void 0),typeof e.appendChild!="function")throw new We(`Cannot wrap ${s}`);return e.appendChild(this),e}};Oo.blotName="abstract";let Lo=Oo;const _o=class extends Lo{static value(s){return!0}index(s,t){return this.domNode===s||this.domNode.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(s,t){let e=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return s>0&&(e+=1),[this.parent.domNode,e]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};_o.scope=M.INLINE_BLOT;let dd=_o;const xt=dd;class fd{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let r=e();for(;r&&t>0;)t-=1,r=e();return r}contains(t){const e=this.iterator();let r=e();for(;r;){if(r===t)return!0;r=e()}return!1}indexOf(t){const e=this.iterator();let r=e(),n=0;for(;r;){if(r===t)return n;n+=1,r=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,r=this.head;for(;r!=null;){if(r===t)return e;e+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const r=this.iterator();let n=r();for(;n;){const i=n.length();if(t<i||e&&t===i&&(n.next==null||n.next.length()!==0))return[n,t];t-=i,n=r()}return[null,0]}forEach(t){const e=this.iterator();let r=e();for(;r;)t(r),r=e()}forEachAt(t,e,r){if(e<=0)return;const[n,i]=this.find(t);let l=t-i;const a=this.iterator(n);let u=a();for(;u&&l<t+e;){const h=u.length();t>l?r(u,t-l,Math.min(e,l+h-t)):r(u,0,Math.min(h,t+e-l)),l+=h,u=a()}}map(t){return this.reduce((e,r)=>(e.push(t(r)),e),[])}reduce(t,e){const r=this.iterator();let n=r();for(;n;)e=t(e,n),n=r();return e}}function So(s,t){const e=t.find(s);if(e)return e;try{return t.create(s)}catch{const r=t.create(M.INLINE);return Array.from(s.childNodes).forEach(n=>{r.domNode.appendChild(n)}),s.parentNode&&s.parentNode.replaceChild(r.domNode,s),r.attach(),r}}const To=class be extends Lo{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,be.uiClass&&this.uiNode.classList.add(be.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new fd,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=So(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof We)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(r,n,i)=>{r.deleteAt(n,i)})}descendant(t,e=0){const[r,n]=this.children.find(e);return t.blotName==null&&t(r)||t.blotName!=null&&r instanceof t?[r,n]:r instanceof be?r.descendant(t,n):[null,-1]}descendants(t,e=0,r=Number.MAX_VALUE){let n=[],i=r;return this.children.forEachAt(e,r,(l,a,u)=>{(t.blotName==null&&t(l)||t.blotName!=null&&l instanceof t)&&n.push(l),l instanceof be&&(n=n.concat(l.descendants(t,a,i))),i-=u}),n}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(r=>e instanceof r)||(e.statics.scope===M.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof be?e.unwrap():e.remove())})}formatAt(t,e,r,n){this.children.forEachAt(t,e,(i,l,a)=>{i.formatAt(l,a,r,n)})}insertAt(t,e,r){const[n,i]=this.children.find(t);if(n)n.insertAt(i,e,r);else{const l=r==null?this.scroll.create("text",e):this.scroll.create(e,r);this.appendChild(l)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(r=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(r=>{t.insertBefore(r,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[r,n]=this.children.find(t,e),i=[[this,t]];return r instanceof be?i.concat(r.path(n,e)):(r!=null&&i.push([r,n]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const r=typeof t=="string"?this.scroll.create(t,e):t;return r instanceof be&&this.moveChildren(r),super.replaceWith(r)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(n,i,l)=>{const a=n.split(i,e);a!=null&&r.appendChild(a)}),r}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const r=[],n=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),n.push(...i.removedNodes))}),n.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const l=this.scroll.find(i);l!=null&&(l.domNode.parentNode==null||l.domNode.parentNode===this.domNode)&&l.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,l)=>i===l?0:i.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let l=null;i.nextSibling!=null&&(l=this.scroll.find(i.nextSibling));const a=So(i,this.scroll);(a.next!==l||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,l||void 0))}),this.enforceAllowedChildren()}};To.uiClass="";let pd=To;const Dt=pd;function md(s,t){if(Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}const Xe=class nr extends Dt{static create(t){return super.create(t)}static formats(t,e){const r=e.query(nr.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ps(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(r=>{r instanceof nr||(r=r.wrap(nr.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(t,M.INLINE);if(r==null)return;r instanceof Wt?this.attributes.attribute(r,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,n){this.formats()[r]!=null||this.scroll.query(r,M.ATTRIBUTE)?this.isolate(t,e).format(r,n):super.formatAt(t,e,r,n)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const r=this.next;r instanceof nr&&r.prev===this&&md(e,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(t,e){const r=super.wrap(t,e);return r instanceof nr&&this.attributes.move(r),r}};Xe.allowedChildren=[Xe,xt],Xe.blotName="inline",Xe.scope=M.INLINE_BLOT,Xe.tagName="SPAN";let gd=Xe;const $n=gd,Qe=class ki extends Dt{static create(t){return super.create(t)}static formats(t,e){const r=e.query(ki.blotName);if(!(r!=null&&t.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new ps(this.domNode)}format(t,e){const r=this.scroll.query(t,M.BLOCK);r!=null&&(r instanceof Wt?this.attributes.attribute(r,e):t===this.statics.blotName&&!e?this.replaceWith(ki.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,n){this.scroll.query(r,M.BLOCK)!=null?this.format(r,n):super.formatAt(t,e,r,n)}insertAt(t,e,r){if(r==null||this.scroll.query(e,M.INLINE)!=null)super.insertAt(t,e,r);else{const n=this.split(t);if(n!=null){const i=this.scroll.create(e,r);n.parent.insertBefore(i,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Qe.blotName="block",Qe.scope=M.BLOCK_BLOT,Qe.tagName="P",Qe.allowedChildren=[$n,Qe,xt];let bd=Qe;const Lr=bd,Fn=class extends Dt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(s,t){super.deleteAt(s,t),this.enforceAllowedChildren()}formatAt(s,t,e,r){super.formatAt(s,t,e,r),this.enforceAllowedChildren()}insertAt(s,t,e){super.insertAt(s,t,e),this.enforceAllowedChildren()}optimize(s){super.optimize(s),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Fn.blotName="container",Fn.scope=M.BLOCK_BLOT;let yd=Fn;const ms=yd;class vd extends xt{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,r,n){t===0&&e===this.length()?this.format(r,n):super.formatAt(t,e,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Ot=vd,xd={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Nd=100,Ye=class extends Dt{constructor(s,t){super(null,t),this.registry=s,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,xd),this.attach()}create(s,t){return this.registry.create(this,s,t)}find(s,t=!1){const e=this.registry.find(s,t);return e?e.scroll===this?e:t?this.find(e.scroll.domNode.parentNode,!0):null:null}query(s,t=M.ANY){return this.registry.query(s,t)}register(...s){return this.registry.register(...s)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(s,t){this.update(),s===0&&t===this.length()?this.children.forEach(e=>{e.remove()}):super.deleteAt(s,t)}formatAt(s,t,e,r){this.update(),super.formatAt(s,t,e,r)}insertAt(s,t,e){this.update(),super.insertAt(s,t,e)}optimize(s=[],t={}){super.optimize(t);const e=t.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)s.push(r.pop());const n=(a,u=!0)=>{a==null||a===this||a.domNode.parentNode!=null&&(e.has(a.domNode)||e.set(a.domNode,[]),u&&n(a.parent))},i=a=>{e.has(a.domNode)&&(a instanceof Dt&&a.children.forEach(i),e.delete(a.domNode),a.optimize(t))};let l=s;for(let a=0;l.length>0;a+=1){if(a>=Nd)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const h=this.find(u.target,!0);h!=null&&(h.domNode===u.target&&(u.type==="childList"?(n(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(g=>{const x=this.find(g,!1);n(x,!1),x instanceof Dt&&x.children.forEach(f=>{n(f,!1)})})):u.type==="attributes"&&n(h.prev)),n(h))}),this.children.forEach(i),l=Array.from(this.observer.takeRecords()),r=l.slice();r.length>0;)s.push(r.pop())}}update(s,t={}){s=s||this.observer.takeRecords();const e=new WeakMap;s.map(r=>{const n=this.find(r.target,!0);return n==null?null:e.has(n.domNode)?(e.get(n.domNode).push(r),null):(e.set(n.domNode,[r]),n)}).forEach(r=>{r!=null&&r!==this&&e.has(r.domNode)&&r.update(e.get(r.domNode)||[],t)}),t.mutationsMap=e,e.has(this.domNode)&&super.update(e.get(this.domNode),t),this.optimize(s,t)}};Ye.blotName="scroll",Ye.defaultChild=Lr,Ye.allowedChildren=[Lr,ms],Ye.scope=M.BLOCK_BLOT,Ye.tagName="DIV";let Ed=Ye;const Vn=Ed,Kn=class zl extends xt{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,r){r==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof zl&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,e){t.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Kn.blotName="text",Kn.scope=M.INLINE_BLOT;let wd=Kn;const gs=wd,Co=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Wt,AttributorStore:ps,BlockBlot:Lr,ClassAttributor:Bt,ContainerBlot:ms,EmbedBlot:Ot,InlineBlot:$n,LeafBlot:xt,ParentBlot:Dt,Registry:Ge,Scope:M,ScrollBlot:Vn,StyleAttributor:de,TextBlot:gs},Symbol.toStringTag,{value:"Module"}));var Zn={exports:{}},Wn,jo;function Ad(){if(jo)return Wn;jo=1;var s=-1,t=1,e=0;function r(p,A,y,O,q){if(p===A)return p?[[e,p]]:[];if(y!=null){var w=jt(p,A,y);if(w)return w}var k=a(p,A),I=p.substring(0,k);p=p.substring(k),A=A.substring(k),k=h(p,A);var B=p.substring(p.length-k);p=p.substring(0,p.length-k),A=A.substring(0,A.length-k);var S=n(p,A);return I&&S.unshift([e,I]),B&&S.push([e,B]),C(S,q),O&&x(S),S}function n(p,A){var y;if(!p)return[[t,A]];if(!A)return[[s,p]];var O=p.length>A.length?p:A,q=p.length>A.length?A:p,w=O.indexOf(q);if(w!==-1)return y=[[t,O.substring(0,w)],[e,q],[t,O.substring(w+q.length)]],p.length>A.length&&(y[0][0]=y[2][0]=s),y;if(q.length===1)return[[s,p],[t,A]];var k=g(p,A);if(k){var I=k[0],B=k[1],S=k[2],V=k[3],P=k[4],Z=r(I,S),W=r(B,V);return Z.concat([[e,P]],W)}return i(p,A)}function i(p,A){for(var y=p.length,O=A.length,q=Math.ceil((y+O)/2),w=q,k=2*q,I=new Array(k),B=new Array(k),S=0;S<k;S++)I[S]=-1,B[S]=-1;I[w+1]=0,B[w+1]=0;for(var V=y-O,P=V%2!==0,Z=0,W=0,U=0,it=0,lt=0;lt<q;lt++){for(var K=-lt+Z;K<=lt-W;K+=2){var Y=w+K,Q;K===-lt||K!==lt&&I[Y-1]<I[Y+1]?Q=I[Y+1]:Q=I[Y-1]+1;for(var J=Q-K;Q<y&&J<O&&p.charAt(Q)===A.charAt(J);)Q++,J++;if(I[Y]=Q,Q>y)W+=2;else if(J>O)Z+=2;else if(P){var et=w+V-K;if(et>=0&&et<k&&B[et]!==-1){var rt=y-B[et];if(Q>=rt)return l(p,A,Q,J)}}}for(var ct=-lt+U;ct<=lt-it;ct+=2){var et=w+ct,rt;ct===-lt||ct!==lt&&B[et-1]<B[et+1]?rt=B[et+1]:rt=B[et-1]+1;for(var gt=rt-ct;rt<y&><O&&p.charAt(y-rt-1)===A.charAt(O-gt-1);)rt++,gt++;if(B[et]=rt,rt>y)it+=2;else if(gt>O)U+=2;else if(!P){var Y=w+V-ct;if(Y>=0&&Y<k&&I[Y]!==-1){var Q=I[Y],J=w+Q-Y;if(rt=y-rt,Q>=rt)return l(p,A,Q,J)}}}}return[[s,p],[t,A]]}function l(p,A,y,O){var q=p.substring(0,y),w=A.substring(0,O),k=p.substring(y),I=A.substring(O),B=r(q,w),S=r(k,I);return B.concat(S)}function a(p,A){if(!p||!A||p.charAt(0)!==A.charAt(0))return 0;for(var y=0,O=Math.min(p.length,A.length),q=O,w=0;y<q;)p.substring(w,q)==A.substring(w,q)?(y=q,w=y):O=q,q=Math.floor((O-y)/2+y);return F(p.charCodeAt(q-1))&&q--,q}function u(p,A){var y=p.length,O=A.length;if(y==0||O==0)return 0;y>O?p=p.substring(y-O):y<O&&(A=A.substring(0,y));var q=Math.min(y,O);if(p==A)return q;for(var w=0,k=1;;){var I=p.substring(q-k),B=A.indexOf(I);if(B==-1)return w;k+=B,(B==0||p.substring(q-k)==A.substring(0,k))&&(w=k,k++)}}function h(p,A){if(!p||!A||p.slice(-1)!==A.slice(-1))return 0;for(var y=0,O=Math.min(p.length,A.length),q=O,w=0;y<q;)p.substring(p.length-q,p.length-w)==A.substring(A.length-q,A.length-w)?(y=q,w=y):O=q,q=Math.floor((O-y)/2+y);return z(p.charCodeAt(p.length-q))&&q--,q}function g(p,A){var y=p.length>A.length?p:A,O=p.length>A.length?A:p;if(y.length<4||O.length*2<y.length)return null;function q(W,U,it){for(var lt=W.substring(it,it+Math.floor(W.length/4)),K=-1,Y="",Q,J,et,rt;(K=U.indexOf(lt,K+1))!==-1;){var ct=a(W.substring(it),U.substring(K)),gt=h(W.substring(0,it),U.substring(0,K));Y.length<gt+ct&&(Y=U.substring(K-gt,K)+U.substring(K,K+ct),Q=W.substring(0,it-gt),J=W.substring(it+ct),et=U.substring(0,K-gt),rt=U.substring(K+ct))}return Y.length*2>=W.length?[Q,J,et,rt,Y]:null}var w=q(y,O,Math.ceil(y.length/4)),k=q(y,O,Math.ceil(y.length/2)),I;if(!w&&!k)return null;k?w?I=w[4].length>k[4].length?w:k:I=k:I=w;var B,S,V,P;p.length>A.length?(B=I[0],S=I[1],V=I[2],P=I[3]):(V=I[0],P=I[1],B=I[2],S=I[3]);var Z=I[4];return[B,S,V,P,Z]}function x(p){for(var A=!1,y=[],O=0,q=null,w=0,k=0,I=0,B=0,S=0;w<p.length;)p[w][0]==e?(y[O++]=w,k=B,I=S,B=0,S=0,q=p[w][1]):(p[w][0]==t?B+=p[w][1].length:S+=p[w][1].length,q&&q.length<=Math.max(k,I)&&q.length<=Math.max(B,S)&&(p.splice(y[O-1],0,[s,q]),p[y[O-1]+1][0]=t,O--,O--,w=O>0?y[O-1]:-1,k=0,I=0,B=0,S=0,q=null,A=!0)),w++;for(A&&C(p),T(p),w=1;w<p.length;){if(p[w-1][0]==s&&p[w][0]==t){var V=p[w-1][1],P=p[w][1],Z=u(V,P),W=u(P,V);Z>=W?(Z>=V.length/2||Z>=P.length/2)&&(p.splice(w,0,[e,P.substring(0,Z)]),p[w-1][1]=V.substring(0,V.length-Z),p[w+1][1]=P.substring(Z),w++):(W>=V.length/2||W>=P.length/2)&&(p.splice(w,0,[e,V.substring(0,W)]),p[w-1][0]=t,p[w-1][1]=P.substring(0,P.length-W),p[w+1][0]=s,p[w+1][1]=V.substring(W),w++),w++}w++}}var f=/[^a-zA-Z0-9]/,m=/\s/,b=/[\r\n]/,v=/\n\r?\n$/,L=/^\r?\n\r?\n/;function T(p){function A(W,U){if(!W||!U)return 6;var it=W.charAt(W.length-1),lt=U.charAt(0),K=it.match(f),Y=lt.match(f),Q=K&&it.match(m),J=Y&<.match(m),et=Q&&it.match(b),rt=J&<.match(b),ct=et&&W.match(v),gt=rt&&U.match(L);return ct||gt?5:et||rt?4:K&&!Q&&J?3:Q||J?2:K||Y?1:0}for(var y=1;y<p.length-1;){if(p[y-1][0]==e&&p[y+1][0]==e){var O=p[y-1][1],q=p[y][1],w=p[y+1][1],k=h(O,q);if(k){var I=q.substring(q.length-k);O=O.substring(0,O.length-k),q=I+q.substring(0,q.length-k),w=I+w}for(var B=O,S=q,V=w,P=A(O,q)+A(q,w);q.charAt(0)===w.charAt(0);){O+=q.charAt(0),q=q.substring(1)+w.charAt(0),w=w.substring(1);var Z=A(O,q)+A(q,w);Z>=P&&(P=Z,B=O,S=q,V=w)}p[y-1][1]!=B&&(B?p[y-1][1]=B:(p.splice(y-1,1),y--),p[y][1]=S,V?p[y+1][1]=V:(p.splice(y+1,1),y--))}y++}}function C(p,A){p.push([e,""]);for(var y=0,O=0,q=0,w="",k="",I;y<p.length;){if(y<p.length-1&&!p[y][1]){p.splice(y,1);continue}switch(p[y][0]){case t:q++,k+=p[y][1],y++;break;case s:O++,w+=p[y][1],y++;break;case e:var B=y-q-O-1;if(A){if(B>=0&&st(p[B][1])){var S=p[B][1].slice(-1);if(p[B][1]=p[B][1].slice(0,-1),w=S+w,k=S+k,!p[B][1]){p.splice(B,1),y--;var V=B-1;p[V]&&p[V][0]===t&&(q++,k=p[V][1]+k,V--),p[V]&&p[V][0]===s&&(O++,w=p[V][1]+w,V--),B=V}}if($(p[y][1])){var S=p[y][1].charAt(0);p[y][1]=p[y][1].slice(1),w+=S,k+=S}}if(y<p.length-1&&!p[y][1]){p.splice(y,1);break}if(w.length>0||k.length>0){w.length>0&&k.length>0&&(I=a(k,w),I!==0&&(B>=0?p[B][1]+=k.substring(0,I):(p.splice(0,0,[e,k.substring(0,I)]),y++),k=k.substring(I),w=w.substring(I)),I=h(k,w),I!==0&&(p[y][1]=k.substring(k.length-I)+p[y][1],k=k.substring(0,k.length-I),w=w.substring(0,w.length-I)));var P=q+O;w.length===0&&k.length===0?(p.splice(y-P,P),y=y-P):w.length===0?(p.splice(y-P,P,[t,k]),y=y-P+1):k.length===0?(p.splice(y-P,P,[s,w]),y=y-P+1):(p.splice(y-P,P,[s,w],[t,k]),y=y-P+2)}y!==0&&p[y-1][0]===e?(p[y-1][1]+=p[y][1],p.splice(y,1)):y++,q=0,O=0,w="",k="";break}}p[p.length-1][1]===""&&p.pop();var Z=!1;for(y=1;y<p.length-1;)p[y-1][0]===e&&p[y+1][0]===e&&(p[y][1].substring(p[y][1].length-p[y-1][1].length)===p[y-1][1]?(p[y][1]=p[y-1][1]+p[y][1].substring(0,p[y][1].length-p[y-1][1].length),p[y+1][1]=p[y-1][1]+p[y+1][1],p.splice(y-1,1),Z=!0):p[y][1].substring(0,p[y+1][1].length)==p[y+1][1]&&(p[y-1][1]+=p[y+1][1],p[y][1]=p[y][1].substring(p[y+1][1].length)+p[y+1][1],p.splice(y+1,1),Z=!0)),y++;Z&&C(p,A)}function F(p){return p>=55296&&p<=56319}function z(p){return p>=56320&&p<=57343}function $(p){return z(p.charCodeAt(0))}function st(p){return F(p.charCodeAt(p.length-1))}function at(p){for(var A=[],y=0;y<p.length;y++)p[y][1].length>0&&A.push(p[y]);return A}function dt(p,A,y,O){return st(p)||$(O)?null:at([[e,p],[s,A],[t,y],[e,O]])}function jt(p,A,y){var O=typeof y=="number"?{index:y,length:0}:y.oldRange,q=typeof y=="number"?null:y.newRange,w=p.length,k=A.length;if(O.length===0&&(q===null||q.length===0)){var I=O.index,B=p.slice(0,I),S=p.slice(I),V=q?q.index:null;t:{var P=I+k-w;if(V!==null&&V!==P||P<0||P>k)break t;var Z=A.slice(0,P),W=A.slice(P);if(W!==S)break t;var U=Math.min(I,P),it=B.slice(0,U),lt=Z.slice(0,U);if(it!==lt)break t;var K=B.slice(U),Y=Z.slice(U);return dt(it,K,Y,S)}t:{if(V!==null&&V!==I)break t;var Q=I,Z=A.slice(0,Q),W=A.slice(Q);if(Z!==B)break t;var J=Math.min(w-Q,k-Q),et=S.slice(S.length-J),rt=W.slice(W.length-J);if(et!==rt)break t;var K=S.slice(0,S.length-J),Y=W.slice(0,W.length-J);return dt(B,K,Y,et)}}if(O.length>0&&q&&q.length===0)t:{var it=p.slice(0,O.index),et=p.slice(O.index+O.length),U=it.length,J=et.length;if(k<U+J)break t;var lt=A.slice(0,U),rt=A.slice(k-J);if(it!==lt||et!==rt)break t;var K=p.slice(U,w-J),Y=A.slice(U,k-J);return dt(it,K,Y,et)}return null}function kt(p,A,y,O){return r(p,A,y,O,!0)}return kt.INSERT=t,kt.DELETE=s,kt.EQUAL=e,Wn=kt,Wn}var bs={exports:{}};bs.exports;var Ro;function Io(){return Ro||(Ro=1,(function(s,t){var e=200,r="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",l="[object Array]",a="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Function]",x="[object GeneratorFunction]",f="[object Map]",m="[object Number]",b="[object Object]",v="[object Promise]",L="[object RegExp]",T="[object Set]",C="[object String]",F="[object Symbol]",z="[object WeakMap]",$="[object ArrayBuffer]",st="[object DataView]",at="[object Float32Array]",dt="[object Float64Array]",jt="[object Int8Array]",kt="[object Int16Array]",p="[object Int32Array]",A="[object Uint8Array]",y="[object Uint8ClampedArray]",O="[object Uint16Array]",q="[object Uint32Array]",w=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,I=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,S={};S[i]=S[l]=S[$]=S[st]=S[a]=S[u]=S[at]=S[dt]=S[jt]=S[kt]=S[p]=S[f]=S[m]=S[b]=S[L]=S[T]=S[C]=S[F]=S[A]=S[y]=S[O]=S[q]=!0,S[h]=S[g]=S[z]=!1;var V=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,P=typeof self=="object"&&self&&self.Object===Object&&self,Z=V||P||Function("return this")(),W=t&&!t.nodeType&&t,U=W&&!0&&s&&!s.nodeType&&s,it=U&&U.exports===W;function lt(o,c){return o.set(c[0],c[1]),o}function K(o,c){return o.add(c),o}function Y(o,c){for(var d=-1,N=o?o.length:0;++d<N&&c(o[d],d,o)!==!1;);return o}function Q(o,c){for(var d=-1,N=c.length,H=o.length;++d<N;)o[H+d]=c[d];return o}function J(o,c,d,N){for(var H=-1,D=o?o.length:0;++H<D;)d=c(d,o[H],H,o);return d}function et(o,c){for(var d=-1,N=Array(o);++d<o;)N[d]=c(d);return N}function rt(o,c){return o==null?void 0:o[c]}function ct(o){var c=!1;if(o!=null&&typeof o.toString!="function")try{c=!!(o+"")}catch{}return c}function gt(o){var c=-1,d=Array(o.size);return o.forEach(function(N,H){d[++c]=[H,N]}),d}function or(o,c){return function(d){return o(c(d))}}function Pr(o){var c=-1,d=Array(o.size);return o.forEach(function(N){d[++c]=N}),d}var Ms=Array.prototype,Bs=Function.prototype,Re=Object.prototype,lr=Z["__core-js_shared__"],Hr=(function(){var o=/[^.]+$/.exec(lr&&lr.keys&&lr.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),$r=Bs.toString,Ht=Re.hasOwnProperty,Ie=Re.toString,Ds=RegExp("^"+$r.call(Ht).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=it?Z.Buffer:void 0,Me=Z.Symbol,ar=Z.Uint8Array,Lt=or(Object.getPrototypeOf,Object),Fr=Object.create,Vr=Re.propertyIsEnumerable,Us=Ms.splice,cr=Object.getOwnPropertySymbols,Be=ye?ye.isBuffer:void 0,Kr=or(Object.keys,Object),De=It(Z,"DataView"),ve=It(Z,"Map"),Rt=It(Z,"Promise"),Ue=It(Z,"Set"),ur=It(Z,"WeakMap"),xe=It(Object,"create"),hr=Et(De),Ne=Et(ve),dr=Et(Rt),fr=Et(Ue),pr=Et(ur),le=Me?Me.prototype:void 0,Zr=le?le.valueOf:void 0;function Xt(o){var c=-1,d=o?o.length:0;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function zs(){this.__data__=xe?xe(null):{}}function Ps(o){return this.has(o)&&delete this.__data__[o]}function Hs(o){var c=this.__data__;if(xe){var d=c[o];return d===r?void 0:d}return Ht.call(c,o)?c[o]:void 0}function Wr(o){var c=this.__data__;return xe?c[o]!==void 0:Ht.call(c,o)}function mr(o,c){var d=this.__data__;return d[o]=xe&&c===void 0?r:c,this}Xt.prototype.clear=zs,Xt.prototype.delete=Ps,Xt.prototype.get=Hs,Xt.prototype.has=Wr,Xt.prototype.set=mr;function ft(o){var c=-1,d=o?o.length:0;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function $s(){this.__data__=[]}function Fs(o){var c=this.__data__,d=Pe(c,o);if(d<0)return!1;var N=c.length-1;return d==N?c.pop():Us.call(c,d,1),!0}function Vs(o){var c=this.__data__,d=Pe(c,o);return d<0?void 0:c[d][1]}function Ks(o){return Pe(this.__data__,o)>-1}function Zs(o,c){var d=this.__data__,N=Pe(d,o);return N<0?d.push([o,c]):d[N][1]=c,this}ft.prototype.clear=$s,ft.prototype.delete=Fs,ft.prototype.get=Vs,ft.prototype.has=Ks,ft.prototype.set=Zs;function bt(o){var c=-1,d=o?o.length:0;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function Ws(){this.__data__={hash:new Xt,map:new(ve||ft),string:new Xt}}function Gs(o){return we(this,o).delete(o)}function Xs(o){return we(this,o).get(o)}function Qs(o){return we(this,o).has(o)}function Ys(o,c){return we(this,o).set(o,c),this}bt.prototype.clear=Ws,bt.prototype.delete=Gs,bt.prototype.get=Xs,bt.prototype.has=Qs,bt.prototype.set=Ys;function wt(o){this.__data__=new ft(o)}function Js(){this.__data__=new ft}function tn(o){return this.__data__.delete(o)}function en(o){return this.__data__.get(o)}function rn(o){return this.__data__.has(o)}function sn(o,c){var d=this.__data__;if(d instanceof ft){var N=d.__data__;if(!ve||N.length<e-1)return N.push([o,c]),this;d=this.__data__=new bt(N)}return d.set(o,c),this}wt.prototype.clear=Js,wt.prototype.delete=tn,wt.prototype.get=en,wt.prototype.has=rn,wt.prototype.set=sn;function ze(o,c){var d=vr(o)||$e(o)?et(o.length,String):[],N=d.length,H=!!N;for(var D in o)Ht.call(o,D)&&!(H&&(D=="length"||yn(D,N)))&&d.push(D);return d}function Gr(o,c,d){var N=o[c];(!(Ht.call(o,c)&&ts(N,d))||d===void 0&&!(c in o))&&(o[c]=d)}function Pe(o,c){for(var d=o.length;d--;)if(ts(o[d][0],c))return d;return-1}function $t(o,c){return o&&yr(c,Nr(c),o)}function gr(o,c,d,N,H,D,X){var G;if(N&&(G=D?N(o,H,D,X):N(o)),G!==void 0)return G;if(!Vt(o))return o;var ut=vr(o);if(ut){if(G=gn(o),!c)return fn(o,G)}else{var tt=Yt(o),yt=tt==g||tt==x;if(es(o))return He(o,c);if(tt==b||tt==i||yt&&!D){if(ct(o))return D?o:{};if(G=Ft(yt?{}:o),!c)return pn(o,$t(G,o))}else{if(!S[tt])return D?o:{};G=bn(o,tt,gr,c)}}X||(X=new wt);var At=X.get(o);if(At)return At;if(X.set(o,G),!ut)var ht=d?mn(o):Nr(o);return Y(ht||o,function(vt,pt){ht&&(pt=vt,vt=o[pt]),Gr(G,pt,gr(vt,c,d,N,pt,o,X))}),G}function nn(o){return Vt(o)?Fr(o):{}}function on(o,c,d){var N=c(o);return vr(o)?N:Q(N,d(o))}function ln(o){return Ie.call(o)}function an(o){if(!Vt(o)||xn(o))return!1;var c=xr(o)||ct(o)?Ds:I;return c.test(Et(o))}function cn(o){if(!Yr(o))return Kr(o);var c=[];for(var d in Object(o))Ht.call(o,d)&&d!="constructor"&&c.push(d);return c}function He(o,c){if(c)return o.slice();var d=new o.constructor(o.length);return o.copy(d),d}function br(o){var c=new o.constructor(o.byteLength);return new ar(c).set(new ar(o)),c}function Ee(o,c){var d=c?br(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function Xr(o,c,d){var N=c?d(gt(o),!0):gt(o);return J(N,lt,new o.constructor)}function Qr(o){var c=new o.constructor(o.source,k.exec(o));return c.lastIndex=o.lastIndex,c}function un(o,c,d){var N=c?d(Pr(o),!0):Pr(o);return J(N,K,new o.constructor)}function hn(o){return Zr?Object(Zr.call(o)):{}}function dn(o,c){var d=c?br(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function fn(o,c){var d=-1,N=o.length;for(c||(c=Array(N));++d<N;)c[d]=o[d];return c}function yr(o,c,d,N){d||(d={});for(var H=-1,D=c.length;++H<D;){var X=c[H],G=void 0;Gr(d,X,G===void 0?o[X]:G)}return d}function pn(o,c){return yr(o,Qt(o),c)}function mn(o){return on(o,Nr,Qt)}function we(o,c){var d=o.__data__;return vn(c)?d[typeof c=="string"?"string":"hash"]:d.map}function It(o,c){var d=rt(o,c);return an(d)?d:void 0}var Qt=cr?or(cr,Object):En,Yt=ln;(De&&Yt(new De(new ArrayBuffer(1)))!=st||ve&&Yt(new ve)!=f||Rt&&Yt(Rt.resolve())!=v||Ue&&Yt(new Ue)!=T||ur&&Yt(new ur)!=z)&&(Yt=function(o){var c=Ie.call(o),d=c==b?o.constructor:void 0,N=d?Et(d):void 0;if(N)switch(N){case hr:return st;case Ne:return f;case dr:return v;case fr:return T;case pr:return z}return c});function gn(o){var c=o.length,d=o.constructor(c);return c&&typeof o[0]=="string"&&Ht.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function Ft(o){return typeof o.constructor=="function"&&!Yr(o)?nn(Lt(o)):{}}function bn(o,c,d,N){var H=o.constructor;switch(c){case $:return br(o);case a:case u:return new H(+o);case st:return Ee(o,N);case at:case dt:case jt:case kt:case p:case A:case y:case O:case q:return dn(o,N);case f:return Xr(o,N,d);case m:case C:return new H(o);case L:return Qr(o);case T:return un(o,N,d);case F:return hn(o)}}function yn(o,c){return c=c??n,!!c&&(typeof o=="number"||B.test(o))&&o>-1&&o%1==0&&o<c}function vn(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}function xn(o){return!!Hr&&Hr in o}function Yr(o){var c=o&&o.constructor,d=typeof c=="function"&&c.prototype||Re;return o===d}function Et(o){if(o!=null){try{return $r.call(o)}catch{}try{return o+""}catch{}}return""}function Jr(o){return gr(o,!0,!0)}function ts(o,c){return o===c||o!==o&&c!==c}function $e(o){return Nn(o)&&Ht.call(o,"callee")&&(!Vr.call(o,"callee")||Ie.call(o)==i)}var vr=Array.isArray;function Fe(o){return o!=null&&rs(o.length)&&!xr(o)}function Nn(o){return ss(o)&&Fe(o)}var es=Be||wn;function xr(o){var c=Vt(o)?Ie.call(o):"";return c==g||c==x}function rs(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=n}function Vt(o){var c=typeof o;return!!o&&(c=="object"||c=="function")}function ss(o){return!!o&&typeof o=="object"}function Nr(o){return Fe(o)?ze(o):cn(o)}function En(){return[]}function wn(){return!1}s.exports=Jr})(bs,bs.exports)),bs.exports}var ys={exports:{}};ys.exports;var Mo;function Bo(){return Mo||(Mo=1,(function(s,t){var e=200,r="__lodash_hash_undefined__",n=1,i=2,l=9007199254740991,a="[object Arguments]",u="[object Array]",h="[object AsyncFunction]",g="[object Boolean]",x="[object Date]",f="[object Error]",m="[object Function]",b="[object GeneratorFunction]",v="[object Map]",L="[object Number]",T="[object Null]",C="[object Object]",F="[object Promise]",z="[object Proxy]",$="[object RegExp]",st="[object Set]",at="[object String]",dt="[object Symbol]",jt="[object Undefined]",kt="[object WeakMap]",p="[object ArrayBuffer]",A="[object DataView]",y="[object Float32Array]",O="[object Float64Array]",q="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",I="[object Uint8Array]",B="[object Uint8ClampedArray]",S="[object Uint16Array]",V="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,U={};U[y]=U[O]=U[q]=U[w]=U[k]=U[I]=U[B]=U[S]=U[V]=!0,U[a]=U[u]=U[p]=U[g]=U[A]=U[x]=U[f]=U[m]=U[v]=U[L]=U[C]=U[$]=U[st]=U[at]=U[kt]=!1;var it=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,lt=typeof self=="object"&&self&&self.Object===Object&&self,K=it||lt||Function("return this")(),Y=t&&!t.nodeType&&t,Q=Y&&!0&&s&&!s.nodeType&&s,J=Q&&Q.exports===Y,et=J&&it.process,rt=(function(){try{return et&&et.binding&&et.binding("util")}catch{}})(),ct=rt&&rt.isTypedArray;function gt(o,c){for(var d=-1,N=o==null?0:o.length,H=0,D=[];++d<N;){var X=o[d];c(X,d,o)&&(D[H++]=X)}return D}function or(o,c){for(var d=-1,N=c.length,H=o.length;++d<N;)o[H+d]=c[d];return o}function Pr(o,c){for(var d=-1,N=o==null?0:o.length;++d<N;)if(c(o[d],d,o))return!0;return!1}function Ms(o,c){for(var d=-1,N=Array(o);++d<o;)N[d]=c(d);return N}function Bs(o){return function(c){return o(c)}}function Re(o,c){return o.has(c)}function lr(o,c){return o==null?void 0:o[c]}function Hr(o){var c=-1,d=Array(o.size);return o.forEach(function(N,H){d[++c]=[H,N]}),d}function $r(o,c){return function(d){return o(c(d))}}function Ht(o){var c=-1,d=Array(o.size);return o.forEach(function(N){d[++c]=N}),d}var Ie=Array.prototype,Ds=Function.prototype,ye=Object.prototype,Me=K["__core-js_shared__"],ar=Ds.toString,Lt=ye.hasOwnProperty,Fr=(function(){var o=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Vr=ye.toString,Us=RegExp("^"+ar.call(Lt).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cr=J?K.Buffer:void 0,Be=K.Symbol,Kr=K.Uint8Array,De=ye.propertyIsEnumerable,ve=Ie.splice,Rt=Be?Be.toStringTag:void 0,Ue=Object.getOwnPropertySymbols,ur=cr?cr.isBuffer:void 0,xe=$r(Object.keys,Object),hr=Qt(K,"DataView"),Ne=Qt(K,"Map"),dr=Qt(K,"Promise"),fr=Qt(K,"Set"),pr=Qt(K,"WeakMap"),le=Qt(Object,"create"),Zr=Et(hr),Xt=Et(Ne),zs=Et(dr),Ps=Et(fr),Hs=Et(pr),Wr=Be?Be.prototype:void 0,mr=Wr?Wr.valueOf:void 0;function ft(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function $s(){this.__data__=le?le(null):{},this.size=0}function Fs(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}function Vs(o){var c=this.__data__;if(le){var d=c[o];return d===r?void 0:d}return Lt.call(c,o)?c[o]:void 0}function Ks(o){var c=this.__data__;return le?c[o]!==void 0:Lt.call(c,o)}function Zs(o,c){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=le&&c===void 0?r:c,this}ft.prototype.clear=$s,ft.prototype.delete=Fs,ft.prototype.get=Vs,ft.prototype.has=Ks,ft.prototype.set=Zs;function bt(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function Ws(){this.__data__=[],this.size=0}function Gs(o){var c=this.__data__,d=He(c,o);if(d<0)return!1;var N=c.length-1;return d==N?c.pop():ve.call(c,d,1),--this.size,!0}function Xs(o){var c=this.__data__,d=He(c,o);return d<0?void 0:c[d][1]}function Qs(o){return He(this.__data__,o)>-1}function Ys(o,c){var d=this.__data__,N=He(d,o);return N<0?(++this.size,d.push([o,c])):d[N][1]=c,this}bt.prototype.clear=Ws,bt.prototype.delete=Gs,bt.prototype.get=Xs,bt.prototype.has=Qs,bt.prototype.set=Ys;function wt(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var N=o[c];this.set(N[0],N[1])}}function Js(){this.size=0,this.__data__={hash:new ft,map:new(Ne||bt),string:new ft}}function tn(o){var c=It(this,o).delete(o);return this.size-=c?1:0,c}function en(o){return It(this,o).get(o)}function rn(o){return It(this,o).has(o)}function sn(o,c){var d=It(this,o),N=d.size;return d.set(o,c),this.size+=d.size==N?0:1,this}wt.prototype.clear=Js,wt.prototype.delete=tn,wt.prototype.get=en,wt.prototype.has=rn,wt.prototype.set=sn;function ze(o){var c=-1,d=o==null?0:o.length;for(this.__data__=new wt;++c<d;)this.add(o[c])}function Gr(o){return this.__data__.set(o,r),this}function Pe(o){return this.__data__.has(o)}ze.prototype.add=ze.prototype.push=Gr,ze.prototype.has=Pe;function $t(o){var c=this.__data__=new bt(o);this.size=c.size}function gr(){this.__data__=new bt,this.size=0}function nn(o){var c=this.__data__,d=c.delete(o);return this.size=c.size,d}function on(o){return this.__data__.get(o)}function ln(o){return this.__data__.has(o)}function an(o,c){var d=this.__data__;if(d instanceof bt){var N=d.__data__;if(!Ne||N.length<e-1)return N.push([o,c]),this.size=++d.size,this;d=this.__data__=new wt(N)}return d.set(o,c),this.size=d.size,this}$t.prototype.clear=gr,$t.prototype.delete=nn,$t.prototype.get=on,$t.prototype.has=ln,$t.prototype.set=an;function cn(o,c){var d=$e(o),N=!d&&ts(o),H=!d&&!N&&Fe(o),D=!d&&!N&&!H&&ss(o),X=d||N||H||D,G=X?Ms(o.length,String):[],ut=G.length;for(var tt in o)Lt.call(o,tt)&&!(X&&(tt=="length"||H&&(tt=="offset"||tt=="parent")||D&&(tt=="buffer"||tt=="byteLength"||tt=="byteOffset")||bn(tt,ut)))&&G.push(tt);return G}function He(o,c){for(var d=o.length;d--;)if(Jr(o[d][0],c))return d;return-1}function br(o,c,d){var N=c(o);return $e(o)?N:or(N,d(o))}function Ee(o){return o==null?o===void 0?jt:T:Rt&&Rt in Object(o)?Yt(o):Yr(o)}function Xr(o){return Vt(o)&&Ee(o)==a}function Qr(o,c,d,N,H){return o===c?!0:o==null||c==null||!Vt(o)&&!Vt(c)?o!==o&&c!==c:un(o,c,d,N,Qr,H)}function un(o,c,d,N,H,D){var X=$e(o),G=$e(c),ut=X?u:Ft(o),tt=G?u:Ft(c);ut=ut==a?C:ut,tt=tt==a?C:tt;var yt=ut==C,At=tt==C,ht=ut==tt;if(ht&&Fe(o)){if(!Fe(c))return!1;X=!0,yt=!1}if(ht&&!yt)return D||(D=new $t),X||ss(o)?yr(o,c,d,N,H,D):pn(o,c,ut,d,N,H,D);if(!(d&n)){var vt=yt&&Lt.call(o,"__wrapped__"),pt=At&&Lt.call(c,"__wrapped__");if(vt||pt){var ae=vt?o.value():o,Jt=pt?c.value():c;return D||(D=new $t),H(ae,Jt,d,N,D)}}return ht?(D||(D=new $t),mn(o,c,d,N,H,D)):!1}function hn(o){if(!rs(o)||vn(o))return!1;var c=es(o)?Us:Z;return c.test(Et(o))}function dn(o){return Vt(o)&&xr(o.length)&&!!U[Ee(o)]}function fn(o){if(!xn(o))return xe(o);var c=[];for(var d in Object(o))Lt.call(o,d)&&d!="constructor"&&c.push(d);return c}function yr(o,c,d,N,H,D){var X=d&n,G=o.length,ut=c.length;if(G!=ut&&!(X&&ut>G))return!1;var tt=D.get(o);if(tt&&D.get(c))return tt==c;var yt=-1,At=!0,ht=d&i?new ze:void 0;for(D.set(o,c),D.set(c,o);++yt<G;){var vt=o[yt],pt=c[yt];if(N)var ae=X?N(pt,vt,yt,c,o,D):N(vt,pt,yt,o,c,D);if(ae!==void 0){if(ae)continue;At=!1;break}if(ht){if(!Pr(c,function(Jt,Ae){if(!Re(ht,Ae)&&(vt===Jt||H(vt,Jt,d,N,D)))return ht.push(Ae)})){At=!1;break}}else if(!(vt===pt||H(vt,pt,d,N,D))){At=!1;break}}return D.delete(o),D.delete(c),At}function pn(o,c,d,N,H,D,X){switch(d){case A:if(o.byteLength!=c.byteLength||o.byteOffset!=c.byteOffset)return!1;o=o.buffer,c=c.buffer;case p:return!(o.byteLength!=c.byteLength||!D(new Kr(o),new Kr(c)));case g:case x:case L:return Jr(+o,+c);case f:return o.name==c.name&&o.message==c.message;case $:case at:return o==c+"";case v:var G=Hr;case st:var ut=N&n;if(G||(G=Ht),o.size!=c.size&&!ut)return!1;var tt=X.get(o);if(tt)return tt==c;N|=i,X.set(o,c);var yt=yr(G(o),G(c),N,H,D,X);return X.delete(o),yt;case dt:if(mr)return mr.call(o)==mr.call(c)}return!1}function mn(o,c,d,N,H,D){var X=d&n,G=we(o),ut=G.length,tt=we(c),yt=tt.length;if(ut!=yt&&!X)return!1;for(var At=ut;At--;){var ht=G[At];if(!(X?ht in c:Lt.call(c,ht)))return!1}var vt=D.get(o);if(vt&&D.get(c))return vt==c;var pt=!0;D.set(o,c),D.set(c,o);for(var ae=X;++At<ut;){ht=G[At];var Jt=o[ht],Ae=c[ht];if(N)var Oi=X?N(Ae,Jt,ht,c,o,D):N(Jt,Ae,ht,o,c,D);if(!(Oi===void 0?Jt===Ae||H(Jt,Ae,d,N,D):Oi)){pt=!1;break}ae||(ae=ht=="constructor")}if(pt&&!ae){var ns=o.constructor,is=c.constructor;ns!=is&&"constructor"in o&&"constructor"in c&&!(typeof ns=="function"&&ns instanceof ns&&typeof is=="function"&&is instanceof is)&&(pt=!1)}return D.delete(o),D.delete(c),pt}function we(o){return br(o,Nr,gn)}function It(o,c){var d=o.__data__;return yn(c)?d[typeof c=="string"?"string":"hash"]:d.map}function Qt(o,c){var d=lr(o,c);return hn(d)?d:void 0}function Yt(o){var c=Lt.call(o,Rt),d=o[Rt];try{o[Rt]=void 0;var N=!0}catch{}var H=Vr.call(o);return N&&(c?o[Rt]=d:delete o[Rt]),H}var gn=Ue?function(o){return o==null?[]:(o=Object(o),gt(Ue(o),function(c){return De.call(o,c)}))}:En,Ft=Ee;(hr&&Ft(new hr(new ArrayBuffer(1)))!=A||Ne&&Ft(new Ne)!=v||dr&&Ft(dr.resolve())!=F||fr&&Ft(new fr)!=st||pr&&Ft(new pr)!=kt)&&(Ft=function(o){var c=Ee(o),d=c==C?o.constructor:void 0,N=d?Et(d):"";if(N)switch(N){case Zr:return A;case Xt:return v;case zs:return F;case Ps:return st;case Hs:return kt}return c});function bn(o,c){return c=c??l,!!c&&(typeof o=="number"||W.test(o))&&o>-1&&o%1==0&&o<c}function yn(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}function vn(o){return!!Fr&&Fr in o}function xn(o){var c=o&&o.constructor,d=typeof c=="function"&&c.prototype||ye;return o===d}function Yr(o){return Vr.call(o)}function Et(o){if(o!=null){try{return ar.call(o)}catch{}try{return o+""}catch{}}return""}function Jr(o,c){return o===c||o!==o&&c!==c}var ts=Xr((function(){return arguments})())?Xr:function(o){return Vt(o)&&Lt.call(o,"callee")&&!De.call(o,"callee")},$e=Array.isArray;function vr(o){return o!=null&&xr(o.length)&&!es(o)}var Fe=ur||wn;function Nn(o,c){return Qr(o,c)}function es(o){if(!rs(o))return!1;var c=Ee(o);return c==m||c==b||c==h||c==z}function xr(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=l}function rs(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}function Vt(o){return o!=null&&typeof o=="object"}var ss=ct?Bs(ct):dn;function Nr(o){return vr(o)?cn(o):fn(o)}function En(){return[]}function wn(){return!1}s.exports=Nn})(ys,ys.exports)),ys.exports}var vs={},Do;function qd(){if(Do)return vs;Do=1,Object.defineProperty(vs,"__esModule",{value:!0});const s=Io(),t=Bo();var e;return(function(r){function n(u={},h={},g=!1){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});let x=s(h);g||(x=Object.keys(x).reduce((f,m)=>(x[m]!=null&&(f[m]=x[m]),f),{}));for(const f in u)u[f]!==void 0&&h[f]===void 0&&(x[f]=u[f]);return Object.keys(x).length>0?x:void 0}r.compose=n;function i(u={},h={}){typeof u!="object"&&(u={}),typeof h!="object"&&(h={});const g=Object.keys(u).concat(Object.keys(h)).reduce((x,f)=>(t(u[f],h[f])||(x[f]=h[f]===void 0?null:h[f]),x),{});return Object.keys(g).length>0?g:void 0}r.diff=i;function l(u={},h={}){u=u||{};const g=Object.keys(h).reduce((x,f)=>(h[f]!==u[f]&&u[f]!==void 0&&(x[f]=h[f]),x),{});return Object.keys(u).reduce((x,f)=>(u[f]!==h[f]&&h[f]===void 0&&(x[f]=null),x),g)}r.invert=l;function a(u,h,g=!1){if(typeof u!="object")return h;if(typeof h!="object")return;if(!g)return h;const x=Object.keys(h).reduce((f,m)=>(u[m]===void 0&&(f[m]=h[m]),f),{});return Object.keys(x).length>0?x:void 0}r.transform=a})(e||(e={})),vs.default=e,vs}var xs={},Uo;function zo(){if(Uo)return xs;Uo=1,Object.defineProperty(xs,"__esModule",{value:!0});var s;return(function(t){function e(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}t.length=e})(s||(s={})),xs.default=s,xs}var Ns={},Po;function kd(){if(Po)return Ns;Po=1,Object.defineProperty(Ns,"__esModule",{value:!0});const s=zo();class t{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const n=this.ops[this.index];if(n){const i=this.offset,l=s.default.length(n);if(r>=l-i?(r=l-i,this.index+=1,this.offset=0):this.offset+=r,typeof n.delete=="number")return{delete:r};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=r:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(i,r):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?s.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,n=this.index,i=this.next(),l=this.ops.slice(this.index);return this.offset=r,this.index=n,[i].concat(l)}}else return[]}}return Ns.default=t,Ns}var Ho;function Od(){return Ho||(Ho=1,(function(s,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Ad(),r=Io(),n=Bo(),i=qd();t.AttributeMap=i.default;const l=zo();t.Op=l.default;const a=kd();t.OpIterator=a.default;const u="\0",h=(x,f)=>{if(typeof x!="object"||x===null)throw new Error(`cannot retain a ${typeof x}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const m=Object.keys(x)[0];if(!m||m!==Object.keys(f)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(f)[0]}`);return[m,x[m],f[m]]};class g{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,m){this.handlers[f]=m}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const m=this.handlers[f];if(!m)throw new Error(`no handlers for embed type "${f}"`);return m}insert(f,m){const b={};return typeof f=="string"&&f.length===0?this:(b.insert=f,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(b.attributes=m),this.push(b))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,m){if(typeof f=="number"&&f<=0)return this;const b={retain:f};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(b.attributes=m),this.push(b)}push(f){let m=this.ops.length,b=this.ops[m-1];if(f=r(f),typeof b=="object"){if(typeof f.delete=="number"&&typeof b.delete=="number")return this.ops[m-1]={delete:b.delete+f.delete},this;if(typeof b.delete=="number"&&f.insert!=null&&(m-=1,b=this.ops[m-1],typeof b!="object"))return this.ops.unshift(f),this;if(n(f.attributes,b.attributes)){if(typeof f.insert=="string"&&typeof b.insert=="string")return this.ops[m-1]={insert:b.insert+f.insert},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof b.retain=="number")return this.ops[m-1]={retain:b.retain+f.retain},typeof f.attributes=="object"&&(this.ops[m-1].attributes=f.attributes),this}}return m===this.ops.length?this.ops.push(f):this.ops.splice(m,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const m=[],b=[];return this.forEach(v=>{(f(v)?m:b).push(v)}),[m,b]}reduce(f,m){return this.ops.reduce(f,m)}changeLength(){return this.reduce((f,m)=>m.insert?f+l.default.length(m):m.delete?f-m.delete:f,0)}length(){return this.reduce((f,m)=>f+l.default.length(m),0)}slice(f=0,m=1/0){const b=[],v=new a.default(this.ops);let L=0;for(;L<m&&v.hasNext();){let T;L<f?T=v.next(f-L):(T=v.next(m-L),b.push(T)),L+=l.default.length(T)}return new g(b)}compose(f){const m=new a.default(this.ops),b=new a.default(f.ops),v=[],L=b.peek();if(L!=null&&typeof L.retain=="number"&&L.attributes==null){let C=L.retain;for(;m.peekType()==="insert"&&m.peekLength()<=C;)C-=m.peekLength(),v.push(m.next());L.retain-C>0&&b.next(L.retain-C)}const T=new g(v);for(;m.hasNext()||b.hasNext();)if(b.peekType()==="insert")T.push(b.next());else if(m.peekType()==="delete")T.push(m.next());else{const C=Math.min(m.peekLength(),b.peekLength()),F=m.next(C),z=b.next(C);if(z.retain){const $={};if(typeof F.retain=="number")$.retain=typeof z.retain=="number"?C:z.retain;else if(typeof z.retain=="number")F.retain==null?$.insert=F.insert:$.retain=F.retain;else{const at=F.retain==null?"insert":"retain",[dt,jt,kt]=h(F[at],z.retain),p=g.getHandler(dt);$[at]={[dt]:p.compose(jt,kt,at==="retain")}}const st=i.default.compose(F.attributes,z.attributes,typeof F.retain=="number");if(st&&($.attributes=st),T.push($),!b.hasNext()&&n(T.ops[T.ops.length-1],$)){const at=new g(m.rest());return T.concat(at).chop()}}else typeof z.delete=="number"&&(typeof F.retain=="number"||typeof F.retain=="object"&&F.retain!==null)&&T.push(z)}return T.chop()}concat(f){const m=new g(this.ops.slice());return f.ops.length>0&&(m.push(f.ops[0]),m.ops=m.ops.concat(f.ops.slice(1))),m}diff(f,m){if(this.ops===f.ops)return new g;const b=[this,f].map(F=>F.map(z=>{if(z.insert!=null)return typeof z.insert=="string"?z.insert:u;const $=F===f?"on":"with";throw new Error("diff() called "+$+" non-document")}).join("")),v=new g,L=e(b[0],b[1],m,!0),T=new a.default(this.ops),C=new a.default(f.ops);return L.forEach(F=>{let z=F[1].length;for(;z>0;){let $=0;switch(F[0]){case e.INSERT:$=Math.min(C.peekLength(),z),v.push(C.next($));break;case e.DELETE:$=Math.min(z,T.peekLength()),T.next($),v.delete($);break;case e.EQUAL:$=Math.min(T.peekLength(),C.peekLength(),z);const st=T.next($),at=C.next($);n(st.insert,at.insert)?v.retain($,i.default.diff(st.attributes,at.attributes)):v.push(at).delete($);break}z-=$}}),v.chop()}eachLine(f,m=`
|
|
2
|
-
`){const b=new a.default(this.ops);let v=new g,L=0;for(;b.hasNext();){if(b.peekType()!=="insert")return;const T=b.peek(),C=l.default.length(T)-b.peekLength(),F=typeof T.insert=="string"?T.insert.indexOf(m,C)-C:-1;if(F<0)v.push(b.next());else if(F>0)v.push(b.next(F));else{if(f(v,b.next(1).attributes||{},L)===!1)return;L+=1,v=new g}}v.length()>0&&f(v,{},L)}invert(f){const m=new g;return this.reduce((b,v)=>{if(v.insert)m.delete(l.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return m.retain(v.retain),b+v.retain;if(v.delete||typeof v.retain=="number"){const L=v.delete||v.retain;return f.slice(b,b+L).forEach(T=>{v.delete?m.push(T):v.retain&&v.attributes&&m.retain(l.default.length(T),i.default.invert(v.attributes,T.attributes))}),b+L}else if(typeof v.retain=="object"&&v.retain!==null){const L=f.slice(b,b+1),T=new a.default(L.ops).next(),[C,F,z]=h(v.retain,T.insert),$=g.getHandler(C);return m.retain({[C]:$.invert(F,z)},i.default.invert(v.attributes,T.attributes)),b+1}}return b},0),m.chop()}transform(f,m=!1){if(m=!!m,typeof f=="number")return this.transformPosition(f,m);const b=f,v=new a.default(this.ops),L=new a.default(b.ops),T=new g;for(;v.hasNext()||L.hasNext();)if(v.peekType()==="insert"&&(m||L.peekType()!=="insert"))T.retain(l.default.length(v.next()));else if(L.peekType()==="insert")T.push(L.next());else{const C=Math.min(v.peekLength(),L.peekLength()),F=v.next(C),z=L.next(C);if(F.delete)continue;if(z.delete)T.push(z);else{const $=F.retain,st=z.retain;let at=typeof st=="object"&&st!==null?st:C;if(typeof $=="object"&&$!==null&&typeof st=="object"&&st!==null){const dt=Object.keys($)[0];if(dt===Object.keys(st)[0]){const jt=g.getHandler(dt);jt&&(at={[dt]:jt.transform($[dt],st[dt],m)})}}T.retain(at,i.default.transform(F.attributes,z.attributes,m))}}return T.chop()}transformPosition(f,m=!1){m=!!m;const b=new a.default(this.ops);let v=0;for(;b.hasNext()&&v<=f;){const L=b.peekLength(),T=b.peekType();if(b.next(),T==="delete"){f-=Math.min(L,f-v);continue}else T==="insert"&&(v<f||!m)&&(f+=L);v+=L}return f}}g.Op=l.default,g.OpIterator=a.default,g.AttributeMap=i.default,g.handlers={},t.default=g,s.exports=g,s.exports.default=g})(Zn,Zn.exports)),Zn.exports}var qt=Od();const R=Li(qt);class Ut extends Ot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ut.blotName="break",Ut.tagName="BR";let zt=class extends gs{};const Ld={"&":"&","<":"<",">":">",'"':""","'":"'"};function Es(s){return s.replace(/[&<>"']/g,t=>Ld[t])}const ws=class ir extends $n{static compare(t,e){const r=ir.order.indexOf(t),n=ir.order.indexOf(e);return r>=0||n>=0?r-n:t===e?0:t<e?-1:1}formatAt(t,e,r,n){if(ir.compare(this.statics.blotName,r)<0&&this.scroll.query(r,M.BLOT)){const i=this.isolate(t,e);n&&i.wrap(r,n)}else super.formatAt(t,e,r,n)}optimize(t){if(super.optimize(t),this.parent instanceof ir&&ir.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}};_(ws,"allowedChildren",[ws,Ut,Ot,zt]),_(ws,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let fe=ws;const $o=1;class mt extends Lr{constructor(){super(...arguments),_(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Fo(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,r,n){e<=0||(this.scroll.query(r,M.BLOCK)?t+e===this.length()&&this.format(r,n):super.formatAt(t,Math.min(e,this.length()-t-1),r,n),this.cache={})}insertAt(t,e,r){if(r!=null){super.insertAt(t,e,r),this.cache={};return}if(e.length===0)return;const n=e.split(`
|
|
3
|
-
`),i=n.shift();i.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let l=this;n.reduce((a,u)=>(l=l.split(a,!0),l.insertAt(0,u),u.length),t+i.length)}insertBefore(t,e){const{head:r}=this.children;super.insertBefore(t,e),r instanceof Ut&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+$o),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e&&(t===0||t>=this.length()-$o)){const n=this.clone();return t===0?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}const r=super.split(t,e);return this.cache={},r}}mt.blotName="block",mt.tagName="P",mt.defaultChild=Ut,mt.allowedChildren=[Ut,fe,Ot,zt];class _t extends Ot{attach(){super.attach(),this.attributes=new ps(this.domNode)}delta(){return new R().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const r=this.scroll.query(t,M.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,e)}formatAt(t,e,r,n){this.format(r,n)}insertAt(t,e,r){if(r!=null){super.insertAt(t,e,r);return}const n=e.split(`
|
|
4
|
-
`),i=n.pop(),l=n.map(u=>{const h=this.scroll.create(mt.blotName);return h.insertAt(0,u),h}),a=this.split(t);l.forEach(u=>{this.parent.insertBefore(u,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}_t.scope=M.BLOCK_BLOT;function Fo(s){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return s.descendants(xt).reduce((e,r)=>r.length()===0?e:e.insert(r.value(),St(r,{},t)),new R).insert(`
|
|
5
|
-
`,St(s))}function St(s){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return s==null||("formats"in s&&typeof s.formats=="function"&&(t={...t,...s.formats()},e&&delete t["code-token"]),s.parent==null||s.parent.statics.blotName==="scroll"||s.parent.statics.scope!==s.statics.scope)?t:St(s.parent,t,e)}const _r=class je extends Ot{static value(){}constructor(t,e,r){super(t,e),this.selection=r,this.textNode=document.createTextNode(je.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let r=this,n=0;for(;r!=null&&r.statics.scope!==M.BLOCK_BLOT;)n+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=je.CONTENTS.length,r.optimize(),r.formatAt(n,je.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof zt?this.prev:null,r=e?e.length():0,n=this.next instanceof zt?this.next:null,i=n?n.text:"",{textNode:l}=this,a=l.data.split(je.CONTENTS).join("");l.data=je.CONTENTS;let u;if(e)u=e,(a||n)&&(e.insertAt(e.length(),a+i),n&&n.remove());else if(n)u=n,n.insertAt(0,a);else{const h=document.createTextNode(a);u=this.scroll.create(h),this.parent.insertBefore(u,this)}if(this.remove(),t){const h=(f,m)=>e&&f===e.domNode?m:f===l?r+m-1:n&&f===n.domNode?r+a.length+m:null,g=h(t.start.node,t.start.offset),x=h(t.end.node,t.end.offset);if(g!==null&&x!==null)return{startNode:u.domNode,startOffset:g,endNode:u.domNode,endOffset:x}}return null}update(t,e){if(t.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(e.range=r)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if(e.domNode.tagName==="A"){this.savedLength=je.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}};_(_r,"blotName","cursor"),_(_r,"className","ql-cursor"),_(_r,"tagName","span"),_(_r,"CONTENTS","\uFEFF");let As=_r;var Vo={exports:{}},Ko;function _d(){return Ko||(Ko=1,(function(s){var t=Object.prototype.hasOwnProperty,e="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(e=!1));function n(u,h,g){this.fn=u,this.context=h,this.once=g||!1}function i(u,h,g,x,f){if(typeof g!="function")throw new TypeError("The listener must be a function");var m=new n(g,x||u,f),b=e?e+h:h;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],m]:u._events[b].push(m):(u._events[b]=m,u._eventsCount++),u}function l(u,h){--u._eventsCount===0?u._events=new r:delete u._events[h]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],h,g;if(this._eventsCount===0)return u;for(g in h=this._events)t.call(h,g)&&u.push(e?g.slice(1):g);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},a.prototype.listeners=function(u){var h=e?e+u:u,g=this._events[h];if(!g)return[];if(g.fn)return[g.fn];for(var x=0,f=g.length,m=new Array(f);x<f;x++)m[x]=g[x].fn;return m},a.prototype.listenerCount=function(u){var h=e?e+u:u,g=this._events[h];return g?g.fn?1:g.length:0},a.prototype.emit=function(u,h,g,x,f,m){var b=e?e+u:u;if(!this._events[b])return!1;var v=this._events[b],L=arguments.length,T,C;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),L){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,h),!0;case 3:return v.fn.call(v.context,h,g),!0;case 4:return v.fn.call(v.context,h,g,x),!0;case 5:return v.fn.call(v.context,h,g,x,f),!0;case 6:return v.fn.call(v.context,h,g,x,f,m),!0}for(C=1,T=new Array(L-1);C<L;C++)T[C-1]=arguments[C];v.fn.apply(v.context,T)}else{var F=v.length,z;for(C=0;C<F;C++)switch(v[C].once&&this.removeListener(u,v[C].fn,void 0,!0),L){case 1:v[C].fn.call(v[C].context);break;case 2:v[C].fn.call(v[C].context,h);break;case 3:v[C].fn.call(v[C].context,h,g);break;case 4:v[C].fn.call(v[C].context,h,g,x);break;default:if(!T)for(z=1,T=new Array(L-1);z<L;z++)T[z-1]=arguments[z];v[C].fn.apply(v[C].context,T)}}return!0},a.prototype.on=function(u,h,g){return i(this,u,h,g,!1)},a.prototype.once=function(u,h,g){return i(this,u,h,g,!0)},a.prototype.removeListener=function(u,h,g,x){var f=e?e+u:u;if(!this._events[f])return this;if(!h)return l(this,f),this;var m=this._events[f];if(m.fn)m.fn===h&&(!x||m.once)&&(!g||m.context===g)&&l(this,f);else{for(var b=0,v=[],L=m.length;b<L;b++)(m[b].fn!==h||x&&!m[b].once||g&&m[b].context!==g)&&v.push(m[b]);v.length?this._events[f]=v.length===1?v[0]:v:l(this,f)}return this},a.prototype.removeAllListeners=function(u){var h;return u?(h=e?e+u:u,this._events[h]&&l(this,h)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=e,a.EventEmitter=a,s.exports=a})(Vo)),Vo.exports}var Sd=_d();const Td=Li(Sd),Gn=new WeakMap,Xn=["error","warn","log","info"];let Qn="warn";function Zo(s){if(Qn&&Xn.indexOf(s)<=Xn.indexOf(Qn)){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];console[s](...e)}}function re(s){return Xn.reduce((t,e)=>(t[e]=Zo.bind(console,e,s),t),{})}re.level=s=>{Qn=s},Zo.level=re.level;const Yn=re("quill:events"),Cd=["selectionchange","mousedown","mouseup","click"];Cd.forEach(s=>{document.addEventListener(s,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{const i=Gn.get(n);i&&i.emitter&&i.emitter.handleDOM(...e)})})});class j extends Td{constructor(){super(),this.domListeners={},this.on("error",Yn.error)}emit(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Yn.log.call(Yn,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];(this.domListeners[t.type]||[]).forEach(i=>{let{node:l,handler:a}=i;(t.target===l||l.contains(t.target))&&a(t,...r)})}listenDOM(t,e,r){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:r})}}_(j,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),_(j,"sources",{API:"api",SILENT:"silent",USER:"user"});const Jn=re("quill:selection");class pe{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}}class jd{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new pe(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,j.sources.USER),1)}),this.emitter.on(j.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(j.events.SCROLL_UPDATE,(n,i)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const l=i.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(l?j.sources.SILENT:n)}catch{}})}),this.emitter.on(j.events.SCROLL_OPTIMIZE,(r,n)=>{if(n.range){const{startNode:i,startOffset:l,endNode:a,endOffset:u}=n.range;this.setNativeRange(i,l,a,u),this.update(j.sources.SILENT)}}),this.update(j.sources.SILENT)}handleComposition(){this.emitter.on(j.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(j.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(j.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(t,M.BLOCK))){if(r.start.node!==this.cursor.textNode){const n=this.scroll.find(r.start.node,!1);if(n==null)return;if(n instanceof xt){const i=n.split(r.start.offset);n.parent.insertBefore(this.cursor,i)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();t=Math.min(t,r-1),e=Math.min(t+e,r-1)-t;let n,[i,l]=this.scroll.leaf(t);if(i==null)return null;if(e>0&&l===i.length()){const[g]=this.scroll.leaf(t+1);if(g){const[x]=this.scroll.line(t),[f]=this.scroll.line(t+1);x===f&&(i=g,l=0)}}[n,l]=i.position(l,!0);const a=document.createRange();if(e>0)return a.setStart(n,l),[i,l]=this.scroll.leaf(t+e),i==null?null:([n,l]=i.position(l,!0),a.setEnd(n,l),a.getBoundingClientRect());let u="left",h;if(n instanceof Text){if(!n.data.length)return null;l<n.data.length?(a.setStart(n,l),a.setEnd(n,l+1)):(a.setStart(n,l-1),a.setEnd(n,l),u="right"),h=a.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;h=i.domNode.getBoundingClientRect(),l>0&&(u="right")}return{bottom:h.top+h.height,height:h.height,left:h[u],right:h[u],top:h.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const r=this.normalizeNative(e);return Jn.info("getNativeRange",r),r}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&ti(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const r=e.map(l=>{const[a,u]=l,h=this.scroll.find(a,!0),g=h.offset(this.scroll);return u===0?g:h instanceof xt?g+h.index(a,u):g+h.length()}),n=Math.min(Math.max(...r),this.scroll.length()-1),i=Math.min(n,...r);return new pe(i,n-i)}normalizeNative(t){if(!ti(this.root,t.startContainer)||!t.collapsed&&!ti(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(r=>{let{node:n,offset:i}=r;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>i)n=n.childNodes[i],i=0;else if(n.childNodes.length===i)n=n.lastChild,n instanceof Text?i=n.data.length:n.childNodes.length>0?i=n.childNodes.length:i=n.childNodes.length+1;else break;r.node=n,r.offset=i}),e}rangeToNative(t){const e=this.scroll.length(),r=(n,i)=>{n=Math.min(e-1,n);const[l,a]=this.scroll.leaf(n);return l?l.position(a,i):[null,-1]};return[...r(t.index,!1),...r(t.index+t.length,!0)]}setNativeRange(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Jn.info("setNativeRange",t,e,r,n),t!=null&&(this.root.parentNode==null||t.parentNode==null||r.parentNode==null))return;const l=document.getSelection();if(l!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||i||t!==a.startContainer||e!==a.startOffset||r!==a.endContainer||n!==a.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),r instanceof Element&&r.tagName==="BR"&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const u=document.createRange();u.setStart(t,e),u.setEnd(r,n),l.removeAllRanges(),l.addRange(u)}}else l.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.sources.API;if(typeof e=="string"&&(r=e,e=!1),Jn.info("setRange",t),t!=null){const n=this.rangeToNative(t);this.setNativeRange(...n,e)}else this.setNativeRange(null);this.update(r)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j.sources.USER;const e=this.lastRange,[r,n]=this.getRange();if(this.lastRange=r,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!Pn(e,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){const l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}const i=[j.events.SELECTION_CHANGE,Ze(this.lastRange),Ze(e),t];this.emitter.emit(j.events.EDITOR_CHANGE,...i),t!==j.sources.SILENT&&this.emitter.emit(...i)}}}function ti(s,t){try{t.parentNode}catch{return!1}return s.contains(t)}const Rd=/^[ -~]*$/;class Id{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const r=Wo(t),n=new R;return Bd(r.ops.slice()).reduce((i,l)=>{const a=qt.Op.length(l);let u=l.attributes||{},h=!1,g=!1;if(l.insert!=null){if(n.retain(a),typeof l.insert=="string"){const m=l.insert;g=!m.endsWith(`
|
|
6
|
-
`)&&(e<=i||!!this.scroll.descendant(_t,i)[0]),this.scroll.insertAt(i,m);const[b,v]=this.scroll.line(i);let L=he({},St(b));if(b instanceof mt){const[T]=b.descendant(xt,v);T&&(L=he(L,St(T)))}u=qt.AttributeMap.diff(L,u)||{}}else if(typeof l.insert=="object"){const m=Object.keys(l.insert)[0];if(m==null)return i;const b=this.scroll.query(m,M.INLINE)!=null;if(b)(e<=i||this.scroll.descendant(_t,i)[0])&&(g=!0);else if(i>0){const[v,L]=this.scroll.descendant(xt,i-1);v instanceof zt?v.value()[L]!==`
|
|
7
|
-
`&&(h=!0):v instanceof Ot&&v.statics.scope===M.INLINE_BLOT&&(h=!0)}if(this.scroll.insertAt(i,m,l.insert[m]),b){const[v]=this.scroll.descendant(xt,i);if(v){const L=he({},St(v));u=qt.AttributeMap.diff(L,u)||{}}}}e+=a}else if(n.push(l),l.retain!==null&&typeof l.retain=="object"){const m=Object.keys(l.retain)[0];if(m==null)return i;this.scroll.updateEmbedAt(i,m,l.retain[m])}Object.keys(u).forEach(m=>{this.scroll.formatAt(i,a,m,u[m])});const x=h?1:0,f=g?1:0;return e+=x+f,n.retain(x),n.delete(f),i+a+x+f},0),n.reduce((i,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(i,l.delete),i):i+qt.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new R().retain(t).delete(e))}formatLine(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(i=>{this.scroll.lines(t,Math.max(e,1)).forEach(l=>{l.format(i,r[i])})}),this.scroll.optimize();const n=new R().retain(t).retain(e,Ze(r));return this.update(n)}formatText(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(i=>{this.scroll.formatAt(t,e,i,r[i])});const n=new R().retain(t).retain(e,Ze(r));return this.update(n)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new R)}getFormat(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],n=[];e===0?this.scroll.path(t).forEach(a=>{const[u]=a;u instanceof mt?r.push(u):u instanceof xt&&n.push(u)}):(r=this.scroll.lines(t,e),n=this.scroll.descendants(xt,t,e));const[i,l]=[r,n].map(a=>{const u=a.shift();if(u==null)return{};let h=St(u);for(;Object.keys(h).length>0;){const g=a.shift();if(g==null)return h;h=Md(St(g),h)}return h});return{...i,...l}}getHTML(t,e){const[r,n]=this.scroll.line(t);if(r){const i=r.length();return r.length()>=n+e&&!(n===0&&e===i)?Sr(r,n,e,!0):Sr(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(t,e){const r=Wo(e),n=new R().retain(t).concat(r);return this.scroll.insertContents(t,r),this.update(n)}insertEmbed(t,e,r){return this.scroll.insertAt(t,e,r),this.update(new R().retain(t).insert({[e]:r}))}insertText(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=e.replace(/\r\n/g,`
|
|
8
|
-
`).replace(/\r/g,`
|
|
9
|
-
`),this.scroll.insertAt(t,e),Object.keys(r).forEach(n=>{this.scroll.formatAt(t,e.length,n,r[n])}),this.update(new R().retain(t).insert(e,Ze(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==mt.blotName)return!1;const e=t;return e.children.length>1?!1:e.children.head instanceof Ut}removeFormat(t,e){const r=this.getText(t,e),[n,i]=this.scroll.line(t+e);let l=0,a=new R;n!=null&&(l=n.length()-i,a=n.delta().slice(i,i+l-1).insert(`
|
|
10
|
-
`));const u=this.getContents(t,e+l).diff(new R().insert(r).concat(a)),h=new R().retain(t).concat(u);return this.applyDelta(h)}update(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const n=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(Rd)&&this.scroll.find(e[0].target)){const i=this.scroll.find(e[0].target),l=St(i),a=i.offset(this.scroll),u=e[0].oldValue.replace(As.CONTENTS,""),h=new R().insert(u),g=new R().insert(i.value()),x=r&&{oldRange:Go(r.oldRange,-a),newRange:Go(r.newRange,-a)};t=new R().retain(a).concat(h.diff(g,x)).reduce((f,m)=>m.insert?f.insert(m.insert,l):f.push(m),new R),this.delta=n.compose(t)}else this.delta=this.getDelta(),(!t||!Pn(n.compose(t),this.delta))&&(t=n.diff(this.delta,r));return t}}function Je(s,t,e){if(s.length===0){const[m]=ei(e.pop());return t<=0?`</li></${m}>`:`</li></${m}>${Je([],t-1,e)}`}const[{child:r,offset:n,length:i,indent:l,type:a},...u]=s,[h,g]=ei(a);if(l>t)return e.push(a),l===t+1?`<${h}><li${g}>${Sr(r,n,i)}${Je(u,l,e)}`:`<${h}><li>${Je(s,t+1,e)}`;const x=e[e.length-1];if(l===t&&a===x)return`</li><li${g}>${Sr(r,n,i)}${Je(u,l,e)}`;const[f]=ei(e.pop());return`</li></${f}>${Je(s,t-1,e)}`}function Sr(s,t,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in s&&typeof s.html=="function")return s.html(t,e);if(s instanceof zt)return Es(s.value().slice(t,t+e)).replaceAll(" "," ");if(s instanceof Dt){if(s.statics.blotName==="list-container"){const h=[];return s.children.forEachAt(t,e,(g,x,f)=>{const m="formats"in g&&typeof g.formats=="function"?g.formats():{};h.push({child:g,offset:x,length:f,indent:m.indent||0,type:m.list})}),Je(h,-1,[])}const n=[];if(s.children.forEachAt(t,e,(h,g,x)=>{n.push(Sr(h,g,x))}),r||s.statics.blotName==="list")return n.join("");const{outerHTML:i,innerHTML:l}=s.domNode,[a,u]=i.split(`>${l}<`);return a==="<table"?`<table style="border: 1px solid #000;">${n.join("")}<${u}`:`${a}>${n.join("")}<${u}`}return s.domNode instanceof Element?s.domNode.outerHTML:""}function Md(s,t){return Object.keys(t).reduce((e,r)=>{if(s[r]==null)return e;const n=t[r];return n===s[r]?e[r]=n:Array.isArray(n)?n.indexOf(s[r])<0?e[r]=n.concat([s[r]]):e[r]=n:e[r]=[n,s[r]],e},{})}function ei(s){const t=s==="ordered"?"ol":"ul";switch(s){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function Wo(s){return s.reduce((t,e)=>{if(typeof e.insert=="string"){const r=e.insert.replace(/\r\n/g,`
|
|
11
|
-
`).replace(/\r/g,`
|
|
12
|
-
`);return t.insert(r,e.attributes)}return t.push(e)},new R)}function Go(s,t){let{index:e,length:r}=s;return new pe(e+t,r)}function Bd(s){const t=[];return s.forEach(e=>{typeof e.insert=="string"?e.insert.split(`
|
|
13
|
-
`).forEach((r,n)=>{n&&t.push({insert:`
|
|
14
|
-
`,attributes:e.attributes}),r&&t.push({insert:r,attributes:e.attributes})}):t.push(e)}),t}class Tt{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=e}}_(Tt,"DEFAULTS",{});const qs="\uFEFF";class ri extends Ot{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(qs),this.rightGuard=document.createTextNode(qs),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,r;const n=t.data.split(qs).join("");if(t===this.leftGuard)if(this.prev instanceof zt){const i=this.prev.length();this.prev.insertAt(i,n),e={startNode:this.prev.domNode,startOffset:i+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this),e={startNode:r,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof zt?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this.next),e={startNode:r,startOffset:n.length}));return t.data=qs,e}update(t,e){t.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const n=this.restore(r.target);n&&(e.range=n)}})}}class Dd{constructor(t,e){_(this,"isComposing",!1),this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;e&&!(e instanceof ri)&&(this.emitter.emit(j.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(j.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(j.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(j.events.COMPOSITION_END,t),this.isComposing=!1}}const ks=class{constructor(t,e){_(this,"modules",{}),this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}};_(ks,"DEFAULTS",{modules:{}}),_(ks,"themes",{default:ks});let Os=ks;const Ud=s=>s.parentElement||s.getRootNode().host||null,zd=s=>{const t=s.getBoundingClientRect(),e="offsetWidth"in s&&Math.abs(t.width)/s.offsetWidth||1,r="offsetHeight"in s&&Math.abs(t.height)/s.offsetHeight||1;return{top:t.top,right:t.left+s.clientWidth*e,bottom:t.top+s.clientHeight*r,left:t.left}},Ls=s=>{const t=parseInt(s,10);return Number.isNaN(t)?0:t},Xo=(s,t,e,r,n,i)=>s<e&&t>r?0:s<e?-(e-s+n):t>r?t-s>r-e?s+n-e:t-r+i:0,Pd=(s,t)=>{var e,r,n;const i=s.ownerDocument;let l=t,a=s;for(;a;){const u=a===i.body,h=u?{top:0,right:((e=window.visualViewport)==null?void 0:e.width)??i.documentElement.clientWidth,bottom:((r=window.visualViewport)==null?void 0:r.height)??i.documentElement.clientHeight,left:0}:zd(a),g=getComputedStyle(a),x=Xo(l.left,l.right,h.left,h.right,Ls(g.scrollPaddingLeft),Ls(g.scrollPaddingRight)),f=Xo(l.top,l.bottom,h.top,h.bottom,Ls(g.scrollPaddingTop),Ls(g.scrollPaddingBottom));if(x||f)if(u)(n=i.defaultView)==null||n.scrollBy(x,f);else{const{scrollLeft:m,scrollTop:b}=a;f&&(a.scrollTop+=f),x&&(a.scrollLeft+=x);const v=a.scrollLeft-m,L=a.scrollTop-b;l={left:l.left-v,top:l.top-L,right:l.right-v,bottom:l.bottom-L}}a=u||g.position==="fixed"?null:Ud(a)}},Hd=100,$d=["block","break","cursor","inline","scroll","text"],Fd=(s,t,e)=>{const r=new Ge;return $d.forEach(n=>{const i=t.query(n);i&&r.register(i)}),s.forEach(n=>{let i=t.query(n);i||e.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);let l=0;for(;i;)if(r.register(i),i="blotName"in i?i.requiredContainer??null:null,l+=1,l>Hd){e.error(`Cycle detected in registering blot requiredContainer: "${n}"`);break}}),r},tr=re("quill"),_s=new Ge;Dt.uiClass="ql-ui";const er=class zr{static debug(t){t===!0&&(t="log"),re.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Gn.get(t)||_s.find(t,e)}static import(t){return this.imports[t]==null&&tr.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],e=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in t?t.attrName:t.blotName;typeof r=="string"?this.register(`formats/${r}`,t,e):Object.keys(t).forEach(n=>{this.register(n,t[n],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!r&&tr.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!="boolean"&&e.blotName!=="abstract"&&_s.register(e),typeof e.register=="function"&&e.register(_s)}}constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Vd(t,e),this.container=this.options.container,this.container==null){tr.error("Invalid Quill container",t);return}this.options.debug&&zr.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Gn.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new j;const n=Vn.blotName,i=this.options.registry.query(n);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Id(this.scroll),this.selection=new jd(this.scroll,this.emitter),this.composition=new Dd(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(j.events.EDITOR_CHANGE,l=>{l===j.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(j.events.SCROLL_UPDATE,(l,a)=>{const u=this.selection.lastRange,[h]=this.selection.getRange(),g=u&&h?{oldRange:u,newRange:h}:void 0;Pt.call(this,()=>this.editor.update(null,a,g),l)}),this.emitter.on(j.events.SCROLL_EMBED_UPDATE,(l,a)=>{const u=this.selection.lastRange,[h]=this.selection.getRange(),g=u&&h?{oldRange:u,newRange:h}:void 0;Pt.call(this,()=>{const x=new R().retain(l.offset(this)).retain({[l.statics.blotName]:a});return this.editor.update(x,[],g)},zr.sources.USER)}),r){const l=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
|
|
15
|
-
`});this.setContents(l)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,r){return[t,e,,r]=se(t,e,r),Pt.call(this,()=>this.editor.deleteText(t,e),r,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.sources.API;return Pt.call(this,()=>{const n=this.getSelection(!0);let i=new R;if(n==null)return i;if(this.scroll.query(t,M.BLOCK))i=this.editor.formatLine(n.index,n.length,{[t]:e});else{if(n.length===0)return this.selection.format(t,e),i;i=this.editor.formatText(n.index,n.length,{[t]:e})}return this.setSelection(n,j.sources.SILENT),i},r)}formatLine(t,e,r,n,i){let l;return[t,e,l,i]=se(t,e,r,n,i),Pt.call(this,()=>this.editor.formatLine(t,e,l),i,t,0)}formatText(t,e,r,n,i){let l;return[t,e,l,i]=se(t,e,r,n,i),Pt.call(this,()=>this.editor.formatText(t,e,l),i,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof t=="number"?r=this.selection.getBounds(t,e):r=this.selection.getBounds(t.index,t.length),!r)return null;const n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,e]=se(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=se(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=se(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:zr.sources.API;return Pt.call(this,()=>this.editor.insertEmbed(t,e,r),n,t)}insertText(t,e,r,n,i){let l;return[t,,l,i]=se(t,0,r,n,i),Pt.call(this,()=>this.editor.insertText(t,e,l),i,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,r){return[t,e,,r]=se(t,e,r),Pt.call(this,()=>this.editor.removeFormat(t,e),r,t)}scrollRectIntoView(t){Pd(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j.sources.API;return Pt.call(this,()=>{t=new R(t);const r=this.getLength(),n=this.editor.deleteText(0,r),i=this.editor.insertContents(0,t),l=this.editor.deleteText(this.getLength()-1,1);return n.compose(i).compose(l)},e)}setSelection(t,e,r){t==null?this.selection.setRange(null,e||zr.sources.API):([t,e,,r]=se(t,e,r),this.selection.setRange(new pe(Math.max(0,t),e),r),r!==j.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j.sources.API;const r=new R().insert(t);return this.setContents(r,e)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j.sources.API;return Pt.call(this,()=>(t=new R(t),this.editor.applyDelta(t)),e,!0)}};_(er,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:_s,theme:"default"}),_(er,"events",j.events),_(er,"sources",j.sources),_(er,"version","2.0.3"),_(er,"imports",{delta:R,parchment:Co,"core/module":Tt,"core/theme":Os});let E=er;function Qo(s){return typeof s=="string"?document.querySelector(s):s}function si(s){return Object.entries(s??{}).reduce((t,e)=>{let[r,n]=e;return{...t,[r]:n===!0?{}:n}},{})}function Yo(s){return Object.fromEntries(Object.entries(s).filter(t=>t[1]!==void 0))}function Vd(s,t){const e=Qo(s);if(!e)throw new Error("Invalid Quill container");const r=!t.theme||t.theme===E.DEFAULTS.theme?Os:E.import(`themes/${t.theme}`);if(!r)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:n,...i}=E.DEFAULTS,{modules:l,...a}=r.DEFAULTS;let u=si(t.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const h=he({},si(n),si(l),u),g={...i,...Yo(a),...Yo(t)};let x=t.registry;return x?t.formats&&tr.warn('Ignoring "formats" option because "registry" is specified'):x=t.formats?Fd(t.formats,g.registry,tr):g.registry,{...g,registry:x,container:e,theme:r,modules:Object.entries(h).reduce((f,m)=>{let[b,v]=m;if(!v)return f;const L=E.import(`modules/${b}`);return L==null?(tr.error(`Cannot load ${b} module. Are you sure you registered it?`),f):{...f,[b]:he({},L.DEFAULTS||{},v)}},{}),bounds:Qo(g.bounds)}}function Pt(s,t,e,r){if(!this.isEnabled()&&t===j.sources.USER&&!this.allowReadOnlyEdits)return new R;let n=e==null?null:this.getSelection();const i=this.editor.delta,l=s();if(n!=null&&(e===!0&&(e=n.index),r==null?n=Jo(n,l,t):r!==0&&(n=Jo(n,e,r,t)),this.setSelection(n,j.sources.SILENT)),l.length()>0){const a=[j.events.TEXT_CHANGE,l,i,t];this.emitter.emit(j.events.EDITOR_CHANGE,...a),t!==j.sources.SILENT&&this.emitter.emit(...a)}return l}function se(s,t,e,r,n){let i={};return typeof s.index=="number"&&typeof s.length=="number"?typeof t!="number"?(n=r,r=e,e=t,t=s.length,s=s.index):(t=s.length,s=s.index):typeof t!="number"&&(n=r,r=e,e=t,t=0),typeof e=="object"?(i=e,n=r):typeof e=="string"&&(r!=null?i[e]=r:n=e),n=n||j.sources.API,[s,t,i,n]}function Jo(s,t,e,r){const n=typeof e=="number"?e:0;if(s==null)return null;let i,l;return t&&typeof t.transformPosition=="function"?[i,l]=[s.index,s.index+s.length].map(a=>t.transformPosition(a,r!==j.sources.USER)):[i,l]=[s.index,s.index+s.length].map(a=>a<t||a===t&&r===j.sources.USER?a:n>=0?a+n:Math.max(t,a+n)),new pe(i,l-i)}class Se extends ms{}function tl(s){return s instanceof mt||s instanceof _t}function el(s){return typeof s.updateContent=="function"}class rr extends Vn{constructor(t,e,r){let{emitter:n}=r;super(t,e),this.emitter=n,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",i=>this.handleDragStart(i))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(j.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(j.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(j.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[r,n]=this.line(t),[i]=this.line(t+e);if(super.deleteAt(t,e),i!=null&&r!==i&&n>0){if(r instanceof _t||i instanceof _t){this.optimize();return}const l=i.children.head instanceof Ut?null:i.children.head;r.moveChildren(i,l),r.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,r,n){super.formatAt(t,e,r,n),this.optimize()}insertAt(t,e,r){if(t>=this.length())if(r==null||this.scroll.query(e,M.BLOCK)==null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n),r==null&&e.endsWith(`
|
|
16
|
-
`)?n.insertAt(0,e.slice(0,-1),r):n.insertAt(0,e,r)}else{const n=this.scroll.create(e,r);this.appendChild(n)}else super.insertAt(t,e,r);this.optimize()}insertBefore(t,e){if(t.statics.scope===M.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,e)}else super.insertBefore(t,e)}insertContents(t,e){const r=this.deltaToRenderBlocks(e.concat(new R().insert(`
|
|
17
|
-
`))),n=r.pop();if(n==null)return;this.batchStart();const i=r.shift();if(i){const u=i.type==="block"&&(i.delta.length()===0||!this.descendant(_t,t)[0]&&t<this.length()),h=i.type==="block"?i.delta:new R().insert({[i.key]:i.value});ni(this,t,h);const g=i.type==="block"?1:0,x=t+h.length()+g;u&&this.insertAt(x-1,`
|
|
18
|
-
`);const f=St(this.line(t)[0]),m=qt.AttributeMap.diff(f,i.attributes)||{};Object.keys(m).forEach(b=>{this.formatAt(x-1,1,b,m[b])}),t=x}let[l,a]=this.children.find(t);if(r.length&&(l&&(l=l.split(a),a=0),r.forEach(u=>{if(u.type==="block"){const h=this.createBlock(u.attributes,l||void 0);ni(h,0,u.delta)}else{const h=this.create(u.key,u.value);this.insertBefore(h,l||void 0),Object.keys(u.attributes).forEach(g=>{h.format(g,u.attributes[g])})}})),n.type==="block"&&n.delta.length()){const u=l?l.offset(l.scroll)+a:this.length();ni(this,u,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[r,n]=e;return r instanceof xt?[r,n]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(tl,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(n,i,l)=>{let a=[],u=l;return n.children.forEachAt(i,l,(h,g,x)=>{tl(h)?a.push(h):h instanceof ms&&(a=a.concat(r(h,g,u))),u-=x}),a};return r(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(j.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=j.sources.USER;typeof t=="string"&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(r=>{let{target:n}=r;const i=this.find(n,!0);return i&&!el(i)}),t.length>0&&this.emitter.emit(j.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(j.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,r){const[n]=this.descendant(i=>i instanceof _t,t);n&&n.statics.blotName===e&&el(n)&&n.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let r=new R;return t.forEach(n=>{const i=n==null?void 0:n.insert;if(i)if(typeof i=="string"){const l=i.split(`
|
|
19
|
-
`);l.slice(0,-1).forEach(u=>{r.insert(u,n.attributes),e.push({type:"block",delta:r,attributes:n.attributes??{}}),r=new R});const a=l[l.length-1];a&&r.insert(a,n.attributes)}else{const l=Object.keys(i)[0];if(!l)return;this.query(l,M.INLINE)?r.push(n):(r.length()&&e.push({type:"block",delta:r,attributes:{}}),r=new R,e.push({type:"blockEmbed",key:l,value:i[l],attributes:n.attributes??{}}))}}),r.length()&&e.push({type:"block",delta:r,attributes:{}}),e}createBlock(t,e){let r;const n={};Object.entries(t).forEach(a=>{let[u,h]=a;this.query(u,M.BLOCK&M.BLOT)!=null?r=u:n[u]=h});const i=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(i,e||void 0);const l=i.length();return Object.entries(n).forEach(a=>{let[u,h]=a;i.formatAt(0,l,u,h)}),i}}_(rr,"blotName","scroll"),_(rr,"className","ql-editor"),_(rr,"tagName","DIV"),_(rr,"defaultChild",mt),_(rr,"allowedChildren",[mt,_t,Se]);function ni(s,t,e){e.reduce((r,n)=>{const i=qt.Op.length(n);let l=n.attributes||{};if(n.insert!=null){if(typeof n.insert=="string"){const a=n.insert;s.insertAt(r,a);const[u]=s.descendant(xt,r),h=St(u);l=qt.AttributeMap.diff(h,l)||{}}else if(typeof n.insert=="object"){const a=Object.keys(n.insert)[0];if(a==null)return r;if(s.insertAt(r,a,n.insert[a]),s.scroll.query(a,M.INLINE)!=null){const[u]=s.descendant(xt,r),h=St(u);l=qt.AttributeMap.diff(h,l)||{}}}}return Object.keys(l).forEach(a=>{s.formatAt(r,i,a,l[a])}),r+i},t)}const ii={scope:M.BLOCK,whitelist:["right","center","justify"]},Kd=new Wt("align","align",ii),rl=new Bt("align","ql-align",ii),sl=new de("align","text-align",ii);class nl extends de{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(r=>`00${parseInt(r,10).toString(16)}`.slice(-2)).join("")}`):e}}const Zd=new Bt("color","ql-color",{scope:M.INLINE}),oi=new nl("color","color",{scope:M.INLINE}),Wd=new Bt("background","ql-bg",{scope:M.INLINE}),li=new nl("background","background-color",{scope:M.INLINE});class Te extends Se{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
|
|
20
|
-
`).slice(t,t+e)}html(t,e){return`<pre>
|
|
21
|
-
${Es(this.code(t,e))}
|
|
22
|
-
</pre>`}}class Nt extends mt{static register(){E.register(Te)}}_(Nt,"TAB"," ");class ai extends fe{}ai.blotName="code",ai.tagName="CODE",Nt.blotName="code-block",Nt.className="ql-code-block",Nt.tagName="DIV",Te.blotName="code-block-container",Te.className="ql-code-block-container",Te.tagName="DIV",Te.allowedChildren=[Nt],Nt.allowedChildren=[zt,Ut,As],Nt.requiredContainer=Te;const ci={scope:M.BLOCK,whitelist:["rtl"]},il=new Wt("direction","dir",ci),ol=new Bt("direction","ql-direction",ci),ll=new de("direction","direction",ci),al={scope:M.INLINE,whitelist:["serif","monospace"]},cl=new Bt("font","ql-font",al);class Gd extends de{value(t){return super.value(t).replace(/["']/g,"")}}const ul=new Gd("font","font-family",al),hl=new Bt("size","ql-size",{scope:M.INLINE,whitelist:["small","large","huge"]}),dl=new de("size","font-size",{scope:M.INLINE,whitelist:["10px","18px","32px"]}),Xd=re("quill:keyboard"),Qd=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Is extends Tt{static match(t,e){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!e[r]!==t[r]&&e[r]!==null)?!1:e.key===t.key||e.key===t.which}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Jd(t);if(n==null){Xd.warn("Attempted to add invalid keyboard binding",n);return}typeof e=="function"&&(e={handler:e}),typeof r=="function"&&(r={handler:r}),(Array.isArray(n.key)?n.key:[n.key]).forEach(i=>{const l={...n,key:i,...e,...r};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(b=>Is.match(t,b));if(e.length===0)return;const r=E.find(t.target,!0);if(r&&r.scroll!==this.quill.scroll)return;const n=this.quill.getSelection();if(n==null||!this.quill.hasFocus())return;const[i,l]=this.quill.getLine(n.index),[a,u]=this.quill.getLeaf(n.index),[h,g]=n.length===0?[a,u]:this.quill.getLeaf(n.index+n.length),x=a instanceof gs?a.value().slice(0,u):"",f=h instanceof gs?h.value().slice(g):"",m={collapsed:n.length===0,empty:n.length===0&&i.length()<=1,format:this.quill.getFormat(n),line:i,offset:l,prefix:x,suffix:f,event:t};e.some(b=>{if(b.collapsed!=null&&b.collapsed!==m.collapsed||b.empty!=null&&b.empty!==m.empty||b.offset!=null&&b.offset!==m.offset)return!1;if(Array.isArray(b.format)){if(b.format.every(v=>m.format[v]==null))return!1}else if(typeof b.format=="object"&&!Object.keys(b.format).every(v=>b.format[v]===!0?m.format[v]!=null:b.format[v]===!1?m.format[v]==null:Pn(b.format[v],m.format[v])))return!1;return b.prefix!=null&&!b.prefix.test(m.prefix)||b.suffix!=null&&!b.suffix.test(m.suffix)?!1:b.handler.call(this,n,m,b)!==!0})&&t.preventDefault()})}handleBackspace(t,e){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let n={};const[i]=this.quill.getLine(t.index);let l=new R().retain(t.index-r).delete(r);if(e.offset===0){const[a]=this.quill.getLine(t.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const u=i.formats(),h=this.quill.getFormat(t.index-1,1);if(n=qt.AttributeMap.diff(u,h)||{},Object.keys(n).length>0){const g=new R().retain(t.index+i.length()-2).retain(1,n);l=l.compose(g)}}}this.quill.updateContents(l,E.sources.USER),this.quill.focus()}handleDelete(t,e){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;let n={};const[i]=this.quill.getLine(t.index);let l=new R().retain(t.index).delete(r);if(e.offset>=i.length()-1){const[a]=this.quill.getLine(t.index+1);if(a){const u=i.formats(),h=this.quill.getFormat(t.index,1);n=qt.AttributeMap.diff(u,h)||{},Object.keys(n).length>0&&(l=l.retain(a.length()-1).retain(1,n))}}this.quill.updateContents(l,E.sources.USER),this.quill.focus()}handleDeleteRange(t){hi({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const r=Object.keys(e.format).reduce((i,l)=>(this.quill.scroll.query(l,M.BLOCK)&&!Array.isArray(e.format[l])&&(i[l]=e.format[l]),i),{}),n=new R().retain(t.index).delete(t.length).insert(`
|
|
23
|
-
`,r);this.quill.updateContents(n,E.sources.USER),this.quill.setSelection(t.index+1,E.sources.SILENT),this.quill.focus()}}const Yd={bindings:{bold:ui("bold"),italic:ui("italic"),underline:ui("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(s,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",E.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(s,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",E.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(s,t){t.format.indent!=null?this.quill.format("indent","-1",E.sources.USER):t.format.list!=null&&this.quill.format("list",!1,E.sources.USER)}},"indent code-block":fl(!0),"outdent code-block":fl(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(s){this.quill.deleteText(s.index-1,1,E.sources.USER)}},tab:{key:"Tab",handler(s,t){if(t.format.table)return!0;this.quill.history.cutoff();const e=new R().retain(s.index).delete(s.length).insert(" ");return this.quill.updateContents(e,E.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(s.index+1,E.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,E.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(s,t){const e={list:!1};t.format.indent&&(e.indent=!1),this.quill.formatLine(s.index,s.length,e,E.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(s){const[t,e]=this.quill.getLine(s.index),r={...t.formats(),list:"checked"},n=new R().retain(s.index).insert(`
|
|
24
|
-
`,r).retain(t.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,E.sources.USER),this.quill.setSelection(s.index+1,E.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(s,t){const[e,r]=this.quill.getLine(s.index),n=new R().retain(s.index).insert(`
|
|
25
|
-
`,t.format).retain(e.length()-r-1).retain(1,{header:null});this.quill.updateContents(n,E.sources.USER),this.quill.setSelection(s.index+1,E.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(s){const t=this.quill.getModule("table");if(t){const[e,r,n,i]=t.getTable(s),l=tf(e,r,n,i);if(l==null)return;let a=e.offset();if(l<0){const u=new R().retain(a).insert(`
|
|
26
|
-
`);this.quill.updateContents(u,E.sources.USER),this.quill.setSelection(s.index+1,s.length,E.sources.SILENT)}else if(l>0){a+=e.length();const u=new R().retain(a).insert(`
|
|
27
|
-
`);this.quill.updateContents(u,E.sources.USER),this.quill.setSelection(a,E.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(s,t){const{event:e,line:r}=t,n=r.offset(this.quill.scroll);e.shiftKey?this.quill.setSelection(n-1,E.sources.USER):this.quill.setSelection(n+r.length(),E.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(s,t){if(this.quill.scroll.query("list")==null)return!0;const{length:e}=t.prefix,[r,n]=this.quill.getLine(s.index);if(n>e)return!0;let i;switch(t.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(s.index," ",E.sources.USER),this.quill.history.cutoff();const l=new R().retain(s.index-n).delete(e+1).retain(r.length()-2-n).retain(1,{list:i});return this.quill.updateContents(l,E.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(s.index-e,E.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(s){const[t,e]=this.quill.getLine(s.index);let r=2,n=t;for(;n!=null&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,r-=1,r<=0){const i=new R().retain(s.index+t.length()-e-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,E.sources.USER),this.quill.setSelection(s.index-1,E.sources.SILENT),!1}return!0}},"embed left":Ss("ArrowLeft",!1),"embed left shift":Ss("ArrowLeft",!0),"embed right":Ss("ArrowRight",!1),"embed right shift":Ss("ArrowRight",!0),"table down":pl(!1),"table up":pl(!0)}};Is.DEFAULTS=Yd;function fl(s){return{key:"Tab",shiftKey:!s,format:{"code-block":!0},handler(t,e){let{event:r}=e;const n=this.quill.scroll.query("code-block"),{TAB:i}=n;if(t.length===0&&!r.shiftKey){this.quill.insertText(t.index,i,E.sources.USER),this.quill.setSelection(t.index+i.length,E.sources.SILENT);return}const l=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:a,length:u}=t;l.forEach((h,g)=>{s?(h.insertAt(0,i),g===0?a+=i.length:u+=i.length):h.domNode.textContent.startsWith(i)&&(h.deleteAt(0,i.length),g===0?a-=i.length:u-=i.length)}),this.quill.update(E.sources.USER),this.quill.setSelection(a,u,E.sources.SILENT)}}}function Ss(s,t){return{key:s,shiftKey:t,altKey:null,[s==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(e){let{index:r}=e;s==="ArrowRight"&&(r+=e.length+1);const[n]=this.quill.getLeaf(r);return n instanceof Ot?(s==="ArrowLeft"?t?this.quill.setSelection(e.index-1,e.length+1,E.sources.USER):this.quill.setSelection(e.index-1,E.sources.USER):t?this.quill.setSelection(e.index,e.length+1,E.sources.USER):this.quill.setSelection(e.index+e.length+1,E.sources.USER),!1):!0}}}function ui(s){return{key:s[0],shortKey:!0,handler(t,e){this.quill.format(s,!e.format[s],E.sources.USER)}}}function pl(s){return{key:s?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,e){const r=s?"prev":"next",n=e.line,i=n.parent[r];if(i!=null){if(i.statics.blotName==="table-row"){let l=i.children.head,a=n;for(;a.prev!=null;)a=a.prev,l=l.next;const u=l.offset(this.quill.scroll)+Math.min(e.offset,l.length()-1);this.quill.setSelection(u,0,E.sources.USER)}}else{const l=n.table()[r];l!=null&&(s?this.quill.setSelection(l.offset(this.quill.scroll)+l.length()-1,0,E.sources.USER):this.quill.setSelection(l.offset(this.quill.scroll),0,E.sources.USER))}return!1}}}function Jd(s){if(typeof s=="string"||typeof s=="number")s={key:s};else if(typeof s=="object")s=Ze(s);else return null;return s.shortKey&&(s[Qd]=s.shortKey,delete s.shortKey),s}function hi(s){let{quill:t,range:e}=s;const r=t.getLines(e);let n={};if(r.length>1){const i=r[0].formats(),l=r[r.length-1].formats();n=qt.AttributeMap.diff(l,i)||{}}t.deleteText(e,E.sources.USER),Object.keys(n).length>0&&t.formatLine(e.index,1,n,E.sources.USER),t.setSelection(e.index,E.sources.SILENT)}function tf(s,t,e,r){return t.prev==null&&t.next==null?e.prev==null&&e.next==null?r===0?-1:1:e.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const ef=/font-weight:\s*normal/,rf=["P","OL","UL"],ml=s=>s&&rf.includes(s.tagName),sf=s=>{Array.from(s.querySelectorAll("br")).filter(t=>ml(t.previousElementSibling)&&ml(t.nextElementSibling)).forEach(t=>{var e;(e=t.parentNode)==null||e.removeChild(t)})},nf=s=>{Array.from(s.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var e;return(e=t.getAttribute("style"))==null?void 0:e.match(ef)}).forEach(t=>{var e;const r=s.createDocumentFragment();r.append(...t.childNodes),(e=t.parentNode)==null||e.replaceChild(r,t)})};function of(s){s.querySelector('[id^="docs-internal-guid-"]')&&(nf(s),sf(s))}const lf=/\bmso-list:[^;]*ignore/i,af=/\bmso-list:[^;]*\bl(\d+)/i,cf=/\bmso-list:[^;]*\blevel(\d+)/i,uf=(s,t)=>{const e=s.getAttribute("style"),r=e==null?void 0:e.match(af);if(!r)return null;const n=Number(r[1]),i=e==null?void 0:e.match(cf),l=i?Number(i[1]):1,a=new RegExp(`@list l${n}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),u=t.match(a),h=u&&u[1]==="bullet"?"bullet":"ordered";return{id:n,indent:l,type:h,element:s}},hf=s=>{var t,e;const r=Array.from(s.querySelectorAll("[style*=mso-list]")),n=[],i=[];r.forEach(u=>{(u.getAttribute("style")||"").match(lf)?n.push(u):i.push(u)}),n.forEach(u=>{var h;return(h=u.parentNode)==null?void 0:h.removeChild(u)});const l=s.documentElement.innerHTML,a=i.map(u=>uf(u,l)).filter(u=>u);for(;a.length;){const u=[];let h=a.shift();for(;h;)u.push(h),h=a.length&&((t=a[0])==null?void 0:t.element)===h.element.nextElementSibling&&a[0].id===h.id?a.shift():null;const g=document.createElement("ul");u.forEach(m=>{const b=document.createElement("li");b.setAttribute("data-list",m.type),m.indent>1&&b.setAttribute("class",`ql-indent-${m.indent-1}`),b.innerHTML=m.element.innerHTML,g.appendChild(b)});const x=(e=u[0])==null?void 0:e.element,{parentNode:f}=x??{};x&&(f==null||f.replaceChild(g,x)),u.slice(1).forEach(m=>{let{element:b}=m;f==null||f.removeChild(b)})}};function df(s){s.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&hf(s)}const ff=[df,of],pf=s=>{s.documentElement&&ff.forEach(t=>{t(s)})},mf=re("quill:clipboard"),gf=[[Node.TEXT_NODE,Lf],[Node.TEXT_NODE,vl],["br",Nf],[Node.ELEMENT_NODE,vl],[Node.ELEMENT_NODE,xf],[Node.ELEMENT_NODE,vf],[Node.ELEMENT_NODE,kf],["li",Af],["ol, ul",qf],["pre",Ef],["tr",Of],["b",fi("bold")],["i",fi("italic")],["strike",fi("strike")],["style",wf]],bf=[Kd,il].reduce((s,t)=>(s[t.keyName]=t,s),{}),gl=[sl,li,oi,ll,ul,dl].reduce((s,t)=>(s[t.keyName]=t,s),{});class bl extends Tt{constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],gf.concat(this.options.matchers??[]).forEach(r=>{let[n,i]=r;this.addMatcher(n,i)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:r}=t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n[Nt.blotName])return new R().insert(r||"",{[Nt.blotName]:n[Nt.blotName]});if(!e)return new R().insert(r||"",n);const i=this.convertHTML(e);return Tr(i,`
|
|
28
|
-
`)&&(i.ops[i.ops.length-1].attributes==null||n.table)?i.compose(new R().retain(i.length()-1).delete(1)):i}normalizeHTML(t){pf(t)}convertHTML(t){const e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);const r=e.body,n=new WeakMap,[i,l]=this.prepareMatching(r,n);return di(this.quill.scroll,r,i,l,n)}dangerouslyPasteHTML(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E.sources.API;if(typeof t=="string"){const n=this.convert({html:t,text:""});this.quill.setContents(n,e),this.quill.setSelection(0,E.sources.SILENT)}else{const n=this.convert({html:e,text:""});this.quill.updateContents(new R().retain(t).concat(n),r),this.quill.setSelection(t+n.length(),E.sources.SILENT)}}onCaptureCopy(t){var e,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[i]=this.quill.selection.getRange();if(i==null)return;const{html:l,text:a}=this.onCopy(i,n);(e=t.clipboardData)==null||e.setData("text/plain",a),(r=t.clipboardData)==null||r.setData("text/html",l),n&&hi({range:i,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(e=>e[0]!=="#").join(`
|
|
29
|
-
`)}onCapturePaste(t){var e,r,n,i,l;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const a=this.quill.getSelection(!0);if(a==null)return;const u=(e=t.clipboardData)==null?void 0:e.getData("text/html");let h=(r=t.clipboardData)==null?void 0:r.getData("text/plain");if(!u&&!h){const x=(n=t.clipboardData)==null?void 0:n.getData("text/uri-list");x&&(h=this.normalizeURIList(x))}const g=Array.from(((i=t.clipboardData)==null?void 0:i.files)||[]);if(!u&&g.length>0){this.quill.uploader.upload(a,g);return}if(u&&g.length>0){const x=new DOMParser().parseFromString(u,"text/html");if(x.body.childElementCount===1&&((l=x.body.firstElementChild)==null?void 0:l.tagName)==="IMG"){this.quill.uploader.upload(a,g);return}}this.onPaste(a,{html:u,text:h})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:r,html:n}=e;const i=this.quill.getFormat(t.index),l=this.convert({text:r,html:n},i);mf.log("onPaste",l,{text:r,html:n});const a=new R().retain(t.index).delete(t.length).concat(l);this.quill.updateContents(a,E.sources.USER),this.quill.setSelection(a.length()-t.length,E.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const r=[],n=[];return this.matchers.forEach(i=>{const[l,a]=i;switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(t.querySelectorAll(l)).forEach(u=>{if(e.has(u)){const h=e.get(u);h==null||h.push(a)}else e.set(u,[a])});break}}),[r,n]}}_(bl,"DEFAULTS",{matchers:[]});function Ce(s,t,e,r){return r.query(t)?s.reduce((n,i)=>{if(!i.insert)return n;if(i.attributes&&i.attributes[t])return n.push(i);const l=e?{[t]:e}:{};return n.insert(i.insert,{...l,...i.attributes})},new R):s}function Tr(s,t){let e="";for(let r=s.ops.length-1;r>=0&&e.length<t.length;--r){const n=s.ops[r];if(typeof n.insert!="string")break;e=n.insert+e}return e.slice(-1*t.length)===t}function me(s,t){if(!(s instanceof Element))return!1;const e=t.query(s);return e&&e.prototype instanceof Ot?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(s.tagName.toLowerCase())}function yf(s,t){return s.previousElementSibling&&s.nextElementSibling&&!me(s.previousElementSibling,t)&&!me(s.nextElementSibling,t)}const Ts=new WeakMap;function yl(s){return s==null?!1:(Ts.has(s)||(s.tagName==="PRE"?Ts.set(s,!0):Ts.set(s,yl(s.parentNode))),Ts.get(s))}function di(s,t,e,r,n){return t.nodeType===t.TEXT_NODE?r.reduce((i,l)=>l(t,i,s),new R):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((i,l)=>{let a=di(s,l,e,r,n);return l.nodeType===t.ELEMENT_NODE&&(a=e.reduce((u,h)=>h(l,u,s),a),a=(n.get(l)||[]).reduce((u,h)=>h(l,u,s),a)),i.concat(a)},new R):new R}function fi(s){return(t,e,r)=>Ce(e,s,!0,r)}function vf(s,t,e){const r=Wt.keys(s),n=Bt.keys(s),i=de.keys(s),l={};return r.concat(n).concat(i).forEach(a=>{let u=e.query(a,M.ATTRIBUTE);u!=null&&(l[u.attrName]=u.value(s),l[u.attrName])||(u=bf[a],u!=null&&(u.attrName===a||u.keyName===a)&&(l[u.attrName]=u.value(s)||void 0),u=gl[a],u!=null&&(u.attrName===a||u.keyName===a)&&(u=gl[a],l[u.attrName]=u.value(s)||void 0))}),Object.entries(l).reduce((a,u)=>{let[h,g]=u;return Ce(a,h,g,e)},t)}function xf(s,t,e){const r=e.query(s);if(r==null)return t;if(r.prototype instanceof Ot){const n={},i=r.value(s);if(i!=null)return n[r.blotName]=i,new R().insert(n,r.formats(s,e))}else if(r.prototype instanceof Lr&&!Tr(t,`
|
|
30
|
-
`)&&t.insert(`
|
|
31
|
-
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Ce(t,r.blotName,r.formats(s,e),e);return t}function Nf(s,t){return Tr(t,`
|
|
32
|
-
`)||t.insert(`
|
|
33
|
-
`),t}function Ef(s,t,e){const r=e.query("code-block"),n=r&&"formats"in r&&typeof r.formats=="function"?r.formats(s,e):!0;return Ce(t,"code-block",n,e)}function wf(){return new R}function Af(s,t,e){const r=e.query(s);if(r==null||r.blotName!=="list"||!Tr(t,`
|
|
34
|
-
`))return t;let n=-1,i=s.parentNode;for(;i!=null;)["OL","UL"].includes(i.tagName)&&(n+=1),i=i.parentNode;return n<=0?t:t.reduce((l,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?l.push(a):l.insert(a.insert,{indent:n,...a.attributes||{}}):l,new R)}function qf(s,t,e){const r=s;let n=r.tagName==="OL"?"ordered":"bullet";const i=r.getAttribute("data-checked");return i&&(n=i==="true"?"checked":"unchecked"),Ce(t,"list",n,e)}function vl(s,t,e){if(!Tr(t,`
|
|
35
|
-
`)){if(me(s,e)&&(s.childNodes.length>0||s instanceof HTMLParagraphElement))return t.insert(`
|
|
36
|
-
`);if(t.length()>0&&s.nextSibling){let r=s.nextSibling;for(;r!=null;){if(me(r,e))return t.insert(`
|
|
37
|
-
`);const n=e.query(r);if(n&&n.prototype instanceof _t)return t.insert(`
|
|
38
|
-
`);r=r.firstChild}}}return t}function kf(s,t,e){var r;const n={},i=s.style||{};return i.fontStyle==="italic"&&(n.italic=!0),i.textDecoration==="underline"&&(n.underline=!0),i.textDecoration==="line-through"&&(n.strike=!0),((r=i.fontWeight)!=null&&r.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(n.bold=!0),t=Object.entries(n).reduce((l,a)=>{let[u,h]=a;return Ce(l,u,h,e)},t),parseFloat(i.textIndent||0)>0?new R().insert(" ").concat(t):t}function Of(s,t,e){var r,n;const i=((r=s.parentElement)==null?void 0:r.tagName)==="TABLE"?s.parentElement:(n=s.parentElement)==null?void 0:n.parentElement;if(i!=null){const l=Array.from(i.querySelectorAll("tr")).indexOf(s)+1;return Ce(t,"table",l,e)}return t}function Lf(s,t,e){var r;let n=s.data;if(((r=s.parentElement)==null?void 0:r.tagName)==="O:P")return t.insert(n.trim());if(!yl(s)){if(n.trim().length===0&&n.includes(`
|
|
39
|
-
`)&&!yf(s,e))return t;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(s.previousSibling==null&&s.parentElement!=null&&me(s.parentElement,e)||s.previousSibling instanceof Element&&me(s.previousSibling,e))&&(n=n.replace(/^ /,"")),(s.nextSibling==null&&s.parentElement!=null&&me(s.parentElement,e)||s.nextSibling instanceof Element&&me(s.nextSibling,e))&&(n=n.replace(/ $/,"")),n=n.replaceAll("\xA0"," ")}return t.insert(n)}class xl extends Tt{constructor(t,e){super(t,e),_(this,"lastRecorded",0),_(this,"ignoreChange",!1),_(this,"stack",{undo:[],redo:[]}),_(this,"currentRange",null),this.quill.on(E.events.EDITOR_CHANGE,(r,n,i,l)=>{r===E.events.SELECTION_CHANGE?n&&l!==E.sources.SILENT&&(this.currentRange=n):r===E.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===E.sources.USER?this.record(n,i):this.transform(n)),this.currentRange=pi(this.currentRange,n))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(t,e){if(this.stack[t].length===0)return;const r=this.stack[t].pop();if(!r)return;const n=this.quill.getContents(),i=r.delta.invert(n);this.stack[e].push({delta:i,range:pi(r.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,E.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(t.ops.length===0)return;this.stack.redo=[];let r=t.invert(e),n=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(r=r.compose(l.delta),n=l.range)}else this.lastRecorded=i;r.length()!==0&&(this.stack.undo.push({delta:r,range:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Nl(this.stack.undo,t),Nl(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,E.sources.USER);else{const e=Sf(this.quill.scroll,t.delta);this.quill.setSelection(e,E.sources.USER)}}}_(xl,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Nl(s,t){let e=t;for(let r=s.length-1;r>=0;r-=1){const n=s[r];s[r]={delta:e.transform(n.delta,!0),range:n.range&&pi(n.range,e)},e=n.delta.transform(e),s[r].delta.length()===0&&s.splice(r,1)}}function _f(s,t){const e=t.ops[t.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(`
|
|
40
|
-
`):e.attributes!=null?Object.keys(e.attributes).some(r=>s.query(r,M.BLOCK)!=null):!1}function Sf(s,t){const e=t.reduce((n,i)=>n+(i.delete||0),0);let r=t.length()-e;return _f(s,t)&&(r-=1),r}function pi(s,t){if(!s)return s;const e=t.transformPosition(s.index),r=t.transformPosition(s.index+s.length);return{index:e,length:r-e}}class El extends Tt{constructor(t,e){super(t,e),t.root.addEventListener("drop",r=>{var n;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(a.offsetNode,a.offset),i.setEnd(a.offsetNode,a.offset)}const l=i&&t.selection.normalizeNative(i);if(l){const a=t.selection.normalizedToRange(l);(n=r.dataTransfer)!=null&&n.files&&this.upload(a,r.dataTransfer.files)}})}upload(t,e){const r=[];Array.from(e).forEach(n=>{var i;n&&(i=this.options.mimetypes)!=null&&i.includes(n.type)&&r.push(n)}),r.length>0&&this.options.handler.call(this,t,r)}}El.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(s,t){if(!this.quill.scroll.query("image"))return;const e=t.map(r=>new Promise(n=>{const i=new FileReader;i.onload=()=>{n(i.result)},i.readAsDataURL(r)}));Promise.all(e).then(r=>{const n=r.reduce((i,l)=>i.insert({image:l}),new R().retain(s.index).delete(s.length));this.quill.updateContents(n,j.sources.USER),this.quill.setSelection(s.index+r.length,j.sources.SILENT)})}};const Tf=["insertText","insertReplacementText"];class Cf extends Tt{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||t.on(E.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){hi({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(e){const r=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new R().retain(t.index).insert(e,r),E.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,E.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Tf.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===!0)return;const r=jf(t);if(r==null)return;const n=this.quill.selection.normalizeNative(e),i=n?this.quill.selection.normalizedToRange(n):null;i&&this.replaceText(i,r)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function jf(s){var t;return typeof s.data=="string"?s.data:(t=s.dataTransfer)!=null&&t.types.includes("text/plain")?s.dataTransfer.getData("text/plain"):null}const Rf=/Mac/i.test(navigator.platform),If=100,Mf=s=>!!(s.key==="ArrowLeft"||s.key==="ArrowRight"||s.key==="ArrowUp"||s.key==="ArrowDown"||s.key==="Home"||Rf&&s.key==="a"&&s.ctrlKey===!0);class Bf extends Tt{constructor(t,e){super(t,e),_(this,"isListening",!1),_(this,"selectionChangeDeadline",0),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:r,event:n}=e;if(!(r instanceof Dt)||!r.uiNode)return!0;const i=getComputedStyle(r.domNode).direction==="rtl";return i&&n.key!=="ArrowRight"||!i&&n.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(n.shiftKey?1:0),E.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&Mf(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+If,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(e.collapsed!==!0||e.startOffset!==0)return;const r=this.quill.scroll.find(e.startContainer);if(!(r instanceof Dt)||!r.uiNode)return;const n=document.createRange();n.setStartAfter(r.uiNode),n.setEndAfter(r.uiNode),t.removeAllRanges(),t.addRange(n)}}E.register({"blots/block":mt,"blots/block/embed":_t,"blots/break":Ut,"blots/container":Se,"blots/cursor":As,"blots/embed":ri,"blots/inline":fe,"blots/scroll":rr,"blots/text":zt,"modules/clipboard":bl,"modules/history":xl,"modules/keyboard":Is,"modules/uploader":El,"modules/input":Cf,"modules/uiNode":Bf});class Df extends Bt{add(t,e){let r=0;if(e==="+1"||e==="-1"){const n=this.value(t)||0;r=e==="+1"?n+1:n-1}else typeof e=="number"&&(r=e);return r===0?(this.remove(t),!0):super.add(t,r.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}const Uf=new Df("indent","ql-indent",{scope:M.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class mi extends mt{}_(mi,"blotName","blockquote"),_(mi,"tagName","blockquote");class gi extends mt{static formats(t){return this.tagName.indexOf(t.tagName)+1}}_(gi,"blotName","header"),_(gi,"tagName",["H1","H2","H3","H4","H5","H6"]);class Cr extends Se{}Cr.blotName="list-container",Cr.tagName="OL";class jr extends mt{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){E.register(Cr)}constructor(t,e){super(t,e);const r=e.ownerDocument.createElement("span"),n=i=>{if(!t.isEnabled())return;const l=this.statics.formats(e,t);l==="checked"?(this.format("list","unchecked"),i.preventDefault()):l==="unchecked"&&(this.format("list","checked"),i.preventDefault())};r.addEventListener("mousedown",n),r.addEventListener("touchstart",n),this.attachUI(r)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}jr.blotName="list",jr.tagName="LI",Cr.allowedChildren=[jr],jr.requiredContainer=Cr;class Rr extends fe{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}_(Rr,"blotName","bold"),_(Rr,"tagName",["STRONG","B"]);class bi extends Rr{}_(bi,"blotName","italic"),_(bi,"tagName",["EM","I"]);class ge extends fe{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return wl(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||!e?super.format(t,e):this.domNode.setAttribute("href",this.constructor.sanitize(e))}}_(ge,"blotName","link"),_(ge,"tagName","A"),_(ge,"SANITIZED_URL","about:blank"),_(ge,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function wl(s,t){const e=document.createElement("a");e.href=s;const r=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(r)>-1}class yi extends fe{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}_(yi,"blotName","script"),_(yi,"tagName",["SUB","SUP"]);class vi extends Rr{}_(vi,"blotName","strike"),_(vi,"tagName",["S","STRIKE"]);class xi extends fe{}_(xi,"blotName","underline"),_(xi,"tagName","U");class Cs extends ri{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return typeof t=="string"&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}_(Cs,"blotName","formula"),_(Cs,"className","ql-formula"),_(Cs,"tagName","SPAN");const Al=["alt","height","width"];class Ni extends Ot{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Al.reduce((e,r)=>(t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return wl(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Al.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}_(Ni,"blotName","image"),_(Ni,"tagName","IMG");const ql=["height","width"];class js extends _t{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return ql.reduce((e,r)=>(t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e),{})}static sanitize(t){return ge.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){ql.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}_(js,"blotName","video"),_(js,"className","ql-video"),_(js,"tagName","IFRAME");const Ir=new Bt("code-token","hljs",{scope:M.INLINE});class oe extends fe{static formats(t,e){for(;t!=null&&t!==e.domNode;){if(t.classList&&t.classList.contains(Nt.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,r){super(t,e,r),Ir.add(this.domNode,r)}format(t,e){t!==oe.blotName?super.format(t,e):e?Ir.add(this.domNode,e):(Ir.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ir.value(this.domNode)||this.unwrap()}}oe.blotName="code-token",oe.className="ql-token";class Ct extends Nt{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),oe.blotName,!1),super.replaceWith(t,e)}}class Mr extends Te{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===Ct.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(t,e)}))}formatAt(t,e,r,n){r===Ct.blotName&&(this.forceNext=!0),super.formatAt(t,e,r,n)}highlight(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const r=`${Array.from(this.domNode.childNodes).filter(i=>i!==this.uiNode).map(i=>i.textContent).join(`
|
|
41
|
-
`)}
|
|
42
|
-
`,n=Ct.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==r){if(r.trim().length>0||this.cachedText==null){const i=this.children.reduce((a,u)=>a.concat(Fo(u,!1)),new R),l=t(r,n);i.diff(l).reduce((a,u)=>{let{retain:h,attributes:g}=u;return h?(g&&Object.keys(g).forEach(x=>{[Ct.blotName,oe.blotName].includes(x)&&this.formatAt(a,h,x,g[x])}),a+h):a},0)}this.cachedText=r,this.forceNext=!1}}html(t,e){const[r]=this.children.find(t);return`<pre data-language="${r?Ct.formats(r.domNode):"plain"}">
|
|
43
|
-
${Es(this.code(t,e))}
|
|
44
|
-
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const e=Ct.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}Mr.allowedChildren=[Ct],Ct.requiredContainer=Mr,Ct.allowedChildren=[oe,As,zt,Ut];const zf=(s,t,e)=>{if(typeof s.versionString=="string"){const r=s.versionString.split(".")[0];if(parseInt(r,10)>=11)return s.highlight(e,{language:t}).value}return s.highlight(t,e).value};class kl extends Tt{static register(){E.register(oe,!0),E.register(Ct,!0),E.register(Mr,!0)}constructor(t,e){if(super(t,e),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,n)=>{let{key:i}=n;return r[i]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(E.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Mr))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:n,label:i}=r;const l=e.ownerDocument.createElement("option");l.textContent=i,l.setAttribute("value",n),e.appendChild(l)}),e.addEventListener("change",()=>{t.format(Ct.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(e),t.children.head&&(e.value=Ct.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(E.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(E.sources.USER);const r=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Mr):[t]).forEach(n=>{n.highlight(this.highlightBlot,e)}),this.quill.update(E.sources.SILENT),r!=null&&this.quill.setSelection(r,E.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(e=this.languages[e]?e:"plain",e==="plain")return Es(t).split(`
|
|
45
|
-
`).reduce((n,i,l)=>(l!==0&&n.insert(`
|
|
46
|
-
`,{[Nt.blotName]:e}),n.insert(i)),new R);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Nt.className),r.innerHTML=zf(this.options.hljs,e,t),di(this.quill.scroll,r,[(n,i)=>{const l=Ir.value(n);return l?i.compose(new R().retain(i.length(),{[oe.blotName]:l})):i}],[(n,i)=>n.data.split(`
|
|
47
|
-
`).reduce((l,a,u)=>(u!==0&&l.insert(`
|
|
48
|
-
`,{[Nt.blotName]:e}),l.insert(a)),i)],new WeakMap)}}kl.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Ei=class Pl extends mt{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",wi()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===Pl.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};_(Ei,"blotName","table"),_(Ei,"tagName","TD");let ne=Ei;class ie extends Se{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),r=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.table===e.table&&t.table===r.table&&t.table===n.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const r=e.formats(),n=e.next.formats();if(r.table!==n.table){const i=this.splitAfter(e);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}_(ie,"blotName","table-row"),_(ie,"tagName","TR");class Gt extends Se{}_(Gt,"blotName","table-body"),_(Gt,"tagName","TBODY");class sr extends Se{balanceCells(){const t=this.descendants(ie),e=t.reduce((r,n)=>Math.max(n.children.length,r),0);t.forEach(r=>{new Array(e-r.children.length).fill(0).forEach(()=>{let n;r.children.head!=null&&(n=ne.formats(r.children.head.domNode));const i=this.scroll.create(ne.blotName,n);r.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(Gt);e==null||e.children.head==null||e.children.forEach(r=>{const n=r.children.at(t);n!=null&&n.remove()})}insertColumn(t){const[e]=this.descendant(Gt);e==null||e.children.head==null||e.children.forEach(r=>{const n=r.children.at(t),i=ne.formats(r.children.head.domNode),l=this.scroll.create(ne.blotName,i);r.insertBefore(l,n)})}insertRow(t){const[e]=this.descendant(Gt);if(e==null||e.children.head==null)return;const r=wi(),n=this.scroll.create(ie.blotName);e.children.head.children.forEach(()=>{const l=this.scroll.create(ne.blotName,r);n.appendChild(l)});const i=e.children.at(t);e.insertBefore(n,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}}_(sr,"blotName","table-container"),_(sr,"tagName","TABLE"),sr.allowedChildren=[Gt],Gt.requiredContainer=sr,Gt.allowedChildren=[ie],ie.requiredContainer=Gt,ie.allowedChildren=[ne],ne.requiredContainer=ie;function wi(){return`row-${Math.random().toString(36).slice(2,6)}`}class Pf extends Tt{static register(){E.register(ne),E.register(ie),E.register(Gt),E.register(sr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(sr).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(E.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(E.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(E.sources.USER),this.quill.setSelection(e,E.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,r]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==ne.blotName)return[null,null,null,-1];const n=e.parent;return[n.parent.parent,n,e,r]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[r,n,i]=this.getTable(e);if(i==null)return;const l=i.cellOffset();r.insertColumn(l+t),this.quill.update(E.sources.USER);let a=n.rowOffset();t===0&&(a+=1),this.quill.setSelection(e.index+a,e.length,E.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[r,n,i]=this.getTable(e);if(i==null)return;const l=n.rowOffset();r.insertRow(l+t),this.quill.update(E.sources.USER),t>0?this.quill.setSelection(e,E.sources.SILENT):this.quill.setSelection(e.index+n.children.length,e.length,E.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const r=this.quill.getSelection();if(r==null)return;const n=new Array(t).fill(0).reduce(i=>{const l=new Array(e).fill(`
|
|
49
|
-
`).join("");return i.insert(l,{table:wi()})},new R().retain(r.index));this.quill.updateContents(n,E.sources.USER),this.quill.setSelection(r.index,E.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(E.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(E.events.TEXT_CHANGE,(r,n,i)=>{i===E.sources.USER&&this.balanceTables()}),!0):!1)})}}const Ol=re("quill:toolbar");class Ai extends Tt{constructor(t,e){var r,n;if(super(t,e),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),Hf(i,this.options.container),(n=(r=t.container)==null?void 0:r.parentNode)==null||n.insertBefore(i,t.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Ol.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var l;const a=(l=this.options.handlers)==null?void 0:l[i];a&&this.addHandler(i,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(E.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(n=>n.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){Ol.warn("ignoring attaching to nonexistent format",e,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,n=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const a=t.options[t.selectedIndex];a.hasAttribute("selected")?i=!1:i=a.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),n.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,i);else if(this.quill.scroll.query(e).prototype instanceof Ot){if(i=prompt(`Enter ${e}`),!i)return;this.quill.updateContents(new R().retain(l.index).delete(l.length).insert({[e]:i}),E.sources.USER)}else this.quill.format(e,i,E.sources.USER);this.update(l)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[n,i]=r;if(i.tagName==="SELECT"){let l=null;if(t==null)l=null;else if(e[n]==null)l=i.querySelector("option[selected]");else if(!Array.isArray(e[n])){let a=e[n];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),l=i.querySelector(`option[value="${a}"]`)}l==null?(i.value="",i.selectedIndex=-1):l.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const l=e[n],a=l===i.getAttribute("value")||l!=null&&l.toString()===i.getAttribute("value")||l==null&&!i.getAttribute("value");i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}else{const l=e[n]!=null;i.classList.toggle("ql-active",l),i.setAttribute("aria-pressed",l.toString())}})}}Ai.DEFAULTS={};function Ll(s,t,e){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),e!=null?(r.value=e,r.setAttribute("aria-label",`${t}: ${e}`)):r.setAttribute("aria-label",t),s.appendChild(r)}function Hf(s,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const r=document.createElement("span");r.classList.add("ql-formats"),e.forEach(n=>{if(typeof n=="string")Ll(r,n);else{const i=Object.keys(n)[0],l=n[i];Array.isArray(l)?$f(r,i,l):Ll(r,i,l)}}),s.appendChild(r)})}function $f(s,t,e){const r=document.createElement("select");r.classList.add(`ql-${t}`),e.forEach(n=>{const i=document.createElement("option");n!==!1?i.setAttribute("value",String(n)):i.setAttribute("selected","selected"),r.appendChild(i)}),s.appendChild(r)}Ai.DEFAULTS={container:null,handlers:{clean(){const s=this.quill.getSelection();if(s!=null)if(s.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,M.INLINE)!=null&&this.quill.format(e,!1,E.sources.USER)})}else this.quill.removeFormat(s.index,s.length,E.sources.USER)},direction(s){const{align:t}=this.quill.getFormat();s==="rtl"&&t==null?this.quill.format("align","right",E.sources.USER):!s&&t==="right"&&this.quill.format("align",!1,E.sources.USER),this.quill.format("direction",s,E.sources.USER)},indent(s){const t=this.quill.getSelection(),e=this.quill.getFormat(t),r=parseInt(e.indent||0,10);if(s==="+1"||s==="-1"){let n=s==="+1"?1:-1;e.direction==="rtl"&&(n*=-1),this.quill.format("indent",r+n,E.sources.USER)}},link(s){s===!0&&(s=prompt("Enter link URL:")),this.quill.format("link",s,E.sources.USER)},list(s){const t=this.quill.getSelection(),e=this.quill.getFormat(t);s==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,E.sources.USER):this.quill.format("list","unchecked",E.sources.USER):this.quill.format("list",s,E.sources.USER)}}};const Ff='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Vf='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Kf='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Zf='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Wf='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Gf='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Xf='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Qf='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',_l='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Yf='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',Jf='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',t1='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',e1='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',r1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',s1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',n1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',i1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',o1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',l1='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',a1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',c1='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',u1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',h1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',d1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',f1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',p1='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',m1='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',g1='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',b1='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',y1='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',v1='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',x1='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',N1='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Br={align:{"":Ff,center:Vf,right:Kf,justify:Zf},background:Wf,blockquote:Gf,bold:Xf,clean:Qf,code:_l,"code-block":_l,color:Yf,direction:{"":Jf,rtl:t1},formula:e1,header:{1:r1,2:s1,3:n1,4:i1,5:o1,6:l1},italic:a1,image:c1,indent:{"+1":u1,"-1":h1},link:d1,list:{bullet:f1,check:p1,ordered:m1},script:{sub:g1,super:b1},strike:y1,table:v1,underline:x1,video:N1},E1='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Sl=0;function Tl(s,t){s.setAttribute(t,`${s.getAttribute(t)!=="true"}`)}class Rs{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Tl(this.label,"aria-expanded"),Tl(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&e.setAttribute("data-value",r),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(e,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=E1,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${Sl}`,Sl+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const r=this.buildItem(e);t.appendChild(r),e.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class Cl extends Rs{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const r=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=n:r.style.fill=n)}}class jl extends Rs{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=e[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const w1=s=>{const{overflowY:t}=getComputedStyle(s,null);return t!=="visible"&&t!=="clip"};class Rl{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,w1(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let l=0;if(i.right>n.right&&(l=n.right-i.right,this.root.style.left=`${e+l}px`),i.left<n.left&&(l=n.left-i.left,this.root.style.left=`${e+l}px`),i.bottom>n.bottom){const a=i.bottom-i.top,u=t.bottom-t.top+a;this.root.style.top=`${r-u}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const A1=[!1,"center","right","justify"],q1=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],k1=[!1,"serif","monospace"],O1=["1","2","3",!1],L1=["small",!1,"large","huge"];class Dr extends Os{constructor(t,e){super(t,e);const r=n=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(n.target)||i.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(n=>{if(n.startsWith("ql-")&&(n=n.slice(3),e[n]!=null))if(n==="direction")r.innerHTML=e[n][""]+e[n].rtl;else if(typeof e[n]=="string")r.innerHTML=e[n];else{const i=r.value||"";i!=null&&e[n][i]&&(r.innerHTML=e[n][i])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(n=>{if(n.classList.contains("ql-align")&&(n.querySelector("option")==null&&Ur(n,A1),typeof e.align=="object"))return new jl(n,e.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){const i=n.classList.contains("ql-background")?"background":"color";return n.querySelector("option")==null&&Ur(n,q1,i==="background"?"#ffffff":"#000000"),new Cl(n,e[i])}return n.querySelector("option")==null&&(n.classList.contains("ql-font")?Ur(n,k1):n.classList.contains("ql-header")?Ur(n,O1):n.classList.contains("ql-size")&&Ur(n,L1)),new Rs(n)});const r=()=>{this.pickers.forEach(n=>{n.update()})};this.quill.on(j.events.EDITOR_CHANGE,r)}}Dr.DEFAULTS=he({},Os.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let s=this.container.querySelector("input.ql-image[type=file]");s==null&&(s=document.createElement("input"),s.setAttribute("type","file"),s.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),s.classList.add("ql-image"),s.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,s.files),s.value=""}),this.container.appendChild(s)),s.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Il extends Rl{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,j.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,j.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=_1(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const r=e.index+e.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,j.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",j.sources.USER),this.quill.setSelection(r+2,j.sources.USER)}break}}this.textbox.value="",this.hide()}}function _1(s){let t=s.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||s.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=s.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:s}function Ur(s,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const n=document.createElement("option");r===e?n.setAttribute("selected","selected"):n.setAttribute("value",String(r)),s.appendChild(n)})}const S1=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Ml extends Il{constructor(t,e){super(t,e),this.quill.on(j.events.EDITOR_CHANGE,(r,n,i,l)=>{if(r===j.events.SELECTION_CHANGE)if(n!=null&&n.length>0&&l===j.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(n.index,n.length);if(a.length===1){const u=this.quill.getBounds(n);u!=null&&this.position(u)}else{const u=a[a.length-1],h=this.quill.getIndex(u),g=Math.min(u.length()-1,n.index+n.length-h),x=this.quill.getBounds(new pe(h,g));x!=null&&this.position(x)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(j.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",e!==0&&(r.style.marginLeft=`${-1*e-r.offsetWidth/2}px`),e}}_(Ml,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Bl extends Dr{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=S1),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Ml(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Br),this.buildPickers(t.container.querySelectorAll("select"),Br))}}Bl.DEFAULTS=he({},Dr.DEFAULTS,{modules:{toolbar:{handlers:{link(s){s?this.quill.theme.tooltip.edit():this.quill.format("link",!1,E.sources.USER)}}}}});const T1=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Dl extends Il{constructor(){super(...arguments),_(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,j.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(j.events.SELECTION_CHANGE,(t,e,r)=>{if(t!=null){if(t.length===0&&r===j.sources.USER){const[n,i]=this.quill.scroll.descendant(ge,t.index);if(n!=null){this.linkRange=new pe(t.index-i,n.length());const l=ge.formats(n.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}_(Dl,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class Ul extends Dr{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=T1),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Br),this.buildPickers(t.container.querySelectorAll("select"),Br),this.tooltip=new Dl(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,r)=>{t.handlers.link.call(t,!r.format.link)}))}}Ul.DEFAULTS=he({},Dr.DEFAULTS,{modules:{toolbar:{handlers:{link(s){if(s){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:r}=this.quill.theme;r.edit("link",e)}else this.quill.format("link",!1,E.sources.USER)}}}}}),E.register({"attributors/attribute/direction":il,"attributors/class/align":rl,"attributors/class/background":Wd,"attributors/class/color":Zd,"attributors/class/direction":ol,"attributors/class/font":cl,"attributors/class/size":hl,"attributors/style/align":sl,"attributors/style/background":li,"attributors/style/color":oi,"attributors/style/direction":ll,"attributors/style/font":ul,"attributors/style/size":dl},!0),E.register({"formats/align":rl,"formats/direction":ol,"formats/indent":Uf,"formats/background":li,"formats/color":oi,"formats/font":cl,"formats/size":hl,"formats/blockquote":mi,"formats/code-block":Nt,"formats/header":gi,"formats/list":jr,"formats/bold":Rr,"formats/code":ai,"formats/italic":bi,"formats/link":ge,"formats/script":yi,"formats/strike":vi,"formats/underline":xi,"formats/formula":Cs,"formats/image":Ni,"formats/video":js,"modules/syntax":kl,"modules/table":Pf,"modules/toolbar":Ai,"themes/bubble":Bl,"themes/snow":Ul,"ui/icons":Br,"ui/picker":Rs,"ui/icon-picker":jl,"ui/color-picker":Cl,"ui/tooltip":Rl},!0);const C1=qt.AttributeMap,j1=qt.Op;export{C1 as AttributeMap,R as Delta,Tt as Module,j1 as Op,Co as Parchment,pe as Range,E as default};
|
package/dist/r-HQDwuLXo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as p}from"./runtime-Dn4RiA4k.js";function c(e,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,f;function s(){if(f)return i;f=1,i=e,e.displayName="r",e.aliases=[];function e(n){n.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return i}var l=s();const b=p(l),u=c({__proto__:null,default:b},[l]);export{u as r};
|