@loopstack/loopstack-studio 0.28.0 → 0.29.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/dist/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
function _arrayLikeToArray(e, t) {
|
|
2
|
+
(t == null || t > e.length) && (t = e.length);
|
|
3
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
4
|
+
return r;
|
|
5
|
+
}
|
|
6
|
+
function _arrayWithHoles(e) {
|
|
7
|
+
if (Array.isArray(e)) return e;
|
|
8
|
+
}
|
|
9
|
+
function _iterableToArrayLimit(e, t) {
|
|
10
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
11
|
+
if (n != null) {
|
|
12
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
13
|
+
try {
|
|
14
|
+
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
l = !0, i = e;
|
|
17
|
+
} finally {
|
|
18
|
+
try {
|
|
19
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
20
|
+
} finally {
|
|
21
|
+
if (l) throw i;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return s;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function _nonIterableRest() {
|
|
28
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29
|
+
}
|
|
30
|
+
function _slicedToArray(e, i) {
|
|
31
|
+
return _arrayWithHoles(e) || _iterableToArrayLimit(e, i) || _unsupportedIterableToArray(e, i) || _nonIterableRest();
|
|
32
|
+
}
|
|
33
|
+
function _unsupportedIterableToArray(t, n) {
|
|
34
|
+
if (t) {
|
|
35
|
+
if (typeof t == "string") return _arrayLikeToArray(t, n);
|
|
36
|
+
var r = {}.toString.call(t).slice(8, -1);
|
|
37
|
+
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? _arrayLikeToArray(t, n) : void 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var entries = Object.entries, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, freeze = Object.freeze, seal = Object.seal, create = Object.create, _ref = typeof Reflect < "u" && Reflect, apply = _ref.apply, construct = _ref.construct;
|
|
2
41
|
freeze ||= function(e) {
|
|
3
42
|
return e;
|
|
4
43
|
}, seal ||= function(e) {
|
|
@@ -9,7 +48,7 @@ freeze ||= function(e) {
|
|
|
9
48
|
}, construct ||= function(e) {
|
|
10
49
|
return new e(...[...arguments].slice(1));
|
|
11
50
|
};
|
|
12
|
-
var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
|
51
|
+
var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), arrayIsArray = Array.isArray, stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), numberToString = unapply(Number.prototype.toString), booleanToString = unapply(Boolean.prototype.toString), bigintToString = typeof BigInt > "u" ? null : unapply(BigInt.prototype.toString), symbolToString = typeof Symbol > "u" ? null : unapply(Symbol.prototype.toString), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), objectToString = unapply(Object.prototype.toString), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
|
13
52
|
function unapply(e) {
|
|
14
53
|
return function(t) {
|
|
15
54
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -22,17 +61,17 @@ function unconstruct(e) {
|
|
|
22
61
|
return construct(e, [...arguments]);
|
|
23
62
|
};
|
|
24
63
|
}
|
|
25
|
-
function addToSet(e,
|
|
26
|
-
let
|
|
27
|
-
setPrototypeOf && setPrototypeOf(e, null);
|
|
28
|
-
let
|
|
29
|
-
for (;
|
|
30
|
-
let
|
|
31
|
-
if (typeof
|
|
32
|
-
let e = i
|
|
33
|
-
e !==
|
|
64
|
+
function addToSet(e, t) {
|
|
65
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
66
|
+
if (setPrototypeOf && setPrototypeOf(e, null), !arrayIsArray(t)) return e;
|
|
67
|
+
let r = t.length;
|
|
68
|
+
for (; r--;) {
|
|
69
|
+
let i = t[r];
|
|
70
|
+
if (typeof i == "string") {
|
|
71
|
+
let e = n(i);
|
|
72
|
+
e !== i && (isFrozen(t) || (t[r] = e), i = e);
|
|
34
73
|
}
|
|
35
|
-
e[
|
|
74
|
+
e[i] = !0;
|
|
36
75
|
}
|
|
37
76
|
return e;
|
|
38
77
|
}
|
|
@@ -40,10 +79,35 @@ function cleanArray(e) {
|
|
|
40
79
|
for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
|
|
41
80
|
return e;
|
|
42
81
|
}
|
|
43
|
-
function clone(
|
|
44
|
-
let
|
|
45
|
-
for (let
|
|
46
|
-
|
|
82
|
+
function clone(e) {
|
|
83
|
+
let t = create(null);
|
|
84
|
+
for (let r of entries(e)) {
|
|
85
|
+
var n = _slicedToArray(r, 2);
|
|
86
|
+
let a = n[0], o = n[1];
|
|
87
|
+
objectHasOwnProperty(e, a) && (arrayIsArray(o) ? t[a] = cleanArray(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = clone(o) : t[a] = o);
|
|
88
|
+
}
|
|
89
|
+
return t;
|
|
90
|
+
}
|
|
91
|
+
function stringifyValue(e) {
|
|
92
|
+
switch (typeof e) {
|
|
93
|
+
case "string": return e;
|
|
94
|
+
case "number": return numberToString(e);
|
|
95
|
+
case "boolean": return booleanToString(e);
|
|
96
|
+
case "bigint": return bigintToString ? bigintToString(e) : "0";
|
|
97
|
+
case "symbol": return symbolToString ? symbolToString(e) : "Symbol()";
|
|
98
|
+
case "undefined": return objectToString(e);
|
|
99
|
+
case "function":
|
|
100
|
+
case "object": {
|
|
101
|
+
if (e === null) return objectToString(e);
|
|
102
|
+
let t = e, n = lookupGetter(t, "toString");
|
|
103
|
+
if (typeof n == "function") {
|
|
104
|
+
let e = n(t);
|
|
105
|
+
return typeof e == "string" ? e : objectToString(e);
|
|
106
|
+
}
|
|
107
|
+
return objectToString(e);
|
|
108
|
+
}
|
|
109
|
+
default: return objectToString(e);
|
|
110
|
+
}
|
|
47
111
|
}
|
|
48
112
|
function lookupGetter(e, t) {
|
|
49
113
|
for (; e !== null;) {
|
|
@@ -59,6 +123,13 @@ function lookupGetter(e, t) {
|
|
|
59
123
|
}
|
|
60
124
|
return n;
|
|
61
125
|
}
|
|
126
|
+
function isRegex(e) {
|
|
127
|
+
try {
|
|
128
|
+
return regExpTest(e, ""), !0;
|
|
129
|
+
} catch {
|
|
130
|
+
return !1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
62
133
|
var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), svg$1 = freeze(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
|
|
63
134
|
"feBlend",
|
|
64
135
|
"feColorMatrix",
|
|
@@ -124,25 +195,13 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
|
|
|
124
195
|
"annotation-xml",
|
|
125
196
|
"mprescripts",
|
|
126
197
|
"none"
|
|
127
|
-
]), text = freeze(["#text"]), html = freeze(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns
|
|
198
|
+
]), text = freeze(["#text"]), html = freeze(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), svg = freeze(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), mathMl = freeze(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), xml = freeze([
|
|
128
199
|
"xlink:href",
|
|
129
200
|
"xml:id",
|
|
130
201
|
"xlink:title",
|
|
131
202
|
"xml:space",
|
|
132
203
|
"xmlns:xlink"
|
|
133
|
-
]), MUSTACHE_EXPR = seal(
|
|
134
|
-
__proto__: null,
|
|
135
|
-
ARIA_ATTR,
|
|
136
|
-
ATTR_WHITESPACE,
|
|
137
|
-
CUSTOM_ELEMENT,
|
|
138
|
-
DATA_ATTR,
|
|
139
|
-
DOCTYPE_NAME,
|
|
140
|
-
ERB_EXPR,
|
|
141
|
-
IS_ALLOWED_URI,
|
|
142
|
-
IS_SCRIPT_OR_DATA,
|
|
143
|
-
MUSTACHE_EXPR,
|
|
144
|
-
TMPLIT_EXPR
|
|
145
|
-
}), NODE_TYPE = {
|
|
204
|
+
]), MUSTACHE_EXPR = seal(/{{[\w\W]*|^[\w\W]*}}/g), ERB_EXPR = seal(/<%[\w\W]*|^[\w\W]*%>/g), TMPLIT_EXPR = seal(/\${[\w\W]*/g), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), NODE_TYPE = {
|
|
146
205
|
element: 1,
|
|
147
206
|
text: 3,
|
|
148
207
|
progressingInstruction: 7,
|
|
@@ -181,27 +240,27 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
|
|
|
181
240
|
};
|
|
182
241
|
};
|
|
183
242
|
function createDOMPurify() {
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
186
|
-
let
|
|
187
|
-
if (typeof
|
|
188
|
-
let e =
|
|
189
|
-
e.content && e.content.ownerDocument && (
|
|
243
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
|
|
244
|
+
if (t.version = "3.4.3", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
|
|
245
|
+
let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, c = e.Node, l = e.Element, u = e.NodeFilter, f = e.NamedNodeMap, qe = f === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : f, Je = e.HTMLFormElement, Ye = e.DOMParser, p = e.trustedTypes, m = l.prototype, Xe = lookupGetter(m, "cloneNode"), Ze = lookupGetter(m, "remove"), Qe = lookupGetter(m, "nextSibling"), $e = lookupGetter(m, "childNodes"), h = lookupGetter(m, "parentNode");
|
|
246
|
+
if (typeof s == "function") {
|
|
247
|
+
let e = n.createElement("template");
|
|
248
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
190
249
|
}
|
|
191
|
-
let g, _ = "",
|
|
192
|
-
|
|
193
|
-
let
|
|
250
|
+
let g, _ = "", v = n, y = v.implementation, et = v.createNodeIterator, tt = v.createDocumentFragment, nt = v.getElementsByTagName, rt = r.importNode, b = _createHooksMap();
|
|
251
|
+
t.isSupported = typeof entries == "function" && typeof h == "function" && y && y.createHTMLDocument !== void 0;
|
|
252
|
+
let x = MUSTACHE_EXPR, S = ERB_EXPR, C = TMPLIT_EXPR, it = DATA_ATTR, at = ARIA_ATTR, ot = IS_SCRIPT_OR_DATA, st = ATTR_WHITESPACE, ct = CUSTOM_ELEMENT, lt = IS_ALLOWED_URI, w = null, ut = addToSet({}, [
|
|
194
253
|
...html$1,
|
|
195
254
|
...svg$1,
|
|
196
255
|
...svgFilters,
|
|
197
256
|
...mathMl$1,
|
|
198
257
|
...text
|
|
199
|
-
]),
|
|
258
|
+
]), T = null, dt = addToSet({}, [
|
|
200
259
|
...html,
|
|
201
260
|
...svg,
|
|
202
261
|
...mathMl,
|
|
203
262
|
...xml
|
|
204
|
-
]),
|
|
263
|
+
]), E = Object.seal(create(null, {
|
|
205
264
|
tagNameCheck: {
|
|
206
265
|
writable: !0,
|
|
207
266
|
configurable: !1,
|
|
@@ -220,7 +279,7 @@ function createDOMPurify() {
|
|
|
220
279
|
enumerable: !0,
|
|
221
280
|
value: !1
|
|
222
281
|
}
|
|
223
|
-
})),
|
|
282
|
+
})), D = null, O = null, k = Object.seal(create(null, {
|
|
224
283
|
tagCheck: {
|
|
225
284
|
writable: !0,
|
|
226
285
|
configurable: !1,
|
|
@@ -233,7 +292,7 @@ function createDOMPurify() {
|
|
|
233
292
|
enumerable: !0,
|
|
234
293
|
value: null
|
|
235
294
|
}
|
|
236
|
-
})),
|
|
295
|
+
})), ft = !0, A = !0, pt = !1, mt = !0, j = !1, M = !0, N = !1, P = !1, F = !1, I = !1, L = !1, R = !1, ht = !0, gt = !1, _t = "user-content-", z = !0, B = !1, V = {}, H = null, vt = addToSet({}, [
|
|
237
296
|
"annotation-xml",
|
|
238
297
|
"audio",
|
|
239
298
|
"colgroup",
|
|
@@ -259,14 +318,14 @@ function createDOMPurify() {
|
|
|
259
318
|
"title",
|
|
260
319
|
"video",
|
|
261
320
|
"xmp"
|
|
262
|
-
]),
|
|
321
|
+
]), yt = null, bt = addToSet({}, [
|
|
263
322
|
"audio",
|
|
264
323
|
"video",
|
|
265
324
|
"img",
|
|
266
325
|
"source",
|
|
267
326
|
"image",
|
|
268
327
|
"track"
|
|
269
|
-
]),
|
|
328
|
+
]), xt = null, St = addToSet({}, [
|
|
270
329
|
"alt",
|
|
271
330
|
"class",
|
|
272
331
|
"for",
|
|
@@ -281,271 +340,300 @@ function createDOMPurify() {
|
|
|
281
340
|
"value",
|
|
282
341
|
"style",
|
|
283
342
|
"xmlns"
|
|
284
|
-
]),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
], stringToString),
|
|
343
|
+
]), U = "http://www.w3.org/1998/Math/MathML", W = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, Ct = !1, wt = null, Tt = addToSet({}, [
|
|
344
|
+
U,
|
|
345
|
+
W,
|
|
346
|
+
G
|
|
347
|
+
], stringToString), Et = addToSet({}, [
|
|
289
348
|
"mi",
|
|
290
349
|
"mo",
|
|
291
350
|
"mn",
|
|
292
351
|
"ms",
|
|
293
352
|
"mtext"
|
|
294
|
-
]),
|
|
353
|
+
]), Dt = addToSet({}, ["annotation-xml"]), Ot = addToSet({}, [
|
|
295
354
|
"title",
|
|
296
355
|
"style",
|
|
297
356
|
"font",
|
|
298
357
|
"a",
|
|
299
358
|
"script"
|
|
300
|
-
]), q = null,
|
|
359
|
+
]), q = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
|
|
301
360
|
return e instanceof RegExp || e instanceof Function;
|
|
302
|
-
},
|
|
361
|
+
}, Mt = function() {
|
|
303
362
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
304
|
-
if (
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
363
|
+
if (Y && Y === e) return;
|
|
364
|
+
(!e || typeof e != "object") && (e = {}), e = clone(e), q = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? stringToString : stringToLowerCase, w = objectHasOwnProperty(e, "ALLOWED_TAGS") && arrayIsArray(e.ALLOWED_TAGS) ? addToSet({}, e.ALLOWED_TAGS, J) : ut, T = objectHasOwnProperty(e, "ALLOWED_ATTR") && arrayIsArray(e.ALLOWED_ATTR) ? addToSet({}, e.ALLOWED_ATTR, J) : dt, wt = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") && arrayIsArray(e.ALLOWED_NAMESPACES) ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : Tt, xt = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) ? addToSet(clone(St), e.ADD_URI_SAFE_ATTR, J) : St, yt = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") && arrayIsArray(e.ADD_DATA_URI_TAGS) ? addToSet(clone(bt), e.ADD_DATA_URI_TAGS, J) : bt, H = objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) ? addToSet({}, e.FORBID_CONTENTS, J) : vt, D = objectHasOwnProperty(e, "FORBID_TAGS") && arrayIsArray(e.FORBID_TAGS) ? addToSet({}, e.FORBID_TAGS, J) : clone({}), O = objectHasOwnProperty(e, "FORBID_ATTR") && arrayIsArray(e.FORBID_ATTR) ? addToSet({}, e.FORBID_ATTR, J) : clone({}), V = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, ft = e.ALLOW_ARIA_ATTR !== !1, A = e.ALLOW_DATA_ATTR !== !1, pt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, mt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = e.SAFE_FOR_TEMPLATES || !1, M = e.SAFE_FOR_XML !== !1, N = e.WHOLE_DOCUMENT || !1, I = e.RETURN_DOM || !1, L = e.RETURN_DOM_FRAGMENT || !1, R = e.RETURN_TRUSTED_TYPE || !1, F = e.FORCE_BODY || !1, ht = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, z = e.KEEP_CONTENT !== !1, B = e.IN_PLACE || !1, lt = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Et = objectHasOwnProperty(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, [
|
|
365
|
+
"mi",
|
|
366
|
+
"mo",
|
|
367
|
+
"mn",
|
|
368
|
+
"ms",
|
|
369
|
+
"mtext"
|
|
370
|
+
]), Dt = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, ["annotation-xml"]);
|
|
371
|
+
let t = objectHasOwnProperty(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
372
|
+
if (E = create(null), objectHasOwnProperty(t, "tagNameCheck") && jt(t.tagNameCheck) && (E.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (E.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (E.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), j && (A = !1), L && (I = !0), V && (w = addToSet({}, text), T = create(null), V.html === !0 && (addToSet(w, html$1), addToSet(T, html)), V.svg === !0 && (addToSet(w, svg$1), addToSet(T, svg), addToSet(T, xml)), V.svgFilters === !0 && (addToSet(w, svgFilters), addToSet(T, svg), addToSet(T, xml)), V.mathMl === !0 && (addToSet(w, mathMl$1), addToSet(T, mathMl), addToSet(T, xml))), k.tagCheck = null, k.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? k.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (w === ut && (w = clone(w)), addToSet(w, e.ADD_TAGS, J))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? k.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (T === dt && (T = clone(T)), addToSet(T, e.ADD_ATTR, J))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(xt, e.ADD_URI_SAFE_ATTR, J), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (H === vt && (H = clone(H)), addToSet(H, e.FORBID_CONTENTS, J)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (H === vt && (H = clone(H)), addToSet(H, e.ADD_FORBID_CONTENTS, J)), z && (w["#text"] = !0), N && addToSet(w, [
|
|
373
|
+
"html",
|
|
374
|
+
"head",
|
|
375
|
+
"body"
|
|
376
|
+
]), w.table && (addToSet(w, ["tbody"]), delete D.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
377
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
378
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
379
|
+
g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
|
|
380
|
+
} else g === void 0 && (g = _createTrustedTypesPolicy(p, i)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
|
|
381
|
+
freeze && freeze(e), Y = e;
|
|
382
|
+
}, Nt = addToSet({}, [
|
|
317
383
|
...svg$1,
|
|
318
384
|
...svgFilters,
|
|
319
385
|
...svgDisallowed
|
|
320
|
-
]),
|
|
386
|
+
]), Pt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Ft = function(e) {
|
|
321
387
|
let t = h(e);
|
|
322
388
|
(!t || !t.tagName) && (t = {
|
|
323
|
-
namespaceURI:
|
|
389
|
+
namespaceURI: K,
|
|
324
390
|
tagName: "template"
|
|
325
391
|
});
|
|
326
392
|
let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
|
|
327
|
-
return
|
|
393
|
+
return wt[e.namespaceURI] ? e.namespaceURI === W ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === U ? n === "svg" && (r === "annotation-xml" || Et[r]) : !!Nt[n] : e.namespaceURI === U ? t.namespaceURI === G ? n === "math" : t.namespaceURI === W ? n === "math" && Dt[r] : !!Pt[n] : e.namespaceURI === G ? t.namespaceURI === W && !Dt[r] || t.namespaceURI === U && !Et[r] ? !1 : !Pt[n] && (Ot[n] || !Nt[n]) : !!(q === "application/xhtml+xml" && wt[e.namespaceURI]) : !1;
|
|
328
394
|
}, X = function(e) {
|
|
329
|
-
arrayPush(
|
|
395
|
+
arrayPush(t.removed, { element: e });
|
|
330
396
|
try {
|
|
331
397
|
h(e).removeChild(e);
|
|
332
398
|
} catch {
|
|
333
|
-
|
|
399
|
+
Ze(e);
|
|
334
400
|
}
|
|
335
|
-
}, Z = function(e,
|
|
401
|
+
}, Z = function(e, n) {
|
|
336
402
|
try {
|
|
337
|
-
arrayPush(
|
|
338
|
-
attribute:
|
|
339
|
-
from:
|
|
403
|
+
arrayPush(t.removed, {
|
|
404
|
+
attribute: n.getAttributeNode(e),
|
|
405
|
+
from: n
|
|
340
406
|
});
|
|
341
407
|
} catch {
|
|
342
|
-
arrayPush(
|
|
408
|
+
arrayPush(t.removed, {
|
|
343
409
|
attribute: null,
|
|
344
|
-
from:
|
|
410
|
+
from: n
|
|
345
411
|
});
|
|
346
412
|
}
|
|
347
|
-
if (
|
|
348
|
-
X(
|
|
413
|
+
if (n.removeAttribute(e), e === "is") if (I || L) try {
|
|
414
|
+
X(n);
|
|
349
415
|
} catch {}
|
|
350
416
|
else try {
|
|
351
|
-
|
|
417
|
+
n.setAttribute(e, "");
|
|
352
418
|
} catch {}
|
|
353
|
-
},
|
|
354
|
-
let t = null,
|
|
355
|
-
if (
|
|
419
|
+
}, It = function(e) {
|
|
420
|
+
let t = null, r = null;
|
|
421
|
+
if (F) e = "<remove></remove>" + e;
|
|
356
422
|
else {
|
|
357
423
|
let t = stringMatch(e, /^[\r\n\t ]+/);
|
|
358
|
-
|
|
424
|
+
r = t && t[0];
|
|
359
425
|
}
|
|
360
|
-
q === "application/xhtml+xml" &&
|
|
426
|
+
q === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
361
427
|
let i = g ? g.createHTML(e) : e;
|
|
362
|
-
if (
|
|
363
|
-
t = new
|
|
428
|
+
if (K === G) try {
|
|
429
|
+
t = new Ye().parseFromString(i, q);
|
|
364
430
|
} catch {}
|
|
365
431
|
if (!t || !t.documentElement) {
|
|
366
|
-
t =
|
|
432
|
+
t = y.createDocument(K, "template", null);
|
|
367
433
|
try {
|
|
368
|
-
t.documentElement.innerHTML =
|
|
434
|
+
t.documentElement.innerHTML = Ct ? _ : i;
|
|
369
435
|
} catch {}
|
|
370
436
|
}
|
|
371
437
|
let a = t.body || t.documentElement;
|
|
372
|
-
return e &&
|
|
373
|
-
},
|
|
374
|
-
return
|
|
375
|
-
},
|
|
376
|
-
return e instanceof
|
|
377
|
-
},
|
|
378
|
-
return typeof
|
|
438
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? nt.call(t, N ? "html" : "body")[0] : N ? t.documentElement : a;
|
|
439
|
+
}, Lt = function(e) {
|
|
440
|
+
return et.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null);
|
|
441
|
+
}, Rt = function(e) {
|
|
442
|
+
return e instanceof Je && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof qe) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
443
|
+
}, zt = function(e) {
|
|
444
|
+
return typeof c == "function" && e instanceof c;
|
|
379
445
|
};
|
|
380
|
-
function
|
|
446
|
+
function Q(e, n, r) {
|
|
381
447
|
arrayForEach(e, (e) => {
|
|
382
|
-
e.call(
|
|
448
|
+
e.call(t, n, r, Y);
|
|
383
449
|
});
|
|
384
450
|
}
|
|
385
|
-
let
|
|
386
|
-
let
|
|
387
|
-
if (
|
|
451
|
+
let Bt = function(e) {
|
|
452
|
+
let n = null;
|
|
453
|
+
if (Q(b.beforeSanitizeElements, e, null), Rt(e)) return X(e), !0;
|
|
388
454
|
let r = J(e.nodeName);
|
|
389
|
-
if (
|
|
455
|
+
if (Q(b.uponSanitizeElement, e, {
|
|
390
456
|
tagName: r,
|
|
391
|
-
allowedTags:
|
|
392
|
-
}),
|
|
393
|
-
if (
|
|
394
|
-
if (!
|
|
395
|
-
if (
|
|
396
|
-
let t = h(e) || e.parentNode, n =
|
|
457
|
+
allowedTags: w
|
|
458
|
+
}), M && e.hasChildNodes() && !zt(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || M && e.namespaceURI === G && r === "style" && zt(e.firstElementChild) || e.nodeType === NODE_TYPE.progressingInstruction || M && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), !0;
|
|
459
|
+
if (D[r] || !(k.tagCheck instanceof Function && k.tagCheck(r)) && !w[r]) {
|
|
460
|
+
if (!D[r] && Ut(r) && (E.tagNameCheck instanceof RegExp && regExpTest(E.tagNameCheck, r) || E.tagNameCheck instanceof Function && E.tagNameCheck(r))) return !1;
|
|
461
|
+
if (z && !H[r]) {
|
|
462
|
+
let t = h(e) || e.parentNode, n = $e(e) || e.childNodes;
|
|
397
463
|
if (n && t) {
|
|
398
464
|
let r = n.length;
|
|
399
465
|
for (let i = r - 1; i >= 0; --i) {
|
|
400
|
-
let r =
|
|
401
|
-
|
|
466
|
+
let r = Xe(n[i], !0);
|
|
467
|
+
t.insertBefore(r, Qe(e));
|
|
402
468
|
}
|
|
403
469
|
}
|
|
404
470
|
}
|
|
405
471
|
return X(e), !0;
|
|
406
472
|
}
|
|
407
|
-
return e instanceof
|
|
408
|
-
b,
|
|
473
|
+
return e instanceof l && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (j && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
|
|
409
474
|
x,
|
|
410
|
-
S
|
|
475
|
+
S,
|
|
476
|
+
C
|
|
411
477
|
], (e) => {
|
|
412
|
-
|
|
413
|
-
}), e.textContent !==
|
|
414
|
-
},
|
|
415
|
-
if (
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
478
|
+
n = stringReplace(n, e, " ");
|
|
479
|
+
}), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(b.afterSanitizeElements, e, null), !1);
|
|
480
|
+
}, Vt = function(e, t, r) {
|
|
481
|
+
if (O[t] || ht && (t === "id" || t === "name") && (r in n || r in At)) return !1;
|
|
482
|
+
let i = T[t] || k.attributeCheck instanceof Function && k.attributeCheck(t, e);
|
|
483
|
+
if (!(A && !O[t] && regExpTest(it, t)) && !(ft && regExpTest(at, t))) {
|
|
484
|
+
if (!i || O[t]) {
|
|
485
|
+
if (!(Ut(e) && (E.tagNameCheck instanceof RegExp && regExpTest(E.tagNameCheck, e) || E.tagNameCheck instanceof Function && E.tagNameCheck(e)) && (E.attributeNameCheck instanceof RegExp && regExpTest(E.attributeNameCheck, t) || E.attributeNameCheck instanceof Function && E.attributeNameCheck(t, e)) || t === "is" && E.allowCustomizedBuiltInElements && (E.tagNameCheck instanceof RegExp && regExpTest(E.tagNameCheck, r) || E.tagNameCheck instanceof Function && E.tagNameCheck(r)))) return !1;
|
|
486
|
+
} else if (!xt[t] && !regExpTest(lt, stringReplace(r, st, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && yt[e]) && !(pt && !regExpTest(ot, stringReplace(r, st, ""))) && r) return !1;
|
|
420
487
|
}
|
|
421
488
|
return !0;
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
489
|
+
}, Ht = addToSet({}, [
|
|
490
|
+
"annotation-xml",
|
|
491
|
+
"color-profile",
|
|
492
|
+
"font-face",
|
|
493
|
+
"font-face-format",
|
|
494
|
+
"font-face-name",
|
|
495
|
+
"font-face-src",
|
|
496
|
+
"font-face-uri",
|
|
497
|
+
"missing-glyph"
|
|
498
|
+
]), Ut = function(e) {
|
|
499
|
+
return !Ht[stringToLowerCase(e)] && regExpTest(ct, e);
|
|
500
|
+
}, Wt = function(e) {
|
|
501
|
+
Q(b.beforeSanitizeAttributes, e, null);
|
|
502
|
+
let n = e.attributes;
|
|
503
|
+
if (!n || Rt(e)) return;
|
|
428
504
|
let r = {
|
|
429
505
|
attrName: "",
|
|
430
506
|
attrValue: "",
|
|
431
507
|
keepAttr: !0,
|
|
432
|
-
allowedAttributes:
|
|
508
|
+
allowedAttributes: T,
|
|
433
509
|
forceKeepAttr: void 0
|
|
434
|
-
}, i =
|
|
510
|
+
}, i = n.length;
|
|
435
511
|
for (; i--;) {
|
|
436
|
-
let
|
|
437
|
-
if (r.attrName =
|
|
438
|
-
Z(
|
|
512
|
+
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : stringTrim(u);
|
|
513
|
+
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(b.uponSanitizeAttribute, e, r), d = r.attrValue, gt && (l === "id" || l === "name") && stringIndexOf(d, _t) !== 0 && (Z(o, e), d = _t + d), M && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
514
|
+
Z(o, e);
|
|
439
515
|
continue;
|
|
440
516
|
}
|
|
441
|
-
if (
|
|
442
|
-
Z(
|
|
517
|
+
if (l === "attributename" && stringMatch(d, "href")) {
|
|
518
|
+
Z(o, e);
|
|
443
519
|
continue;
|
|
444
520
|
}
|
|
445
521
|
if (r.forceKeepAttr) continue;
|
|
446
522
|
if (!r.keepAttr) {
|
|
447
|
-
Z(
|
|
523
|
+
Z(o, e);
|
|
448
524
|
continue;
|
|
449
525
|
}
|
|
450
|
-
if (!
|
|
451
|
-
Z(
|
|
526
|
+
if (!mt && regExpTest(/\/>/i, d)) {
|
|
527
|
+
Z(o, e);
|
|
452
528
|
continue;
|
|
453
529
|
}
|
|
454
|
-
|
|
455
|
-
b,
|
|
530
|
+
j && arrayForEach([
|
|
456
531
|
x,
|
|
457
|
-
S
|
|
532
|
+
S,
|
|
533
|
+
C
|
|
458
534
|
], (e) => {
|
|
459
|
-
|
|
535
|
+
d = stringReplace(d, e, " ");
|
|
460
536
|
});
|
|
461
|
-
let
|
|
462
|
-
if (!
|
|
463
|
-
Z(
|
|
537
|
+
let f = J(e.nodeName);
|
|
538
|
+
if (!Vt(f, l, d)) {
|
|
539
|
+
Z(o, e);
|
|
464
540
|
continue;
|
|
465
541
|
}
|
|
466
|
-
if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !
|
|
542
|
+
if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !s) switch (p.getAttributeType(f, l)) {
|
|
467
543
|
case "TrustedHTML":
|
|
468
|
-
|
|
544
|
+
d = g.createHTML(d);
|
|
469
545
|
break;
|
|
470
546
|
case "TrustedScriptURL":
|
|
471
|
-
|
|
547
|
+
d = g.createScriptURL(d);
|
|
472
548
|
break;
|
|
473
549
|
}
|
|
474
|
-
if (
|
|
475
|
-
|
|
550
|
+
if (d !== u) try {
|
|
551
|
+
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Rt(e) ? X(e) : arrayPop(t.removed);
|
|
476
552
|
} catch {
|
|
477
|
-
Z(
|
|
553
|
+
Z(o, e);
|
|
478
554
|
}
|
|
479
555
|
}
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
let t = null, n =
|
|
483
|
-
for (
|
|
484
|
-
|
|
556
|
+
Q(b.afterSanitizeAttributes, e, null);
|
|
557
|
+
}, Gt = function(e) {
|
|
558
|
+
let t = null, n = Lt(e);
|
|
559
|
+
for (Q(b.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) Q(b.uponSanitizeShadowNode, t, null), Bt(t), Wt(t), t.content instanceof a && Gt(t.content);
|
|
560
|
+
Q(b.afterSanitizeShadowDOM, e, null);
|
|
561
|
+
}, $ = function(e) {
|
|
562
|
+
if (e.nodeType === NODE_TYPE.element && e.shadowRoot instanceof a) {
|
|
563
|
+
let t = e.shadowRoot;
|
|
564
|
+
$(t), Gt(t);
|
|
565
|
+
}
|
|
566
|
+
let t = e.childNodes;
|
|
567
|
+
if (!t) return;
|
|
568
|
+
let n = [];
|
|
569
|
+
arrayForEach(t, (e) => {
|
|
570
|
+
arrayPush(n, e);
|
|
571
|
+
});
|
|
572
|
+
for (let e of n) $(e);
|
|
485
573
|
};
|
|
486
|
-
return
|
|
487
|
-
let
|
|
488
|
-
if (
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
if (!C[t] || E[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
574
|
+
return t.sanitize = function(e) {
|
|
575
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null, l = null;
|
|
576
|
+
if (Ct = !e, Ct && (e = "<!-->"), typeof e != "string" && !zt(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
|
|
577
|
+
if (!t.isSupported) return e;
|
|
578
|
+
if (P || Mt(n), t.removed = [], typeof e == "string" && (B = !1), B) {
|
|
579
|
+
let t = e.nodeName;
|
|
580
|
+
if (typeof t == "string") {
|
|
581
|
+
let e = J(t);
|
|
582
|
+
if (!w[e] || D[e]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
496
583
|
}
|
|
497
|
-
|
|
584
|
+
$(e);
|
|
585
|
+
} else if (e instanceof c) i = It("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o), $(o);
|
|
498
586
|
else {
|
|
499
|
-
if (!
|
|
500
|
-
if (
|
|
587
|
+
if (!I && !j && !N && e.indexOf("<") === -1) return g && R ? g.createHTML(e) : e;
|
|
588
|
+
if (i = It(e), !i) return I ? null : R ? _ : "";
|
|
501
589
|
}
|
|
502
|
-
|
|
503
|
-
let
|
|
504
|
-
for (;
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
if (
|
|
508
|
-
|
|
509
|
-
let e =
|
|
590
|
+
i && F && X(i.firstChild);
|
|
591
|
+
let u = Lt(B ? e : i);
|
|
592
|
+
for (; s = u.nextNode();) Bt(s), Wt(s), s.content instanceof a && Gt(s.content);
|
|
593
|
+
if (B) return e;
|
|
594
|
+
if (I) {
|
|
595
|
+
if (j) {
|
|
596
|
+
i.normalize();
|
|
597
|
+
let e = i.innerHTML;
|
|
510
598
|
arrayForEach([
|
|
511
|
-
b,
|
|
512
599
|
x,
|
|
513
|
-
S
|
|
600
|
+
S,
|
|
601
|
+
C
|
|
514
602
|
], (t) => {
|
|
515
603
|
e = stringReplace(e, t, " ");
|
|
516
|
-
}),
|
|
604
|
+
}), i.innerHTML = e;
|
|
517
605
|
}
|
|
518
|
-
if (
|
|
519
|
-
else
|
|
520
|
-
return (
|
|
606
|
+
if (L) for (l = tt.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
607
|
+
else l = i;
|
|
608
|
+
return (T.shadowroot || T.shadowrootmode) && (l = rt.call(r, l, !0)), l;
|
|
521
609
|
}
|
|
522
|
-
let
|
|
523
|
-
return
|
|
524
|
-
b,
|
|
610
|
+
let d = N ? i.outerHTML : i.innerHTML;
|
|
611
|
+
return N && w["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), j && arrayForEach([
|
|
525
612
|
x,
|
|
526
|
-
S
|
|
613
|
+
S,
|
|
614
|
+
C
|
|
527
615
|
], (e) => {
|
|
528
|
-
|
|
529
|
-
}), g &&
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
},
|
|
533
|
-
Y = null,
|
|
534
|
-
},
|
|
535
|
-
return Y ||
|
|
536
|
-
},
|
|
537
|
-
typeof t == "function" && arrayPush(
|
|
538
|
-
},
|
|
616
|
+
d = stringReplace(d, e, " ");
|
|
617
|
+
}), g && R ? g.createHTML(d) : d;
|
|
618
|
+
}, t.setConfig = function() {
|
|
619
|
+
Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), P = !0;
|
|
620
|
+
}, t.clearConfig = function() {
|
|
621
|
+
Y = null, P = !1;
|
|
622
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
623
|
+
return Y || Mt({}), Vt(J(e), J(t), n);
|
|
624
|
+
}, t.addHook = function(e, t) {
|
|
625
|
+
typeof t == "function" && arrayPush(b[e], t);
|
|
626
|
+
}, t.removeHook = function(e, t) {
|
|
539
627
|
if (t !== void 0) {
|
|
540
|
-
let n = arrayLastIndexOf(
|
|
541
|
-
return n === -1 ? void 0 : arraySplice(
|
|
628
|
+
let n = arrayLastIndexOf(b[e], t);
|
|
629
|
+
return n === -1 ? void 0 : arraySplice(b[e], n, 1)[0];
|
|
542
630
|
}
|
|
543
|
-
return arrayPop(
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
},
|
|
547
|
-
|
|
548
|
-
},
|
|
631
|
+
return arrayPop(b[e]);
|
|
632
|
+
}, t.removeHooks = function(e) {
|
|
633
|
+
b[e] = [];
|
|
634
|
+
}, t.removeAllHooks = function() {
|
|
635
|
+
b = _createHooksMap();
|
|
636
|
+
}, t;
|
|
549
637
|
}
|
|
550
638
|
var purify = createDOMPurify();
|
|
551
639
|
export { purify };
|