@pi-outpost/embed 0.1.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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
- package/dist/arc-BBnpgwVQ.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/bash-BLBHkRa_.js +169 -0
- package/dist/bash-DHJu-DNv.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
- package/dist/c-4QgYfi8K.cjs +1 -0
- package/dist/c-Cw4FsAeJ.js +176 -0
- package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
- package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
- package/dist/channel-DV0ST12Z.js +5 -0
- package/dist/channel-DkMGzfUR.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
- package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
- package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
- package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
- package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
- package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
- package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
- package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
- package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
- package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
- package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
- package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
- package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
- package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
- package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
- package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
- package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
- package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
- package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
- package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
- package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
- package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
- package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
- package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
- package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
- package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
- package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
- package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
- package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
- package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
- package/dist/core-2nR1zkKb.cjs +3 -0
- package/dist/core-BO2hTFeF.js +845 -0
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
- package/dist/cpp-BUtp-HE2.cjs +1 -0
- package/dist/cpp-CeyO6lBG.js +225 -0
- package/dist/csharp-BJu4kEpt.cjs +1 -0
- package/dist/csharp-Ck6Fet_o.js +260 -0
- package/dist/css-ClSGJRju.js +140 -0
- package/dist/css-DeFr0lev.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
- package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
- package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
- package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
- package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
- package/dist/dagre-BBlCxSvR.cjs +1 -0
- package/dist/dagre-BpqwxFKp.js +1701 -0
- package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
- package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/defaultLocale-up9-vqhM.js +201 -0
- package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
- package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
- package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
- package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
- package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
- package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
- package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
- package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
- package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
- package/dist/dist-D6LMt8nW.js +59 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/dockerfile-O4rAswfG.js +34 -0
- package/dist/dockerfile-YBgAWga3.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
- package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
- package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
- package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
- package/dist/go-D-pz-dmd.cjs +1 -0
- package/dist/go-rg7jg1mu.js +140 -0
- package/dist/graphlib-B0GbLif1.js +1267 -0
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
- package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
- package/dist/ini-C1q3_1-Q.js +88 -0
- package/dist/ini-nVcUEghj.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-CirqLVcp.js +15 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
- package/dist/java-CUN_usaq.cjs +1 -0
- package/dist/java-HguKEfA2.js +169 -0
- package/dist/javascript-C8NCH8DE.js +436 -0
- package/dist/javascript-UZXSyUuu.cjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
- package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
- package/dist/json-Cp01TR_B.js +36 -0
- package/dist/json-usH_MUzR.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
- package/dist/line-Ca8dE_lT.cjs +1 -0
- package/dist/line-O2xx2vVQ.js +34 -0
- package/dist/linear-CVhyaVzf.js +289 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/map-CwPlMWPw.cjs +1 -0
- package/dist/map-DU12fF3s.js +241 -0
- package/dist/markdown-CzgRofaE.js +181 -0
- package/dist/markdown-qeo95R0i.cjs +1 -0
- package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
- package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
- package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
- package/dist/mermaid.core-DQrbAA--.cjs +10 -0
- package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
- package/dist/mount.d.ts +31 -0
- package/dist/ordinal-CCTD6_le.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/path-mKa7UESy.js +85 -0
- package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
- package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
- package/dist/php-C9FOMGEA.js +294 -0
- package/dist/php-j6EhDZDE.cjs +2 -0
- package/dist/pi-outpost-embed.cjs +305 -0
- package/dist/pi-outpost-embed.js +40942 -0
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
- package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
- package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
- package/dist/plaintext-BYYAHR3Z.js +10 -0
- package/dist/plaintext-DmnjizxG.cjs +1 -0
- package/dist/python-BYJzTRkK.cjs +1 -0
- package/dist/python-DKAazMIE.js +238 -0
- package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
- package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
- package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
- package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
- package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
- package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rough.esm-C5XyeDCN.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/ruby-BAUeZQKZ.js +262 -0
- package/dist/ruby-ClR4zp-1.cjs +1 -0
- package/dist/rust-DiTjMjP5.js +169 -0
- package/dist/rust-ghVvEWhm.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
- package/dist/scss-CKxh5HRg.cjs +1 -0
- package/dist/scss-CckAvQOx.js +150 -0
- package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
- package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/sql-B-Rnc2C3.js +118 -0
- package/dist/sql-B7syKcd8.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DJ4x3y2O.js +2142 -0
- package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
- package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
- package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
- package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
- package/dist/typescript-clWeqIBY.cjs +1 -0
- package/dist/typescript-mdYq8uqf.js +521 -0
- package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
- package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
- package/dist/xml-BamqaQOf.cjs +1 -0
- package/dist/xml-DVYfB8uY.js +166 -0
- package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
- package/dist/yaml-_1BORZTQ.js +144 -0
- package/dist/yaml-bAgWofBg.cjs +1 -0
- package/package.json +72 -0
package/dist/mount.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mounts pi-outpost into `container` inside a Shadow DOM, fully isolated from the
|
|
3
|
+
* host page's CSS in both directions (Tailwind's reset never touches the host page,
|
|
4
|
+
* and the host page's styles never bleed into the widget).
|
|
5
|
+
*/
|
|
6
|
+
export declare function mount(container: HTMLElement, options?: MountOptions): MountHandle;
|
|
7
|
+
|
|
8
|
+
export declare interface MountHandle {
|
|
9
|
+
/** Unmounts the React tree. `container` itself is left in the DOM (with an empty shadow root). */
|
|
10
|
+
unmount(): void;
|
|
11
|
+
setTheme(theme: Theme): void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare interface MountOptions {
|
|
15
|
+
/** pi-outpost backend origin, e.g. "https://api.example.com". Defaults to same-origin as the host page. */
|
|
16
|
+
serverUrl?: string;
|
|
17
|
+
/** Initial theme; falls back to the server's branding.defaultTheme, then "system". */
|
|
18
|
+
theme?: Theme;
|
|
19
|
+
/** Auth token for servers with `server.token` set — the host app supplies it, no token screen shown. */
|
|
20
|
+
token?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Theme the widget starts in. Spelled out here rather than re-exported from
|
|
25
|
+
* @pi-outpost/shared: that package is private to this repo, so a published
|
|
26
|
+
* `mount.d.ts` importing from it would resolve to nothing in a consumer's
|
|
27
|
+
* project. The assignment below keeps the two in step.
|
|
28
|
+
*/
|
|
29
|
+
export declare type Theme = "light" | "dark" | "system";
|
|
30
|
+
|
|
31
|
+
export { }
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as e } from "./init-CirqLVcp.js";
|
|
2
|
+
//#region ../node_modules/internmap/src/index.js
|
|
3
|
+
var t = class extends Map {
|
|
4
|
+
constructor(e, t = a) {
|
|
5
|
+
if (super(), Object.defineProperties(this, {
|
|
6
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
7
|
+
_key: { value: t }
|
|
8
|
+
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
return super.get(n(this, e));
|
|
12
|
+
}
|
|
13
|
+
has(e) {
|
|
14
|
+
return super.has(n(this, e));
|
|
15
|
+
}
|
|
16
|
+
set(e, t) {
|
|
17
|
+
return super.set(r(this, e), t);
|
|
18
|
+
}
|
|
19
|
+
delete(e) {
|
|
20
|
+
return super.delete(i(this, e));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function n({ _intern: e, _key: t }, n) {
|
|
24
|
+
let r = t(n);
|
|
25
|
+
return e.has(r) ? e.get(r) : n;
|
|
26
|
+
}
|
|
27
|
+
function r({ _intern: e, _key: t }, n) {
|
|
28
|
+
let r = t(n);
|
|
29
|
+
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
30
|
+
}
|
|
31
|
+
function i({ _intern: e, _key: t }, n) {
|
|
32
|
+
let r = t(n);
|
|
33
|
+
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
34
|
+
}
|
|
35
|
+
function a(e) {
|
|
36
|
+
return typeof e == "object" && e ? e.valueOf() : e;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../node_modules/d3-scale/src/ordinal.js
|
|
40
|
+
var o = Symbol("implicit");
|
|
41
|
+
function s() {
|
|
42
|
+
var n = new t(), r = [], i = [], a = o;
|
|
43
|
+
function c(e) {
|
|
44
|
+
let t = n.get(e);
|
|
45
|
+
if (t === void 0) {
|
|
46
|
+
if (a !== o) return a;
|
|
47
|
+
n.set(e, t = r.push(e) - 1);
|
|
48
|
+
}
|
|
49
|
+
return i[t % i.length];
|
|
50
|
+
}
|
|
51
|
+
return c.domain = function(e) {
|
|
52
|
+
if (!arguments.length) return r.slice();
|
|
53
|
+
r = [], n = new t();
|
|
54
|
+
for (let t of e) n.has(t) || n.set(t, r.push(t) - 1);
|
|
55
|
+
return c;
|
|
56
|
+
}, c.range = function(e) {
|
|
57
|
+
return arguments.length ? (i = Array.from(e), c) : i.slice();
|
|
58
|
+
}, c.unknown = function(e) {
|
|
59
|
+
return arguments.length ? (a = e, c) : a;
|
|
60
|
+
}, c.copy = function() {
|
|
61
|
+
return s(r, i).unknown(a);
|
|
62
|
+
}, e.apply(c, arguments), c;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { s as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./init-07zIhv_j.cjs");var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.t.apply(c,arguments),c}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-KEIR6QF5-Cy_QBNG6.cjs");const e=require("./mermaid-parser.core-Cgsz0CdK.cjs");exports.createPacketServices=e.S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n)if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function s(){return new o}s.prototype=o.prototype;function c(e){return function(){return e}}function l(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//#region ../node_modules/d3-path/src/path.js
|
|
2
|
+
var e = Math.PI, t = 2 * e, n = 1e-6, r = t - n;
|
|
3
|
+
function i(e) {
|
|
4
|
+
this._ += e[0];
|
|
5
|
+
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
6
|
+
}
|
|
7
|
+
function a(e) {
|
|
8
|
+
let t = Math.floor(e);
|
|
9
|
+
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
|
|
10
|
+
if (t > 15) return i;
|
|
11
|
+
let n = 10 ** t;
|
|
12
|
+
return function(e) {
|
|
13
|
+
this._ += e[0];
|
|
14
|
+
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var o = class {
|
|
18
|
+
constructor(e) {
|
|
19
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? i : a(e);
|
|
20
|
+
}
|
|
21
|
+
moveTo(e, t) {
|
|
22
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
|
|
23
|
+
}
|
|
24
|
+
closePath() {
|
|
25
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
26
|
+
}
|
|
27
|
+
lineTo(e, t) {
|
|
28
|
+
this._append`L${this._x1 = +e},${this._y1 = +t}`;
|
|
29
|
+
}
|
|
30
|
+
quadraticCurveTo(e, t, n, r) {
|
|
31
|
+
this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
|
|
32
|
+
}
|
|
33
|
+
bezierCurveTo(e, t, n, r, i, a) {
|
|
34
|
+
this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
|
|
35
|
+
}
|
|
36
|
+
arcTo(t, r, i, a, o) {
|
|
37
|
+
if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
|
|
38
|
+
let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
|
|
39
|
+
if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
|
|
40
|
+
else if (p > n) if (!(Math.abs(f * l - u * d) > n) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
|
|
41
|
+
else {
|
|
42
|
+
let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((e - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
|
|
43
|
+
Math.abs(x - 1) > n && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
arc(i, a, o, s, c, l) {
|
|
47
|
+
if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
|
|
48
|
+
let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
|
|
49
|
+
this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > n || Math.abs(this._y1 - p) > n) && this._append`L${f},${p}`, o && (h < 0 && (h = h % t + t), h > r ? this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}` : h > n && this._append`A${o},${o},0,${+(h >= e)},${m},${this._x1 = i + o * Math.cos(c)},${this._y1 = a + o * Math.sin(c)}`);
|
|
50
|
+
}
|
|
51
|
+
rect(e, t, n, r) {
|
|
52
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this._;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function s() {
|
|
59
|
+
return new o();
|
|
60
|
+
}
|
|
61
|
+
s.prototype = o.prototype;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region ../node_modules/d3-shape/src/constant.js
|
|
64
|
+
function c(e) {
|
|
65
|
+
return function() {
|
|
66
|
+
return e;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region ../node_modules/d3-shape/src/path.js
|
|
71
|
+
function l(e) {
|
|
72
|
+
let t = 3;
|
|
73
|
+
return e.digits = function(n) {
|
|
74
|
+
if (!arguments.length) return t;
|
|
75
|
+
if (n == null) t = null;
|
|
76
|
+
else {
|
|
77
|
+
let e = Math.floor(n);
|
|
78
|
+
if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
79
|
+
t = e;
|
|
80
|
+
}
|
|
81
|
+
return e;
|
|
82
|
+
}, () => new o(t);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { c as n, l as t };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { t as e, u as t } from "./mermaid-parser.core-B8DQcCaz.js";
|
|
2
|
+
import { n } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
|
+
import { m as r } from "./src-DJ4x3y2O.js";
|
|
4
|
+
import "./chunk-WYO6CB5R-Y9HJHB3Q.js";
|
|
5
|
+
import "./chunk-VAUOI2AC-05FwamOA.js";
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-MOJQB5TN-D6YxvkUY.js";
|
|
7
|
+
import { t as s } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
8
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/pegDiagram-2B236MQR.mjs
|
|
9
|
+
var c = t().RailroadPeg.parser.LangiumParser, l = /* @__PURE__ */ n((e) => {
|
|
10
|
+
let t = e.alternatives.map(u);
|
|
11
|
+
return t.length === 1 ? t[0] : {
|
|
12
|
+
type: "choice",
|
|
13
|
+
alternatives: t
|
|
14
|
+
};
|
|
15
|
+
}, "transformOrderedChoice"), u = /* @__PURE__ */ n((e) => {
|
|
16
|
+
let t = e.elements.map(d);
|
|
17
|
+
return t.length === 1 ? t[0] : {
|
|
18
|
+
type: "sequence",
|
|
19
|
+
elements: t
|
|
20
|
+
};
|
|
21
|
+
}, "transformSequence"), d = /* @__PURE__ */ n((e) => {
|
|
22
|
+
let t = p(e.suffix);
|
|
23
|
+
return e.operator ? {
|
|
24
|
+
type: "special",
|
|
25
|
+
text: e.operator === "&" ? `&${f(t)}` : `!${f(t)}`
|
|
26
|
+
} : t;
|
|
27
|
+
}, "transformPrefix"), f = /* @__PURE__ */ n((e) => {
|
|
28
|
+
switch (e.type) {
|
|
29
|
+
case "terminal": return `"${e.value}"`;
|
|
30
|
+
case "nonterminal": return e.name;
|
|
31
|
+
case "special": return e.text;
|
|
32
|
+
default: return "(...)";
|
|
33
|
+
}
|
|
34
|
+
}, "nodeToLabel"), p = /* @__PURE__ */ n((e) => {
|
|
35
|
+
let t = m(e.primary);
|
|
36
|
+
if (!e.operator) return t;
|
|
37
|
+
switch (e.operator) {
|
|
38
|
+
case "?": return {
|
|
39
|
+
type: "optional",
|
|
40
|
+
element: t
|
|
41
|
+
};
|
|
42
|
+
case "*": return {
|
|
43
|
+
type: "repetition",
|
|
44
|
+
element: t,
|
|
45
|
+
min: 0,
|
|
46
|
+
max: Infinity
|
|
47
|
+
};
|
|
48
|
+
case "+": return {
|
|
49
|
+
type: "repetition",
|
|
50
|
+
element: t,
|
|
51
|
+
min: 1,
|
|
52
|
+
max: Infinity
|
|
53
|
+
};
|
|
54
|
+
default: throw Error(`Unsupported PEG suffix operator: ${e.operator}`);
|
|
55
|
+
}
|
|
56
|
+
}, "transformSuffix"), m = /* @__PURE__ */ n((e) => {
|
|
57
|
+
switch (e.$type) {
|
|
58
|
+
case "PegLiteral": return {
|
|
59
|
+
type: "terminal",
|
|
60
|
+
value: e.value
|
|
61
|
+
};
|
|
62
|
+
case "PegIdentifier": return {
|
|
63
|
+
type: "nonterminal",
|
|
64
|
+
name: e.name
|
|
65
|
+
};
|
|
66
|
+
case "PegGroup": return l(e.element);
|
|
67
|
+
case "PegAny": return {
|
|
68
|
+
type: "special",
|
|
69
|
+
text: e.dot
|
|
70
|
+
};
|
|
71
|
+
default: throw Error(`Unsupported PEG primary node: ${e.$type}`);
|
|
72
|
+
}
|
|
73
|
+
}, "transformPrimary"), h = /* @__PURE__ */ n((e) => ({
|
|
74
|
+
name: e.name,
|
|
75
|
+
definition: l(e.definition)
|
|
76
|
+
}), "transformRule"), g = /* @__PURE__ */ n((e) => {
|
|
77
|
+
s(e, o), e.title && o.setTitle(e.title), e.rules.map((e) => o.addRule(h(e)));
|
|
78
|
+
}, "populateDb"), _ = {
|
|
79
|
+
parser: {
|
|
80
|
+
parse: /* @__PURE__ */ n((t) => {
|
|
81
|
+
o.clear(), r.debug("[PEG Parser] Starting Langium parse");
|
|
82
|
+
let n = c.parse(t);
|
|
83
|
+
if (n.lexerErrors.length > 0 || n.parserErrors.length > 0) throw new e(n);
|
|
84
|
+
let i = n.value;
|
|
85
|
+
r.debug("[PEG Parser] Parsed rules:", i.rules.length), g(i), r.debug("[PEG Parser] Parse complete");
|
|
86
|
+
}, "parse"),
|
|
87
|
+
parser: { yy: o }
|
|
88
|
+
},
|
|
89
|
+
db: o,
|
|
90
|
+
renderer: a,
|
|
91
|
+
styles: i
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
export { _ as diagram };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./mermaid-parser.core-Cgsz0CdK.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-CR--T_NF.cjs");require("./chunk-WYO6CB5R-BTvDzbWd.cjs"),require("./chunk-VAUOI2AC-CBXi4Di2.cjs");const r=require("./chunk-MOJQB5TN-H2vwz-oQ.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");var a=e.u().RailroadPeg.parser.LangiumParser,o=t.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),s=t.n(e=>{let t=e.elements.map(c);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),c=t.n(e=>{let t=u(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${l(t)}`:`!${l(t)}`}:t},`transformPrefix`),l=t.n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),u=t.n(e=>{let t=d(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),d=t.n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return o(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),f=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),p=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(f(e)))},`populateDb`),m={parser:{parse:t.n(t=>{r.t.clear(),n.m.debug(`[PEG Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new e.t(i);let o=i.value;n.m.debug(`[PEG Parser] Parsed rules:`,o.rules.length),p(o),n.m.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=m;
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
//#region ../node_modules/highlight.js/es/languages/php.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
|
|
4
|
+
scope: "variable",
|
|
5
|
+
match: "\\$+" + r
|
|
6
|
+
}, s = {
|
|
7
|
+
scope: "meta",
|
|
8
|
+
variants: [
|
|
9
|
+
{
|
|
10
|
+
begin: /<\?php/,
|
|
11
|
+
relevance: 10
|
|
12
|
+
},
|
|
13
|
+
{ begin: /<\?=/ },
|
|
14
|
+
{
|
|
15
|
+
begin: /<\?/,
|
|
16
|
+
relevance: .1
|
|
17
|
+
},
|
|
18
|
+
{ begin: /\?>/ }
|
|
19
|
+
]
|
|
20
|
+
}, c = {
|
|
21
|
+
scope: "subst",
|
|
22
|
+
variants: [{ begin: /\$\w+/ }, {
|
|
23
|
+
begin: /\{\$/,
|
|
24
|
+
end: /\}/
|
|
25
|
+
}]
|
|
26
|
+
}, l = e.inherit(e.APOS_STRING_MODE, { illegal: null }), u = e.inherit(e.QUOTE_STRING_MODE, {
|
|
27
|
+
illegal: null,
|
|
28
|
+
contains: e.QUOTE_STRING_MODE.contains.concat(c)
|
|
29
|
+
}), d = {
|
|
30
|
+
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
|
31
|
+
end: /[ \t]*(\w+)\b/,
|
|
32
|
+
contains: e.QUOTE_STRING_MODE.contains.concat(c),
|
|
33
|
+
"on:begin": (e, t) => {
|
|
34
|
+
t.data._beginMatch = e[1] || e[2];
|
|
35
|
+
},
|
|
36
|
+
"on:end": (e, t) => {
|
|
37
|
+
t.data._beginMatch !== e[1] && t.ignoreMatch();
|
|
38
|
+
}
|
|
39
|
+
}, f = e.END_SAME_AS_BEGIN({
|
|
40
|
+
begin: /<<<[ \t]*'(\w+)'\n/,
|
|
41
|
+
end: /[ \t]*(\w+)\b/
|
|
42
|
+
}), p = "[ \n]", m = {
|
|
43
|
+
scope: "string",
|
|
44
|
+
variants: [
|
|
45
|
+
u,
|
|
46
|
+
l,
|
|
47
|
+
d,
|
|
48
|
+
f
|
|
49
|
+
]
|
|
50
|
+
}, h = {
|
|
51
|
+
scope: "number",
|
|
52
|
+
variants: [
|
|
53
|
+
{ begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
|
|
54
|
+
{ begin: "\\b0[oO][0-7]+(?:_[0-7]+)*\\b" },
|
|
55
|
+
{ begin: "\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b" },
|
|
56
|
+
{ begin: "(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" }
|
|
57
|
+
],
|
|
58
|
+
relevance: 0
|
|
59
|
+
}, g = [
|
|
60
|
+
"false",
|
|
61
|
+
"null",
|
|
62
|
+
"true"
|
|
63
|
+
], _ = /* @__PURE__ */ "__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield".split("."), v = /* @__PURE__ */ "Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass".split("."), y = {
|
|
64
|
+
keyword: _,
|
|
65
|
+
literal: ((e) => {
|
|
66
|
+
let t = [];
|
|
67
|
+
return e.forEach((e) => {
|
|
68
|
+
t.push(e), e.toLowerCase() === e ? t.push(e.toUpperCase()) : t.push(e.toLowerCase());
|
|
69
|
+
}), t;
|
|
70
|
+
})(g),
|
|
71
|
+
built_in: v
|
|
72
|
+
}, b = (e) => e.map((e) => e.replace(/\|\d+$/, "")), x = { variants: [{
|
|
73
|
+
match: [
|
|
74
|
+
/new/,
|
|
75
|
+
t.concat(p, "+"),
|
|
76
|
+
t.concat("(?!", b(v).join("\\b|"), "\\b)"),
|
|
77
|
+
i
|
|
78
|
+
],
|
|
79
|
+
scope: {
|
|
80
|
+
1: "keyword",
|
|
81
|
+
4: "title.class"
|
|
82
|
+
}
|
|
83
|
+
}] }, S = t.concat(r, "\\b(?!\\()"), C = { variants: [
|
|
84
|
+
{
|
|
85
|
+
match: [t.concat(/::/, t.lookahead(/(?!class\b)/)), S],
|
|
86
|
+
scope: { 2: "variable.constant" }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
match: [/::/, /class/],
|
|
90
|
+
scope: { 2: "variable.language" }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
match: [
|
|
94
|
+
i,
|
|
95
|
+
t.concat(/::/, t.lookahead(/(?!class\b)/)),
|
|
96
|
+
S
|
|
97
|
+
],
|
|
98
|
+
scope: {
|
|
99
|
+
1: "title.class",
|
|
100
|
+
3: "variable.constant"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
match: [i, t.concat("::", t.lookahead(/(?!class\b)/))],
|
|
105
|
+
scope: { 1: "title.class" }
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
match: [
|
|
109
|
+
i,
|
|
110
|
+
/::/,
|
|
111
|
+
/class/
|
|
112
|
+
],
|
|
113
|
+
scope: {
|
|
114
|
+
1: "title.class",
|
|
115
|
+
3: "variable.language"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
] }, w = {
|
|
119
|
+
scope: "attr",
|
|
120
|
+
match: t.concat(r, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
121
|
+
}, T = {
|
|
122
|
+
relevance: 0,
|
|
123
|
+
begin: /\(/,
|
|
124
|
+
end: /\)/,
|
|
125
|
+
keywords: y,
|
|
126
|
+
contains: [
|
|
127
|
+
w,
|
|
128
|
+
o,
|
|
129
|
+
C,
|
|
130
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
131
|
+
m,
|
|
132
|
+
h,
|
|
133
|
+
x
|
|
134
|
+
]
|
|
135
|
+
}, E = {
|
|
136
|
+
relevance: 0,
|
|
137
|
+
match: [
|
|
138
|
+
/\b/,
|
|
139
|
+
t.concat("(?!fn\\b|function\\b|", b(_).join("\\b|"), "|", b(v).join("\\b|"), "\\b)"),
|
|
140
|
+
r,
|
|
141
|
+
t.concat(p, "*"),
|
|
142
|
+
t.lookahead(/(?=\()/)
|
|
143
|
+
],
|
|
144
|
+
scope: { 3: "title.function.invoke" },
|
|
145
|
+
contains: [T]
|
|
146
|
+
};
|
|
147
|
+
T.contains.push(E);
|
|
148
|
+
let D = [
|
|
149
|
+
w,
|
|
150
|
+
C,
|
|
151
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
152
|
+
m,
|
|
153
|
+
h,
|
|
154
|
+
x
|
|
155
|
+
], O = {
|
|
156
|
+
begin: t.concat(/#\[\s*\\?/, t.either(i, a)),
|
|
157
|
+
beginScope: "meta",
|
|
158
|
+
end: /]/,
|
|
159
|
+
endScope: "meta",
|
|
160
|
+
keywords: {
|
|
161
|
+
literal: g,
|
|
162
|
+
keyword: ["new", "array"]
|
|
163
|
+
},
|
|
164
|
+
contains: [
|
|
165
|
+
{
|
|
166
|
+
begin: /\[/,
|
|
167
|
+
end: /]/,
|
|
168
|
+
keywords: {
|
|
169
|
+
literal: g,
|
|
170
|
+
keyword: ["new", "array"]
|
|
171
|
+
},
|
|
172
|
+
contains: ["self", ...D]
|
|
173
|
+
},
|
|
174
|
+
...D,
|
|
175
|
+
{
|
|
176
|
+
scope: "meta",
|
|
177
|
+
variants: [{ match: i }, { match: a }]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
};
|
|
181
|
+
return {
|
|
182
|
+
case_insensitive: !1,
|
|
183
|
+
keywords: y,
|
|
184
|
+
contains: [
|
|
185
|
+
O,
|
|
186
|
+
e.HASH_COMMENT_MODE,
|
|
187
|
+
e.COMMENT("//", "$"),
|
|
188
|
+
e.COMMENT("/\\*", "\\*/", { contains: [{
|
|
189
|
+
scope: "doctag",
|
|
190
|
+
match: "@[A-Za-z]+"
|
|
191
|
+
}] }),
|
|
192
|
+
{
|
|
193
|
+
match: /__halt_compiler\(\);/,
|
|
194
|
+
keywords: "__halt_compiler",
|
|
195
|
+
starts: {
|
|
196
|
+
scope: "comment",
|
|
197
|
+
end: e.MATCH_NOTHING_RE,
|
|
198
|
+
contains: [{
|
|
199
|
+
match: /\?>/,
|
|
200
|
+
scope: "meta",
|
|
201
|
+
endsParent: !0
|
|
202
|
+
}]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
s,
|
|
206
|
+
{
|
|
207
|
+
scope: "variable.language",
|
|
208
|
+
match: /\$this\b/
|
|
209
|
+
},
|
|
210
|
+
o,
|
|
211
|
+
E,
|
|
212
|
+
C,
|
|
213
|
+
{
|
|
214
|
+
match: [
|
|
215
|
+
/const/,
|
|
216
|
+
/\s/,
|
|
217
|
+
r
|
|
218
|
+
],
|
|
219
|
+
scope: {
|
|
220
|
+
1: "keyword",
|
|
221
|
+
3: "variable.constant"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
x,
|
|
225
|
+
{
|
|
226
|
+
scope: "function",
|
|
227
|
+
relevance: 0,
|
|
228
|
+
beginKeywords: "fn function",
|
|
229
|
+
end: /[;{]/,
|
|
230
|
+
excludeEnd: !0,
|
|
231
|
+
illegal: "[$%\\[]",
|
|
232
|
+
contains: [
|
|
233
|
+
{ beginKeywords: "use" },
|
|
234
|
+
e.UNDERSCORE_TITLE_MODE,
|
|
235
|
+
{
|
|
236
|
+
begin: "=>",
|
|
237
|
+
endsParent: !0
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
scope: "params",
|
|
241
|
+
begin: "\\(",
|
|
242
|
+
end: "\\)",
|
|
243
|
+
excludeBegin: !0,
|
|
244
|
+
excludeEnd: !0,
|
|
245
|
+
keywords: y,
|
|
246
|
+
contains: [
|
|
247
|
+
"self",
|
|
248
|
+
O,
|
|
249
|
+
o,
|
|
250
|
+
C,
|
|
251
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
252
|
+
m,
|
|
253
|
+
h
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
scope: "class",
|
|
260
|
+
variants: [{
|
|
261
|
+
beginKeywords: "enum",
|
|
262
|
+
illegal: /[($"]/
|
|
263
|
+
}, {
|
|
264
|
+
beginKeywords: "class interface trait",
|
|
265
|
+
illegal: /[:($"]/
|
|
266
|
+
}],
|
|
267
|
+
relevance: 0,
|
|
268
|
+
end: /\{/,
|
|
269
|
+
excludeEnd: !0,
|
|
270
|
+
contains: [{ beginKeywords: "extends implements" }, e.UNDERSCORE_TITLE_MODE]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
beginKeywords: "namespace",
|
|
274
|
+
relevance: 0,
|
|
275
|
+
end: ";",
|
|
276
|
+
illegal: /[.']/,
|
|
277
|
+
contains: [e.inherit(e.UNDERSCORE_TITLE_MODE, { scope: "title.class" })]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
beginKeywords: "use",
|
|
281
|
+
relevance: 0,
|
|
282
|
+
end: ";",
|
|
283
|
+
contains: [{
|
|
284
|
+
match: /\b(as|const|function)\b/,
|
|
285
|
+
scope: "keyword"
|
|
286
|
+
}, e.UNDERSCORE_TITLE_MODE]
|
|
287
|
+
},
|
|
288
|
+
m,
|
|
289
|
+
h
|
|
290
|
+
]
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
export { e as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
|
|
2
|
+
]`,m={scope:`string`,variants:[u,l,d,f]},h={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},g=[`false`,`null`,`true`],_=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),v=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},w={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,m,h,x]},E={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(E);let D=[w,C,e.C_BLOCK_COMMENT_MODE,m,h,x],O={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...D]},...D,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,E,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:[`self`,O,o,C,e.C_BLOCK_COMMENT_MODE,m,h]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},m,h]}}exports.default=e;
|